Project

General

Profile

Actions

Bug #75852

closed
LF

Failed ceph_assert in AvlAllocator

Bug #75852: Failed ceph_assert in AvlAllocator

Added by Laura Flores 8 months ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
umbrella,tentacle,squid
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v21.3.0-1016-g881d8c9144
Released In:
Upkeep Timestamp:
2026-10-21T01:28:22+00:00

Description

/a/lflores-2026-03-31_22:52:22-rados-wip-yuri6-testing-2026-03-20-1643-squid-distro-default-trial/128706

2026-03-31T23:26:23.087 INFO:tasks.workunit.client.0.trial152.stderr:2026-03-31T23:26:23.076+0000 7fa3fea50bc0 -1 ./src/os/bluestore/AvlAllocator.cc: In function 'virtual void AvlAllocator::_add_to_tree(uint64_t, uint64_t)' thread 7fa3fea50bc0 time 2026-03-31T23:26:23.079696+0000
2026-03-31T23:26:23.087 INFO:tasks.workunit.client.0.trial152.stderr:./src/os/bluestore/AvlAllocator.cc: 115: FAILED ceph_assert(rs_before == range_tree.end() || rs_before->end <= start)
2026-03-31T23:26:23.087 INFO:tasks.workunit.client.0.trial152.stderr:
2026-03-31T23:26:23.088 INFO:tasks.workunit.client.0.trial152.stderr: ceph version 19.2.3-765-gd9b33533 (d9b3353334f9dcb09b0e2d61df31e171dcf0cbfa) squid (stable)
2026-03-31T23:26:23.088 INFO:tasks.workunit.client.0.trial152.stderr: 1: (ceph::__ceph_assert_fail(char const*, char const*, int, char const*)+0x11e) [0x7fa400304f7a]
2026-03-31T23:26:23.088 INFO:tasks.workunit.client.0.trial152.stderr: 2: /usr/lib/ceph/libceph-common.so.2(+0x18512f) [0x7fa40030512f]
2026-03-31T23:26:23.088 INFO:tasks.workunit.client.0.trial152.stderr: 3: (AvlAllocator::_add_to_tree(unsigned long, unsigned long)+0x695) [0x55a3bd785055]
2026-03-31T23:26:23.088 INFO:tasks.workunit.client.0.trial152.stderr: 4: (AvlAllocator::init_add_free(unsigned long, unsigned long)+0x9e) [0x55a3bd78d54e]
2026-03-31T23:26:23.088 INFO:tasks.workunit.client.0.trial152.stderr: 5: (BlueStore::_init_alloc(std::map<unsigned long, unsigned long, std::less<unsigned long>, std::allocator<std::pair<unsigned long const, unsigned long> > >*)+0x738) [0x55a3bd65ac28]
2026-03-31T23:26:23.088 INFO:tasks.workunit.client.0.trial152.stderr: 6: (BlueStore::_open_db_and_around(bool, bool)+0x3c0) [0x55a3bd6618f0]
2026-03-31T23:26:23.088 INFO:tasks.workunit.client.0.trial152.stderr: 7: (BlueStore::expand_devices(std::ostream&)+0xa4c) [0x55a3bd66b1fc]
2026-03-31T23:26:23.088 INFO:tasks.workunit.client.0.trial152.stderr: 8: main()
2026-03-31T23:26:23.088 INFO:tasks.workunit.client.0.trial152.stderr: 9: /lib/x86_64-linux-gnu/libc.so.6(+0x29d90) [0x7fa3ffc42d90]
2026-03-31T23:26:23.088 INFO:tasks.workunit.client.0.trial152.stderr: 10: __libc_start_main()
2026-03-31T23:26:23.088 INFO:tasks.workunit.client.0.trial152.stderr: 11: _start()
2026-03-31T23:26:23.089 INFO:tasks.workunit.client.0.trial152.stderr:
2026-03-31T23:26:23.089 INFO:tasks.workunit.client.0.trial152.stderr:*** Caught signal (Aborted) **
2026-03-31T23:26:23.089 INFO:tasks.workunit.client.0.trial152.stderr: in thread 7fa3fea50bc0 thread_name:ceph-bluestore-
2026-03-31T23:26:23.089 INFO:tasks.workunit.client.0.trial152.stderr: ceph version 19.2.3-765-gd9b33533 (d9b3353334f9dcb09b0e2d61df31e171dcf0cbfa) squid (stable)
2026-03-31T23:26:23.089 INFO:tasks.workunit.client.0.trial152.stderr: 1: /lib/x86_64-linux-gnu/libc.so.6(+0x42520) [0x7fa3ffc5b520]
2026-03-31T23:26:23.089 INFO:tasks.workunit.client.0.trial152.stderr: 2: pthread_kill()
2026-03-31T23:26:23.089 INFO:tasks.workunit.client.0.trial152.stderr: 3: raise()
2026-03-31T23:26:23.089 INFO:tasks.workunit.client.0.trial152.stderr: 4: abort()
2026-03-31T23:26:23.089 INFO:tasks.workunit.client.0.trial152.stderr: 5: (ceph::__ceph_assert_fail(char const*, char const*, int, char const*)+0x178) [0x7fa400304fd4]
2026-03-31T23:26:23.089 INFO:tasks.workunit.client.0.trial152.stderr: 6: /usr/lib/ceph/libceph-common.so.2(+0x18512f) [0x7fa40030512f]
2026-03-31T23:26:23.089 INFO:tasks.workunit.client.0.trial152.stderr: 7: (AvlAllocator::_add_to_tree(unsigned long, unsigned long)+0x695) [0x55a3bd785055]
2026-03-31T23:26:23.089 INFO:tasks.workunit.client.0.trial152.stderr: 8: (AvlAllocator::init_add_free(unsigned long, unsigned long)+0x9e) [0x55a3bd78d54e]
2026-03-31T23:26:23.090 INFO:tasks.workunit.client.0.trial152.stderr: 9: (BlueStore::_init_alloc(std::map<unsigned long, unsigned long, std::less<unsigned long>, std::allocator<std::pair<unsigned long const, unsigned long> > >*)+0x738) [0x55a3bd65ac28]
2026-03-31T23:26:23.090 INFO:tasks.workunit.client.0.trial152.stderr: 10: (BlueStore::_open_db_and_around(bool, bool)+0x3c0) [0x55a3bd6618f0]
2026-03-31T23:26:23.090 INFO:tasks.workunit.client.0.trial152.stderr: 11: (BlueStore::expand_devices(std::ostream&)+0xa4c) [0x55a3bd66b1fc]
2026-03-31T23:26:23.090 INFO:tasks.workunit.client.0.trial152.stderr: 12: main()
2026-03-31T23:26:23.090 INFO:tasks.workunit.client.0.trial152.stderr: 13: /lib/x86_64-linux-gnu/libc.so.6(+0x29d90) [0x7fa3ffc42d90]
2026-03-31T23:26:23.090 INFO:tasks.workunit.client.0.trial152.stderr: 14: __libc_start_main()
2026-03-31T23:26:23.090 INFO:tasks.workunit.client.0.trial152.stderr: 15: _start()


