]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
17 months agomsg: update MOSDOp() to use ceph_tid_t instead of long 55424/head
Lucian Petrut [Thu, 1 Feb 2024 14:40:03 +0000 (14:40 +0000)]
msg: update MOSDOp() to use ceph_tid_t instead of long

The MOSDOp constructor receives the the transaction ID as a long
instead of ceph_tid_t.

The issue is that "long" uses 32b on Windows instead of 64 bits,
so it flips after about 2 billion requests. At that point, the OSD
replies are dropped because of transaction ID mismatches.

We'll solve the issue by using the correct type for the transaction
id, specifically ceph_tid_t.

Fixes: https://tracker.ceph.com/issues/64291
Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
(cherry picked from commit 0bab1e6b690ec4a12e8dc27229c435d64ca0d0be)

17 months agoMerge pull request #55375 from rkachach/fix_issue_64176
Redouane Kachach [Fri, 2 Feb 2024 10:20:31 +0000 (11:20 +0100)]
Merge pull request #55375 from rkachach/fix_issue_64176

reef backport: rook e2e testing related PRs

17 months agomgr/rook: adding deployment to ceph image built for rook e2e testing 55375/head
Redouane Kachach [Thu, 1 Feb 2024 11:38:46 +0000 (12:38 +0100)]
mgr/rook: adding deployment to ceph image built for rook e2e testing
Fixes: https://tracker.ceph.com/issues/64286
using reef image as base

Signed-off-by: Redouane Kachach <rkachach@redhat.com>
17 months agoMerge pull request #55361 from rhcs-dashboard/wip-63426-reef
Nizamudeen A [Fri, 2 Feb 2024 05:43:18 +0000 (11:13 +0530)]
Merge pull request #55361 from rhcs-dashboard/wip-63426-reef

reef: mgr/dashboard: get object bucket policies for a bucket

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
17 months agoMerge pull request #54951 from idryomov/wip-53897-reef
Yuri Weinstein [Thu, 1 Feb 2024 21:57:26 +0000 (13:57 -0800)]
Merge pull request #54951 from idryomov/wip-53897-reef

reef: librbd: don't report HOLE_UPDATED when diffing against a hole

Reviewed-by: Mykola Golub <mgolub@suse.com>
17 months agobackport mgr/rook: adding metrics monitoring e2e testing
Redouane Kachach [Thu, 1 Feb 2024 09:43:17 +0000 (10:43 +0100)]
backport mgr/rook: adding metrics monitoring e2e testing
Fixes: https://tracker.ceph.com/issues/64247
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
17 months agobackport mgr/rook: adding some basic rook e2e testing
Redouane Kachach [Thu, 1 Feb 2024 09:41:17 +0000 (10:41 +0100)]
backport mgr/rook: adding some basic rook e2e testing
Fixes: https://tracker.ceph.com/issues/64176
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
17 months agobacport mgr/rook: always recreate kvm default network + fix groups refresh
Redouane Kachach [Thu, 1 Feb 2024 09:39:36 +0000 (10:39 +0100)]
bacport mgr/rook: always recreate kvm default network + fix groups refresh
Fixes: https://tracker.ceph.com/issues/64079
This change also includes:
- adding ~/.local/bin to path so behave binary can be found
- adding requirements.txt file for testing dependencies
- increasing timeout used to wait for tools deployment to 90s
- increasing timeout used to wait for kvm network to 20s

Signed-off-by: Redouane Kachach <rkachach@redhat.com>
17 months agoMerge pull request #55316 from ajarr/wip-64181-reef
Yuri Weinstein [Thu, 1 Feb 2024 00:59:32 +0000 (16:59 -0800)]
Merge pull request #55316 from ajarr/wip-64181-reef

reef: rbd-nbd: fix resize of images mapped using netlink

Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
17 months agoMerge pull request #55173 from ronen-fr/wip-64019-reef
Yuri Weinstein [Thu, 1 Feb 2024 00:58:18 +0000 (16:58 -0800)]
Merge pull request #55173 from ronen-fr/wip-64019-reef

reef: osd/scrub: increasing max_osd_scrubs to 3

Reviewed-by: Sridhar Seshasayee <sseshasa@redhat.com>
17 months agoMerge pull request #55399 from zdover23/wip-doc-2024-01-31-backport-55396-to-reef
Anthony D'Atri [Wed, 31 Jan 2024 14:53:49 +0000 (09:53 -0500)]
Merge pull request #55399 from zdover23/wip-doc-2024-01-31-backport-55396-to-reef

reef: doc/architecture: improve some paragraphs

17 months agodoc/architecture: improve some paragraphs 55399/head
Zac Dover [Tue, 30 Jan 2024 09:51:53 +0000 (19:51 +1000)]
doc/architecture: improve some paragraphs

Improve paragraphs under the heading "The Ceph Storage Cluster". Remove
a sentence that was pleonastic in its context in the paragraph.

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

17 months agoMerge pull request #55384 from zdover23/wip-doc-2024-01-31-backport-55372-to-reef
zdover23 [Wed, 31 Jan 2024 01:19:11 +0000 (11:19 +1000)]
Merge pull request #55384 from zdover23/wip-doc-2024-01-31-backport-55372-to-reef

reef: doc/architecture.rst - fix typo

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
17 months agodoc/architecture.rst - fix typo 55384/head
Zac Dover [Tue, 30 Jan 2024 12:24:11 +0000 (22:24 +1000)]
doc/architecture.rst - fix typo

s/requies/requires

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

17 months agoMerge pull request #55335 from guits/wip-64197-reef
Guillaume Abrioux [Tue, 30 Jan 2024 22:27:10 +0000 (23:27 +0100)]
Merge pull request #55335 from guits/wip-64197-reef

reef: ceph-volume: use 'no workqueue' options with dmcrypt

17 months agoMerge pull request #55040 from sseshasa/wip-63910-reef
Yuri Weinstein [Tue, 30 Jan 2024 16:12:40 +0000 (08:12 -0800)]
Merge pull request #55040 from sseshasa/wip-63910-reef

reef: osd: Tune snap trim item cost to reflect a PGs' average object size for mClock scheduler

