]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commit
rolling_update: refact set_fact `mon_host`
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 22 Nov 2018 16:52:58 +0000 (17:52 +0100)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Thu, 29 Nov 2018 01:49:05 +0000 (01:49 +0000)
commit1f4cf610583bec29fb3cd20c72ec94bc517ba1f7
tree7ef1a7c9bb6006074725755760494d7185fb4b94
parentd4f1f12bd0cd67dc0dd8786b2c861c4acb614d17
rolling_update: refact set_fact `mon_host`

each monitor node should select another monitor which isn't itself.
Otherwise, one node in the monitor group won't set this fact and causes
failure.

Typical error:
```
TASK [create potentially missing keys (rbd and rbd-mirror) when mon is containerized] ***
task path: /home/jenkins-build/build/workspace/ceph-ansible-prs-dev-update_docker_cluster/rolling_update.yml:200
Thursday 22 November 2018  14:02:30 +0000 (0:00:07.493)       0:02:50.005 *****
fatal: [mon1]: FAILED! => {}

MSG:

The task includes an option with an undefined variable. The error was: 'dict object' has no attribute u'mon2'
```

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit af78173584f1b3a99515e9b94f450be22420c545)
infrastructure-playbooks/rolling_update.yml