Ceph: update crush map when storage tier is renamed
Renaming storage tiers is supported as long as they are not
in use (no OSDs attached). Tier name is updated correctly
in the inventory database but the crush map is still using
the old name. This causes issues when trying to use the renamed
storage tier.
Add function to rename crush map buckets referenced by the storage
tier being renamed. Note that changes to the crush map are
incremental. Any exception raised while renaming buckets is
in progress causes the crush map to be rolled back.
Change-Id: Ie8f5162e61d291eed29f2f663ec596cd4402e5d9
Closes-Bug: 1836239
Signed-off-by: Daniel Badea <email address hidden>
Reviewed: https:/ /review. opendev. org/672489 /git.openstack. org/cgit/ starlingx/ config/ commit/ ?id=7588f6d950b bd16d5bb2593dce 07841589fb8ba5
Committed: https:/
Submitter: Zuul
Branch: master
commit 7588f6d950bbd16 d5bb2593dce0784 1589fb8ba5
Author: Daniel Badea <email address hidden>
Date: Wed Jul 24 09:33:42 2019 +0000
Ceph: update crush map when storage tier is renamed
Renaming storage tiers is supported as long as they are not
in use (no OSDs attached). Tier name is updated correctly
in the inventory database but the crush map is still using
the old name. This causes issues when trying to use the renamed
storage tier.
Add function to rename crush map buckets referenced by the storage
tier being renamed. Note that changes to the crush map are
incremental. Any exception raised while renaming buckets is
in progress causes the crush map to be rolled back.
Change-Id: Ie8f5162e61d291 eed29f2f663ec59 6cd4402e5d9
Closes-Bug: 1836239
Signed-off-by: Daniel Badea <email address hidden>