Skip to content

os/bluestore: fix bitmap allocator issues - #26939

Merged
liewegas merged 6 commits into
ceph:masterfrom
ifed01:wip-ifed-fbmap-fixes
Mar 22, 2019
Merged

liewegas merged 6 commits into
ceph:masterfrom
ifed01:wip-ifed-fbmap-fixes

Conversation

@ifed01

@ifed01 ifed01 commented Mar 13, 2019 •

Copy link
Copy Markdown
Contributor

Fixes: https://tracker.ceph.com/issues/38760
Fixes: https://tracker.ceph.com/issues/38761

Signed-off-by: Igor Fedotov [email protected]

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

@ifed01
ifed01 requested a review from liewegas March 13, 2019 21:41
@liewegas
liewegas changed the base branch from master to nautilus March 14, 2019 01:36
@liewegas
liewegas changed the base branch from nautilus to master March 14, 2019 01:36
@liewegas

Copy link
Copy Markdown
Member

Is there an open ticket for this?

@ifed01

ifed01 commented Mar 14, 2019

Copy link
Copy Markdown
Contributor Author

Is there an open ticket for this?

@liewegas - no. Do you want me to create one?

@markhpc

markhpc commented Mar 14, 2019

Copy link
Copy Markdown
Member

In the future it would be really helpful to have a short description of what the PR does rather than having to dig through the code to find out. :D

@liewegas

Copy link
Copy Markdown
Member

Is there an open ticket for this?

@liewegas - no. Do you want me to create one?

yes please, so we can ensure it gets backported

ifed01 added 5 commits March 15, 2019 14:19
'gift' space is just advisory for allocation, part of it actually requested
from BlueFS is mandatory only. Hence do not fail when unable to allocate
the whole space.

Fixes: https://tracker.ceph.com/issues/38760
Signed-off-by: Igor Fedotov <[email protected]>
We might need intervals at BlueStore with both 32-bit and 64-bit
lengths. Having base template eliminates the need for copy/paste

Signed-off-by: Igor Fedotov <[email protected]>
@ifed01
ifed01 force-pushed the wip-ifed-fbmap-fixes branch from 4132323 to d146696 Compare March 15, 2019 11:20
@ifed01

ifed01 commented Mar 15, 2019

Copy link
Copy Markdown
Contributor Author

@liewegas, @markhpc - tickets created and referenced

@liewegas

