]> 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:51 +0000 (08:48 +0100)
commite63df909af00d63406645326fb60c2f6ee4ebf7d
tree3bbbaa47dba71dbc85e1b1895b5e488d5160b3ab
parent9526425111b6df6e06638b684f28016bb17e8072
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