Reviewed-by: Laura Flores <lflores@redhat.com>
17 months agoMerge pull request #55311 from afreen23/wip-64178-reef
Nizamudeen A [Tue, 30 Jan 2024 11:35:28 +0000 (17:05 +0530)]
Merge pull request #55311 from afreen23/wip-64178-reef

reef: mgr/dashboard: Fix inconsistency in capitalisation of "Multi-site"

Reviewed-by: Nizamudeen A <nia@redhat.com>
17 months agoMerge pull request #55362 from ljflores/wip-64234-reef
Nizamudeen A [Tue, 30 Jan 2024 04:08:15 +0000 (09:38 +0530)]
Merge pull request #55362 from ljflores/wip-64234-reef

reef: mgr: pin pytest to version 7.4.4

Reviewed-by: Nizamudeen A <nia@redhat.com>
17 months agomgr: pin pytest to version 7.4.4 55362/head
Laura Flores [Mon, 29 Jan 2024 00:58:25 +0000 (00:58 +0000)]
mgr: pin pytest to version 7.4.4

On 2024-01-27, pytest updated to 8.0.0,
which broke run-tox-mgr.

https://docs.pytest.org/en/stable/changelog.html

==================================== ERRORS ====================================
_____________________ ERROR collecting alerts/__init__.py ______________________
alerts/__init__.py:2: in <module>
    from .module import Alerts
alerts/module.py:6: in <module>
    from mgr_module import CLIReadCommand, HandleCommandResult, MgrModule, Option
mgr_module.py:1: in <module>
    import ceph_module  # noqa
E   ModuleNotFoundError: No module named 'ceph_module'
______________________ ERROR collecting alerts/module.py _______________________
alerts/module.py:6: in <module>
    from mgr_module import CLIReadCommand, HandleCommandResult, MgrModule, Option
mgr_module.py:1: in <module>
    import ceph_module  # noqa
E   ModuleNotFoundError: No module named 'ceph_module'
____________________ ERROR collecting balancer/__init__.py _____________________
balancer/__init__.py:2: in <module>
    from .module import Module
balancer/module.py:12: in <module>
    from mgr_module import CLIReadCommand, CLICommand, CommandResult, MgrModule, Option, OSDMap, CephReleases
mgr_module.py:1: in <module>
    import ceph_module  # noqa
E   ModuleNotFoundError: No module named 'ceph_module'
_____________________ ERROR collecting balancer/module.py ______________________
balancer/module.py:12: in <module>
    from mgr_module import CLIReadCommand, CLICommand, CommandResult, MgrModule, Option, OSDMap, CephReleases
mgr_module.py:1: in <module>
    import ceph_module  # noqa
E   ModuleNotFoundError: No module named 'ceph_module'

Fixes: https://tracker.ceph.com/issues/64200
Signed-off-by: Laura Flores <lflores@ibm.com>
(cherry picked from commit 5554e565ca7ca9c9d6bc70e245be63d947722eda)

17 months agoMerge pull request #55167 from kamoltat/wip-ksirivad-backport-reef-52380
Yuri Weinstein [Mon, 29 Jan 2024 19:29:53 +0000 (11:29 -0800)]
Merge pull request #55167 from kamoltat/wip-ksirivad-backport-reef-52380

reef: mon/ConnectionTracker.cc: disregard connection scores from mon_rank = -1

Reviewed-by: Laura Flores <lflores@redhat.com>
17 months agomgr/dashboard: get object bucket policies for a bucket 55361/head
Nizamudeen A [Tue, 17 Oct 2023 04:34:33 +0000 (10:04 +0530)]
mgr/dashboard: get object bucket policies for a bucket

Getting the bucket details will also fetch the bucket policy if its set.

Fixes: https://tracker.ceph.com/issues/63221
Signed-off-by: Nizamudeen A <nia@redhat.com>
(cherry picked from commit 40f053aee0d3504d34545101a546b3eaf64f50d1)

17 months agoMerge pull request #53972 from Matan-B/wip-63180-reef
Yuri Weinstein [Mon, 29 Jan 2024 15:37:11 +0000 (07:37 -0800)]
Merge pull request #53972 from Matan-B/wip-63180-reef

reef: osd/OSD: introduce reset_purged_snaps_last

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
17 months agoMerge pull request #55343 from zdover23/wip-doc-2024-01-29-backport-55341-to-reef
Anthony D'Atri [Mon, 29 Jan 2024 03:56:11 +0000 (22:56 -0500)]
Merge pull request #55343 from zdover23/wip-doc-2024-01-29-backport-55341-to-reef

reef: doc/architecture.rst: improve rados definition

17 months agodoc/architecture.rst: improve rados definition 55343/head
Zac Dover [Sun, 28 Jan 2024 19:33:58 +0000 (05:33 +1000)]
doc/architecture.rst: improve rados definition

Improve the definition of RADOS, and link to information about RADOS.

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

17 months agoMerge pull request #55338 from zdover23/wip-doc-2024-01-28-backport-55333-to-reef
Anthony D'Atri [Sun, 28 Jan 2024 16:04:17 +0000 (11:04 -0500)]
Merge pull request #55338 from zdover23/wip-doc-2024-01-28-backport-55333-to-reef

reef: doc/radosgw: fix verb disagreement - index.html

17 months agodoc/radosgw: fix verb disagreement - index.html 55338/head
Zac Dover [Sat, 27 Jan 2024 08:40:20 +0000 (18:40 +1000)]
doc/radosgw: fix verb disagreement - index.html

Fix a tricky verb disagreement and rewrite a few sentences for what I
hope is greater clarity.

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit 9f271093f4331381dc024cb4309f9f486d366818)

17 months agoceph-volume: fix partitions support in disk.get_devices() 55335/head
Guillaume Abrioux [Fri, 26 Jan 2024 20:35:18 +0000 (21:35 +0100)]
ceph-volume: fix partitions support in disk.get_devices()

The following:
```
is_part = get_file_contents(os.path.join(_sys_dev_block_path, item, 'partition')) == "1"
```
assumes any `/sys/dev/block/x:y/partition` contains '1' which is wrong.
This file actually contains the corresponding partition number.