Copy link
Copy Markdown
Member
2019-03-19T22:52:44.441 INFO:teuthology.orchestra.run.smithi070.stdout:[ RUN      ] ObjectStore/StoreTest.allocateBlueFSTest/2
2019-03-19T22:52:46.018 INFO:teuthology.orchestra.run.smithi070.stderr:/home/jenkins-build/build/workspace/ceph-dev-new-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos7/DIST/centos7/MACHINE_SIZE/huge/release/14.2.0-87-gc1d40be/rpm/el7/BUILD/ceph-14.2
.0-87-gc1d40be/src/include/interval_set.h: In function 'void interval_set<T, Map>::insert(T, T, T*, T*) [with T = long unsigned int; Map = std::map<long unsigned int, long unsigned int>]' thread 7f9a12b92000 time 2019-03-19 22:52:46.061658
2019-03-19T22:52:46.018 INFO:teuthology.orchestra.run.smithi070.stderr:/home/jenkins-build/build/workspace/ceph-dev-new-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos7/DIST/centos7/MACHINE_SIZE/huge/release/14.2.0-87-gc1d40be/rpm/el7/BUILD/ceph-14.2
.0-87-gc1d40be/src/include/interval_set.h: 447: FAILED ceph_assert(len > 0)
2019-03-19T22:52:46.019 INFO:teuthology.orchestra.run.smithi070.stderr: ceph version 14.2.0-87-gc1d40be (c1d40be576032dba3d092395d34afab71b312325) nautilus (stable)
2019-03-19T22:52:46.020 INFO:teuthology.orchestra.run.smithi070.stderr: 1: (ceph::__ceph_assert_fail(char const*, char const*, int, char const*)+0x14a) [0x7f9a07c9f326]
2019-03-19T22:52:46.020 INFO:teuthology.orchestra.run.smithi070.stderr: 2: (ceph::__ceph_assertf_fail(char const*, char const*, int, char const*, char const*, ...)+0) [0x7f9a07c9f4f4]
2019-03-19T22:52:46.020 INFO:teuthology.orchestra.run.smithi070.stderr: 3: (Allocator::release(std::vector<bluestore_pextent_t, mempool::pool_allocator<(mempool::pool_index_t)4, bluestore_pextent_t> > const&)+0x3f0) [0x55769169fd50]
2019-03-19T22:52:46.020 INFO:teuthology.orchestra.run.smithi070.stderr: 4: (BlueStore::allocate_bluefs_freespace(unsigned long, unsigned long, std::vector<bluestore_pextent_t, mempool::pool_allocator<(mempool::pool_index_t)4, bluestore_pextent_t> >*)+0x3e7) [0x557
6915a1097]
2019-03-19T22:52:46.020 INFO:teuthology.orchestra.run.smithi070.stderr: 5: (StoreTest_allocateBlueFSTest_Test::TestBody()+0x21d) [0x5576913bf89d]
2019-03-19T22:52:46.021 INFO:teuthology.orchestra.run.smithi070.stderr: 6: (void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*)+0x77) [0x55769172c127]
2019-03-19T22:52:46.021 INFO:teuthology.orchestra.run.smithi070.stderr: 7: (testing::Test::Run()+0xba) [0x557691722a7a]
2019-03-19T22:52:46.021 INFO:teuthology.orchestra.run.smithi070.stderr: 8: (testing::TestInfo::Run()+0xac) [0x557691722b5c]
2019-03-19T22:52:46.021 INFO:teuthology.orchestra.run.smithi070.stderr: 9: (testing::TestCase::Run()+0xb5) [0x557691722c95]
2019-03-19T22:52:46.021 INFO:teuthology.orchestra.run.smithi070.stderr: 10: (testing::internal::UnitTestImpl::RunAllTests()+0x468) [0x557691723188]
2019-03-19T22:52:46.021 INFO:teuthology.orchestra.run.smithi070.stderr: 11: (bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char cons
t*)+0x77) [0x55769172c617]
2019-03-19T22:52:46.021 INFO:teuthology.orchestra.run.smithi070.stderr: 12: (testing::UnitTest::Run()+0x60) [0x557691723310]
2019-03-19T22:52:46.022 INFO:teuthology.orchestra.run.smithi070.stderr: 13: (main()+0x934) [0x5576912d8354]
2019-03-19T22:52:46.022 INFO:teuthology.orchestra.run.smithi070.stderr: 14: (__libc_start_main()+0xf5) [0x7f9a053c63d5]
2019-03-19T22:52:46.022 INFO:teuthology.orchestra.run.smithi070.stderr: 15: (()+0x2cb850) [0x5576913bb850]
2019-03-19T22:52:46.022 INFO:teuthology.orchestra.run.smithi070.stderr:*** Caught signal (Aborted) **
2019-03-19T22:52:46.022 INFO:teuthology.orchestra.run.smithi070.stderr: in thread 7f9a12b92000 thread_name:ceph_test_objec
2019-03-19T22:52:46.022 INFO:teuthology.orchestra.run.smithi070.stderr: ceph version 14.2.0-87-gc1d40be (c1d40be576032dba3d092395d34afab71b312325) nautilus (stable)
2019-03-19T22:52:46.023 INFO:teuthology.orchestra.run.smithi070.stderr: 1: (()+0xf5d0) [0x7f9a1278b5d0]
2019-03-19T22:52:46.023 INFO:teuthology.orchestra.run.smithi070.stderr: 2: (gsignal()+0x37) [0x7f9a053da207]

/a/sage-2019-03-19_18:36:56-rados-wip-sage3-testing-2019-03-19-0529-distro-basic-smithi/3747574

@ifed01

ifed01 commented Mar 20, 2019

Copy link
Copy Markdown
Contributor Author

@liewegas - fixed, another issue with 32bit wrapping

@liewegas
liewegas merged commit 1337443 into ceph:master Mar 22, 2019
liewegas added a commit that referenced this pull request Mar 22, 2019
* refs/pull/26939/head:
	os/bluestore: unconditionally cap chunks returned by allocator to 2^31
	os/bluestore: start using 64-bit intervals for bitmap allocator
	os/bluestore: make bluestore interval base template.
	tests/fastbmap_alloc: UT to reproduce 4G allocation bug
	os/bluestore: os/bluestore: implement dump for bitmap allocator
	os/bluestore be more tolerant to lack of space for bluefs.

Reviewed-by: Sage Weil <[email protected]>
@ifed01
ifed01 deleted the wip-ifed-fbmap-fixes branch March 22, 2019 21: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.

3 participants