Skip to content

Commit

Permalink
Fix hosts field in rolling_update playbook when mds are processed
Browse files Browse the repository at this point in the history
In the OSP context, during the rolling update the playbook fails
with the following error:

'''
ERROR! The field 'hosts' has an invalid value, which includes an
undefined variable. The error was: list object has no element 0
'''

This PR just change the hosts field providing a valid mons group
value.

Closes: https://bugzilla.redhat.com/1876803
Signed-off-by: Francesco Pantano <fpantano@redhat.com>
(cherry picked from commit e65f9a5)
  • Loading branch information
fmount authored and guits committed Sep 9, 2020
1 parent a41c572 commit 8dd8675
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion infrastructure-playbooks/rolling_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@
- nodeep-scrub

- name: upgrade ceph mdss cluster, deactivate all rank > 0
hosts: "{{ groups[mon_group_name|default('mons')][0] }}"
hosts: "{{ mon_group_name | default('mons') }}[0]"
become: true
tasks:
- name: deactivate all mds rank > 0
Expand Down

0 comments on commit 8dd8675

Please sign in to comment.