]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commit
client: try to kill dummy container only on first client node v3.1.0rc9
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 13 Jun 2018 11:54:59 +0000 (13:54 +0200)
committerSébastien Han <seb@redhat.com>
Wed, 13 Jun 2018 15:42:28 +0000 (17:42 +0200)
commit35af792fa176a05c2e421b0cf0c4354067e13d83
treeb9d35bc19ec8c09b39ef2a104e1e8990bcc25a0e
parent5137bc263a2166f2e8966480e6459e79ade12dd0
client: try to kill dummy container only on first client node

The 'dummy' container is created only on first client node, it means we
must seek to destroy this container only on this node, otherwise this
can cause failure like following :
```
fatal: [192.168.24.8]: FAILED! => {"changed": false, "cmd": ["docker", "rm",
"-f", "ceph-create-keys"], "delta": "0:00:00.023692", "end": "2018-06-12
20:56:07.261278", "msg": "non-zero return code", "rc": 1, "start":
"2018-06-12 20:56:07.237586", "stderr": "Error response from daemon: No such
container: ceph-create-keys", "stderr_lines": ["Error response from daemon: No
such container: ceph-create-keys"], "stdout": "", "stdout_lines": []}

```

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1590746
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 51cf3b7fa0211fbbfcbd8c4228dcd39d20f02e54)
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
roles/ceph-client/tasks/create_users_keys.yml