]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
2 months agoMerge pull request #63197 from zdover23/wip-doc-2025-05-09-backport-63172-to-squid
Anthony D'Atri [Fri, 9 May 2025 12:45:20 +0000 (08:45 -0400)]
Merge pull request #63197 from zdover23/wip-doc-2025-05-09-backport-63172-to-squid

squid: doc/mgr/ceph_api: edit index.rst

2 months agoMerge pull request #63200 from zdover23/wip-doc-2025-05-08-backport-63173-to-squid
Anthony D'Atri [Fri, 9 May 2025 12:44:06 +0000 (08:44 -0400)]
Merge pull request #63200 from zdover23/wip-doc-2025-05-08-backport-63173-to-squid

squid: doc/mgr: edit alerts.rst

2 months agoMerge pull request #63207 from zdover23/wip-doc-2025-05-09-backport-63084-to-squid
Anthony D'Atri [Fri, 9 May 2025 12:27:59 +0000 (08:27 -0400)]
Merge pull request #63207 from zdover23/wip-doc-2025-05-09-backport-63084-to-squid

squid: doc/mgr: edit administrator.rst

2 months agodoc/mgr: edit administrator.rst 63207/head
Zac Dover [Thu, 1 May 2025 04:12:45 +0000 (14:12 +1000)]
doc/mgr: edit administrator.rst

Edit doc/mgr/administrator.rst. Add prompts and correct some of the
inelegant English present in the file.

This commit is part of a project to separate out the twenty-five files
that were committed to https://github.com/ceph/ceph/pull/62782.

Credit for this initiative should go to Ville Ojamo.

Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit 859950180f0b7314b097ee9b2f9f192f4cfb3ed4)

2 months agodoc/mgr: edit alerts.rst 63200/head
Zac Dover [Thu, 8 May 2025 02:29:25 +0000 (12:29 +1000)]
doc/mgr: edit alerts.rst

Edit doc/mgr/alerts.rst as part of the project to determine where the
error is in https://github.com/ceph/ceph/pull/62782 that prevents the
Jenkins tests from passing.

This commit adds to the work done in
https://github.com/ceph/ceph/pull/62782 by correcting some of the
English that was present in that PR.

This is a change to one of twenty-five files in
https://github.com/ceph/ceph/pull/62782, and this commit represents one
of what will be at least twenty-five other commits made to track this
error down.

Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit db28c1f32ff67bd1087866c7976233e8ab23fa2c)

2 months agodoc/mgr/ceph_api: edit index.rst 63197/head
Zac Dover [Thu, 8 May 2025 00:08:06 +0000 (10:08 +1000)]
doc/mgr/ceph_api: edit index.rst

Edit doc/mgr/ceph_api/index.rst as part of the project to determine
where the error is in https://github.com/ceph/ceph/pull/62782 that
prevents the Jenkins tests from passing.

This is a change to one of twenty-five files in
https://github.com/ceph/ceph/pull/62782, and this commit represents one
of what will be at least twenty-five other commits made to track this
error down.

Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit 5c17f2242318d57e9faaafc83774a8f8a36f6e0e)

2 months agoMerge pull request #63147 from zdover23/wip-doc-2025-05-07-backport-63139-to-squid
Anthony D'Atri [Wed, 7 May 2025 12:52:32 +0000 (08:52 -0400)]
Merge pull request #63147 from zdover23/wip-doc-2025-05-07-backport-63139-to-squid

squid: doc/cephadm: Correct formatting in upgrade.rst

2 months agodoc/cephadm: Correct formatting in upgrade.rst 63147/head
Anthony D'Atri [Tue, 6 May 2025 16:42:18 +0000 (12:42 -0400)]
doc/cephadm: Correct formatting in upgrade.rst

Signed-off-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
(cherry picked from commit 0e1adc4ae69b9fdc8f4a8480f3e498efa06520f4)

2 months agoMerge pull request #62039 from kamoltat/wip-70220-squid
SrinivasaBharathKanta [Tue, 6 May 2025 09:26:26 +0000 (14:56 +0530)]
Merge pull request #62039 from kamoltat/wip-70220-squid

squid: src/mon/OSDMonitor.cc: [Stretch Mode] WRN non-existent CRUSH location assigned to MON

2 months agoMerge pull request #63108 from zdover23/wip-doc-2025-05-05-backport-62860-to-squid
Zac Dover [Tue, 6 May 2025 00:07:17 +0000 (10:07 +1000)]
Merge pull request #63108 from zdover23/wip-doc-2025-05-05-backport-62860-to-squid

squid: doc: update cephfs-journal-tool docs

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
2 months agodoc: update cephfs-journal-tool docs 63108/head
Jos Collin [Thu, 17 Apr 2025 10:13:46 +0000 (15:43 +0530)]
doc: update cephfs-journal-tool docs

Fixes: https://tracker.ceph.com/issues/70953
Signed-off-by: Jos Collin <jcollin@redhat.com>
(cherry picked from commit 7ae0c22dfd63d14773966ab3796c68f1be913534)

2 months agoMerge pull request #63012 from guits/wip-71105-squid
Guillaume Abrioux [Thu, 1 May 2025 06:42:22 +0000 (08:42 +0200)]
Merge pull request #63012 from guits/wip-71105-squid

squid: ceph-volume: Fix splitting with too many parts

2 months agoMerge pull request #63073 from zdover23/wip-doc-2025-04-30-backport-63060-to-squid
Anthony D'Atri [Wed, 30 Apr 2025 14:51:25 +0000 (10:51 -0400)]
Merge pull request #63073 from zdover23/wip-doc-2025-04-30-backport-63060-to-squid

squid: doc/cephadm: correct markup in rgw.rst

2 months agodoc/cephadm: correct markup in rgw.rst 63073/head
Zac Dover [Wed, 30 Apr 2025 08:13:40 +0000 (18:13 +1000)]
doc/cephadm: correct markup in rgw.rst

Correct the presentation of an example string in doc/cephadm/rgw.rst in
order to obviate an error reading "rgw.rst:202: WARNING: Inline emphasis start-string without end-string."

Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit 64bb1cffe3dd2fc495f9f4ddab1dc6c512eda624)

2 months agoMerge pull request #63071 from sseshasa/wip-71142-squid
Anthony D'Atri [Wed, 30 Apr 2025 13:28:55 +0000 (09:28 -0400)]
Merge pull request #63071 from sseshasa/wip-71142-squid

squid: doc/rados: Update mClock doc on steps to override OSD IOPS capacity config

2 months agoMerge PR #61287 into squid
Patrick Donnelly [Wed, 30 Apr 2025 12:36:28 +0000 (08:36 -0400)]
Merge PR #61287 into squid

* refs/pull/61287/head:
mds: add or update MDS thread names
log: cache recent threads up to a day
common: cache pthread names
log: concatenate thread names and print once per thread

Reviewed-by: Laura Flores <lflores@redhat.com>
2 months agoceph-volume: Fix splitting with too many parts 63012/head
Janne Heß [Mon, 28 Apr 2025 09:04:25 +0000 (11:04 +0200)]
ceph-volume: Fix splitting with too many parts

The data can be anything and also contain a `=`, causing the line to
fail with `Too many values to unpack`. In my case, it failed with
`ID_FS_LABEL=pvc_name=rook-ceph-lvm-data-44f2gc`.

Regression was introduced here: https://github.com/ceph/ceph/pull/60006

Fixes: https://tracker.ceph.com/issues/71101
Signed-off-by: Janne Heß <janne@hess.ooo>
(cherry picked from commit 315fb96243549afba316c60a8d74c24c9417c18e)

2 months agodoc/rados: Update mClock doc on steps to override OSD IOPS capacity config 63071/head
Sridhar Seshasayee [Tue, 15 Apr 2025 13:01:50 +0000 (18:31 +0530)]
doc/rados: Update mClock doc on steps to override OSD IOPS capacity config

Describe the steps involved to
 - Specify a global value for osd_mclock_max_capacity_iops_{ssd,hdd}, and
 - Override existing individually scoped values for OSDs determined during
   start-up for osd_mclock_max_capacity_iops_{ssd,hdd}.

The above is to help with the following:
 - Steps to override existing setting with a global value.
 - reduce the number of entries in the mon store and instead use a single
   global specification for all OSDs in the cluster in case the underlying
   hardware is the same for all OSDs.

Signed-off-by: Sridhar Seshasayee <sseshasa@redhat.com>
Fixes: https://tracker.ceph.com/issues/70774
(cherry picked from commit 899da82ae2e857f2a769c08d6623e6da7678d16b)

2 months agoMerge pull request #59191 from NitzanMordhai/wip-67504-squid
Yuri Weinstein [Tue, 29 Apr 2025 14:50:49 +0000 (07:50 -0700)]
Merge pull request #59191 from NitzanMordhai/wip-67504-squid

squid: qa/tasks: watchdog should terminate thrasher

https://github.com/ceph/ceph/pull/59191

2 months agoMerge pull request #62802 from sseshasa/wip-70904-squid
SrinivasaBharathKanta [Tue, 29 Apr 2025 14:50:36 +0000 (20:20 +0530)]
Merge pull request #62802 from sseshasa/wip-70904-squid

squid: osd/scheduler/OpSchedulerItem: Fix calculation of recovery latency counters

2 months agoMerge pull request #62437 from linuxkidd/backport-max-avail-pr-57003-to-squid
SrinivasaBharathKanta [Tue, 29 Apr 2025 14:49:53 +0000 (20:19 +0530)]
Merge pull request #62437 from linuxkidd/backport-max-avail-pr-57003-to-squid

squid: PGMap: remove pool max_avail scale factor

2 months agoMerge pull request #62514 from ifed01/wip-ifed-fix-bluefs-reserved2-squi
Igor Fedotov [Tue, 29 Apr 2025 13:57:36 +0000 (16:57 +0300)]
Merge pull request #62514 from ifed01/wip-ifed-fix-bluefs-reserved2-squi

squid: os/bluestore: use block size (4K) as minimal allocation unit for dedicated DB/WAL volumes

Reviewed-by: Adam Kupczyk <akupczyk@ibm.com>
2 months agoos/bluestore: introduce locking for the very first DB/WAL alloc unit. 62514/head
Igor Fedotov [Fri, 21 Mar 2025 10:25:41 +0000 (13:25 +0300)]
os/bluestore: introduce locking for the very first DB/WAL alloc unit.

Signed-off-by: Igor Fedotov <igor.fedotov@croit.io>
(cherry picked from commit eb461b4fca243d9ac5885cfa9e5d5bf1b6af1fcb)

2 months agoos/bluestore: rename bluefs_super_t::version -> seq
Igor Fedotov [Thu, 20 Mar 2025 17:36:29 +0000 (20:36 +0300)]
os/bluestore: rename bluefs_super_t::version -> seq

Signed-off-by: Igor Fedotov <igor.fedotov@croit.io>
(cherry picked from commit 4130c43d50e6cbd7697b57753f1a889528912334)

2 months agoos/bluestore: rename BlueFS::get_total -> get_block_device_size()
Igor Fedotov [Thu, 20 Mar 2025 17:17:42 +0000 (20:17 +0300)]
os/bluestore: rename BlueFS::get_total -> get_block_device_size()

Signed-off-by: Igor Fedotov <igor.fedotov@croit.io>
(cherry picked from commit d6a2d378707cd807444243029252e9d9bc0d08b6)

2 months agotest/store_test: add BlueFS reserved space tests
Igor Fedotov [Fri, 7 Mar 2025 17:35:42 +0000 (20:35 +0300)]
test/store_test: add BlueFS reserved space tests

Signed-off-by: Igor Fedotov <igor.fedotov@croit.io>
(cherry picked from commit 2e3578b01490c3350a4a955155dabbc2ea2710e8)

2 months agoos/bluestore: get rid off BlueFS::get_block_device_size
Igor Fedotov [Fri, 7 Mar 2025 11:29:34 +0000 (14:29 +0300)]
os/bluestore: get rid off BlueFS::get_block_device_size

Signed-off-by: Igor Fedotov <igor.fedotov@croit.io>
(cherry picked from commit acdd0e363c76073e2fc60de5e9b55d3441c74a66)

