]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
rolling_update: get ceph version when mons exist
authorDimitri Savineau <dsavinea@redhat.com>
Thu, 29 Jul 2021 16:26:33 +0000 (12:26 -0400)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Tue, 3 Aug 2021 16:42:28 +0000 (12:42 -0400)
eec3878 introduced a regression for upgrade scenarios where there's no
monitor nodes at all (like ganesha standalone, external clients, etc..)

TASK [get the ceph release being deployed] ************************************
task path: infrastructure-playbooks/rolling_update.yml:121
Thursday 29 July 2021  15:55:29 +0000 (0:00:00.484)       0:00:15.802 *********
fatal: [client0]: FAILED! =>
  msg: '''dict object'' has no attribute ''mons'''

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit e87a47cf0cc0d01050d0cb94cabbb8bc42db0c57)

infrastructure-playbooks/rolling_update.yml

index c6724298f2e991a9eba51440a1f147643c9b168a..81d0f70ec64809adf8e96f55f9cd2d82dbe5c2e9 100644 (file)
         - ceph_docker_registry_auth | bool
 
     - name: check ceph release in container image
-      when: containerized_deployment | bool
+      when:
+        - groups.get(mon_group_name, []) | length > 0
+        - containerized_deployment | bool
       delegate_to: "{{ groups[mon_group_name][0] }}"
       run_once: true
       block: