Skip to content
  • Dimitri Savineau's avatar
    ceph-{mon,osd}: move default crush variables · db8902d4
    Dimitri Savineau authored
    Since ed36a11e 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: default avatarDimitri Savineau <dsavinea@redhat.com>
    (cherry picked from commit 1fc6b337)
    db8902d4