2 months agotools/ceph-bluestore-tool: introduce bluefs-super-dump command.
Igor Fedotov [Thu, 6 Mar 2025 20:44:11 +0000 (23:44 +0300)]
tools/ceph-bluestore-tool: introduce bluefs-super-dump command.

This is a rework of Adam's commit:
https://github.com/ceph/ceph/pull/62069/commits/c8e57c4e06691bef7718277267e7590ae695bd02

Signed-off-by: Igor Fedotov <igor.fedotov@croit.io>
(cherry picked from commit e9d3ea827568afb6063db2ed4fe222b455e5ddec)

2 months agoos/bluestore: use dev's block size as a minimal BlueFS allocation unit.
Igor Fedotov [Fri, 28 Feb 2025 09:40:33 +0000 (12:40 +0300)]
os/bluestore: use dev's block size as a minimal BlueFS allocation unit.

Additionall this locks tail of DB/WAL volumes which is unaligned to
configured (not minimal!!) BlueFS allocation unit.

Effectively replaces changes from
https://github.com/ceph/ceph/pull/57015

Fixes: https://tracker.ceph.com/issues/68772
Signed-off-by: Igor Fedotov <igor.fedotov@croit.io>
(cherry picked from commit effaa686f38b9eff2f7b9c8df2ffaf76c9a49aff)

2 months agoos/bluestore: do not substract 'reserved' from bluefs bdev sizes
Igor Fedotov [Fri, 28 Feb 2025 08:35:01 +0000 (11:35 +0300)]
os/bluestore: do not substract 'reserved' from bluefs bdev sizes

Signed-off-by: Igor Fedotov <igor.fedotov@croit.io>
(cherry picked from commit 33b43af750fa2c62bf153b87124ee947460dac64)

2 months agoos/bluestore: show allocator types in metadata dump
Igor Fedotov [Fri, 28 Feb 2025 07:54:57 +0000 (10:54 +0300)]
os/bluestore: show allocator types in metadata dump

Signed-off-by: Igor Fedotov <igor.fedotov@croit.io>
(cherry picked from commit 1aae3b66fa55f893f7ec002854bb699541635d53)

2 months agoMerge pull request #62839 from aclamk/aclamk-bluefs-remove-truncate-squid
Igor Fedotov [Tue, 29 Apr 2025 08:51:53 +0000 (11:51 +0300)]
Merge pull request #62839 from aclamk/aclamk-bluefs-remove-truncate-squid

squid: os/bluestore: Fix race in BlueFS truncate / remove

Reviewed-by: Igor Fedotov <igor.fedotov@croit.io>
2 months agoMerge pull request #62254 from ifed01/wip-ifed-bool-async-discard-back-squi
Igor Fedotov [Tue, 29 Apr 2025 08:49:06 +0000 (11:49 +0300)]
Merge pull request #62254 from ifed01/wip-ifed-bool-async-discard-back-squi

squid: blk/kernel: bring "bdev_async_discard" config parameter back.

Reviewed-by: Yite Gu <guyite@bytedance.com>
2 months agoMerge pull request #62968 from idryomov/wip-71026-squid
Yuri Weinstein [Mon, 28 Apr 2025 19:17:20 +0000 (12:17 -0700)]
Merge pull request #62968 from idryomov/wip-71026-squid

squid: librbd: disallow "rbd trash mv" if image is in a group

Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
2 months agoMerge pull request #62965 from idryomov/wip-70640-squid
Yuri Weinstein [Mon, 28 Apr 2025 19:16:18 +0000 (12:16 -0700)]
Merge pull request #62965 from idryomov/wip-70640-squid

squid: mgr/rbd_support: always parse interval and start_time in Schedules::remove()

Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
2 months agoMerge pull request #62963 from idryomov/wip-70632-squid
Yuri Weinstein [Mon, 28 Apr 2025 19:15:13 +0000 (12:15 -0700)]
Merge pull request #62963 from idryomov/wip-70632-squid

squid: librbd: respect rbd_default_snapshot_quiesce_mode in group_snap_create()

Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
2 months agoMerge pull request #62940 from nbalacha/wip-71047-squid
Yuri Weinstein [Mon, 28 Apr 2025 19:14:23 +0000 (12:14 -0700)]
Merge pull request #62940 from nbalacha/wip-71047-squid

squid: rbd: display mirror state creating

Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
2 months agoMerge pull request #62417 from ivancich/wip-70594-squid
Yuri Weinstein [Mon, 28 Apr 2025 18:41:54 +0000 (11:41 -0700)]
Merge pull request #62417 from ivancich/wip-70594-squid

squid: rgw: radoslist improvements primarily to better support gap list tool

Reviewed-by: Adam Emerson <aemerson@redhat.com>
2 months agoMerge pull request #62607 from cbodley/wip-70750-squid
Yuri Weinstein [Mon, 28 Apr 2025 18:35:35 +0000 (11:35 -0700)]
Merge pull request #62607 from cbodley/wip-70750-squid

squid: <rgw> Ensure the ETag format is consistent with AWS S3 API

Reviewed-by: Adam Emerson <aemerson@redhat.com>
2 months agoMerge pull request #62999 from zdover23/wip-doc-2025-04-28-backport-62979-to-squid
Anthony D'Atri [Mon, 28 Apr 2025 03:56:46 +0000 (23:56 -0400)]
Merge pull request #62999 from zdover23/wip-doc-2025-04-28-backport-62979-to-squid

squid: doc/radosgw: Improve formatting in layout.rst

2 months agodoc/radosgw: Improve formatting in layout.rst 62999/head
Anthony D'Atri [Fri, 25 Apr 2025 17:10:06 +0000 (13:10 -0400)]
doc/radosgw: Improve formatting in layout.rst

Signed-off-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
(cherry picked from commit a7dcc3cf24239a9728d9622e4a980894e7741e48)

2 months agoMerge pull request #62995 from ronen-fr/wip-rf-qa71099-squid
Ronen Friedman [Sun, 27 Apr 2025 15:29:29 +0000 (18:29 +0300)]
Merge pull request #62995 from ronen-fr/wip-rf-qa71099-squid

squid: osd/scrub: always round up reported scrub duration

Reviewed-by: Matan Breizman <mbreizma@redhat.com>
2 months agoMerge pull request #62956 from ronen-fr/wip-rf-62692-squid
Ronen Friedman [Sun, 27 Apr 2025 14:25:53 +0000 (17:25 +0300)]
Merge pull request #62956 from ronen-fr/wip-rf-62692-squid

squid: osd/scrub: additional configuration parameters to trigger scrub reschedule

Reviewed-by: Matan Breizman <mbreizma@redhat.com>
2 months agoMerge pull request #62974 from ronen-fr/wip-rf-24647e8-qatarget-squid
Ronen Friedman [Sun, 27 Apr 2025 14:09:10 +0000 (17:09 +0300)]
Merge pull request #62974 from ronen-fr/wip-rf-24647e8-qatarget-squid

squid: qa/standalone/scrub: fix osd-scrub-test.sh

Reviewed-by: Matan Breizman <mbreizma@redhat.com>
2 months agoosd/scrub: always round up reported scrub duration 62995/head
Ronen Friedman [Sat, 26 Apr 2025 08:33:59 +0000 (03:33 -0500)]
osd/scrub: always round up reported scrub duration

as expected by some tests, and clearer for the user.

Fixes: https://tracker.ceph.com/issues/71099
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
2 months agoqa/standalone/scrub: fix osd-scrub-test.sh 62974/head
Ronen Friedman [Wed, 26 Jun 2024 15:02:19 +0000 (10:02 -0500)]
qa/standalone/scrub: fix osd-scrub-test.sh

following changes in scrub code

(cherry picked from commit 24647e87e8fba9b16d81730662b22798ed1885cb)
Conflict resolved by:
- electing to keep the up-to-date order between 'set noscrub' and 'set ..chunk_max'
in 'step 2'

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
2 months agoMerge pull request #62989 from zdover23/wip-doc-2025-04-26-backport-62988-to-squid
Anthony D'Atri [Sat, 26 Apr 2025 14:25:15 +0000 (10:25 -0400)]
Merge pull request #62989 from zdover23/wip-doc-2025-04-26-backport-62988-to-squid

squid: doc/radosgw: Fix RST syntax rendeded as text in oidc.rst

2 months agodoc/radosgw: Fix RST syntax rendeded as text in oidc.rst 62989/head
Ville Ojamo [Sat, 26 Apr 2025 04:17:16 +0000 (11:17 +0700)]
doc/radosgw: Fix RST syntax rendeded as text in oidc.rst

Empty line after starting a pre-formatted block with the double-colon
syntax is required, otherwise the double-colon does nothing and is just
rendered as-is as "::" and there would be no following pre-formatted
block.

Add empty lines after the double-colon syntax so that the following
block is rendered pre-formatted.

Also add bash privileged prompts to a block with 2 example CLI commands.

Signed-off-by: Ville Ojamo <14869000+bluikko@users.noreply.github.com>
(cherry picked from commit b4fb5dc4030b4de477942630ebe3b98b882ae978)

2 months agorgw: add release note for newly-quoted ETag values 62607/head
Casey Bodley [Wed, 26 Mar 2025 16:22:07 +0000 (12:22 -0400)]
rgw: add release note for newly-quoted ETag values

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit b1c795847bd68331d657cf9fe2259ae79bbdec40)

2 months ago<rgw> Ensure the ETag format is consistent with AWS S3 API
liubingrun [Thu, 24 Oct 2024 14:23:09 +0000 (10:23 -0400)]
<rgw> Ensure the ETag format is consistent with AWS S3 API

AWS S3 API quotes ETAG everywhere. We still missed a few places.

checked with following cmd.
```
$ rg -i "dump.*\"ETag\"" ceph
./src/rgw/rgw_rest_s3.cc
1863:        s->formatter->dump_format("ETag", "\"%s\"", iter->meta.etag.c_str());
1955:      s->formatter->dump_format("ETag", "\"%s\"", iter->meta.etag.c_str());
2030:        s->formatter->dump_format("ETag", "\"%s\"", iter->meta.etag.c_str());
2099:      s->formatter->dump_format("ETag", "\"%s\"", iter->meta.etag.c_str());
2785:      s->formatter->dump_format("ETag", "\"%s\"", etag.c_str());
3422:    s->formatter->dump_string("ETag", etag);
3725:      s->formatter->dump_format("ETag", "\"%s\"",etag.c_str());
4228:    s->formatter->dump_string("ETag", etag);
4298:      s->formatter->dump_format("ETag", "\"%s\"", part->get_etag().c_str());

./src/rgw/rgw_rest.cc
421:    return dump_header(s, "etag", etag);
423:    return dump_header_quoted(s, "ETag", etag);

./src/rgw/driver/rados/rgw_sync_module_es_rest.cc
347:      s->formatter->dump_format("ETag", "\"%s\"", e.meta.etag.c_str());

./src/rgw/rgw_admin.cc
8612:        handled = dump_string("etag", bl, formatter.get());
```

Signed-off-by: liubingrun <liubr1@chinatelecom.cn>
(cherry picked from commit b8795299aacfa2aee5ec4a6fe117424e2ce97b88)

Conflicts:
src/rgw/rgw_rest_s3.cc no checksums in response

2 months agoMerge pull request #62748 from ivancich/wip-70825-squid
Yuri Weinstein [Fri, 25 Apr 2025 16:04:50 +0000 (09:04 -0700)]
Merge pull request #62748 from ivancich/wip-70825-squid

squid: rgw: add force option to radosgw-admin object rm ...

Reviewed-by: Adam Emerson <aemerson@redhat.com>
2 months agoMerge pull request #62741 from jzhu116-bloomberg/wip-70741-squid
Yuri Weinstein [Fri, 25 Apr 2025 16:04:13 +0000 (09:04 -0700)]
Merge pull request #62741 from jzhu116-bloomberg/wip-70741-squid

squid: rgw: cleanup orphaned bucket entry in <user>.buckets OMAP

