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
mgr/dashboard: skip data pool testcase for none-bluestore clusters #21004
mgr/dashboard: skip data pool testcase for none-bluestore clusters #21004
Conversation
qa/tasks/ceph_manager.py
Outdated
out = self.raw_cluster_cmd('osd', 'metadata', '--format=json') | ||
return json.loads('\n'.join(out.split('\n')[1:])) | ||
|
||
def get_osd_metadata(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we delete this method and rename get_osd_metadata_json
to get_osd_metadata
?
for osd in osd_metadata: | ||
if osd['osd_objectstore'] != 'bluestore': | ||
cls.bluestore_support = False | ||
break |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interestingly, this is very similar to https://github.com/ceph/ceph/pull/20865/files#diff-dbb3a62ac313f00ac7caf30816c208bdR91
This PR depends on #21008 to run successfully in a vstart environment. |
Signed-off-by: Tatjana Dehler <tdehler@suse.com>
Skip the test case 'test_create_rbd_in_data_pool' only if the cluster does not support bluestore, otherwise run the test. The Ceph mgr provides the information if the cluster supports bluestore or not, so the test will be skipped depending on the current cluster. Signed-off-by: Tatjana Dehler <tdehler@suse.com>
9e0bfaf
to
0751024
Compare
I'm running into:
Seems to be a timing issue where |
And now I'm running into
|
Strange that this 400 error occurs now and not in the pull request before when the 'test_create' test case was added. This pull request doesn't contain any changes for this test case nor the RBD create functionality. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works for me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
This pull request enhances the 'test_create_rbd_in_data_pool' test case so that it won't always be skipped. It will only be skipped if the cluster does not support bluestore.
Signed-off-by: Tatjana Dehler tdehler@suse.com