Fixes: https://tracker.ceph.com/issues/64195
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit f72100bbd17539d9774ae72215afefee16f20775)

17 months agoceph-volume: use 'no workqueue' options with dmcrypt
Guillaume Abrioux [Wed, 8 Nov 2023 16:43:46 +0000 (16:43 +0000)]
ceph-volume: use 'no workqueue' options with dmcrypt

CloudFlare engineers made some testing and realized that using
workqueues with encryption on flash devices has a bad effect.

See [1] for details.

With this patch it will make ceph-volume call crypsetup with
`--perf-no_read_workqueue` and `--perf-no_write_workqueue` options
when the device is not a rotational.

[1] https://blog.cloudflare.com/speeding-up-linux-disk-encryption/

Fixes: https://tracker.ceph.com/issues/64195
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
Co-Authored-by: Stefan Kooman <stefan@kooman.org>
(cherry picked from commit 0985e201342fa53c014a811156aed661b4b8f994)

17 months agoceph-volume: fix util.get_partitions
Guillaume Abrioux [Tue, 3 Oct 2023 23:11:32 +0000 (01:11 +0200)]
ceph-volume: fix util.get_partitions

The current logic makes it report only the first
partitions of devices.

Fixes: https://tracker.ceph.com/issues/63086
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit b14ff07e6344d9f097259265d468f6300818b053)

17 months agoMerge pull request #55321 from zdover23/wip-doc-2024-01-26-backport-55307-to-reef
Anthony D'Atri [Fri, 26 Jan 2024 03:43:47 +0000 (22:43 -0500)]
Merge pull request #55321 from zdover23/wip-doc-2024-01-26-backport-55307-to-reef

reef: doc/radosgw: edit "Usage" admin.rst

17 months agodoc/radosgw: edit "Usage" admin.rst 55321/head
Zac Dover [Wed, 24 Jan 2024 19:13:00 +0000 (05:13 +1000)]
doc/radosgw: edit "Usage" admin.rst

Edit "Usage" in doc/radosgw/admin.rst.

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit d8df6f61e817a34c2c3282224cff117ae43e3f98)

17 months agorbd-nbd: log errors during netlink_resize() using derr 55316/head
Ramana Raja [Tue, 23 Jan 2024 21:07:04 +0000 (16:07 -0500)]
rbd-nbd: log errors during netlink_resize() using derr

When using rbd CLI to map the images to NBD devices via netlink,
any errors that arose during image resizing in netlink_resize()
were not logged. Switching the error logging from using cerr to
derr helps log the errors from netlink_resize().

Signed-off-by: Ramana Raja <rraja@redhat.com>
(cherry picked from commit 1712b95c784c5ce381fbf4b09e8219ea40bd99a8)

17 months agorbd_nbd: fix resize of images mapped using netlink
Ramana Raja [Mon, 22 Jan 2024 22:06:58 +0000 (17:06 -0500)]
rbd_nbd: fix resize of images mapped using netlink

Include device identifier or cookie in the message sent to the kernel
to resize images mapped to NBD devices using netlink. Otherwise,
netlink_resize() fails and the size of the device isn't updated.

Fixes: https://tracker.ceph.com/issues/64139
Signed-off-by: Ramana Raja <rraja@redhat.com>
(cherry picked from commit 1eebb7ba7903c6db0ab37a0457b263a1b2b00ff5)

17 months agomgr/dashboard: Fix inconsistency in capitalisation of "Multi-site" 55311/head
Afreen [Tue, 23 Jan 2024 02:34:32 +0000 (08:04 +0530)]
mgr/dashboard: Fix inconsistency in capitalisation of "Multi-site"

fixes https://tracker.ceph.com/issues/64125

Across the dashboard, two instances are present: Multi-site and
Multi-Site.
Making it consistent all over by using Multi-site.

Signed-off-by: Afreen <afreen23.git@gmail.com>
(cherry picked from commit aeb8afe1d5a958cfd9343bbe941df2e1451019f4)

17 months agoMerge pull request #54629 from guits/wip-63599-reef
Guillaume Abrioux [Wed, 24 Jan 2024 15:28:41 +0000 (16:28 +0100)]
Merge pull request #54629 from guits/wip-63599-reef

reef: ceph-volume: fixes fallback to stat in is_device and is_partition

17 months agoMerge pull request #54705 from k0ste/wip-63312-reef
Guillaume Abrioux [Wed, 24 Jan 2024 15:28:31 +0000 (16:28 +0100)]
Merge pull request #54705 from k0ste/wip-63312-reef

reef: ceph-volume: fix a bug in _check_generic_reject_reasons

17 months agoMerge pull request #55282 from zdover23/wip-doc-2024-01-24-backport-55278-to-reef
zdover23 [Wed, 24 Jan 2024 05:29:57 +0000 (15:29 +1000)]
Merge pull request #55282 from zdover23/wip-doc-2024-01-24-backport-55278-to-reef

reef: doc: specify correct fs type for mkfs

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
17 months agodoc: specify correct fs type for mkfs 55282/head
Himura Kazuto [Tue, 23 Jan 2024 12:59:10 +0000 (12:59 +0000)]
doc: specify correct fs type for mkfs

The default value is ext2, which is not supported (anymore?).

Signed-off-by: Vladislav Glagolev <vladislav.glagolev@devexpress.com>
(cherry picked from commit 886af37744847246b3e70f54b8577ed4f9815c20)

17 months agoMerge pull request #55271 from zdover23/wip-doc-2024-01-23-backport-55269-to-reef
Anthony D'Atri [Tue, 23 Jan 2024 14:16:10 +0000 (09:16 -0500)]
Merge pull request #55271 from zdover23/wip-doc-2024-01-23-backport-55269-to-reef

reef: doc/radosgw: edit "read/write global rate limit" admin.rst

17 months agodoc/radosgw: edit "read/write global rate limit" admin.rst 55271/head
Zac Dover [Tue, 23 Jan 2024 02:13:10 +0000 (12:13 +1000)]
doc/radosgw: edit "read/write global rate limit" admin.rst

Edit "Reading/Writing Global Rate Limit Configuration" in
doc/radosgw/admin.rst.

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