Reviewed-by: Adam Emerson <aemerson@redhat.com>
2 months agoMerge pull request #62559 from cbodley/wip-70517-squid
Yuri Weinstein [Fri, 25 Apr 2025 16:00:13 +0000 (09:00 -0700)]
Merge pull request #62559 from cbodley/wip-70517-squid

squid: rgw: rgw_init_ioctx() adds set_pool_full_try()

Reviewed-by: Adam Emerson <aemerson@redhat.com>
2 months agoMerge pull request #62356 from cbodley/wip-70528-squid
Yuri Weinstein [Fri, 25 Apr 2025 15:58:36 +0000 (08:58 -0700)]
Merge pull request #62356 from cbodley/wip-70528-squid

squid: rgw: sync fairness watcher reconnects on any error

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
Reviewed-by: Oguzhan Ozmen <oozmen@bloomberg.net>
2 months agoMerge pull request #62034 from kchheda3/wip-70210-squid
Yuri Weinstein [Fri, 25 Apr 2025 15:56:38 +0000 (08:56 -0700)]
Merge pull request #62034 from kchheda3/wip-70210-squid

squid: rgw:lua: Skip the healthchecks and system requests from going to backend storage

Reviewed-by: Yuval Lifshitz <ylifshit@redhat.com>
2 months agoMerge pull request #62752 from idryomov/wip-70831-squid
Yuri Weinstein [Fri, 25 Apr 2025 15:34:30 +0000 (08:34 -0700)]
Merge pull request #62752 from idryomov/wip-70831-squid

squid: test/librbd/test_notify.py: force line-buffered output

Reviewed-by: Mykola Golub <mgolub@suse.com>
2 months agolibrbd: disallow "rbd trash mv" if image is in a group 62968/head
Ilya Dryomov [Wed, 16 Apr 2025 11:15:19 +0000 (13:15 +0200)]
librbd: disallow "rbd trash mv" if image is in a group

Removing an image that is a member of a group has always been
disallowed.  However, moving an image that is a member of a group to
trash is currently allowed and this is deceptive -- the only reason for
a user to move an image to trash should be the intent to remove it.

More importantly, group APIs operate in terms of image names -- there
are no corresponding variants that would operate in terms of image IDs.
For example, even though internally GroupImageSpec struct stores an
image ID, the public rbd_group_image_info_t struct insists on an image
name.  When rbd_group_image_list() encounters a trashed member image
(i.e. one that doesn't have a name), it just fails with ENOENT and no
listing gets produced at all until the offending image is restored from
trash.  Something like this can be very hard to debug for an average
user, so let's make rbd_trash_move() fail with EMLINK the same way as
rbd_remove() does in this scenario.

The one case where moving a member image to trash makes sense is live
migration where the source image gets trashed to be almost immediately
replaced by the destination image as part of preparing migration.

Fixes: https://tracker.ceph.com/issues/71026
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 2ae4a57e160f21201b9dfb4c8adb02f2826c7106)

Conflicts:
PendingReleaseNotes [ moved to >=19.2.2 section ]

2 months agopybind/rbd: add ImageMemberOfGroup exception
Ilya Dryomov [Mon, 21 Apr 2025 15:11:17 +0000 (17:11 +0200)]
pybind/rbd: add ImageMemberOfGroup exception

EMLINK is returned by rbd_remove() if the image is a member of a group.
Add a dedicated exception similar to ImageBusy or ImageHasSnapshots and
a test for it.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 61075e344c18e57b7416072f66c2e335d4d89d75)

Conflicts:
src/test/pybind/test_rbd.py [ commits 68eea0eb814e
  ("src/tools/rbd: add group info command to output group id")
  and e5ccce14c4b0 ("rbd: add group snap info command") not in
  squid ]

2 months agorbd: don't print "image will expire at" message when trash_move() fails
Ilya Dryomov [Mon, 21 Apr 2025 14:52:02 +0000 (16:52 +0200)]
rbd: don't print "image will expire at" message when trash_move() fails

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 1fd79d41a527ae0e0e4a66a18d67c4b180f66106)

2 months agomgr/rbd_support: always parse interval and start_time in Schedules::remove() 62965/head
Ilya Dryomov [Tue, 25 Mar 2025 08:13:27 +0000 (09:13 +0100)]
mgr/rbd_support: always parse interval and start_time in Schedules::remove()

Commit 1b62447071a9 ("mgr/rbd_support: fix schedule remove") addressed
the issue that it was concerned with in a rather suboptimal way: instead
of moving the parsing of interval and start_time upfront to be able to
bail early, it wrapped from_string() constructors with try/finally and
left the conditional behavior in place.

Fixes: https://tracker.ceph.com/issues/70640
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit bcd676356231c97c8275e6c03becc2c58497f20d)

2 months agolibrbd: don't use public API flags in Group::snap_create() 62963/head
Ilya Dryomov [Fri, 21 Mar 2025 13:49:44 +0000 (14:49 +0100)]
librbd: don't use public API flags in Group::snap_create()

Use internal flags obtained from snap_create_flags_api_to_internal()
instead -- internal_flags variable was assigned but not used.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit f33bb0802e45966e794ec60454578df80dac41f6)

2 months agolibrbd: respect rbd_default_snapshot_quiesce_mode in group_snap_create()
Ilya Dryomov [Fri, 21 Mar 2025 13:43:50 +0000 (14:43 +0100)]
librbd: respect rbd_default_snapshot_quiesce_mode in group_snap_create()

Make group_snap_create() behave the same as snap_create() and
mirror_image_create_snapshot(): APIs that don't take RBD_SNAP_CREATE_
flags explicitly should respect rbd_default_snapshot_quiesce_mode
option.

Fixes: https://tracker.ceph.com/issues/70632
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit b91ab48ccc621431b5327d0806137152e8fbb092)

2 months agoMerge pull request #62337 from yuvalif/wip-67309-squid
Yuri Weinstein [Thu, 24 Apr 2025 20:51:28 +0000 (13:51 -0700)]
Merge pull request #62337 from yuvalif/wip-67309-squid

squid: rgw/async/notifications: use common async waiter in pubsub push

