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

nautilus: os/bluestore: fix 'unused' calculation #34794

Merged
merged 3 commits into from
May 19, 2020

Conversation

smithfarm
Copy link
Contributor

backport tracker: https://tracker.ceph.com/issues/45064


backport of #33052
parent tracker: https://tracker.ceph.com/issues/41901

this backport was staged using ceph-backport.sh version 15.1.1.389
find the latest version at https://github.com/ceph/ceph/blob/master/src/script/ceph-backport.sh

@yuriw
Copy link
Contributor

yuriw commented Apr 29, 2020

@smithfarm can't merge this PR pls take a look

@smithfarm
Copy link
Contributor Author

@yuriw My bad, sorry. Should be mergeable now.

@yuriw
Copy link
Contributor

yuriw commented Apr 30, 2020

TEST_P(StoreTestSpecificAUSize, ReproBug41901Test) {
if(string(GetParam()) != "bluestore")
return;
SetVal(g_conf(), "bluestore_debug_enforce_settings", "hdd");
Copy link
Member

Choose a reason for hiding this comment

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

nautilus does not have the "bluestore_debug_enforce_settings" option, which is causing failures like http://qa-proxy.ceph.com/teuthology/yuriw-2020-04-30_22:32:53-rados-wip-yuri3-testing-2020-04-30-1557-nautilus-distro-basic-smithi/5003166/teuthology.log

@yuriw
Copy link
Contributor

yuriw commented May 4, 2020

if(string(GetParam()) != "bluestore")
return;
SetVal(g_conf(), "bluestore_debug_enforce_settings", "hdd");
g_conf().apply_changes(nullptr);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@neha-ojha So, just drop the following lines from the commit?

  SetVal(g_conf(), "bluestore_debug_enforce_settings", "hdd");
  g_conf().apply_changes(nullptr);

Copy link
Member

Choose a reason for hiding this comment

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

@smithfarm don't think that's enough, @ifed01 thoughts?

Copy link
Contributor

Choose a reason for hiding this comment

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

@neha-ojha, @smithfarm - no, that's not enough - test case will fail when running from SSD. I can see two options here - remove the test case itself or backport commit(s) introducing "bluestore_debug_enforce_settings" setting. Personally I think removing test case in this backport is OK.

Fixes: https://tracker.ceph.com/issues/41901

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
(cherry picked from commit c91cc3a)

Conflicts:
    src/test/objectstore/store_test.cc
- omitted test case "TEST_P(StoreTestSpecificAUSize, ReproBug41901Test)"
  from the backport, because nautilus does not have the
  "bluestore_debug_enforce_settings" option
The processing logic which relies on 'unused' bitmap makes sense for
bluestore setup where min alloc size is different from device block
size. Now omitting if that's not true.

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
(cherry picked from commit f960a01)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
(cherry picked from commit 9854972)
@smithfarm
Copy link
Contributor Author

@neha-ojha @ifed01 OK, I removed the test case completely and updated the commit message of the first commit to reflect that.

@yuriw
Copy link
Contributor

yuriw commented May 15, 2020

@yuriw yuriw merged commit a0920e0 into ceph:nautilus May 19, 2020
@smithfarm smithfarm deleted the wip-45064-nautilus branch May 20, 2020 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants