Bug #11602
crush: take crashes due to invalid arg
0%
Description
user deleted the bucket a rule referred to. now a mapping crashes.
sample map attached (crushtool --test to reproduce).
Related issues
Associated revisions
crush: fix crash from invalid 'take' argument
Verify that the 'take' argument is a valid device or bucket. Otherwise,
ignore it (do not add the value to the working vector).
Backport: hammer, firefly
Fixes: #11602
Reported-by: shiva rkreddy <shiva.rkreddy@gmail.com>
Signed-off-by: Sage Weil <sage@redhat.com>
mon: prevent bucket deletion when referenced by a rule
If a rule references a bucket with 'take', prevent deletion.
Fixes: #11602
Signed-off-by: Sage Weil <sage@redhat.com>
mon: prevent bucket deletion when referenced by a rule
If a rule references a bucket with 'take', prevent deletion.
Fixes: #11602
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 3d591afef90b0601572c748f13faac029d05f5a0)
crush: fix crash from invalid 'take' argument
Verify that the 'take' argument is a valid device or bucket. Otherwise,
ignore it (do not add the value to the working vector).
Backport: hammer, firefly
Fixes: #11602
Reported-by: shiva rkreddy <shiva.rkreddy@gmail.com>
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 9324d0a1af61e1c234cc48e2175b4e6320fff8f4)
mon: prevent bucket deletion when referenced by a rule
If a rule references a bucket with 'take', prevent deletion.
Fixes: #11602
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 3d591afef90b0601572c748f13faac029d05f5a0)
History
#1 Updated by Sage Weil almost 6 years ago
- File monmap.bin added
#2 Updated by Loïc Dachary almost 6 years ago
#3 Updated by Loïc Dachary almost 6 years ago
- Status changed from New to Fix Under Review
#4 Updated by Kefu Chai almost 6 years ago
- Status changed from Fix Under Review to Pending Backport
#5 Updated by Nathan Cutler over 5 years ago
- Status changed from Pending Backport to Resolved