]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
ceph-facts: Fix osd_pool_default_crush_rule fact
authorBenoît Knecht <bknecht@protonmail.ch>
Wed, 7 Oct 2020 07:44:29 +0000 (09:44 +0200)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Fri, 13 Nov 2020 15:42:03 +0000 (10:42 -0500)
commitdeaf60316abeda196b8e5093bfdc9641bdfa38d6
tree0103f18ae790207d130e0b6e90f459966c670832
parentbb3cfd0481cfb593c3d029553d3e640772829d65
ceph-facts: Fix osd_pool_default_crush_rule fact

The `osd_pool_default_crush_rule` is set based on `crush_rule_variable`, which
is the output of a `grep` command.

However, two consecutive tasks can set that variable, and if the second task is
skipped, it still overwrites the `crush_rule_variable`, leading the
`osd_pool_default_crush_rule` to be set to `ceph_osd_pool_default_crush_rule`
instead of the output of the first task.

This commit ensures that the fact is set right after the `crush_rule_variable`
is assigned, before it can be overwritten.

Closes #5912

Signed-off-by: Benoît Knecht <bknecht@protonmail.ch>
(cherry picked from commit c5f7343a2f696ab3bfef77e735eafdeae4e4883b)
roles/ceph-facts/tasks/facts.yml