Giter Site home page Giter Site logo

goodrain / rainbond-install Goto Github PK

View Code? Open in Web Editor NEW
20.0 9.0 14.0 3.1 MB

Saltstack recipe to deploy Rainbond (abandoned)

License: Apache License 2.0

SaltStack 50.56% Shell 42.23% Python 0.03% HTML 2.17% LiveScript 3.29% Dockerfile 1.72%
rainbond saltstack rainbond-environment kubernetes salt docker

rainbond-install's Introduction

DocsBuild Status

Status(Abandoned)

Install Rainbond that version after 5.0.0, Please reference https://github.com/goodrain/rainbond-ansible

Description

A collection of Salt states used to provision an application-centric platform Rainbond.

Support for:

  • Rainbond Manage node - single node with Mysql database
  • Rainbond Compute node - it is not automatically added to Rainbond environment
  • Rainbond environment support - support Kubernetes
  • Docker registry - automatically provisioned on Manage start
  • Support for different provision

Plugins Version:

Operations Guide

Prerequisites

Install

  • Quick start
# Stable v3.7.2(v3.7)

git clone --depth 1 -b v3.7 https://github.com/goodrain/rainbond-install.git /opt/rainbond/install
cd /opt/rainbond/install
./setup.sh

or

grctl init 

# previous v3.6.1

git clone --depth 1 -b v3.6 https://github.com/goodrain/rainbond-install.git
cd rainbond-install
./setup.sh

# previous v3.5.2
git clone --depth 1 -b v3.5 https://github.com/goodrain/rainbond-install.git
cd rainbond-install
./setup.sh

Documents

You can find all the documentation in the troubleshooting install/Docs.

License

This project is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.

rainbond-install's People

Contributors

dazuimao1990 avatar goodrainzh avatar ysbot-ergo avatar ysicing avatar yyyaiy avatar zhouyq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rainbond-install's Issues

salt 错误

start init
Could not access /var/cache/salt/master. Path does not exist.
start install storage
Could not access /var/cache/salt/master. Path does not exist.
start install docker
Could not access /var/cache/salt/master. Path does not exist.
start etcd
Could not access /var/cache/salt/master. Path does not exist.
start network plugin calico
Could not access /var/cache/salt/master. Path does not exist.
start k8s server
Could not access /var/cache/salt/master. Path does not exist.
start node
Could not access /var/cache/salt/master. Path does not exist.
start database mysql
Could not access /var/cache/salt/master. Path does not exist.
start plugins
Could not access /var/cache/salt/master. Path does not exist.
Could not access /var/cache/salt/master. Path does not exist.
start proxy
Could not access /var/cache/salt/master. Path does not exist.
start prom
Could not access /var/cache/salt/master. Path does not exist.
--- will install compute node. ---
start kubelet
Could not access /var/cache/salt/master. Path does not exist.

update pillar inet-ip

废弃inet-ip 配置,使用manage ip

# old
inet-ip: 172.16.0.1
# new
manage:
    members:
    - host: 172.16.0.1
      name: manage01
    - host: 172.16.0.2
      name: manage02
    - host: 172.16.0.3
      name: manage03

script install err

centos 7.0

Start install db ...
manage01:
Name: docker pull rainbond/rbd-db:3.5 - Function: cmd.run - Result: Changed Started: - 23:39:41.327276 Duration: 136468.565 ms

      ID: db-upstart
Function: cmd.run
    Name: dc-compose up -d rbd-db
  Result: False
 Comment: Command "dc-compose up -d rbd-db" run
 Started: 23:41:57.796429
Duration: 280.822 ms
 Changes:   
          ----------
          pid:
              4526
          retcode:
              127
          stderr:
              /usr/local/bin/docker-compose: error while loading shared libraries: libz.so.1: failed to map segment from shared object: Operation not permitted
          stdout:

Summary for manage01

Succeeded: 1 (changed=2)
Failed: 1

Total states run: 2
Total run time: 136.749 s
ERROR: Minions returned with non-zero exit code
Quit rainbond install program.

install.sh 报错

./install.sh: line 49: [: ==: unary operator expected
./install.sh: line 52: [: ==: unary operator expected

system: centos 7.4

拉取镜像失败

          ID: runner-pull
    Function: cmd.run
        Name: docker pull rainbond/runner; docker tag rainbond/runner goodrain.me/runner;docker push goodrain.me/runner
      Result: False
     Comment: Command "docker pull rainbond/runner; docker tag rainbond/runner goodrain.me/runner;docker push goodrain.me/runner" run
     Started: 22:21:03.276421
    Duration: 211625.232 ms
     Changes:
              ----------
              pid:
                  26290
              retcode:
                  1
              stderr:
                  Put http://goodrain.me/v1/repositories/runner/: dial tcp 172.30.42.1:80: getsockopt: connection refused

./scripts/check.sh: line 277

--- Installing salt ... ---
./scripts/check.sh: line 277: Echo_Error: command not found
--- There seems to be some problem here, You can through the error log(./logs/error.log) to get the detail information ---

上线节点提示node is not k8s node or it not down

[root@manage01 ~]# grctl node list
+--------------------------------------+--------------+----------+----------+----------+--------+-------------+-------+
| Uid                                  | IP           | HostName | NodeRole | NodeMode | Alived | Schedulable | Ready |
+--------------------------------------+--------------+----------+----------+----------+--------+-------------+-------+
| 8e047f77-1b0f-4cb8-88b5-0f3ae14d89b5 | 172.16.0.168 | manage01 | manage   | master   | true   | N/A         | false |
+--------------------------------------+--------------+----------+----------+----------+--------+-------------+-------+
grctl node up 8e047f77-1b0f-4cb8-88b5-0f3ae14d89b5
400:error with code 400 , {"msg":"node is not k8s node or it not down"}

mysql db init failure

image
After mysql install, sleep 15 but db could not start. Whether to loop check port 3306 or sock file /data/tmp/mysqld.sock?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.