Related issues 3 (0 open — 3 closed)

Copied to bluestore - Backport #78216: tentacle: Failed ceph_assert in AvlAllocatorResolved

Actions
Copied to bluestore - Backport #78217: umbrella: Failed ceph_assert in AvlAllocatorResolved

Actions
Copied to bluestore - Backport #78218: squid: Failed ceph_assert in AvlAllocatorResolved

Actions

BH Updated by Brad Hubbard 8 months ago Actions #1

2026-04-09T06:17:32.379 INFO:tasks.workunit.client.0.trial189.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/osd/osd-bluefs-volume-ops.sh:75: TEST_bluestore:  truncate td/osd-bluefs-volume-ops/0/block -s 4294967296
2026-04-09T06:17:32.380 INFO:tasks.workunit.client.0.trial189.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/osd/osd-bluefs-volume-ops.sh:76: TEST_bluestore:  ceph-bluestore-tool --path td/osd-bluefs-volume-ops/0 bluefs-bdev-expand
2026-04-09T06:17:32.389 INFO:tasks.workunit.client.0.trial189.stdout:inferring bluefs devices from bluestore path
2026-04-09T06:17:34.044 INFO:tasks.workunit.client.0.trial189.stdout:0 : device size 0x40000000(1 GiB) : using 0xdf00000(223 MiB)
2026-04-09T06:17:34.044 INFO:tasks.workunit.client.0.trial189.stdout:1 : device size 0x40000000(1 GiB) : using 0xe00000(14 MiB)
2026-04-09T06:17:34.044 INFO:tasks.workunit.client.0.trial189.stdout:2 : device size 0x100000000(4 GiB) : using 0x1ede4000(494 MiB) : bluefs used 0x0(0 B) : non-bluefs used 0x1ede4000(494 MiB)
2026-04-09T06:17:34.045 INFO:tasks.workunit.client.0.trial189.stdout:Expanding DB/WAL...
2026-04-09T06:17:34.045 INFO:tasks.workunit.client.0.trial189.stdout:0 : nothing to do, skipped
2026-04-09T06:17:34.045 INFO:tasks.workunit.client.0.trial189.stdout:1 : nothing to do, skipped
2026-04-09T06:17:34.045 INFO:tasks.workunit.client.0.trial189.stdout:2 : Expanding to 0x100000000(4 GiB)
2026-04-09T06:17:34.045 INFO:tasks.workunit.client.0.trial189.stdout:2 : size updated to 0x100000000(4 GiB)
2026-04-09T06:17:34.974 INFO:tasks.workunit.client.0.trial189.stderr:2026-04-09T06:17:34.973+0000 7fef42e0eac0 -1 AvlAllocator _add_to_tree inconsistent tree state  0x80000000~80000000
2026-04-09T06:17:34.974 INFO:tasks.workunit.client.0.trial189.stderr:/ceph/rpmbuild/BUILD/ceph-21.0.0-339-ge4f1db16/src/os/bluestore/AvlAllocator.cc: In function 'virtual void AvlAllocator::_add_to_tree(uint64_t, uint64_t)' thread 7fef42e0eac0 time 2026-04-09T06:17:34.974382+0000
2026-04-09T06:17:34.975 INFO:tasks.workunit.client.0.trial189.stderr:/ceph/rpmbuild/BUILD/ceph-21.0.0-339-ge4f1db16/src/os/bluestore/AvlAllocator.cc: 115: FAILED ceph_assert(rs_before == range_tree.end() || rs_before->end <= start)
2026-04-09T06:17:34.975 INFO:tasks.workunit.client.0.trial189.stderr: ceph version 21.0.0-339-ge4f1db16 (e4f1db16ea5f5ee2e7dd2ccfc281e2a7b9d7d871) umbrella (dev - RelWithDebInfo)
2026-04-09T06:17:34.975 INFO:tasks.workunit.client.0.trial189.stderr: 1: ceph-bluestore-tool(+0x15be6d) [0x55783d735e6d]
2026-04-09T06:17:34.975 INFO:tasks.workunit.client.0.trial189.stderr: 2: (AvlAllocator::init_add_free(unsigned long, unsigned long)+0x9c) [0x55783d9d0ebc]
2026-04-09T06:17:34.975 INFO:tasks.workunit.client.0.trial189.stderr: 3: (BlueStore::_init_alloc()+0x8d6) [0x55783d8d4416]
2026-04-09T06:17:34.975 INFO:tasks.workunit.client.0.trial189.stderr: 4: (BlueStore::_open_db_and_around(bool, bool)+0x3e4) [0x55783d8dede4]
2026-04-09T06:17:34.975 INFO:tasks.workunit.client.0.trial189.stderr: 5: (BlueStore::expand_devices(std::ostream&)+0xa9e) [0x55783d8e49ae]
2026-04-09T06:17:34.975 INFO:tasks.workunit.client.0.trial189.stderr: 6: main()
2026-04-09T06:17:34.975 INFO:tasks.workunit.client.0.trial189.stderr: 7: /lib64/libc.so.6(+0x2a58e) [0x7fef4265258e]
2026-04-09T06:17:34.976 INFO:tasks.workunit.client.0.trial189.stderr: 8: __libc_start_main()
2026-04-09T06:17:34.976 INFO:tasks.workunit.client.0.trial189.stderr: 9: _start()