17 months agoMerge pull request #55263 from zdover23/wip-doc-2024-01-22-backport-54993-to-reef
Anthony D'Atri [Sun, 21 Jan 2024 21:57:11 +0000 (16:57 -0500)]
Merge pull request #55263 from zdover23/wip-doc-2024-01-22-backport-54993-to-reef

reef: doc/rados/operations: document `ceph balancer status detail`

17 months agodoc/rados/operations: document `ceph balancer status detail` 55263/head
Laura Flores [Fri, 22 Dec 2023 22:55:29 +0000 (22:55 +0000)]
doc/rados/operations: document `ceph balancer status detail`

Document change in https://github.com/ceph/ceph/pull/54801

Signed-off-by: Laura Flores <lflores@ibm.com>
(cherry picked from commit 159751b68085fbe0fe10a881ff8bedecda11142f)

17 months agoMerge pull request #55260 from zdover23/wip-doc-2024-01-21-backport-55190-to-reef
Anthony D'Atri [Sun, 21 Jan 2024 15:33:40 +0000 (10:33 -0500)]
Merge pull request #55260 from zdover23/wip-doc-2024-01-21-backport-55190-to-reef

reef: doc/radosgw: edit "Enable/Disable Bucket Rate Limit"

17 months agodoc/radosgw: edit "Enable/Disable Bucket Rate Limit" 55260/head
Zac Dover [Tue, 16 Jan 2024 10:37:17 +0000 (20:37 +1000)]
doc/radosgw: edit "Enable/Disable Bucket Rate Limit"

Edit "Enable/Disable Bucket Rate Limit" in doc/radosgw/admin.rst.

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

17 months agoqa/tasks/ceph_manager: thrash - add reset_purged_snaps_last 53972/head
Matan Breizman [Thu, 31 Aug 2023 09:55:33 +0000 (09:55 +0000)]
qa/tasks/ceph_manager: thrash - add reset_purged_snaps_last

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
(cherry picked from commit 680e088b8d48e51dfb3aaa4207de67025a0fdabd)

17 months agoosd/OSD: introduce reset_purged_snaps_last
Matan Breizman [Thu, 21 Sep 2023 12:10:07 +0000 (12:10 +0000)]
osd/OSD: introduce reset_purged_snaps_last

When the OSD preboots it sends a MMonGetPurgedSnaps message to
the monitor (`_get_purged_snaps`).
The monitor will reply with all the purged snapshots that their purged_epoch_ is in the
range of superblock.purged_snaps_last + 1 up to the last superblock.current_epoch + 1.
When the OSD will handle the reply from the mon (`handle_get_purged_snaps_reply`)
it will call `record_purged_snaps` to write those purged snapshots in the
OSD store as well (PSN_ keys).

Once purged_snaps_last is reset, in the following OSD reboot, the snapshots that were marked as
purged (purged_snaps_ keys) in the mon's store will be also marked,
correspondingly, in the OSD store.
That way `scrub_purged_snaps` will be able to re-trim the snapshots that weren't
marked as purged in the OSD side (for some reason)

Fixes: https://tracker.ceph.com/issues/62981
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
(cherry picked from commit 120ed0f0e8f65c18bfcd1d649617770c2c5af663)

Manual conflict fixes: write_superblock() parameters were changed

17 months agoMerge pull request #55253 from zdover23/wip-doc-2024-01-20-backport-55177-to-reef
Anthony D'Atri [Sat, 20 Jan 2024 14:54:27 +0000 (09:54 -0500)]
Merge pull request #55253 from zdover23/wip-doc-2024-01-20-backport-55177-to-reef

reef: doc/radosgw: edit admin.rst "Get Bucket Rate Limit"

17 months agodoc/radosgw: edit admin.rst "Get Bucket Rate Limit" 55253/head
Zac Dover [Sun, 14 Jan 2024 23:29:23 +0000 (09:29 +1000)]
doc/radosgw: edit admin.rst "Get Bucket Rate Limit"

Edit "Get Bucket Rate Limit" in doc/radosgw/admin.rst.

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit 7c4fdd3762831cb86993b1b4a814ea68a9ea2401)

17 months agoMerge pull request #55242 from zdover23/wip-doc-2024-01-19-backport-55170-to-reef
Anthony D'Atri [Fri, 19 Jan 2024 14:44:16 +0000 (09:44 -0500)]
Merge pull request #55242 from zdover23/wip-doc-2024-01-19-backport-55170-to-reef

reef: doc/radosgw: edit admin.rst "set bucket rate limit"

17 months agoMerge pull request #55244 from zdover23/wip-doc-2024-01-19-backport-55168-to-reef
Anthony D'Atri [Fri, 19 Jan 2024 14:29:17 +0000 (09:29 -0500)]
Merge pull request #55244 from zdover23/wip-doc-2024-01-19-backport-55168-to-reef

reef: doc/rados/operations: add EC overhead table to erasure-code.rst

17 months agoMerge pull request #55246 from zdover23/wip-doc-2024-01-19-backport-54915-to-reef
Anthony D'Atri [Fri, 19 Jan 2024 14:26:45 +0000 (09:26 -0500)]
Merge pull request #55246 from zdover23/wip-doc-2024-01-19-backport-54915-to-reef

reef: doc/cephfs/client-auth.rst: correct ``fs authorize cephfs1 /dir1 clie…

17 months agoMerge pull request #54764 from rhcs-dashboard/wip-63652-reef
Nizamudeen A [Fri, 19 Jan 2024 09:29:07 +0000 (14:59 +0530)]
Merge pull request #54764 from rhcs-dashboard/wip-63652-reef

reef: mgr/dashboard: get rgw port from ssl_endpoint

Reviewed-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
17 months agoMerge pull request #55186 from rhcs-dashboard/wip-63725-reef
Nizamudeen A [Fri, 19 Jan 2024 09:25:21 +0000 (14:55 +0530)]
Merge pull request #55186 from rhcs-dashboard/wip-63725-reef

reef: mgr/dashboard: subvolume snapshot management

Reviewed-by: Ankush Behl <cloudbehl@gmail.com>
17 months agodoc/cephfs/client-auth.rst: correct ``fs authorize cephfs1 /dir1 client.x rw`` 55246/head
叶海丰 [Fri, 15 Dec 2023 09:05:38 +0000 (17:05 +0800)]
doc/cephfs/client-auth.rst: correct ``fs authorize cephfs1 /dir1 client.x rw``

(cherry picked from commit 223848a08f58fc20ee4afc008fabbec2d448be68)

17 months agodoc/rados/operations: add EC overhead table to erasure-code.rst 55244/head
Anthony D'Atri [Sat, 13 Jan 2024 17:48:58 +0000 (12:48 -0500)]
doc/rados/operations: add EC overhead table to erasure-code.rst

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

17 months agodoc/radosgw: edit admin.rst "set bucket rate limit" 55242/head
Zac Dover [Sun, 14 Jan 2024 10:23:25 +0000 (20:23 +1000)]
doc/radosgw: edit admin.rst "set bucket rate limit"

Edit "Set Bucket Rate Limit" in doc/radosgw/admin.rst.

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

18 months agoMerge pull request #55231 from zdover23/wip-doc-2024-01-18-backport-55161-to-reef
Anthony D'Atri [Thu, 18 Jan 2024 14:17:02 +0000 (09:17 -0500)]
Merge pull request #55231 from zdover23/wip-doc-2024-01-18-backport-55161-to-reef

reef: doc/rados/operations: Fix off-by-one errors in control.rst

18 months agodoc/rados/operations: Fix off-by-one errors in control.rst 55231/head
tobydarling [Fri, 12 Jan 2024 14:10:13 +0000 (14:10 +0000)]
doc/rados/operations: Fix off-by-one errors in control.rst

Description of examples was off by one

Signed-off-by: tobydarling <anothercoffee@gmail.com>
(cherry picked from commit c636e3ed2d459a063ae6ab0e2dc876db5c58c7e6)

18 months agoMerge pull request #55212 from afreen23/wip-64036-reef
Nizamudeen A [Thu, 18 Jan 2024 08:28:00 +0000 (13:58 +0530)]
Merge pull request #55212 from afreen23/wip-64036-reef

reef: mgr/dashboard: Fixes multisite topology page breadcrumb

Reviewed-by: Nizamudeen A <nia@redhat.com>
18 months agoMerge pull request #55222 from aaSharma14/wip-64062-reef
Aashish Sharma [Thu, 18 Jan 2024 07:04:45 +0000 (12:34 +0530)]
Merge pull request #55222 from aaSharma14/wip-64062-reef

reef: mgr/dashboard: add frontend unit tests for rgw multisite sync status card

Reviewed-by: Nizamudeen A <nia@redhat.com>
18 months agoMerge pull request #55221 from aaSharma14/wip-62575-reef
Aashish Sharma [Thu, 18 Jan 2024 07:03:25 +0000 (12:33 +0530)]
Merge pull request #55221 from aaSharma14/wip-62575-reef

reef: mgr/dashboard: Create realm sets to default

Reviewed-by: Nizamudeen A <nia@redhat.com>
18 months agomgr/dashboard: add frontend unit tests for rgw multisite sync status 55222/head
Aashish Sharma [Wed, 18 Oct 2023 08:23:51 +0000 (13:53 +0530)]
mgr/dashboard: add frontend unit tests for rgw multisite sync status
card

Fixes: https://tracker.ceph.com/issues/64039
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
(cherry picked from commit d169a206d11283428f7eb74a928525bc93f58915)

18 months agomgr/dashboard: Create realm sets to default 55221/head
Aashish Sharma [Wed, 23 Aug 2023 09:59:44 +0000 (15:29 +0530)]
mgr/dashboard: Create realm sets to default

In Multisite page, When we create a realm the realm sets to default even if some other realm is already default and default checkbox in unchecked as well while creating.

Fixes: https://tracker.ceph.com/issues/62453
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
(cherry picked from commit 00d3ead5ee52cd9865b3f8b2df8416f6446d81f4)

18 months agoMerge pull request #55153 from rzarzynski/wip-64005-reef
Yuri Weinstein [Wed, 17 Jan 2024 20:06:07 +0000 (12:06 -0800)]
Merge pull request #55153 from rzarzynski/wip-64005-reef

reef:  common/weighted_shuffle: don't feed std::discrete_distribution with all-zero weights

Reviewed-by: Neha Ojha <nojha@redhat.com>
18 months agoMerge pull request #55112 from k0ste/wip-63974-reef
Yuri Weinstein [Wed, 17 Jan 2024 19:46:22 +0000 (11:46 -0800)]
Merge pull request #55112 from k0ste/wip-63974-reef

reef: Tools/rados: Improve Error Messaging for Object Name Resolution

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
18 months agoMerge pull request #55078 from amathuria/wip-63947-reef
Yuri Weinstein [Wed, 17 Jan 2024 19:45:39 +0000 (11:45 -0800)]
Merge pull request #55078 from amathuria/wip-63947-reef

reef: mgr/pg_autoscaler: add check for norecover flag

Reviewed-by: Ronen Friedman <rfriedma@redhat.com>
18 months agoMerge pull request #55046 from ljflores/wip-reef-backport-pr-54907
Yuri Weinstein [Wed, 17 Jan 2024 19:45:08 +0000 (11:45 -0800)]
Merge pull request #55046 from ljflores/wip-reef-backport-pr-54907

reef: osd: fix Incremental decode for new/old_pg_upmap_primary

Reviewed-by: Laura Flores <lflores@redhat.com>
18 months agoMerge pull request #55077 from amathuria/wip-63946-reef
Yuri Weinstein [Wed, 17 Jan 2024 19:44:09 +0000 (11:44 -0800)]
Merge pull request #55077 from amathuria/wip-63946-reef

reef: DaemonServer.cc: fix config show command for RGW daemons

Reviewed-by: Casey Bodley <cbodley@redhat.com>
18 months agoMerge pull request #54783 from ifed01/wip-ifed-better-osd-robust-reef
Yuri Weinstein [Wed, 17 Jan 2024 19:42:07 +0000 (11:42 -0800)]
Merge pull request #54783 from ifed01/wip-ifed-better-osd-robust-reef

reef: osd: improve OSD robustness.

