Project

General

Profile

Actions

Bug #79128

closed
SS

osd-bluefs-volume-ops.sh: TEST_bluestore - Assertion FAILED ceph_assert(offset + length <= uint64_t(device_size))

Bug #79128: osd-bluefs-volume-ops.sh: TEST_bluestore - Assertion FAILED ceph_assert(offset + length <= uint64_t(device_size))

Added by Sridhar Seshasayee 4 months ago. Updated 3 months ago.

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

0%

Source:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v21.3.0-2438-g3d6069900e
Released In:
Upkeep Timestamp:
2026-08-20T09:11:25+00:00

Description

/a/yuriw-2026-07-28_17:11:12-rados-wip-yuri3-testing-20260728.135610-main-distro-default-trial/406329

While running osd-bluefs-volume-ops.sh: TEST_bluestore, the following assertion failure is observed:

2026-07-28T18:38:51.517 INFO:tasks.workunit.client.0.trial147.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/osd/osd-bluefs-volume-ops.sh:75: TEST_bluestore:  truncate td/osd-bluefs-volume-ops/2/block -s 4295099392
2026-07-28T18:38:51.518 INFO:tasks.workunit.client.0.trial147.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/2 bluefs-bdev-expand
2026-07-28T18:38:51.537 INFO:tasks.workunit.client.0.trial147.stdout:inferring bluefs devices from bluestore path
2026-07-28T18:38:59.033 INFO:tasks.workunit.client.0.trial147.stdout:0 : device size 0x40000000(1 GiB) : using 0xdf00000(223 MiB)
2026-07-28T18:38:59.033 INFO:tasks.workunit.client.0.trial147.stdout:1 : device size 0x40000000(1 GiB) : using 0xf00000(15 MiB)
2026-07-28T18:38:59.033 INFO:tasks.workunit.client.0.trial147.stdout:2 : device size 0x100020000(4.0 GiB) : using 0x9e7ff000(2.5 GiB) : bluefs used 0x0(0 B) : non-bluefs used 0x9e7ff000(2.5 GiB)
2026-07-28T18:38:59.033 INFO:tasks.workunit.client.0.trial147.stdout:Expanding DB/WAL...
2026-07-28T18:38:59.033 INFO:tasks.workunit.client.0.trial147.stdout:0 : nothing to do, skipped
2026-07-28T18:38:59.033 INFO:tasks.workunit.client.0.trial147.stdout:1 : nothing to do, skipped
2026-07-28T18:38:59.033 INFO:tasks.workunit.client.0.trial147.stdout:2 : Expanding to 0x100020400(4.0 GiB)
2026-07-28T18:38:59.034 INFO:tasks.workunit.client.0.trial147.stdout:2 : size updated to 0x100020400(4.0 GiB)
2026-07-28T18:39:02.917 INFO:tasks.workunit.client.0.trial147.stderr:./src/os/bluestore/AvlAllocator.cc: In function 'virtual void AvlAllocator::init_add_free(uint64_t, uint64_t)' thread 7fce0922eec0 time 2026-07-28T18:39:02.914280+0000
2026-07-28T18:39:02.917 INFO:tasks.workunit.client.0.trial147.stderr:./src/os/bluestore/AvlAllocator.cc: 508: FAILED ceph_assert(offset + length <= uint64_t(device_size))
2026-07-28T18:39:02.917 INFO:tasks.workunit.client.0.trial147.stderr: ceph version 21.3.0-1490-gff08fd85 (ff08fd85e6e9d59c865fd3984af8e63075858527) umbrella (dev - None)
2026-07-28T18:39:02.917 INFO:tasks.workunit.client.0.trial147.stderr: 1: (ceph::__ceph_assert_fail(char const*, char const*, int, char const*)+0x137) [0x7fce0ad600b7]
2026-07-28T18:39:02.917 INFO:tasks.workunit.client.0.trial147.stderr: 2: ceph-bluestore-tool(+0x1af165) [0x558ee3583165]
2026-07-28T18:39:02.917 INFO:tasks.workunit.client.0.trial147.stderr: 3: (BlueStore::_init_alloc()+0x1ac) [0x558ee36efdcc]
2026-07-28T18:39:02.917 INFO:tasks.workunit.client.0.trial147.stderr: 4: (BlueStore::_open_db_and_around(bool, bool)+0x41c) [0x558ee36fa18c]
2026-07-28T18:39:02.917 INFO:tasks.workunit.client.0.trial147.stderr: 5: (BlueStore::expand_devices(std::ostream&)+0xe9b) [0x558ee37040bb]
2026-07-28T18:39:02.917 INFO:tasks.workunit.client.0.trial147.stderr: 6: main()
2026-07-28T18:39:02.918 INFO:tasks.workunit.client.0.trial147.stderr: 7: /lib/x86_64-linux-gnu/libc.so.6(+0x29d90) [0x7fce0a420d90]
2026-07-28T18:39:02.918 INFO:tasks.workunit.client.0.trial147.stderr: 8: __libc_start_main()
2026-07-28T18:39:02.918 INFO:tasks.workunit.client.0.trial147.stderr: 9: _start()
2026-07-28T18:39:02.918 INFO:tasks.workunit.client.0.trial147.stderr:2026-07-28T18:39:02.912+0000 7fce0922eec0 -1 ./src/os/bluestore/AvlAllocator.cc: In function 'virtual void AvlAllocator::init_add_free(uint64_t, uint64_t)' thread 7fce0922eec0 time 2026-07-28T18:39:02.914280+0000

IF Updated by Igor Fedotov 4 months ago Actions #1

The issue is caused by no alignment when getting device size in KernelDevice::refresh_size. This size retrieval procedure differes from the one performed during device opening. As a result allocator might get a new extent which is beyond preconfigured aligned boundaries. Hence the assertion.

IF Updated by Igor Fedotov 4 months ago Actions #2

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

LF Updated by Laura Flores 4 months ago Actions #3

/a/skanta-2026-08-11_22:46:54-rados-wip-bharath7-testing-20260811.152323-main-distro-default-trial/458701

JP Updated by Jaya Prakash 4 months ago Actions #4

/a/jayaprakash-2026-08-13_15:17:09-rados-wip-jaya-bs-testing-13-08-2026-distro-default-trial/465929

UB Updated by Upkeep Bot 3 months ago Actions #5

  • Status changed from Fix Under Review to Resolved
  • Merge Commit set to 3d6069900e8967577a75fdc209b1dd134ab9841f
  • Fixed In set to v21.3.0-2438-g3d6069900e
  • Upkeep Timestamp set to 2026-08-20T09:11:25+00:00
Actions

Also available in: PDF Atom