-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arquivo config.yml para permitir implementação da arquitetura inicial #8
Milestone
Comments
Este arquivo aqui é uma configuração válida. Porém vou tentar uma que permita deixar o core apenas na bravo, conforme #4 (comment) config.ymlname: 'aguia-pescadora'
hosts:
core:
size: 3
driver:
options:
generic-ip-address: ["173.249.10.99", "167.86.127.220", "167.86.127.225"]
generic-ssh-key: ["/home/fititnt/.ssh/id_rsa-aguia-pescadora-tsuru"]
#apps:
# size: 3
# dedicated: false
# driver:
# options:
# # generic-ip-address: ["173.249.10.99", "167.86.127.220", "167.86.127.225"]
# generic-ip-address: ["173.249.10.99", "167.86.127.220", "167.86.127.225"]
# generic-ssh-key: ["/home/fititnt/.ssh/id_rsa-aguia-pescadora-tsuru"]
driver:
name: generic
options:
generic-ssh-port: 22
generic-ssh-user: root |
tsuru install-create -c config.ymlconfig.yml# Delta: 173.249.10.99
# Echo: 173.249.10.99
# Foxtrot: 173.249.10.99
name: 'aguia-pescadora'
hosts:
core:
size: 2
driver:
options:
generic-ip-address: ["173.249.10.99", "167.86.127.220"]
generic-ssh-key: ["/home/fititnt/.ssh/id_rsa-aguia-pescadora-tsuru"]
apps:
size: 1
dedicated: true
driver:
options:
generic-ip-address: ["167.86.127.225"]
generic-ssh-key: ["/home/fititnt/.ssh/id_rsa-aguia-pescadora-tsuru"]
driver:
name: generic
options:
generic-ssh-port: 22
generic-ssh-user: root logs# fititnt at bravo in /alligo/code/eticaai/aguia-pescadora/diario-de-bordo/tsuru-inicializacao on git:master x [20:23:35]
$ tsuru install-create -c config.yml
Running pre-install checks...
Running pre-create checks...
Creating machine...
(aguia-pescadora-1) Importing SSH key...
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with ubuntu(systemd)...
Installing Docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Checking connection to Docker...
Docker is up and running!
Waiting for SSH to be available...
Detecting the provisioner...
Installing Docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Uploading registry certificate...
Deploying tsuru config...
Running pre-create checks...
Creating machine...
(aguia-pescadora-2) Importing SSH key...
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with ubuntu(systemd)...
Installing Docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Checking connection to Docker...
Docker is up and running!
Waiting for SSH to be available...
Detecting the provisioner...
Installing Docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Uploading registry certificate...
Deploying tsuru config...
Deploying compose file in cluster manager....
Creating network tsuru_tsuru
Creating service tsuru_registry
Creating service tsuru_tsuru
Creating service tsuru_redis
Creating service tsuru_mongo
Creating service tsuru_planb
Restarting docker in aguia-pescadora-1
Waiting for SSH to be available...
Detecting the provisioner...
Restarting docker in aguia-pescadora-2
Waiting for SSH to be available...
Detecting the provisioner...
Waiting for Tsuru API to become responsive...
�+Opening config file: /etc/tsuru/tsuru.conf
��Done reading config file: /etc/tsuru/tsuru.conf
Warning: configuration didn't declare a database driver, using default driver.
Using "mongodb" database "tsuru" from the server "mongo:27017".
�9Error: error initializing services: no reachable servers
Bootstrapping Tsuru API...Running pre-create checks...
Creating machine...
(aguia-pescadora-3) Importing SSH key...
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with ubuntu(systemd)...
Installing Docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Checking connection to Docker...
Docker is up and running!
Waiting for SSH to be available...
Detecting the provisioner...
Installing Docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Uploading registry certificate...
adding target
New target aguia-pescadora -> http://173.249.10.99:8080 added to target list and defined as the current target
log in with default user: [email protected] Password:
Error: Error bootstrapping tsuru: failed to login to tsuru: user not found Edit, added more info root@aguia-pescadora-delta:~# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
4cae4264a3ba redis:latest "docker-entrypoint.s…" 6 minutes ago Up 6 minutes 6379/tcp tsuru_redis.1.o9658h0ve6avrc2760do6vb7y
7296f855daa1 tsuru/api:v1 "/bin/tsurud api" 6 minutes ago Up 6 minutes 8080/tcp tsuru_tsuru.1.we9xcvx0hx80lkdvapymhacob
root@aguia-pescadora-echo:~# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
33e136512235 registry:2 "/entrypoint.sh /etc…" 6 minutes ago Up 6 minutes 5000/tcp tsuru_registry.1.mn2yv0kmkkk9jtk95ihabrv6f
57058eb74c96 mongo:latest "docker-entrypoint.s…" 6 minutes ago Up 6 minutes 27017/tcp tsuru_mongo.1.a22rx29jqm5epdpaq26yxt3ph
1486f527099d tsuru/planb:latest "/bin/planb --listen…" 6 minutes ago Up 6 minutes 8080/tcp tsuru_planb.1.qv2tum5a97oftdbig4jcidls5
root@aguia-pescadora-foxtrot:~# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES Edição 2: tsuru install-remove -c config.yml
tsuru install-create -c config.yml Mesmos resultados. |
fititnt
added a commit
that referenced
this issue
Jun 21, 2019
… README para usuarios que acessam via GitHub; testes com config.yml (recriado do zero algumas vezes toda infra)
tsuru install-create -c config.ymlconfig.yml# Delta: 173.249.10.99
# Echo: 167.86.127.220
# Foxtrot: 167.86.127.225
name: 'aguia-pescadora'
hosts:
core:
size: 1
driver:
options:
generic-ip-address: ["173.249.10.99"]
generic-ssh-key: ["/home/fititnt/.ssh/id_rsa-aguia-pescadora-tsuru"]
apps:
size: 2
# docs.tsuru.io: "By default, core hosts are reused as apps hosts (this can be configured by the hosts:apps:dedicated config).""
dedicated: false
driver:
options:
generic-ip-address: ["167.86.127.220", "167.86.127.225"]
generic-ssh-key: ["/home/fititnt/.ssh/id_rsa-aguia-pescadora-tsuru"]
driver:
name: generic
options:
generic-ssh-port: 22
generic-ssh-user: root logs# fititnt at bravo in /alligo/code/eticaai/aguia-pescadora/diario-de-bordo/tsuru-inicializacao on git:master x [23:18:07]
$ tsuru install-create -c config.yml
Running pre-install checks...
Running pre-create checks...
Creating machine...
(aguia-pescadora-1) Importing SSH key...
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with ubuntu(systemd)...
Installing Docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Checking connection to Docker...
Docker is up and running!
Waiting for SSH to be available...
Detecting the provisioner...
Installing Docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Creating registry certificate...
Uploading registry certificate...
Deploying tsuru config...
Deploying compose file in cluster manager....
Creating network tsuru_tsuru
Creating service tsuru_tsuru
Creating service tsuru_redis
Creating service tsuru_mongo
Creating service tsuru_planb
Creating service tsuru_registry
Restarting docker in aguia-pescadora-1
Waiting for SSH to be available...
Detecting the provisioner...
Waiting for Tsuru API to become responsive...
�+Opening config file: /etc/tsuru/tsuru.conf
��Done reading config file: /etc/tsuru/tsuru.conf
Warning: configuration didn't declare a database driver, using default driver.
Using "mongodb" database "tsuru" from the server "mongo:27017".
�
Password: �
Confirm:
� Root user successfully created.
Bootstrapping Tsuru API...Running pre-create checks...
Creating machine...
(aguia-pescadora-2) Importing SSH key...
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with ubuntu(systemd)...
Installing Docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Checking connection to Docker...
Docker is up and running!
Waiting for SSH to be available...
Detecting the provisioner...
Installing Docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Uploading registry certificate...
adding target
New target aguia-pescadora -> http://173.249.10.99:8080 added to target list and defined as the current target
log in with default user: [email protected] Password:
Successfully logged in!
adding pool
Pool successfully registered.
adding node https://167.86.127.220:2376
Node successfully registered.
adding node https://173.249.10.99:2376
Node successfully registered.
adding platform
Step 1/1 : FROM tsuru/python
latest: Pulling from tsuru/python
898c46f3b1a1: Pull complete
63366dfa0a50: Pull complete
041d4cd74a92: Pull complete
6e1bee0f8701: Pull complete
f1262cb8e4eb: Pull complete
3b42147f93c6: Pull complete
ce676a4695b2: Pull complete
3d2ec243107f: Pull complete
8dd3be1f9c8f: Pull complete
d8fdacb9c35e: Pull complete
208c5cbd4b1d: Pull complete
Digest: sha256:8fd5cc5b7e238e6e02b8661502b97fe262633d734f42b84219b56756a10dd0f2
Status: Downloaded newer image for tsuru/python:latest
---> 80e4f8c9f479
Successfully built 80e4f8c9f479
Successfully tagged 173.249.10.99:5000/tsuru/python:v1
Platform successfully added!
adding team
Team "admin" successfully created!
adding dashboard
App "tsuru-dashboard" has been created!
Use app-info to check the status of the app and its units.
deploying dashboard
Deploying image... ok
---- Getting process from image ----
latest: Pulling from tsuru/dashboard
898c46f3b1a1: Pulling fs layer
63366dfa0a50: Pulling fs layer
041d4cd74a92: Pull complete
6e1bee0f8701: Pull complete
f1262cb8e4eb: Pull complete
3b42147f93c6: Pull complete
ce676a4695b2: Pull complete
8451f182be01: Pull complete
08228282e2e2: Pull complete
ece7284ab391: Pull complete
74846b861d93: Pull complete
58e30f14a771: Pull complete
77f713733a5c: Pull complete
4867c7fa9135: Pull complete
17e3ccb375ed: Pull complete
fc2fc7de3e1d: Pull complete
ad6fe7455e89: Pull complete
d962926909e2: Pull complete
Digest: sha256:e49a7379e01643ed851680d69d87272490274424628e006b4117db3e22eef8e7
Status: Downloaded newer image for tsuru/dashboard:latest
---- Inspecting image "tsuru/dashboard:latest" ----
---> Process "web" found with commands: ["gunicorn --access-logfile - -b 0.0.0.0:$PORT -w 2 abyss.wsgi -k gevent"]
---- Getting tsuru.yaml from image ----
latest: Pulling from tsuru/dashboard
Digest: sha256:e49a7379e01643ed851680d69d87272490274424628e006b4117db3e22eef8e7
Status: Image is up to date for tsuru/dashboard:latest
---- Running build hooks ----
---> Running "python manage.py migrate --noinput && python manage.py createcachetable && python manage.py collectstatic --noinput"
latest: Pulling from tsuru/dashboard
Digest: sha256:e49a7379e01643ed851680d69d87272490274424628e006b4117db3e22eef8e7
Status: Image is up to date for tsuru/dashboard:latest
Operations to perform:
Apply all migrations: contenttypes, sessions
Running migrations:
No migrations to apply.
Cache table 'tsuru_cache' already exists.
0 static files copied to '/home/application/current/abyss/static', 204 unmodified.
---- Pushing image "173.249.10.99:5000/tsuru/app-tsuru-dashboard:v1" to tsuru ----
The push refers to repository [173.249.10.99:5000/tsuru/app-tsuru-dashboard]
d6ceda4c4656: Preparing
691b5af91237: Preparing
d6ceda4c4656: Pushed
8b7c9398215e: Pushed
6c8b164a219a: Pushed
4a7d5e6f8f02: Pushed
0f8a11f8ed4b: Pushed
a5e25c97cf5b: Pushed
296e644b7d2c: Pushed
f928ed1c7b60: Pushed
095c21c108c6: Pushed
c161a80a5f93: Pushed
b46b7be76795: Pushed
1e7aa790428a: Pushed
b57c79f4a9f3: Pushed
d60e01b37e74: Pushed
e45cfbc98a50: Pushed
762d8e1a6054: Pushed
v1: digest: sha256:f3a31f4a1f8f06e8bd52d6d0c83aade5199fdb77a201b7fb51e73e019a06fb70 size: 4091
---- Starting 1 new unit [web: 1] ----
---> Started unit 6c41f147de [web]
---- Binding and checking 1 new unit ----
---> healthcheck fail(6c41f147de): Get http://167.86.127.220:32768/healthcheck/: dial tcp 167.86.127.220:32768: connect: connection refused. Trying again in 3s
---> healthcheck successful(6c41f147de)
---> Bound and checked unit 6c41f147de [web]
---- Adding routes to new units ----
---> Added route to unit 6c41f147de [web]
---- Setting router healthcheck (Path: /) ----
OK
Applying iptables workaround for docker 1.12...
Failed to apply iptables rule: ssh command error:
command : PATH=$PATH:/usr/sbin/:/usr/local/sbin; sudo iptables -D DOCKER-ISOLATION -i docker_gwbridge -o docker0 -j DROP
err : exit status 1
output : iptables: Bad rule (does a matching rule exist in that chain?).
. Maybe it is not needed anymore?
Failed to apply iptables rule: ssh command error:
command : PATH=$PATH:/usr/sbin/:/usr/local/sbin; sudo iptables -D DOCKER-ISOLATION -i docker0 -o docker_gwbridge -j DROP
err : exit status 1
output : iptables: Bad rule (does a matching rule exist in that chain?).
. Maybe it is not needed anymore?
--- Installation Overview ---
Core Hosts:
+---------------+-------+---------+
| IP | State | Manager |
+---------------+-------+---------+
| 173.249.10.99 | ready | true |
+---------------+-------+---------+
Core Components:
+----------------+-------+----------+
| Component | Ports | Replicas |
+----------------+-------+----------+
| tsuru_mongo | | 1 |
+----------------+-------+----------+
| tsuru_redis | | 1 |
+----------------+-------+----------+
| tsuru_planb | 80 | 1 |
+----------------+-------+----------+
| tsuru_registry | 5000 | 1 |
+----------------+-------+----------+
| tsuru_tsuru | 8080 | 1 |
+----------------+-------+----------+
Configured default user:
Username: [email protected]
Password: admin123
Apps Hosts:
+-----------------------------+---------+---------+----------------------------------+
| Address | IaaS ID | Status | Metadata |
+-----------------------------+---------+---------+----------------------------------+
| https://167.86.127.220:2376 | | ready | LastSuccess=2019-06-21T02:35:01Z |
| | | | pool=theonepool |
+-----------------------------+---------+---------+----------------------------------+
| https://173.249.10.99:2376 | | waiting | pool=theonepool |
+-----------------------------+---------+---------+----------------------------------+
Apps:
+-----------------+------------+--------------------------------------+
| Application | Units | Address |
+-----------------+------------+--------------------------------------+
| tsuru-dashboard | 1 starting | tsuru-dashboard.173.249.10.99.nip.io |
+-----------------+------------+--------------------------------------+
# fititnt at bravo in /alligo/code/eticaai/aguia-pescadora/diario-de-bordo/tsuru-inicializacao on git:master x [23:37:28]
root@aguia-pescadora-delta:~# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d54ea2944e3e registry:2 "/entrypoint.sh /etc…" 11 minutes ago Up 11 minutes 5000/tcp tsuru_registry.1.w0y28mla3j03qrhtuk0r2ih42
21325a8093b3 mongo:latest "docker-entrypoint.s…" 11 minutes ago Up 11 minutes 27017/tcp tsuru_mongo.1.cf8ksv5w15itzqbhgdbmu3f26
bf266cd1eac7 tsuru/planb:latest "/bin/planb --listen…" 11 minutes ago Up 11 minutes 8080/tcp tsuru_planb.1.x2tj3cu4l4aoxchie75zauqx5
e3aa1423157d redis:latest "docker-entrypoint.s…" 11 minutes ago Up 11 minutes 6379/tcp tsuru_redis.1.o8nhzpqktgo9qwaptj28pxvks
edd1a66344ff tsuru/api:v1 "/bin/tsurud api" 11 minutes ago Up 11 minutes 8080/tcp tsuru_tsuru.1.ukkszo588gfyhx9jbqbknagl7
root@aguia-pescadora-echo:~# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
6c41f147de53 173.249.10.99:5000/tsuru/app-tsuru-dashboard:v1 "/bin/sh -lc '[ -d /…" About a minute ago Up About a minute 0.0.0.0:32768->8888/tcp tsuru-dashboard-2ebbfee76d78ed935550
01a06be9f28c tsuru/bs:v1 "/bin/bs" 3 minutes ago Up 3 minutes big-sibling
root@aguia-pescadora-foxtrot:~# docker ps
Command 'docker' not found, but can be installed with:
apt install docker.io |
fititnt
added a commit
that referenced
this issue
Jun 21, 2019
Rodei sem recriar do zero (sem deletar as VMs) e alterei um parametro de 2 para 3 nos apps, porem não coloquei novamente os Ips que já existiam. config.yml# Delta: 173.249.10.99
# Echo: 167.86.127.220
# Foxtrot: 167.86.127.225
name: 'aguia-pescadora'
hosts:
core:
size: 1
driver:
options:
generic-ip-address: ["173.249.10.99"]
generic-ssh-key: ["/home/fititnt/.ssh/id_rsa-aguia-pescadora-tsuru"]
apps:
size: 3
# docs.tsuru.io: "By default, core hosts are reused as apps hosts (this can be configured by the hosts:apps:dedicated config).""
dedicated: false
driver:
options:
generic-ip-address: ["167.86.127.220", "167.86.127.225"]
generic-ssh-key: ["/home/fititnt/.ssh/id_rsa-aguia-pescadora-tsuru"]
driver:
name: generic
options:
generic-ssh-port: 22
generic-ssh-user: root Logs# fititnt at bravo in /alligo/code/eticaai/aguia-pescadora/diario-de-bordo/tsuru-inicializacao on git:master x [0:48:47]
$ tsuru install-remove -c config.yml
This will uninstall Tsuru installed on your target aguia-pescadora: http://173.249.10.99:8080.
The following core machines will be destroyed:
+-------------------+----------------+---------------------------------------------------------------+
| Name | IP | Data |
+-------------------+----------------+---------------------------------------------------------------+
| aguia-pescadora-1 | 173.249.10.99 | { |
| | | "EnginePort": 2376, |
| | | "IPAddress": "173.249.10.99", |
| | | "MachineName": "aguia-pescadora-1", |
| | | "SSHKey": "/home/fititnt/.ssh/id_rsa-aguia-pescadora-tsuru", |
| | | "SSHKeyPath": "/tmp/336931680/machines/id_rsa", |
| | | "SSHPort": 22, |
| | | "SSHUser": "root", |
| | | "StorePath": "/home/fititnt/.tsuru/installs/aguia-pescadora", |
| | | "SwarmDiscovery": "", |
| | | "SwarmHost": "", |
| | | "SwarmMaster": false |
| | | } |
+-------------------+----------------+---------------------------------------------------------------+
| aguia-pescadora-2 | 167.86.127.220 | { |
| | | "EnginePort": 2376, |
| | | "IPAddress": "167.86.127.220", |
| | | "MachineName": "aguia-pescadora-2", |
| | | "SSHKey": "/home/fititnt/.ssh/id_rsa-aguia-pescadora-tsuru", |
| | | "SSHKeyPath": "/tmp/336931680/machines/id_rsa", |
| | | "SSHPort": 22, |
| | | "SSHUser": "root", |
| | | "StorePath": "/home/fititnt/.tsuru/installs/aguia-pescadora", |
| | | "SwarmDiscovery": "", |
| | | "SwarmHost": "", |
| | | "SwarmMaster": false |
| | | } |
+-------------------+----------------+---------------------------------------------------------------+
Are you sure you sure you want to uninstall tsuru? (y/n) y
Are you really sure? I wont ask you again. (y/n) y
Core Machines successfully removed!
removing target
Uninstall finished successfully!
# fititnt at bravo in /alligo/code/eticaai/aguia-pescadora/diario-de-bordo/tsuru-inicializacao on git:master x [0:51:12]
$ tsuru install-create -c config.yml
Running pre-install checks...
Running pre-create checks...
Creating machine...
(aguia-pescadora-1) Importing SSH key...
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with ubuntu(systemd)...
Installing Docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Checking connection to Docker...
Docker is up and running!
Waiting for SSH to be available...
Detecting the provisioner...
Installing Docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Uploading registry certificate...
Deploying tsuru config...
Deploying compose file in cluster manager....
Updating service tsuru_mongo (id: e8habb5c9tfbgu1pnz0c898gv)
Updating service tsuru_planb (id: jiqu4lntpu59qv6a5r27m16cc)
Updating service tsuru_registry (id: orlolxkz3x52wbrxvrhh0me7f)
Updating service tsuru_tsuru (id: smcvjz1x1ko3nr11s4zzge2ii)
Updating service tsuru_redis (id: ih117x8eq16qwcu66n6f77c4y)
Restarting docker in aguia-pescadora-1
Waiting for SSH to be available...
Detecting the provisioner...
Waiting for Tsuru API to become responsive...
�+Opening config file: /etc/tsuru/tsuru.conf
��Done reading config file: /etc/tsuru/tsuru.conf
Warning: configuration didn't declare a database driver, using default driver.
Using "mongodb" database "tsuru" from the server "mongo:27017".
�*Root user successfully updated.
Password: �
Confirm:
�(Error: this email is already registered
Bootstrapping Tsuru API...Running pre-create checks...
Creating machine...
(aguia-pescadora-2) Importing SSH key...
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with ubuntu(systemd)...
Installing Docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Checking connection to Docker...
Docker is up and running!
Waiting for SSH to be available...
Detecting the provisioner...
Installing Docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Uploading registry certificate...
Running pre-create checks...
Creating machine...
(aguia-pescadora-3) Importing SSH key...
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with ubuntu(systemd)...
Installing Docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Checking connection to Docker...
Docker is up and running!
Waiting for SSH to be available...
Detecting the provisioner...
Installing Docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Uploading registry certificate...
adding target
New target aguia-pescadora -> http://173.249.10.99:8080 added to target list and defined as the current target
log in with default user: [email protected] Password:
Successfully logged in!
adding pool
Error: Error bootstrapping tsuru: failed to add pool: Default pool already exists.
# fititnt at bravo in /alligo/code/eticaai/aguia-pescadora/diario-de-bordo/tsuru-inicializacao on git:master x [1:04:06]
$ tsuru app-list
+-----------------+-----------+--------------------------------------+
| Application | Units | Address |
+-----------------+-----------+--------------------------------------+
| tsuru-dashboard | 1 started | tsuru-dashboard.173.249.10.99.nip.io |
+-----------------+-----------+--------------------------------------+
|
config.yml# Delta: 173.249.10.99
# Echo: 167.86.127.220
# Foxtrot: 167.86.127.225
name: 'aguia-pescadora'
hosts:
core:
size: 1
driver:
options:
generic-ip-address: ["173.249.10.99"]
generic-ssh-key: ["/home/fititnt/.ssh/id_rsa-aguia-pescadora-tsuru"]
apps:
size: 3
# docs.tsuru.io: "By default, core hosts are reused as apps hosts (this can be configured by the hosts:apps:dedicated config).""
dedicated: false
driver:
options:
generic-ip-address: ["167.86.127.220", "167.86.127.225"]
generic-ssh-key: ["/home/fititnt/.ssh/id_rsa-aguia-pescadora-tsuru"]
driver:
name: generic
options:
generic-ssh-port: 22
generic-ssh-user: root Logs# fititnt at bravo in /alligo/code/eticaai/aguia-pescadora/diario-de-bordo/tsuru-inicializacao on git:master x [1:32:51]
$ tsuru install-create -c config.yml
Running pre-install checks...
Creating CA: /home/fititnt/.tsuru/installs/aguia-pescadora/certs/ca.pem
Creating client certificate: /home/fititnt/.tsuru/installs/aguia-pescadora/certs/cert.pem
Running pre-create checks...
Creating machine...
(aguia-pescadora-1) Importing SSH key...
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with ubuntu(systemd)...
Installing Docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Checking connection to Docker...
Docker is up and running!
Waiting for SSH to be available...
Detecting the provisioner...
Installing Docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Creating registry certificate...
Uploading registry certificate...
Deploying tsuru config...
Deploying compose file in cluster manager....
Creating network tsuru_tsuru
Creating service tsuru_tsuru
Creating service tsuru_redis
Creating service tsuru_mongo
Creating service tsuru_planb
Creating service tsuru_registry
Restarting docker in aguia-pescadora-1
Waiting for SSH to be available...
Detecting the provisioner...
Waiting for Tsuru API to become responsive...
�+Opening config file: /etc/tsuru/tsuru.conf
��Done reading config file: /etc/tsuru/tsuru.conf
Warning: configuration didn't declare a database driver, using default driver.
Using "mongodb" database "tsuru" from the server "mongo:27017".
�
Password: �
Confirm:
� Root user successfully created.
Bootstrapping Tsuru API...Running pre-create checks...
Creating machine...
(aguia-pescadora-2) Importing SSH key...
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with ubuntu(systemd)...
Installing Docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Checking connection to Docker...
Docker is up and running!
Waiting for SSH to be available...
Detecting the provisioner...
Installing Docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Uploading registry certificate...
Running pre-create checks...
Creating machine...
(aguia-pescadora-3) Importing SSH key...
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with ubuntu(systemd)...
Installing Docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Checking connection to Docker...
Docker is up and running!
Waiting for SSH to be available...
Detecting the provisioner...
Installing Docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Uploading registry certificate...
adding target
New target aguia-pescadora -> http://173.249.10.99:8080 added to target list and defined as the current target
log in with default user: [email protected] Password:
Successfully logged in!
adding pool
Pool successfully registered.
adding node https://167.86.127.220:2376
Node successfully registered.
adding node https://167.86.127.225:2376
Node successfully registered.
adding node https://173.249.10.99:2376
Node successfully registered.
adding platform
Step 1/1 : FROM tsuru/python
latest: Pulling from tsuru/python
898c46f3b1a1: Pull complete
63366dfa0a50: Pull complete
041d4cd74a92: Pull complete
6e1bee0f8701: Pull complete
f1262cb8e4eb: Pull complete
3b42147f93c6: Pull complete
ce676a4695b2: Pull complete
3d2ec243107f: Pull complete
8dd3be1f9c8f: Pull complete
d8fdacb9c35e: Pull complete
208c5cbd4b1d: Pull complete
Digest: sha256:8fd5cc5b7e238e6e02b8661502b97fe262633d734f42b84219b56756a10dd0f2
Status: Downloaded newer image for tsuru/python:latest
---> 80e4f8c9f479
Successfully built 80e4f8c9f479
Successfully tagged 173.249.10.99:5000/tsuru/python:v1
Platform successfully added!
adding team
Team "admin" successfully created!
adding dashboard
App "tsuru-dashboard" has been created!
Use app-info to check the status of the app and its units.
deploying dashboard
Deploying image... ok
---- Getting process from image ----
latest: Pulling from tsuru/dashboard
898c46f3b1a1: Already exists
63366dfa0a50: Already exists
041d4cd74a92: Already exists
6e1bee0f8701: Already exists
f1262cb8e4eb: Already exists
3b42147f93c6: Already exists
ce676a4695b2: Already exists
8451f182be01: Pull complete
08228282e2e2: Pull complete
ece7284ab391: Pull complete
74846b861d93: Pull complete
58e30f14a771: Pull complete
77f713733a5c: Pull complete
4867c7fa9135: Pull complete
17e3ccb375ed: Pull complete
fc2fc7de3e1d: Pull complete
ad6fe7455e89: Pull complete
d962926909e2: Pull complete
Digest: sha256:e49a7379e01643ed851680d69d87272490274424628e006b4117db3e22eef8e7
Status: Downloaded newer image for tsuru/dashboard:latest
---- Inspecting image "tsuru/dashboard:latest" ----
---> Process "web" found with commands: ["gunicorn --access-logfile - -b 0.0.0.0:$PORT -w 2 abyss.wsgi -k gevent"]
---- Getting tsuru.yaml from image ----
latest: Pulling from tsuru/dashboard
Digest: sha256:e49a7379e01643ed851680d69d87272490274424628e006b4117db3e22eef8e7
Status: Image is up to date for tsuru/dashboard:latest
---- Running build hooks ----
---> Running "python manage.py migrate --noinput && python manage.py createcachetable && python manage.py collectstatic --noinput"
latest: Pulling from tsuru/dashboard
Digest: sha256:e49a7379e01643ed851680d69d87272490274424628e006b4117db3e22eef8e7
Status: Image is up to date for tsuru/dashboard:latest
Operations to perform:
Apply all migrations: contenttypes, sessions
Running migrations:
No migrations to apply.
Cache table 'tsuru_cache' already exists.
0 static files copied to '/home/application/current/abyss/static', 204 unmodified.
---- Pushing image "173.249.10.99:5000/tsuru/app-tsuru-dashboard:v1" to tsuru ----
The push refers to repository [173.249.10.99:5000/tsuru/app-tsuru-dashboard]
d6ceda4c4656: Pushed
691b5af91237: Pushed
9fcbcb0d2d9c: Pushed
8b7c9398215e: Pushed
6c8b164a219a: Pushed
4a7d5e6f8f02: Pushed
0f8a11f8ed4b: Pushed
a5e25c97cf5b: Pushed
296e644b7d2c: Pushed
f928ed1c7b60: Pushed
095c21c108c6: Pushed
c161a80a5f93: Mounted from tsuru/python
b46b7be76795: Mounted from tsuru/python
1e7aa790428a: Mounted from tsuru/python
b57c79f4a9f3: Mounted from tsuru/python
d60e01b37e74: Mounted from tsuru/python
e45cfbc98a50: Mounted from tsuru/python
762d8e1a6054: Mounted from tsuru/python
v1: digest: sha256:17704ac5916dbbe737784653e05e4a30b9b208ee3208018736e30ffc0f89a9fc size: 4091
---- Starting 1 new unit [web: 1] ----
---> Started unit 5f98fa9987 [web]
---- Binding and checking 1 new unit ----
---> healthcheck fail(5f98fa9987): Get http://167.86.127.220:32768/healthcheck/: dial tcp 167.86.127.220:32768: connect: connection refused. Trying again in 3s
---> healthcheck successful(5f98fa9987)
---> Bound and checked unit 5f98fa9987 [web]
---- Adding routes to new units ----
---> Added route to unit 5f98fa9987 [web]
---- Setting router healthcheck (Path: /) ----
OK
Applying iptables workaround for docker 1.12...
Failed to apply iptables rule: ssh command error:
command : PATH=$PATH:/usr/sbin/:/usr/local/sbin; sudo iptables -D DOCKER-ISOLATION -i docker_gwbridge -o docker0 -j DROP
err : exit status 1
output : iptables: Bad rule (does a matching rule exist in that chain?).
. Maybe it is not needed anymore?
Failed to apply iptables rule: ssh command error:
command : PATH=$PATH:/usr/sbin/:/usr/local/sbin; sudo iptables -D DOCKER-ISOLATION -i docker0 -o docker_gwbridge -j DROP
err : exit status 1
output : iptables: Bad rule (does a matching rule exist in that chain?).
. Maybe it is not needed anymore?
--- Installation Overview ---
Core Hosts:
+---------------+-------+---------+
| IP | State | Manager |
+---------------+-------+---------+
| 173.249.10.99 | ready | true |
+---------------+-------+---------+
Core Components:
+----------------+-------+----------+
| Component | Ports | Replicas |
+----------------+-------+----------+
| tsuru_registry | 5000 | 1 |
+----------------+-------+----------+
| tsuru_planb | 80 | 1 |
+----------------+-------+----------+
| tsuru_tsuru | 8080 | 1 |
+----------------+-------+----------+
| tsuru_redis | | 1 |
+----------------+-------+----------+
| tsuru_mongo | | 1 |
+----------------+-------+----------+
Configured default user:
Username: [email protected]
Password: admin123
Apps Hosts:
+-----------------------------+---------+---------+----------------------------------+
| Address | IaaS ID | Status | Metadata |
+-----------------------------+---------+---------+----------------------------------+
| https://167.86.127.220:2376 | | ready | LastSuccess=2019-06-21T04:54:05Z |
| | | | pool=theonepool |
+-----------------------------+---------+---------+----------------------------------+
| https://167.86.127.225:2376 | | waiting | pool=theonepool |
+-----------------------------+---------+---------+----------------------------------+
| https://173.249.10.99:2376 | | waiting | pool=theonepool |
+-----------------------------+---------+---------+----------------------------------+
Apps:
+-----------------+------------+--------------------------------------+
| Application | Units | Address |
+-----------------+------------+--------------------------------------+
| tsuru-dashboard | 1 starting | tsuru-dashboard.173.249.10.99.nip.io |
+-----------------+------------+--------------------------------------+
# fititnt at bravo in /alligo/code/eticaai/aguia-pescadora/diario-de-bordo/tsuru-inicializacao on git:master x [1:54:21]
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Este issue é sobre a busca por Arquivo config.yml para permtitir implementação da arquitetura inicial, conforme explicada melhor no #4, em especial em #4 (comment).
Não precisa ser perfeito e completo, porém uma base já é o suficiente por agora
The text was updated successfully, but these errors were encountered: