Skip to content

CRUSH rule changes not applied once pools exist #106

@oneswig

Description

@oneswig

CRUSH rule assignments are not being applied after a pool has been created.

The bug is that updating Ceph pools doesn't evaluate changes in CRUSH rule here: https://github.com/stackhpc/ansible-collection-cephadm/blob/master/plugins/modules/cephadm_pool.py#L304-L305

Adding crush_rule to that list doesn't solve things because it compares pool ID with name, eg 1 with replicated_hdd, so now it always applies the change.

One way to add support for CRUSH rule configuration would be to replace pool IDs with pool names before the comparison is made.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions