]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commit
ceph-{mon,osd}: move default crush variables v3.2.40
authorDimitri Savineau <dsavinea@redhat.com>
Mon, 10 Feb 2020 18:43:31 +0000 (13:43 -0500)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 17 Feb 2020 15:23:33 +0000 (16:23 +0100)
commitdb8902d444f098af1e2795fdb8d88ac2321759e7
tree3c3629f83d2b8b6b73f4d8400fd3844a6a526ed7
parent306ce823582b117ec24a47d4f06035ad497f51f4
ceph-{mon,osd}: move default crush variables

Since ed36a11 we move the crush rules creation code from the ceph-mon to
the ceph-osd role.
To keep the backward compatibility we kept the possibility to set the
crush variables on the mons side but we didn't move the default values.
As a result, when using crush_rule_config set to true and wanted to use
the default values for crush_rules then the crush rule ansible task
creation will fail.

"msg": "'ansible.vars.hostvars.HostVarsVars object' has no attribute
'crush_rules'"

This patch move the default crush variables from ceph-mon to ceph-osd
role but also use those default values when nothing is defined on the
mons side.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1798864
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 1fc6b337142efdc76c10340c076653d298e11c68)
group_vars/mons.yml.sample
group_vars/osds.yml.sample
infrastructure-playbooks/rolling_update.yml
roles/ceph-mon/defaults/main.yml
roles/ceph-osd/defaults/main.yml
roles/ceph-osd/tasks/crush_rules.yml
roles/ceph-osd/tasks/main.yml