Reviewed-by: Neha Ojha <nojha@redhat.com>
18 months agoMerge pull request #54693 from Matan-B/wip-63651-reef
Yuri Weinstein [Wed, 17 Jan 2024 19:40:38 +0000 (11:40 -0800)]
Merge pull request #54693 from Matan-B/wip-63651-reef

reef: tools/ceph_objectstore_tool: action_on_all_objects_in_pg to skip pgmeta

Reviewed-by: Nitzan Mordechai <nmordech@redhat.com>
18 months agoMerge pull request #53888 from sseshasa/wip-63128-reef
Yuri Weinstein [Wed, 17 Jan 2024 19:39:42 +0000 (11:39 -0800)]
Merge pull request #53888 from sseshasa/wip-63128-reef

reef: mon/ConfigMonitor: Show localized name in "config dump --format json" output

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
18 months agotest/pybind/rbd: don't ignore from_snapshot in check_diff() 54951/head
Ilya Dryomov [Sun, 10 Dec 2023 16:01:24 +0000 (17:01 +0100)]
test/pybind/rbd: don't ignore from_snapshot in check_diff()

Despite the test in test_diff_iterate() being correct, it started
failing:

    >       check_diff(self.image, 0, IMG_SIZE, 'snap1', [(0, 512, False)])
    ...
    a = [], b = [(0, 512, False)]
    ...
    >       assert a == b
    E       AssertionError

This is because check_diff() drops 'snap1' argument on the floor and
passes None to image.diff_iterate() instead.  This goes back to 2013,
see commit e88fe3cbbc8f ("rbd.py: add some missing functions").

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

18 months agotest/librbd: redo TestMockObjectMapDiffRequest.*Delta tests
Ilya Dryomov [Sun, 3 Dec 2023 15:39:39 +0000 (16:39 +0100)]
test/librbd: redo TestMockObjectMapDiffRequest.*Delta tests

Existing *Delta tests cover:

- beginning of time -> HEAD, through intermediate snap
- snap -> snap, directly
- snap -> HEAD, directly

But coverage is too weak: none of the weird OBJECT_PENDING cases and
only a single diff-iterate vs deep-copy case is tested, for example.

Coverage is missing completely for:

- beginning of time -> HEAD, directly
- beginning of time -> snap, directly
- beginning of time -> snap, through intermediate snap
- snap -> snap, through intermediate snap
- snap -> HEAD, through intermediate snap

This adds the following tests:

- FromBeginningToHead
- FromBeginningToHeadIntermediateSnap (expands FullDelta)
- FromBeginningToSnap
- FromBeginningToSnapIntermediateSnap
- FromSnapToSnap (expands IntermediateDelta)
- FromSnapToSnapIntermediateSnap
- FromSnapToHead (expands EndDelta)
- FromSnapToHeadIntermediateSnap

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

18 months agotest/librbd: parametrize TestMockObjectMapDiffRequest tests
Ilya Dryomov [Sun, 3 Dec 2023 13:49:43 +0000 (14:49 +0100)]
test/librbd: parametrize TestMockObjectMapDiffRequest tests

Exercise both diff-iterate and deep-copy modes of operation.

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

18 months agolibrbd: OBJECT_PENDING should always be treated as dirty
Ilya Dryomov [Fri, 8 Dec 2023 14:19:02 +0000 (15:19 +0100)]
librbd: OBJECT_PENDING should always be treated as dirty

OBJECT_PENDING is a transition state which normally isn't encountered
in (snapshot) object maps.  In case it's encountered, for example when
a snapshot is taken after losing power at the time a discard was being
handled, the object should be treated as dirty and produce a diff as
a result.

Assuming an object is marked OBJECT_PENDING, theoretically there are
four cases with respect to object's state in the next snapshot:

    1. OBJECT_NONEXISTENT
    2. OBJECT_EXISTS
    3. OBJECT_PENDING
    4. OBJECT_EXISTS_CLEAN

Prior to commit b81cd2460de7 ("librbd/object_map: diff state machine
should track object existence"), (3) was handled incorrectly (diff set
to DIFF_STATE_NONE instead of DIFF_STATE_UPDATED).

