mirror of https://github.com/ceph/ceph-ansible.git
ceph-facts: fix read osd pool default crush fact
We don't need to use run_once on that task when having running monitors
otherwise the read task could be skip and the set task will fail.
The conditional check 'crush_rule_variable.rc == 0' failed. The error
was: error while evaluating conditional (crush_rule_variable.rc == 0):
'dict object' has no attribute 'rc'
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1898856
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit e150df789e
)
pull/6056/head
v4.0.40
parent
fcf260b65b
commit
76a77f1c92
|
@ -312,7 +312,6 @@
|
||||||
- name: get default crush rule value from running monitor ceph configuration
|
- name: get default crush rule value from running monitor ceph configuration
|
||||||
block:
|
block:
|
||||||
- <<: *read-osd-pool-default-crush-rule
|
- <<: *read-osd-pool-default-crush-rule
|
||||||
run_once: true
|
|
||||||
delegate_to: "{{ running_mon }}"
|
delegate_to: "{{ running_mon }}"
|
||||||
- *set-osd-pool-default-crush-rule-fact
|
- *set-osd-pool-default-crush-rule-fact
|
||||||
when:
|
when:
|
||||||
|
|
Loading…
Reference in New Issue