Came across these while I was looking for something else.

/a/skanta-2026-04-09_03:57:47-rados-wip-bharath16-testing-2026-04-08-1405-distro-default-trial/141133
/a/skanta-2026-04-08_15:34:12-rados-wip-bharath16-testing-2026-04-08-1405-distro-default-trial/140400

IF Updated by Igor Fedotov 8 months ago Actions #2

  • Status changed from New to Fix Under Review
  • Pull request ID set to 68503

The root cause of the issue is due to occasional OSD non-graceful shutdown (timeout on shutdown?) which triggers allocamap recovery during device expansion. Which in turn is erroneous as recovery procedure adds new space to allocator by itself and explicit allocator expansion becomes redundant.

SS Updated by Sridhar Seshasayee 7 months ago Actions #3

/a/skanta-2026-04-09_03:57:47-rados-wip-bharath16-testing-2026-04-08-1405-distro-default-trial/141133

LF Updated by Laura Flores 5 months ago Actions #5

  • Backport changed from tentacle,squid to umbrella,tentacle,squid

IF Updated by Igor Fedotov 5 months ago Actions #6

  • Status changed from Fix Under Review to Pending Backport

UB Updated by Upkeep Bot 5 months ago Actions #7

  • Merge Commit set to 881d8c9144a415dd88bb7910e3868599b7ebf9ce
  • Fixed In set to v21.3.0-1016-g881d8c9144
  • Upkeep Timestamp set to 2026-07-14T13:25:18+00:00

UB Updated by Upkeep Bot 5 months ago Actions #8

  • Copied to Backport #78216: tentacle: Failed ceph_assert in AvlAllocator added

UB Updated by Upkeep Bot 5 months ago Actions #9

  • Copied to Backport #78217: umbrella: Failed ceph_assert in AvlAllocator added

UB Updated by Upkeep Bot 5 months ago Actions #10

  • Copied to Backport #78218: squid: Failed ceph_assert in AvlAllocator added

UB Updated by Upkeep Bot 5 months ago Actions #11

  • Tags (freeform) set to backport_processed

UB Updated by Upkeep Bot 3 months ago Actions #12

  • Status changed from Pending Backport to Backporting
  • Tags (freeform) deleted (backport_processed)
  • Upkeep Timestamp changed from 2026-07-14T13:25:18+00:00 to 2026-08-27T18:40:52+00:00

UB Updated by Upkeep Bot about 1 month ago Actions #13

  • Status changed from Backporting to Resolved
  • Upkeep Timestamp changed from 2026-08-27T18:40:52+00:00 to 2026-10-21T01:28:22+00:00
Actions

Also available in: PDF Atom