Reviewed-by: Adam Emerson <aemerson@redhat.com>
2 months agoMerge pull request #61546 from aiivashchenko/wip-69588-squid
Yuri Weinstein [Thu, 24 Apr 2025 17:15:30 +0000 (10:15 -0700)]
Merge pull request #61546 from aiivashchenko/wip-69588-squid

squid: rgw: add missing last_modified field to swift API

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
Reviewed-by: Tobias Urdin <tobias.urdin@binero.com>
2 months agoMerge pull request #61995 from cbodley/wip-70170-squid
Yuri Weinstein [Thu, 24 Apr 2025 16:16:39 +0000 (09:16 -0700)]
Merge pull request #61995 from cbodley/wip-70170-squid

squid: rgw: fix to correctly store updated attrs in backend store after erasing an attr/attrs for delete ops on a bucket.

Reviewed-by: Adam Emerson <aemerson@redhat.com>
2 months agoMerge pull request #61532 from soumyakoduri/wip-skoduri-squid
Yuri Weinstein [Thu, 24 Apr 2025 16:15:16 +0000 (09:15 -0700)]
Merge pull request #61532 from soumyakoduri/wip-skoduri-squid

squid: rgw: Fix a bug in LCOpAction_Transition::check()

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
2 months agoosd/scrub: additional configuration params to trigger scrub reschedule 62956/head
Ronen Friedman [Sun, 6 Apr 2025 12:31:48 +0000 (07:31 -0500)]
osd/scrub: additional configuration params to trigger scrub reschedule

Adding the following parameters to the (small) set of configuration
options that, if changed, trigger re-computation of the next scrub
schedule:
- osd_scrub_interval_randomize_ratio,
(not cherry-picked) - osd_deep_scrub_interval_cv, and
- osd_deep_scrub_interval (which was missing in the list of
  parameters watched by the OSD).

Fixes: https://tracker.ceph.com/issues/70909
Original tracker: https://tracker.ceph.com/issues/70806
(cherry picked from commit d56f613d5a69797e727938f04b66aed747cfb6b1)
Conflicts resolved by removing refs to the deep_scrub_interval_cv
parameter, which does not yet exist in this version.
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
2 months agoMerge pull request #61782 from cbodley/wip-69933-squid
Yuri Weinstein [Thu, 24 Apr 2025 14:57:00 +0000 (07:57 -0700)]
Merge pull request #61782 from cbodley/wip-69933-squid

squid: rgw: allow management of `accounts` user caps

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
2 months agoMerge pull request #61242 from kchheda3/wip-69410-squid
Yuri Weinstein [Thu, 24 Apr 2025 14:54:54 +0000 (07:54 -0700)]
Merge pull request #61242 from kchheda3/wip-69410-squid

squid: rgw/notification: Forward Topic & Notification creation request to master when notification_v2 enabled

Reviewed-by: Yuval Lifshitz <ylifshit@redhat.com>
2 months agoMerge pull request #61161 from ivancich/wip-69136-squid
Yuri Weinstein [Thu, 24 Apr 2025 14:53:43 +0000 (07:53 -0700)]
Merge pull request #61161 from ivancich/wip-69136-squid

squid: rgw: relax RGWPutACLs_ObjStore::get_params read data log

Reviewed-by: Adam Emerson <aemerson@redhat.com>
2 months agoMerge pull request #61840 from vshankar/wip-69683
Yuri Weinstein [Thu, 24 Apr 2025 14:28:43 +0000 (07:28 -0700)]
Merge pull request #61840 from vshankar/wip-69683

squid: mds: prevent duplicate wrlock acquisition for a single request

Reviewed-by: Venky Shankar <vshankar@redhat.com>
2 months agorbd: display correct mirror state when creating 62940/head
N Balachandran [Mon, 21 Apr 2025 11:34:08 +0000 (17:04 +0530)]
rbd: display correct mirror state when creating

The mirror image state is set to MIRROR_IMAGE_STATE_CREATING
when the image is first created on the secondary, but was displayed
as "unknown" by the rbd info command. This has been fixed.

Fixes: https://tracker.ceph.com/issues/70963
Signed-off-by: N Balachandran <nithya.balachandran@ibm.com>
(cherry picked from commit f2e35646721ed3076e3da54124f8d783c456b2dc)

2 months agoMerge pull request #62531 from aaSharma14/wip-70686-squid
afreen23 [Tue, 22 Apr 2025 16:07:45 +0000 (21:37 +0530)]
Merge pull request #62531 from aaSharma14/wip-70686-squid

squid: mgr/dashboard: fix image filter's query on rbd-details grafana panel

Reviewed-by: Afreen Misbah <afreen@ibm.com>
2 months agocommon: missing std include with GCC 14 62337/head
Yuval Lifshitz [Tue, 1 Oct 2024 15:19:46 +0000 (15:19 +0000)]
common: missing std include with GCC 14

In file included from src/rgw/driver/posix/bucket_cache.h:19,
                 from src/test/rgw/test_posix_bucket_cache.cc:4:
