]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
update: support --limit on monitor nodes
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 28 Oct 2021 14:17:24 +0000 (16:17 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 3 Nov 2021 07:48:38 +0000 (08:48 +0100)
commit8f648269ec50fd1f3fb11d86e0f6f812ac5f0499
treeca0b453ad76895717f17aade3f5a974a791217c5
parenta752edbd29bf9fa1915446cf4f668ab92711cca7
update: support --limit on monitor nodes

Change needed in order to support --limit on mon nodes.
Otherwise, a call to `hostvars[groups[mon_group_name][0]]['_current_monitor_address']`
throws an error:

```
"The error was: 'ansible.vars.hostvars.HostVarsVars object' has no attribute '_current_monitor_address'"
```

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2014304#c28
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 82eee4303bce3e41b5043bcb03fa3143dcdfd30d)
infrastructure-playbooks/rolling_update.yml
roles/ceph-facts/tasks/set_monitor_address.yml
tox-subset_update.ini