Post commit 399a45e11332 ("librbd/object_map: rbd diff between two
snapshots lists entire image content"), (4) is handled incorrectly
(diff set to DIFF_STATE_DATA instead of DIFF_STATE_DATA_UPDATED).

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

18 months agotest/librbd: expand DiffIterateTest.DiffIterateDiscard
Ilya Dryomov [Thu, 30 Nov 2023 16:30:33 +0000 (17:30 +0100)]
test/librbd: expand DiffIterateTest.DiffIterateDiscard

Similar to DiffIterateTest.DiffIterateDeterministic, systematically
cover the most common cases involving full-object discards.  With this
in place, issue [1] can be reproduced by any of:

    (preparatory) before snap3 is taken
    (1) beginning of time -> HEAD
    (2) snap1 -> HEAD
    (5) beginning of time -> snap3
    (6) snap1 -> snap3

Sub-object discards aren't covered here because of further issues
[2][3].

[1] https://tracker.ceph.com/issues/53897
[2] https://tracker.ceph.com/issues/63770
[3] https://tracker.ceph.com/issues/63771

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

18 months agolibrbd: resurrect "exists" assert in simple_diff_cb()
Ilya Dryomov [Fri, 10 Nov 2023 10:14:42 +0000 (11:14 +0100)]
librbd: resurrect "exists" assert in simple_diff_cb()

This effectively reverts commit 3ccc3bb4bd35 ("librbd: diff_iterate
needs to handle holes in parent images") which just dropped the assert
instead of addressing the root cause of reported crashes.

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

18 months agolibrbd: diff-iterate shouldn't ever report "new hole" against a hole
Ilya Dryomov [Thu, 9 Nov 2023 19:44:18 +0000 (20:44 +0100)]
librbd: diff-iterate shouldn't ever report "new hole" against a hole

If an object doesn't exist in both start and end versions but there is
an intermediate snapshot which contains it (i.e. the object is written
to and captured at some point but then discarded prior to or in the end
version), diff-iterate reports "new hole" -- callback is invoked with
exists=false.  This occurs both on the slow list_snaps path and in
fast-diff mode.

Despite going all the way back to the introduction of diff-iterate in
commit 0296c7cdae91 ("librbd: implement diff_iterate"), this behavior
is wrong and contradicts diff-iterate API documentation added in commit
a69532e86450 ("librbd: document diff_iterate in header") in the same
series:

    If the source snapshot name is NULL, we interpret that as
    the beginning of time and return all allocated regions of the
    image.

It also triggered an assert added in commit c680531e070a ("librbd:
change diff_iterate interface to be more C-friendly") in the same
series.  Unfortunately, commit f1f6407221a0 ("test_librbd: add
diff_iterate test including discard"), also part of the same series,
added a test which expected the wrong behavior.  Very confusing!

A year later, a different manifestation of this bug was fixed in commit
9a1ab95176fe ("rbd: Fix rbd diff for non-existent objects"), but the
fix only covered the case where calc_snap_set_diff() goes past the end
snap ID while processing clones.  The case where it runs out of clones
to process before reaching the end snap ID remained mishandled.

A year after that, commit 3ccc3bb4bd35 ("librbd: diff_iterate needs to
handle holes in parent images") dropped the assert mentioned above and
this bug got enshrined in the newly introduced fast-diff mode.

Finally, a few years later, deep-copy actually started relying on this
bug in commit e5a21e904142 ("librbd: deep-copy image copy state machine
skips clean objects").  This necessitates bifurcation in DiffRequest
because deep-copy wants the "has this object been touched" semantics,
which is different from diff-iterate (and also potentially much more
expensive to produce!).

This commit brings a minimal update to TestMockObjectMapDiffRequest
tests and DiffIterateTest.DiffIterateDiscard.  Coverage is expanded in
the following commits.

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

18 months agomgr/dashboard: Fixes multisite topology page breadcrumb 55212/head
Afreen Misbah [Thu, 11 Jan 2024 07:49:39 +0000 (13:19 +0530)]
mgr/dashboard: Fixes multisite topology page breadcrumb

The multi-site topology page just says object in breadcrumb.
The fix adds the missing "multi-site" breadcrumb.

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

Signed-off-by: Afreen Misbah <afreen23.git@gmail.com>
(cherry picked from commit f75a9da2871113a156092ff28f29b9d12f465975)

18 months agoMerge pull request #55104 from rkachach/fix_issue_63957_63958
Redouane Kachach [Wed, 17 Jan 2024 09:05:56 +0000 (10:05 +0100)]
Merge pull request #55104 from rkachach/fix_issue_63957_63958

reef: backport of fixes for 63678 and 63694

18 months agoMerge pull request #55194 from zdover23/wip-doc-2024-01-16-backport-55169-to-reef
zdover23 [Wed, 17 Jan 2024 05:56:26 +0000 (15:56 +1000)]
Merge pull request #55194 from zdover23/wip-doc-2024-01-16-backport-55169-to-reef

reef: docs/radosgw: edit admin.rst "enable/disable user rate limit"

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
18 months agoMerge pull request #55191 from rhcs-dashboard/reef-docs-build-fix
Nizamudeen A [Tue, 16 Jan 2024 16:14:10 +0000 (21:44 +0530)]
Merge pull request #55191 from rhcs-dashboard/reef-docs-build-fix

reef: admin/doc-requirements: bump Sphinx to 5.0.2

Reviewed-by: Matan-B <NOT@FOUND>
18 months agoMerge pull request #55124 from rhcs-dashboard/wip-59470-reef
Nizamudeen A [Tue, 16 Jan 2024 14:38:06 +0000 (20:08 +0530)]
Merge pull request #55124 from rhcs-dashboard/wip-59470-reef

reef: mgr/dashboard: fix e2e failure related to landing page

18 months agodocs/radosgw: edit admin.rst "enable/disable user rate limit" 55194/head
Zac Dover [Sat, 13 Jan 2024 18:06:12 +0000 (04:06 +1000)]
docs/radosgw: edit admin.rst "enable/disable user rate limit"

Edit "Enable/Disable User Rate Limit" in doc/radosgw/admin.rst.

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

18 months agoadmin/doc-requirements: bump Sphinx to 5.0.2 55191/head
Nizamudeen A [Tue, 16 Jan 2024 05:21:56 +0000 (10:51 +0530)]
admin/doc-requirements: bump Sphinx to 5.0.2

```
Running Sphinx v4.5.0

Sphinx version error:
The sphinxcontrib.applehelp extension used by this project needs at least Sphinx v5.0; it therefore cannot be built with this version.
```

Signed-off-by: Nizamudeen A <nia@redhat.com>
(cherry picked from commit a916feeee757e4e196967944feeb1e9b1f92c398)

18 months agomgr/dashboard: delete cephfs snapshot 55186/head
Nizamudeen A [Wed, 10 Jan 2024 06:42:23 +0000 (12:12 +0530)]
mgr/dashboard: delete cephfs snapshot

Fixes: https://tracker.ceph.com/issues/63990
Signed-off-by: Nizamudeen A <nia@redhat.com>
(cherry picked from commit c3d7f70b7a7d594050e3e231cd7d6544179fdfeb)

18 months agomgr/dashboard: subvolume snapshot creation form
Nizamudeen A [Wed, 27 Dec 2023 09:14:53 +0000 (14:44 +0530)]
mgr/dashboard: subvolume snapshot creation form

Fixes: https://tracker.ceph.com/issues/63934
Signed-off-by: Nizamudeen A <nia@redhat.com>
(cherry picked from commit f5d1b7df2ed090b45dd74634e3c92d4df2c4017c)

18 months agomgr/dashboard: small fixes to directories view
Nizamudeen A [Thu, 7 Dec 2023 17:28:52 +0000 (22:58 +0530)]
mgr/dashboard: small fixes to directories view

Increased the precedence for Directories
Expand the node by default and select them as well

Fixes: https://tracker.ceph.com/issues/63754
Signed-off-by: Nizamudeen A <nia@redhat.com>
(cherry picked from commit 4eb42ff15db14680c0798ceb752fa6578b76fb92)

18 months agomgr/dashboard: fs snapshots e2e
Nizamudeen A [Fri, 27 Oct 2023 08:15:44 +0000 (13:45 +0530)]
mgr/dashboard: fs snapshots e2e

Fixes: https://tracker.ceph.com/issues/63237
Signed-off-by: Nizamudeen A <nia@redhat.com>
(cherry picked from commit 4689c3d65eb758cecf944da0fe2c5686fa2918ee)

18 months agomgr/dashboard: cephfs subvolume list snapshots
Nizamudeen A [Wed, 18 Oct 2023 17:46:09 +0000 (23:16 +0530)]
mgr/dashboard: cephfs subvolume list snapshots

Added a tab for displaying the subvolume snapshots
- this tab will show an info alert when there are no subvolumes present
- if the subvolume is present, then it'll be auto-selected by default

Implemented a filter to search the groups and subvolumes by its name.
Also added a scrollbar when there are too many items in the nav list

Modified the REST APIs to fetch only the names of the resources and
fetch the info when an API call is requesting for it.

Added unit tests

Fixes: https://tracker.ceph.com/issues/63237
Signed-off-by: Nizamudeen A <nia@redhat.com>
(cherry picked from commit b35be54ed9f23b7fc7859f054902e37cb88cefd8)

18 months agoosd/scrub: increasing max_osd_scrubs to 3 55173/head
Ronen Friedman [Mon, 22 May 2023 15:09:28 +0000 (18:09 +0300)]
osd/scrub: increasing max_osd_scrubs to 3

Bug reports seem to hint that the current default value of
'1' is too low: the cluster is susceptible to scrub scheduling
delays and issues stemming from local software/networking/hardware
problems, even if affecting a very small number of OSDs.

Squid will include a major overhaul of the way scrubs are counted
in the cluster, providing a better solution to the problem. For
now - modifying the default is an effective stop-gap measure.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
(cherry picked from commit cc7b4afda972c144d7ebc679ff7f42d86f1dc493)

18 months agoMerge pull request #55163 from zdover23/wip-doc-2024-01-13-backport-54530-to-reef
Anthony D'Atri [Sat, 13 Jan 2024 02:26:50 +0000 (21:26 -0500)]
Merge pull request #55163 from zdover23/wip-doc-2024-01-13-backport-54530-to-reef

reef: ceph-menv:fix typo in README

18 months agomon/ConnectionTracker.cc: disregard connection scores from mon_rank = -1 55167/head
Kamoltat [Tue, 2 May 2023 14:17:07 +0000 (14:17 +0000)]
mon/ConnectionTracker.cc: disregard connection scores from mon_rank = -1

There are certain situations where we would
come across rank -1 in our MON connection scores;

- New MON sends probe message to existing MON,
existing MON handle probe message by adding -1
to existing peer_scores.

This is not good because we want to implement
a connection scores check mechanism where we
should not have to take into account the possibility
of having rank -1 in our score.

Fixes: https://tracker.ceph.com/issues/59564
Signed-off-by: Kamoltat <ksirivad@redhat.com>
(cherry picked from commit 6ffc70a1b7f3dbe9237c2379c477d7dc4898024f)

18 months agoceph-menv:fix typo in README 55163/head
yu.wang [Thu, 16 Nov 2023 17:38:58 +0000 (01:38 +0800)]
ceph-menv:fix typo in README

Signed-off-by: yu.wang <wangyu@wyu.space>
(cherry picked from commit 4efd9317b83eca48c1a92724e7ebe304650fbc04)

18 months agoMerge pull request #55157 from zdover23/wip-doc-2024-01-12-backport-55146-to-reef
Anthony D'Atri [Fri, 12 Jan 2024 11:58:34 +0000 (06:58 -0500)]
Merge pull request #55157 from zdover23/wip-doc-2024-01-12-backport-55146-to-reef

reef: doc/radosgw: edit admin.rst "get user rate limit"

18 months agodoc/radosgw: edit admin.rst "get user rate limit" 55157/head
Zac Dover [Thu, 11 Jan 2024 13:40:25 +0000 (23:40 +1000)]
doc/radosgw: edit admin.rst "get user rate limit"

Edit "Get User Rate Limit" in doc/radosgw/admin.rst.

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

18 months agoMerge pull request #55150 from zdover23/wip-doc-2024-01-12-backport-55142-to-reef
Anthony D'Atri [Thu, 11 Jan 2024 20:25:47 +0000 (15:25 -0500)]
Merge pull request #55150 from zdover23/wip-doc-2024-01-12-backport-55142-to-reef

reef: doc/radosgw - edit admin.rst "set user rate limit"

18 months agotest/test_weighted_shuffle: verify weights containing zeros 55153/head
Radosław Zarzyński [Wed, 30 Aug 2023 13:23:34 +0000 (15:23 +0200)]
test/test_weighted_shuffle: verify weights containing zeros

Signed-off-by: Radosław Zarzyński <rzarzyns@redhat.com>
(cherry picked from commit d02b17ff84c61123ed27d79dc177c2cfbbe6a72f)

18 months agocommon/weighted_shuffle: don't feed std::discrete_distribution with all-zero weights
Radosław Zarzyński [Wed, 30 Aug 2023 13:19:07 +0000 (15:19 +0200)]
common/weighted_shuffle: don't feed std::discrete_distribution with all-zero weights

This flaw results is the assertions like the following one:

```
/usr/include/c++/11/bits/random.tcc:2667: void std::discrete_distribution<_IntType>::param_type::_M_initialize() [with _IntType = int]: Assertion '__sum > 0' failed.
Aborted (core dumped)
```

The reason behind is that `std::discrete_distribution` sums
the weights and uses the result as a divisor.

Fixes: https://tracker.ceph.com/issues/62645
Signed-off-by: Radosław Zarzyński <rzarzyns@redhat.com>
(cherry picked from commit 1b7a7a8df88ffac007dbafdecc131807de66c046)

18 months agodoc/radosgw - edit admin.rst "set user rate limit" 55150/head
Zac Dover [Thu, 11 Jan 2024 08:32:09 +0000 (18:32 +1000)]
doc/radosgw - edit admin.rst "set user rate limit"

Edit "Set User Rate Limit" in doc/radosgw/admin.rst.

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