src/common/cohort_lru.h: In member function _void cohort::lru::TreeX<T, TTree, CLT, CEQ, K, LK>::lock()_:
src/common/cohort_lru.h:334:14: error: _for_each_ is not a member of _std_
  334 |         std::for_each(locks.begin(), locks.end(),
      |              ^~~~~~~~
src/common/cohort_lru.h: In member function _void cohort::lru::TreeX<T, TTree, CLT, CEQ, K, LK>::unlock()_:
/home/yuvalif/ceph5/src/common/cohort_lru.h:339:14: error: _for_each_ is not a member of _std_
  339 |         std::for_each(locks.begin(), locks.end(),
      |              ^~~~~~~~

Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
2 months agorgw/async/notifications: use common async waiter in pubsub push
Yuval Lifshitz [Tue, 23 Jul 2024 17:41:50 +0000 (17:41 +0000)]
rgw/async/notifications: use common async waiter in pubsub push

* use the "yield_waiter" and "waiter" from common/async insteasd of the "waiter"
  implemented inside the bucket notification code (this is so we don't
  need separate investigations for 2 implementations)
* added a unit test that simulate how a separate thread (kafka or amqp) is
resuming a coroutine which is created by either the frontend or the
notification manager.

before using "defer" the unit test is passing, however,
when executed under thread sanitizer (using the WITH_TSAN cmake flag)
the following errors are observed: https://0x0.st/Xp4P.txt
after using "defer" the unit test passes under TSAN without errors.

Fixes: https://tracker.ceph.com/issues/64184
Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
(cherry picked from commit 2872c75f184c9e715219dfa9ad44f5b6cfe4e1fe)

2 months agocommon/async: add yield_waiter template
Casey Bodley [Tue, 30 Apr 2024 16:04:15 +0000 (12:04 -0400)]
common/async: add yield_waiter template

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit dd779c74e1eebaf888d95b2329c7d5ead176f0a9)

2 months agoMerge pull request #62386 from pritha-srivastava/wip-70535-squid
Casey Bodley [Tue, 22 Apr 2025 13:42:14 +0000 (09:42 -0400)]
Merge pull request #62386 from pritha-srivastava/wip-70535-squid

squid: rgw/sts: replacing load_stats with list_buckets

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2 months agoMerge pull request #61062 from k0ste/wip-69218-squid
Yuri Weinstein [Mon, 21 Apr 2025 21:14:02 +0000 (14:14 -0700)]
Merge pull request #61062 from k0ste/wip-69218-squid

squid: rgw: Delete stale entries in bucket indexes while deleting obj

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
2 months agoMerge pull request #62586 from cbodley/wip-70738-squid
Yuri Weinstein [Mon, 21 Apr 2025 21:11:02 +0000 (14:11 -0700)]
Merge pull request #62586 from cbodley/wip-70738-squid

squid: rgw: fixing tempest ObjectTestACLs and ObjectACLsNegativeTest cases

Reviewed-by: Adam Emerson <aemerson@redhat.com>
2 months agoMerge pull request #62590 from cbodley/wip-70739-squid
Yuri Weinstein [Mon, 21 Apr 2025 14:24:35 +0000 (07:24 -0700)]
Merge pull request #62590 from cbodley/wip-70739-squid

squid: cls/rgw: non-versioned listings skip past version suffix

Reviewed-by: Adam Emerson <aemerson@redhat.com>
2 months agoMerge pull request #62365 from cbodley/wip-70538-squid
Yuri Weinstein [Mon, 21 Apr 2025 14:22:15 +0000 (07:22 -0700)]
Merge pull request #62365 from cbodley/wip-70538-squid

squid: qa/rgw: fix user cleanup in s3tests task

Reviewed-by: Adam Emerson <aemerson@redhat.com>
2 months agoMerge pull request #62623 from rhcs-dashboard/wip-70762-squid
afreen23 [Mon, 21 Apr 2025 08:52:57 +0000 (14:22 +0530)]
Merge pull request #62623 from rhcs-dashboard/wip-70762-squid

squid: mgr/dashboard: enable ha by default on subsystem POST API

Reviewed-by: Naman Munet <nmunet@redhat.com>
2 months agoMerge pull request #62495 from kchheda3/wip-66805-squid
Yuri Weinstein [Fri, 18 Apr 2025 21:05:43 +0000 (14:05 -0700)]
Merge pull request #62495 from kchheda3/wip-66805-squid

squid: rgw/notification: For kafka include user-id & password as part of the key along with endpoint for connection pooling.

Reviewed-by: Adam Emerson <aemerson@redhat.com>
2 months agoMerge pull request #62881 from cbodley/wip-doc-rgw-user-admin-system-squid
Casey Bodley [Fri, 18 Apr 2025 18:27:09 +0000 (14:27 -0400)]
Merge pull request #62881 from cbodley/wip-doc-rgw-user-admin-system-squid

squid: doc/rgw: document Admin and System Users

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
2 months agodoc/rgw: document Admin and System Users 62881/head
Casey Bodley [Thu, 17 Apr 2025 21:52:27 +0000 (17:52 -0400)]
doc/rgw: document Admin and System Users

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit dc93b888f16793b00390b32d6814f9243b6808e2)

2 months agodoc/rgw: Admin Capabilities section links to Admin Ops API
Casey Bodley [Thu, 17 Apr 2025 21:51:46 +0000 (17:51 -0400)]
doc/rgw: Admin Capabilities section links to Admin Ops API

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit cdc04b87842e02f81add403c8843b77e56cb3ef4)

3 months agoMerge pull request #62874 from zdover23/wip-doc-2025-04-18-backport-62300-to-squid
Anthony D'Atri [Fri, 18 Apr 2025 03:12:17 +0000 (23:12 -0400)]
Merge pull request #62874 from zdover23/wip-doc-2025-04-18-backport-62300-to-squid

squid: doc/cephfs: link section for pausing async threads in section for...

3 months agodoc/cephfs: link section for pausing async threads in section for... 62874/head
Rishabh Dave [Fri, 14 Mar 2025 12:39:56 +0000 (18:09 +0530)]
doc/cephfs: link section for pausing async threads in section for...

disabling volumes plugin part.

Fixes: https://tracker.ceph.com/issues/70479
Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 36cfbfb0eacbfbd459558d1bdff699daf8fae575)

3 months agorgw: metadata and data sync fairness notifications to retry upon any error case 62356/head
Oguzhan Ozmen [Fri, 11 Apr 2025 21:45:19 +0000 (21:45 +0000)]
rgw: metadata and data sync fairness notifications to retry upon any error case

This is a complementary fix to the earlier one described at #62156.
When the sync shard notification fails due to any failures including timeout,
this change keeps the loop going for both metadata and data sync.

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

Signed-off-by: Oguzhan Ozmen <oozmen@bloomberg.net>
(cherry picked from commit 766b7a14315ae7ca9645b462ee774570caeff64c)

3 months agoMerge pull request #60978 from cbodley/wip-69148-squid
Casey Bodley [Thu, 17 Apr 2025 15:47:59 +0000 (11:47 -0400)]
Merge pull request #60978 from cbodley/wip-69148-squid

squid: test/rgw/multisite: add meta checkpoint after bucket creation

