openwhisk icon indicating copy to clipboard operation
openwhisk copied to clipboard

Registrator conflicts in consul, if we use persistent couchdb

Open houshengbo opened this issue 10 years ago • 3 comments

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

houshengbo avatar Jun 10 '16 15:06 houshengbo

it said 10.0.2.15 invalid host. which env did you use? can you paste it here?

lehoanganh avatar Jun 13 '16 10:06 lehoanganh

@houshengbo is this issue still valid?

lehoanganh avatar Jun 23 '16 11:06 lehoanganh

@lehoanganh let me verify it.

houshengbo avatar Jul 01 '16 01:07 houshengbo