You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by gi...@git.apache.org on 2017/06/15 13:32:33 UTC
[GitHub] fernandodelaiglesia commented on issue #2220: Ansible error while deploying to distributed environment
fernandodelaiglesia commented on issue #2220: Ansible error while deploying to distributed environment
URL: https://github.com/apache/incubator-openwhisk/issues/2220#issuecomment-308730155
Precisely I failed in getting consul running.
On executing ansible-playbook -i environments/distributed openwhisk.yml
in task
TASK [consul : wait until the Consul Server/Agent in this host is up and running] ***
I get
FAILED - RETRYING: TASK: consul : wait until the Consul Server/Agent in this host is up and running (11 retries left).
The container stays in Restaring state for ever
root@consul-servers-1:~# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
f8ced4b98ec3 consul:0.7.0 "docker-entrypoint.sh" 39 seconds ago Restarting (2) 11 seconds ago 0.0.0.0:8300-8302->8300-8302/tcp, 0.0.0.0:8400->8400/tcp, 0.0.0.0:8301-8302->8301-8302/udp, 0.0.0.0:8500->8500/tcp, 0.0.0.0:8600->8600/udp, 8600/tcp consul
root@consul-servers-1:~# docker logs consul
/usr/local/bin/docker-entrypoint.sh: exec: line 97: consul agent -config-dir /consul/config: not found
/usr/local/bin/docker-entrypoint.sh: exec: line 97: consul agent -config-dir /consul/config: not found
/usr/local/bin/docker-entrypoint.sh: exec: line 97: consul agent -config-dir /consul/config: not found
/usr/local/bin/docker-entrypoint.sh: exec: line 97: consul agent -config-dir /consul/config: not found
(12 times)
In addition to this the registrators in the rest of nodes stay in Restaring as well, for example
ubuntu@edge-1:~$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
26f80577e22e gliderlabs/registrator "/bin/registrator -ip" 6 minutes ago Restarting (1) 2 minutes ago registrator
Previously I corrected the question with the "hosts" and the apigateway and edge names
cat hosts
; the first parameter in a host is the inventory_hostname which has to be
; either an ip
; or a resolvable hostname
; used for local actions only
ansible ansible_connection=local
[registry]
172.16.3.50
[edge]
172.16.3.51
[apigateway:children]
edge
[controllers]
172.16.3.52
[kafka]
172.16.3.53
[consul_servers]
172.16.3.54
[invokers]
172.16.3.55
172.16.3.56
[db]
172.16.3.57
(consul_servers as an IP)
I tryed a lot of things but without success.
Teh problem looks like the one in the last paragraph by @digmore , which config file do you refer to? /consul/config/config.json --> /tmp/consul/config.json?. If so, I have
root@consul-servers-1:~# cat /tmp/consul/config.json
{
"server": true,
"data_dir": "/consul/data",
"ui": true,
"log_level": "WARN",
"node_name": "172.16.3.54",
"client_addr": "0.0.0.0",
"advertise_addr": "172.16.3.54",
"ports": {
"dns": 8600
},
"bootstrap": true,
"disable_update_check": true
Any ideas?
Thanks a lot
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services