From 7842821b5494f3278afca781993357285b59fbea Mon Sep 17 00:00:00 2001 From: Emerson Rocha Luiz Date: Sat, 22 Jun 2019 03:19:44 -0300 Subject: [PATCH] cluster-aguia-pescadora(#4): reinstalado do zero tudo para Tsuru 1.7.x RC, desfeito #7 --- .../tsuru-inicializacao/seu-computador.sh | 38 +++++++++++++++---- .../tsuru-inicializacao.log | 33 ++++++++-------- 2 files changed, 47 insertions(+), 24 deletions(-) diff --git a/diario-de-bordo/tsuru-inicializacao/seu-computador.sh b/diario-de-bordo/tsuru-inicializacao/seu-computador.sh index 4ff7ef9..3b727f5 100644 --- a/diario-de-bordo/tsuru-inicializacao/seu-computador.sh +++ b/diario-de-bordo/tsuru-inicializacao/seu-computador.sh @@ -263,10 +263,12 @@ cd ~/tmp # Comentarios feitos, neste momento exato, 2019-06-19 01:00 BRT, em # https://github.com/tsuru/tsuru-client/releases é escolhido o seguinte -wget https://github.com/tsuru/tsuru-client/releases/download/1.6.0/tsuru_1.6.0_linux_amd64.tar.gz +## wget https://github.com/tsuru/tsuru-client/releases/download/1.6.0/tsuru_1.6.0_linux_amd64.tar.gz +wget https://github.com/tsuru/tsuru-client/releases/download/1.7.0-rc1/tsuru_1.7.0-rc1_linux_amd64.tar.gz # O comando a seguir descompacta o arquivo baixado -tar -vzxf tsuru_1.6.0_linux_amd64.tar.gz +# tar -vzxf tsuru_1.6.0_linux_amd64.tar.gz +tar -vzxf tsuru_1.7.0-rc1_linux_amd64.tar.gz ## fititnt at bravo in ~/tmp [1:04:49] # $ tree @@ -283,9 +285,7 @@ sudo mv tsuru /usr/local/bin # Feito isso, teste com o seguinte comando qual versão do seu tsuru client tsuru --version -# No seu caso já pode ser uma versão diferente. -# tsuru version 1.6.0. -# No seu pode ser diferente +# tsuru version 1.7.0-rc1. # Opcional: se quiser pode adicionar misc/bash-completion para autocompletar # alguns comandos caso seu terminal seja bash e misc/zsh-completion @@ -364,14 +364,36 @@ tsuru install-create -c config.yml # # (uma lista grande de comandos. Aqui apenas o que aparece no final.) # +# --- Installation Overview --- +# Core Hosts: +# +---------------+-------+---------+ +# | IP | State | Manager | +# +---------------+-------+---------+ +# | 173.249.10.99 | ready | true | +# +---------------+-------+---------+ +# +# Core Components: +# +----------------+-------+----------+ +# | Component | Ports | Replicas | +# +----------------+-------+----------+ +# | tsuru_mongo | | 1 | +# +----------------+-------+----------+ +# | tsuru_tsuru | 8080 | 1 | +# +----------------+-------+----------+ +# | tsuru_planb | 80 | 1 | +# +----------------+-------+----------+ +# | tsuru_redis | | 1 | +# +----------------+-------+----------+ +# | tsuru_registry | 5000 | 1 | +# +----------------+-------+----------+ # Configured default user: # Username: admin@example.com -# Password: admin123 +# Password: %I6edx(senhade50caracterescomplexaaqui)oau8XC"t9#r # Apps Hosts: # +-----------------------------+---------+---------+----------------------------------+ # | Address | IaaS ID | Status | Metadata | # +-----------------------------+---------+---------+----------------------------------+ -# | https://167.86.127.220:2376 | | ready | LastSuccess=2019-06-21T04:54:05Z | +# | https://167.86.127.220:2376 | | ready | LastSuccess=2019-06-22T06:07:37Z | # | | | | pool=theonepool | # +-----------------------------+---------+---------+----------------------------------+ # | https://167.86.127.225:2376 | | waiting | pool=theonepool | @@ -406,7 +428,7 @@ tsuru install-create -c config.yml # Na porta 8080 do seu IP (no meu caso http://173.249.10.99:8080/) é possível # ver um guia rápido de como usar o Tsuru (ele está em inglês). Uma versão -# arquivada do que eu pude ver está em http://archive.is/DPMa0. +# arquivada do que eu pude ver está em http://archive.is/UhpSl. # Como você acabou de criar um cluster de Tsuru por padrão estará autenticado # com o usuário admin@example.com. Use o comando a seguir para ter certeza diff --git a/diario-de-bordo/tsuru-inicializacao/tsuru-inicializacao.log b/diario-de-bordo/tsuru-inicializacao/tsuru-inicializacao.log index 77b8211..f0c6a5b 100644 --- a/diario-de-bordo/tsuru-inicializacao/tsuru-inicializacao.log +++ b/diario-de-bordo/tsuru-inicializacao/tsuru-inicializacao.log @@ -1,4 +1,4 @@ -# fititnt at bravo in /alligo/code/eticaai/aguia-pescadora/diario-de-bordo/tsuru-inicializacao on git:master x [1:32:51] +# fititnt at bravo in /alligo/code/eticaai/aguia-pescadora/diario-de-bordo/tsuru-inicializacao on git:master x [2:45:36] $ tsuru install-create -c config.yml Running pre-install checks... Creating CA: /home/fititnt/.tsuru/installs/aguia-pescadora/certs/ca.pem @@ -28,11 +28,11 @@ 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 +Creating service tsuru_tsuru Restarting docker in aguia-pescadora-1 Waiting for SSH to be available... Detecting the provisioner... @@ -44,7 +44,7 @@ Using "mongodb" database "tsuru" from the server "mongo:27017".  Password:  -Confirm: +Confirm:   Root user successfully created. Bootstrapping Tsuru API...Running pre-create checks... Creating machine... @@ -169,6 +169,7 @@ 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] +3fd10817d523: Pushed d6ceda4c4656: Pushed 691b5af91237: Pushed 9fcbcb0d2d9c: Pushed @@ -187,18 +188,18 @@ 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 +v1: digest: sha256:936e70488196b00572dd5648f24429d6c8cddd9ee530aede8f49e6e93fa80791 size: 4299 ---- Starting 1 new unit [web: 1] ---- - ---> Started unit 5f98fa9987 [web] + ---> Started unit fd96c778c8 [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] + ---> healthcheck fail(fd96c778c8): Get http://167.86.127.220:32768/healthcheck/: dial tcp 167.86.127.220:32768: connect: connection refused. Trying again in 3s + ---> healthcheck successful(fd96c778c8) + ---> Bound and checked unit fd96c778c8 [web] ---- Adding routes to new units ---- - ---> Added route to unit 5f98fa9987 [web] + ---> Added route to unit fd96c778c8 [web] ---- Setting router healthcheck (Path: /) ---- @@ -226,24 +227,24 @@ Core Components: +----------------+-------+----------+ | Component | Ports | Replicas | +----------------+-------+----------+ -| tsuru_registry | 5000 | 1 | -+----------------+-------+----------+ -| tsuru_planb | 80 | 1 | +| tsuru_mongo | | 1 | +----------------+-------+----------+ | tsuru_tsuru | 8080 | 1 | +----------------+-------+----------+ +| tsuru_planb | 80 | 1 | ++----------------+-------+----------+ | tsuru_redis | | 1 | +----------------+-------+----------+ -| tsuru_mongo | | 1 | +| tsuru_registry | 5000 | 1 | +----------------+-------+----------+ Configured default user: Username: admin@example.com -Password: admin123 +Password: (senha-complexa-aleatoria-aqui) Apps Hosts: +-----------------------------+---------+---------+----------------------------------+ | Address | IaaS ID | Status | Metadata | +-----------------------------+---------+---------+----------------------------------+ -| https://167.86.127.220:2376 | | ready | LastSuccess=2019-06-21T04:54:05Z | +| https://167.86.127.220:2376 | | ready | LastSuccess=2019-06-22T06:07:37Z | | | | | pool=theonepool | +-----------------------------+---------+---------+----------------------------------+ | https://167.86.127.225:2376 | | waiting | pool=theonepool | @@ -257,4 +258,4 @@ Apps: | 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] +# fititnt at bravo in /alligo/code/eticaai/aguia-pescadora/diario-de-bordo/tsuru-inicializacao on git:master x [3:07:55]