From 7b995a3105065ac0aca563a851b2de3bc3eb1c19 Mon Sep 17 00:00:00 2001 From: Attila Fazekas Date: Wed, 4 Apr 2018 15:30:55 +0200 Subject: [PATCH] Deploying without managed monitors failed MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Tripleo deployment failed when the monitors not manged by tripleo itself with: FAILED! => {"msg": "list object has no element 0"} The failing play item was introduced by f46217b69ae18317cb0c1cc3e391a0bca5767eb6 . fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1552327 Signed-off-by: Attila Fazekas (cherry picked from commit ecd3563c2128553d4145a2f9c940ff31458c33b4) Signed-off-by: Sébastien Han --- roles/ceph-defaults/tasks/facts.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/ceph-defaults/tasks/facts.yml b/roles/ceph-defaults/tasks/facts.yml index 0b41a53f2..0eb8713b4 100644 --- a/roles/ceph-defaults/tasks/facts.yml +++ b/roles/ceph-defaults/tasks/facts.yml @@ -26,6 +26,7 @@ delegate_to: "{{ groups[mon_group_name][0] }}" when: - containerized_deployment + - groups.get(mon_group_name, []) | length > 0 # this task shouldn't run in a rolling_update situation # because it blindly picks a mon, which may be down because -- 2.47.3