openwhisk
openwhisk copied to clipboard
Registrator conflicts in consul, if we use persistent couchdb
With ansible deployment, it is OK to use either ephemeral couchdb. However, using persistent couchdb will lead to the following issues constantly:
TASK [consul : copy template from local to remote in consul config directory] **
Friday 10 June 2016 15:52:29 +0000 (0:00:00.181) 0:00:04.546 ***********
changed: [10.0.2.15]
changed: [172.17.0.1]
TASK [consul : (re)start consul server/agent] **********************************
Friday 10 June 2016 15:52:29 +0000 (0:00:00.202) 0:00:04.748 ***********
changed: [172.17.0.1]
ok: [10.0.2.15]
TASK [consul : wait until the Consul Server/Agent in this host is up and running] ***
Friday 10 June 2016 15:52:30 +0000 (0:00:01.254) 0:00:06.003 ***********
ok: [10.0.2.15]
ok: [172.17.0.1]
TASK [consul : notify handler to fill in Consul KV store with parameters in whisk.properties] ***
Friday 10 June 2016 15:52:35 +0000 (0:00:05.165) 0:00:11.169 ***********
changed: [172.17.0.1]
changed: [10.0.2.15]
TASK [consul : (re)start registrator] ******************************************
Friday 10 June 2016 15:52:35 +0000 (0:00:00.138) 0:00:11.307 ***********
changed: [172.17.0.1]
fatal: [10.0.2.15]: FAILED! => {"changed": false, "failed": true, "msg": "Docker API Error: Conflict. The name \"registrator\" is already in use by container 2ac4a8e8d596. You have to remove (or rename) that container to be able to reuse that name."}
TASK [consul : include] ********************************************************
Friday 10 June 2016 15:52:38 +0000 (0:00:02.504) 0:00:13.812 ***********
skipping: [172.17.0.1]
RUNNING HANDLER [consul : fill consul kv] **************************************
Friday 10 June 2016 15:52:38 +0000 (0:00:00.019) 0:00:13.831 ***********
changed: [172.17.0.1 -> localhost]
PLAY [kafka] *******************************************************************
ERROR! invalid host (10.0.2.15) specified for playbook iteration
it said 10.0.2.15 invalid host. which env did you use? can you paste it here?
@houshengbo is this issue still valid?
@lehoanganh let me verify it.