]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Deploying without managed monitors failed v3.0.29
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 17:55:38 +0000 (19:55 +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>
(cherry picked from commit ecd3563c2128553d4145a2f9c940ff31458c33b4)
Signed-off-by: Sébastien Han <seb@redhat.com>
roles/ceph-defaults/tasks/facts.yml

index 0b41a53f207523cab501778f7cd1e8337932078f..0eb8713b48bb81764476d933030ea2d7192a04c9 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