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
test: librbd features test case should only disable active features #10713
Conversation
Fixes: http://tracker.ceph.com/issues/16898 Signed-off-by: Jason Dillaman <dillaman@redhat.com>
@dillaman Testing this on teuthology, unfortunately it does not work: I have addded some debugging and increased
So, it failed for disable_features=12. In client logs, there is 'update requires at least one feature' error but this was from the previous test (expected result), while the error for this failed case is generated by cls_client::set_features:
I suppose because jewel library adds RBD_FEATURE_JOURNALING to features_mask, which is unknown on infernalis. |
@trociny Definitely related to the mask -- any idea why we didn't see this before? The "cls_rbd" set_features function should mask the incoming mask with its version of RBD_FEATURES_ALL at the start to avoid this issue. |
@trociny Whoops -- didn't look close enough. I thought this was your dynamic features PR. Thanks! |
@dillaman I don't have a good idea why we didn't see this before -- not sure when it was noticed the first time. I see the qa test was added in Nov 2015, and then it worked because the default features did not include exclusive lock. In Feb 2016 the default features was changed, and there were also related changes in update_features, so I expect it should have started to fail since then. |
Requires PR #11155 to be merged to the jewel branch |
The test passes now: http://pulpito.ceph.com/trociny-2016-11-02_05:50:21-upgrade-jewel---basic-vps/ |
Fixes: http://tracker.ceph.com/issues/16898
Signed-off-by: Jason Dillaman dillaman@redhat.com