]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Deploying without managed monitors failed
authorAttila Fazekas <afazekas@redhat.com>
Wed, 4 Apr 2018 13:30:55 +0000 (15:30 +0200)
committerSébastien Han <seb@redhat.com>
Wed, 4 Apr 2018 16:16:46 +0000 (18:16 +0200)
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 <afazekas@redhat.com>
roles/ceph-defaults/tasks/facts.yml

index 248493029eee6ea13ab0899b5e1d57e28196688a..936e4a7caa02309195afa169acacb182e65a18ef 100644 (file)
@@ -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