Closed fititnt closed 5 years ago
# fititnt at bravo in /alligo/code/eticaai/aguia-pescadora/diario-de-bordo/tsuru-inicializacao on git:master o [2:14:29]
$ 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...
Error running SSH command: ssh command error:
command : netstat -tln
err : exit status 127
output : bash: netstat: command not found
Error running SSH command: ssh command error:
command : netstat -tln
err : exit status 127
output : bash: netstat: command not found
Error running SSH command: ssh command error:
command : netstat -tln
err : exit status 127
output : bash: netstat: command not found
Error running SSH command: ssh command error:
command : netstat -tln
err : exit status 127
output : bash: netstat: command not found
Error running SSH command: ssh command error:
command : netstat -tln
err : exit status 127
output : bash: netstat: command not found
Error running SSH command: ssh command error:
command : netstat -tln
err : exit status 127
output : bash: netstat: command not found
Error running SSH command: ssh command error:
command : netstat -tln
err : exit status 127
output : bash: netstat: command not found
^C
Problema do netstat foi resolvido.
O 1.6 também dá um erro parecido com o 1.7. E a foxtrot parece ser ignorada completamente e em vez dela, a Delta é acrescentada novamente (e isso parece gerar o erro).
Arquivo config.yml
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
dedicated: false
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"]
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 [2:35:38]
$ 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....
Creating network tsuru_tsuru
Creating service tsuru_mongo
Creating service tsuru_planb
Creating service tsuru_registry
Creating service tsuru_tsuru
Creating service tsuru_redis
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: admin@example.com Password:
Successfully logged in!
adding pool
Pool successfully registered.
adding node https://173.249.10.99:2376
Node successfully registered.
adding node https://167.86.127.220:2376
Node successfully registered.
adding node https://173.249.10.99:2376
Error: Error bootstrapping tsuru: failed to register node: Node address shouldn't repeat
Opa. A versão mais nova do Tsuru parece gerar uma senha padrão do admin de exemplo bem mais complexa (e não padrão).
O uso do Tsuru 1.7.x-RC mais atual está menos suave do que foi os testes com a Charlie (https://github.com/fititnt/cplp-aiops/issues/58, https://github.com/fititnt/cplp-aiops/issues/59).
Como todas as versões da 1.7 em "RC" e (até onde percebi) não há funcionalidades nela que realmente tragam alguma vantagem para gente de imediato, (exemplo: em especial não estamos usando Kubernetes) a 1.6 pode ser aceitável nesse momento.
Se eu estivesse com um pouco mais de tempo livre (e não tivesse que dar saída em alguns componentes que estariam dentro do PaaS) eu procuraria parar e resolver os issues na 1.7 com mais calma.