Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crush/CrushWrapper: update shadow trees on update_item() #39629

Merged
merged 2 commits into from
Feb 27, 2021

Conversation

liewegas
Copy link
Member

insert_item() already does this, but update_item did not.

Fixes: https://tracker.ceph.com/issues/48065
Signed-off-by: Sage Weil sage@newdream.net

insert_item() already does this, but update_item did not.

Fixes: https://tracker.ceph.com/issues/48065
Signed-off-by: Sage Weil <sage@newdream.net>
Copy link
Contributor

@trociny trociny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@liewegas ceph osd crush reweight-subtree seems still to have the issue:

adonis:~/ceph/ceph.ci/build% ceph osd crush reweight-subtree adonis 0.5                                             
reweighted subtree id -3 name 'adonis' to 0.5 in crush map
adonis:~/ceph/ceph.ci/build% ceph osd crush dump | jq ".buckets[] | select(.name==\"adonis\") | .items[].weight"    
32768
32768
32768
adonis:~/ceph/ceph.ci/build% ceph osd crush dump | jq ".buckets[] | select(.name==\"adonis~ssd\") | .items[].weight"
6461
6461
6461
adonis:~/ceph/ceph.ci/build% ceph osd crush reweight-subtree 'adonis~ssd' 0.5                                       
Invalid command: invalid chars ~ in adonis~ssd

Copy link
Contributor

@trociny trociny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 works for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants