From 2691e385fbe6b6ee7a7262de9812756c5b38f10e Mon Sep 17 00:00:00 2001 From: Francesco Pantano Date: Tue, 8 Sep 2020 13:16:33 +0200 Subject: [PATCH] Fix hosts field in rolling_update playbook when mds are processed 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 (cherry picked from commit e65f9a5c720eeeef72b6eef59bb239e6ed04cdbe) --- infrastructure-playbooks/rolling_update.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infrastructure-playbooks/rolling_update.yml b/infrastructure-playbooks/rolling_update.yml index 4fd314f13..2f2e45b8b 100644 --- a/infrastructure-playbooks/rolling_update.yml +++ b/infrastructure-playbooks/rolling_update.yml @@ -478,7 +478,7 @@ - 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