Skip to content

Commit

Permalink
rolling_update: get ceph version when mons exist
Browse files Browse the repository at this point in the history
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 e87a47c)
  • Loading branch information
dsavineau committed Aug 3, 2021
1 parent 35ce2bb commit 380e0be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion infrastructure-playbooks/rolling_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@
- 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:
Expand Down

0 comments on commit 380e0be

Please sign in to comment.