Closed jeff1evesque closed 6 years ago
2fdf7e1: we were able to run our install_rancher
on trusty64 without error:
root@ip-xxx-xx-xx-xx:~/machine-learning# ./install_rancher
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 623 0 623 0 0 5625 0 --:--:-- --:--:-- --:--:-- 5663
100 3563k 100 3563k 0 0 12.4M 0 --:--:-- --:--:-- --:--:-- 12.4M
a1577a5487b3 rancher/server:stable "/usr/bin/entry /usr…" 9 minutes ago Up 9 minutes 3306/tcp, 0.0.0.0:8080->8080/tcp rancher
rancher
rancher
a87df7a67f8d6af876adf876adf
* Hostname was NOT found in DNS cache
* Trying xxx.xx.xx.aa...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* connect to xxx.xx.xx.aa port 8080 failed: Connection refused
* Failed to connect to xxx.xx.xx.aa port 8080: Connection refused
* Closing connection 0
curl: (7) Failed to connect to xxx.xx.xx.aa port 8080: Connection refused
Rancher server has not started. Attempting to obtain
access + secret key, from rancher in 30s.
* Hostname was NOT found in DNS cache
* Trying xxx.xx.xx.aa...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* connect to xxx.xx.xx.aa port 8080 failed: Connection refused
* Failed to connect to xxx.xx.xx.aa port 8080: Connection refused
* Closing connection 0
curl: (7) Failed to connect to xxx.xx.xx.aa port 8080: Connection refused
Rancher server has not started. Attempting to obtain
access + secret key, from rancher in 30s.
* Hostname was NOT found in DNS cache
* Trying xxx.xx.xx.aa...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connected to xxx.xx.xx.aa (xxx.xx.xx.aa) port 8080 (#0)
> POST /v2-beta/apikeys HTTP/1.1
> User-Agent: curl/7.35.0
> Host: xxx.xx.xx.aa:8080
> Accept: application/json
> Content-Type: application/json
> Content-Length: 272
>
} [data not shown]
* upload completely sent off: 272 out of 272 bytes
< HTTP/1.1 201 Created
< Content-Type: application/json; charset=utf-8
< Date: Thu, 14 Jun 2018 13:30:30 GMT
< Expires: Thu, 01 Jan 1970 00:00:00 GMT
* Server Jetty(9.2.11.v20150529) is not blacklisted
< Server: Jetty(9.2.11.v20150529)
< Set-Cookie: PL=rancher;Path=/
< X-Api-Account-Id: 1a1
< X-Api-Client-Ip: 172.17.0.1
< X-Api-Schemas: http://xxx.xx.xx.aa:8080/v2-beta/schemas
< X-Api-User-Id: 1a1
< X-Rancher-Version: v1.6.17
< Content-Length: 1074
<
{ [data not shown]
100 1346 100 1074 100 272 18895 4785 --:--:-- --:--:-- --:--:-- 19527
* Connection #0 to host xxx.xx.xx.aa left intact
* Hostname was NOT found in DNS cache
* Trying xxx.xx.xx.aa...
* Connected to xxx.xx.xx.aa (xxx.xx.xx.aa) port 8080 (#0)
> POST /v2-beta/projects/1a5/registrationTokens HTTP/1.1
> User-Agent: curl/7.35.0
> Host: xxx.xx.xx.aa:8080
> Accept: application/json
> Content-Type: application/json
>
< HTTP/1.1 201 Created
< Content-Type: application/json; charset=utf-8
< Date: Thu, 14 Jun 2018 13:30:30 GMT
< Expires: Thu, 01 Jan 1970 00:00:00 GMT
* Server Jetty(9.2.11.v20150529) is not blacklisted
< Server: Jetty(9.2.11.v20150529)
< Set-Cookie: PL=rancher;Path=/
< X-Api-Account-Id: 1a5
< X-Api-Client-Ip: 172.17.0.1
< X-Api-Schemas: http://xxx.xx.xx.aa:8080/v2-beta/projects/1a5/schemas
< X-Api-User-Id: 1a1
< X-Rancher-Version: v1.6.17
< Content-Length: 1140
<
{"id":"1c3","type":"registrationToken","links":{"self":"http:\/\/xxx.xx.xx.aa:8080\/v2-beta\/projects\/1a5\/registrationtokens\/1c3","account":"http:\/\/xxx.xx.xx.aa:8080\/v2-beta\/projects\/1a5\/registrationtokens\/1c3\/account","images":"http:\/\/xxx.xx.xx.aa:8080\/v2-beta\/projects\/1a5\/registrationtokens\/1c3\/images","instances":"http:\/\/xxx.xx.xx.aa:8080\/v2-beta\/projects\/1a5\/registrationtokens\/1c3\/instances"},"actions":{"activate":"http:\/\/xxx.xx.xx.aa:8080\/v2-beta\/projects\/1a5\/registrationtokens\/1c3\/?action=activate","remove":"http:\/\/xxx.xx.xx.aa:8080\/v2-beta\/projects\/1a5\/registrationtokens\/1c3\/?action=remove","deactivate":"http:\/\/xxx.xx.xx.aa:8080\/v2-beta\/projects\/1a5\/registrationtokens\/1c3\/?action=deactivate"},"baseType":"credential","name":null,"state":"registering","accountId":"1a5","command":null,"created":"2018-06-14T13:30:30Z","createdTS":1528983030000,"description":null,"image":null,"kind":"registrationToken","registrationUrl":null,"removed":null,"token":null,"transitioning":"y* Connection #0 to host xxx.xx.xx.aa left intact
es","transitioningMessage":"In Progress","transitioningProgress":null,"uuid":"3432423523-342jk4h32-234kj-234j"}* Hostname was NOT found in DNS cache
* Trying xxx.xx.xx.aa...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connected to xxx.xx.xx.aa (xxx.xx.xx.aa) port 8080 (#0)
> GET /v2-beta/projects/1a5/registrationTokens HTTP/1.1
> User-Agent: curl/7.35.0
> Host: xxx.xx.xx.aa:8080
> Accept: application/json
> Content-Type: application/json
>
< HTTP/1.1 200 OK
< Content-Type: application/json; charset=utf-8
< Date: Thu, 14 Jun 2018 13:30:30 GMT
< Expires: Thu, 01 Jan 1970 00:00:00 GMT
* Server Jetty(9.2.11.v20150529) is not blacklisted
< Server: Jetty(9.2.11.v20150529)
< Set-Cookie: PL=rancher;Path=/
< Vary: Accept-Encoding, User-Agent
< X-Api-Account-Id: 1a5
< X-Api-Client-Ip: 172.17.0.1
< X-Api-Schemas: http://xxx.xx.xx.aa:8080/v2-beta/projects/1a5/schemas
< X-Api-User-Id: 1a1
< X-Rancher-Version: v1.6.17
< Transfer-Encoding: chunked
<
{ [data not shown]
100 2908 0 2908 0 0 172k 0 --:--:-- --:--:-- --:--:-- 218k
* Connection #0 to host xxx.xx.xx.aa left intact
* Hostname was NOT found in DNS cache
* Trying xxx.xx.xx.aa...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connected to xxx.xx.xx.aa (xxx.xx.xx.aa) port 8080 (#0)
> GET /v2-beta/projects/1a5/registrationTokens HTTP/1.1
> User-Agent: curl/7.35.0
> Host: xxx.xx.xx.aa:8080
> Accept: application/json
> Content-Type: application/json
>
< HTTP/1.1 200 OK
< Content-Type: application/json; charset=utf-8
< Date: Thu, 14 Jun 2018 13:30:33 GMT
< Expires: Thu, 01 Jan 1970 00:00:00 GMT
* Server Jetty(9.2.11.v20150529) is not blacklisted
< Server: Jetty(9.2.11.v20150529)
< Set-Cookie: PL=rancher;Path=/
< Vary: Accept-Encoding, User-Agent
< X-Api-Account-Id: 1a5
< X-Api-Client-Ip: 172.17.0.1
< X-Api-Schemas: http://xxx.xx.xx.aa:8080/v2-beta/projects/1a5/schemas
< X-Api-User-Id: 1a1
< X-Rancher-Version: v1.6.17
< Transfer-Encoding: chunked
<
{ [data not shown]
100 3521 0 3521 0 0 105k 0 --:--:-- --:--:-- --:--:-- 110k
* Connection #0 to host xxx.xx.xx.aa left intact
Unable to find image 'rancher/agent:stable' locally
stable: Pulling from rancher/agent
b3e1c725a85f: Pull complete
6a710864a9fc: Pull complete
d0ac3b234321: Pull complete
87f567b5cf58: Pull complete
063e24b217c4: Pull complete
d0a3f58caef0: Pull complete
16914729cfd3: Pull complete
fb770dddb34d: Pull complete
0d8557fbdb4c: Pull complete
Digest: sha256:fcd7075d1aee2b532319846f70dc7ed0acfb0d12045cfc82ff995f282ef14631
Status: Downloaded newer image for rancher/agent:stable
INFO: Running Agent Registration Process, CATTLE_URL=http://xxx.xx.xx.aa:8080/v1
INFO: Attempting to connect to: http://xxx.xx.xx.aa:8080/v1
INFO: http://xxx.xx.xx.aa:8080/v1 is accessible
INFO: Inspecting host capabilities
INFO: Boot2Docker: false
INFO: Host writable: true
INFO: Token: xxxxxxxx
INFO: Running registration
INFO: Printing Environment
INFO: ENV: CATTLE_ACCESS_KEY=FDS3876DFG767
INFO: ENV: CATTLE_HOME=/var/lib/cattle
INFO: ENV: CATTLE_REGISTRATION_ACCESS_KEY=registrationToken
INFO: ENV: CATTLE_REGISTRATION_SECRET_KEY=xxxxxxx
INFO: ENV: CATTLE_SECRET_KEY=xxxxxxx
INFO: ENV: CATTLE_URL=http://xxx.xx.xx.aa:8080/v1
INFO: ENV: DETECTED_CATTLE_AGENT_IP=xxx.xx.xx.bb
INFO: ENV: RANCHER_AGENT_IMAGE=rancher/agent:stable
INFO: Launched Rancher Agent: daf7ad8s6fajk35hakdfa9sfd76adjk3h42hkhadfac76dsf
1st5
We will ensure that our
install_rancher
script works for trusty64.