Reviewed-by: Adam Emerson <aemerson@redhat.com>
3 months agoMerge pull request #62856 from zdover23/wip-doc-2025-04-17-backport-62763-to-squid
Anthony D'Atri [Thu, 17 Apr 2025 03:45:21 +0000 (23:45 -0400)]
Merge pull request #62856 from zdover23/wip-doc-2025-04-17-backport-62763-to-squid

squid: doc/radosgw: Promptify CLI, cosmetic fixes

3 months agodoc/radosgw: Promptify CLI, cosmetic fixes 62856/head
Ville Ojamo [Thu, 10 Apr 2025 10:34:57 +0000 (17:34 +0700)]
doc/radosgw: Promptify CLI, cosmetic fixes

Use the more modern prompt block for CLI commands
and use right one $ vs #.
Fix indentation on JSON example outputs and
some CLI command switches.
Add some arguably missing comma in JSON example output.
Add a full stop at the end of a one-sentence paragraph.
Remove extra comma mid-sentence in another.
Fix missing backslashes or typo at end of multiline commands.
Lines under section headings as long as heading text.
Fix hyperlinks. Fix list items prefixed with - insted of *.
Format configuration syntax in the middle of text as code.
Fix typo "PI" to "API" and remove extra space.
Remove colons at the end of section headers in a few places.
Use Title Case in section titles consistently with short words lowercase.
Possibly controversial: don't add whitespace before and
after main title section header text.
Possibly controversial: don't indent line continuation
backslashes, leave only 1 space before them.

Signed-off-by: Ville Ojamo <14869000+bluikko@users.noreply.github.com>
(cherry picked from commit 7fdaa94181c6fca7d4db0b6f4ee6646528121d43)

3 months agoMerge pull request #58285 from pponnuvel/wip-66701-squid
Kamoltat (Junior) Sirivadhna [Wed, 16 Apr 2025 19:34:38 +0000 (15:34 -0400)]
Merge pull request #58285 from pponnuvel/wip-66701-squid

squid: mgr/nfs: Don't crash ceph-mgr if NFS clusters are unavailable.
Reviewed-by: Kamoltat Sirivadhna <ksirivad@redhat.com>
3 months agoos/bluestore/bluefs: Fix race condition between truncate() and unlink() 62839/head
Adam Kupczyk [Tue, 1 Apr 2025 14:01:23 +0000 (14:01 +0000)]
os/bluestore/bluefs: Fix race condition between truncate() and unlink()

It was possible for unlink() to interrupt ongoing truncate().
As the result, unlink() finishes properly, but truncate() is not aware
of it and does:
1) updates file that is already removed
2) releases same allocations again

Now fixed by checking if file is deleted under FILE lock.

https://tracker.ceph.com/issues/70856

Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
(cherry picked from commit e5f8892a1249a0ce631082d1fbf8884237434a0f)

3 months agotest/store_test: Expose race in BlueFS truncate / remove
Adam Kupczyk [Mon, 31 Mar 2025 20:49:26 +0000 (20:49 +0000)]
test/store_test: Expose race in BlueFS truncate / remove

Created test that exposes race between BlueFS::truncate and BlueFS::unlink.
Test requires injection of 1ms sleep to BlueFS::truncate.
Therefore, in this form, it is unsuitable for merge.

Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
(cherry picked from commit d7f0b6a23d6e9d6bd5c760bbf94b509d50e80f7e)

3 months agoos/bluestore: New unit test for BlueFS
Adam Kupczyk [Wed, 16 Apr 2025 06:36:15 +0000 (06:36 +0000)]
os/bluestore: New unit test for BlueFS

This cherry-pick only 'tracepoint' feature.

Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
(parial cherry picked from commit a090f14fc7341a76bbbb35b3dab1b65c2e1c9041)

3 months agoMerge pull request #62834 from zdover23/wip-doc-2025-04-16-backport-62795-to-squid
Anthony D'Atri [Tue, 15 Apr 2025 20:02:11 +0000 (16:02 -0400)]
Merge pull request #62834 from zdover23/wip-doc-2025-04-16-backport-62795-to-squid

squid: doc/radosgw/cloud-transition: fix details

3 months agodoc/radosgw/cloud-transition: fix details 62834/head
Laimis Juzeliūnas [Sun, 13 Apr 2025 20:14:55 +0000 (23:14 +0300)]
doc/radosgw/cloud-transition: fix details

Fix documentation on Ceph cloud storage transitions - broken link urls, returning back reStructuredText and some other details.

Signed-off-by: Laimis Juzeliunas <laimis.juzeliunas@oxylabs.io>
Co-authored-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
(cherry picked from commit c47b559547326f837dde9dfed9eef526e275fa8e)

3 months agoMerge pull request #62202 from ifed01/wip-ifed-fix-expand-squi
Igor Fedotov [Tue, 15 Apr 2025 13:38:34 +0000 (16:38 +0300)]
Merge pull request #62202 from ifed01/wip-ifed-fix-expand-squi

squid: os/bluestore: fix bdev expansion and more

Reviewed-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
Reviewed-by: Adam Kupczyk <akupczyk@ibm.com>
3 months agotool/ceph-bluestore-tool: Make bluefs-bdev-expand command output nicer. 62202/head
Igor Fedotov [Tue, 18 Feb 2025 17:20:53 +0000 (20:20 +0300)]
tool/ceph-bluestore-tool: Make bluefs-bdev-expand command output nicer.

Here is a sample output:

inferring bluefs devices from bluestore path
0 : device size 0x4049c000(1.0 GiB) : using 0x1801000(24 MiB)
1 : device size 0x140000000(5 GiB) : using 0x1502000(21 MiB)
2 : device size 0x8c0000000(35 GiB) : using 0x40014000(1.0 GiB)
Expanding DB/WAL...
0 : nothing to do, skipped
1 : Expanding to 0x140000000(5 GiB)
1 : size updated to 0x140000000(5 GiB)
2 : Expanding to 0x8c0000000(35 GiB)
2 : size updated to 0x8c0000000(35 GiB)

Fixes: https://tracker.ceph.com/issues/67966
Signed-off-by: Igor Fedotov <igor.fedotov@croit.io>
(cherry picked from commit ac7789139e3d4ba3bfd69ddcd4fe504c35b42bc3)