]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
15 months agoMDSAuthCaps: use string and vector directly 54185/head
Rishabh Dave [Sat, 24 Jun 2023 04:15:03 +0000 (09:45 +0530)]
MDSAuthCaps: use string and vector directly

Since std::string and std::vector are brought into the current namespace
at the beginning of MDSAuthCaps.cc, write "string" and "vector" instead
of "std::string" and "std::vector" respectively.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 34f2243b8c89ed13760eb55994bef5f1a679ab24)

Conflicts:
src/mds/MDSAuthCaps.cc: some code using string/vector was
deleted by a different Reef backport due to which some patches
from this commit weren't applicable.

15 months agoMDSAuthCaps: bring std::string_view in main scope before using it
Rishabh Dave [Wed, 21 Jun 2023 20:58:40 +0000 (02:28 +0530)]
MDSAuthCaps: bring std::string_view in main scope before using it

Bring std::string_view to the main scope of MDSAuthCaps.cc before using
it. This reduces typing effort and improves readability.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 4a37d66a6a6fed24b4c206b140abc6f589de598a)

15 months agoMerge pull request #56385 from rhcs-dashboard/wip-65068-reef
Ivo Almeida [Fri, 22 Mar 2024 16:33:04 +0000 (16:33 +0000)]
Merge pull request #56385 from rhcs-dashboard/wip-65068-reef

reef: mgr/dashboard: fix subvolume group edit size

Reviewed-by: Nizamudeen A <nia@redhat.com>
15 months agoMerge pull request #56215 from rhcs-dashboard/applitools-disable-reef
Nizamudeen A [Fri, 22 Mar 2024 16:11:11 +0000 (21:41 +0530)]
Merge pull request #56215 from rhcs-dashboard/applitools-disable-reef

reef: mgr/dashboard: disable applitools e2e

Reviewed-by: ivoalmeida <NOT@FOUND>
15 months agomgr/dashboard: fix subvolume group edit size 56385/head
Ivo Almeida [Thu, 21 Mar 2024 16:13:48 +0000 (16:13 +0000)]
mgr/dashboard: fix subvolume group edit size

Removed the 'infinite' string which was set when no value was provided

Fixes: https://tracker.ceph.com/issues/65049
Signed-off-by: Ivo Almeida <ialmeida@redhat.com>
(cherry picked from commit a19f2b6e3c4b51b605be1b5683c0ddad2b9d959f)

15 months agoMerge pull request #56370 from rhcs-dashboard/wip-65046-reef
Nizamudeen A [Fri, 22 Mar 2024 10:15:40 +0000 (15:45 +0530)]
Merge pull request #56370 from rhcs-dashboard/wip-65046-reef

reef: mgr/dashboard: fix retention add for subvolume

Reviewed-by: Nizamudeen A <nia@redhat.com>
15 months agoMerge pull request #56363 from rhcs-dashboard/wip-65036-reef
Nizamudeen A [Fri, 22 Mar 2024 10:14:54 +0000 (15:44 +0530)]
Merge pull request #56363 from rhcs-dashboard/wip-65036-reef

reef: mgr/dashboard: fix M retention frequency display

Reviewed-by: Nizamudeen A <nia@redhat.com>
15 months agoMerge pull request #55575 from rhcs-dashboard/rwg-reef-backports
Nizamudeen A [Fri, 22 Mar 2024 07:27:37 +0000 (12:57 +0530)]
Merge pull request #55575 from rhcs-dashboard/rwg-reef-backports

reef: mgr/dashboard: rgw bucket features

Reviewed-by: afreen23 <NOT@FOUND>
Reviewed-by: Nizamudeen A <nia@redhat.com>
15 months agomgr/dashboard: fix retention add for subvolume 56370/head
Ivo Almeida [Wed, 21 Feb 2024 13:02:19 +0000 (13:02 +0000)]
mgr/dashboard: fix retention add for subvolume

- Added parameters for subvolume and subvolume group when adding a new
snap schedule.
- Added call to remove retention policies when removing a snap schedule
  in case it is the last one with same path

Fixes: https://tracker.ceph.com/issues/64524
Signed-off-by: Ivo Almeida <ialmeida@redhat.com>
(cherry picked from commit 80e1207f4b536fe6edbc81e61cbf951e135eba54)

15 months agomgr/dashboard: fix M retention frequency display 56363/head
Ivo Almeida [Tue, 19 Mar 2024 13:13:17 +0000 (13:13 +0000)]
mgr/dashboard: fix M retention frequency display

Fix snap schedule list monthly retention frequency display

Fixes: https://tracker.ceph.com/issues/64982
Signed-off-by: Ivo Almeida <ialmeida@redhat.com>
(cherry picked from commit 0bd8d3b6bc8ecbe99e22545549a63de3444e5f75)

15 months agoMerge pull request #56340 from zdover23/wip-doc-2024-03-20-backport-56333-to-reef
Zac Dover [Thu, 21 Mar 2024 02:03:24 +0000 (12:03 +1000)]
Merge pull request #56340 from zdover23/wip-doc-2024-03-20-backport-56333-to-reef

reef: doc/cephfs: fix architecture link to correct relative path

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
15 months agoMerge pull request #56268 from zdover23/wip-doc-2024-08-19-backport-56240-to-reef
Zac Dover [Thu, 21 Mar 2024 02:02:59 +0000 (12:02 +1000)]
Merge pull request #56268 from zdover23/wip-doc-2024-08-19-backport-56240-to-reef

reef: doc/rados: update common.rst

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
15 months agoMerge pull request #56062 from mchangir/wip-64811-reef
Yuri Weinstein [Wed, 20 Mar 2024 15:35:38 +0000 (08:35 -0700)]
Merge pull request #56062 from mchangir/wip-64811-reef

reef: mds: add debug logs during setxattr ceph.dir.subvolume

Reviewed-by: Venky Shankar <vshankar@redhat.com>
15 months agoMerge pull request #55502 from cbodley/wip-64361-reef
Yuri Weinstein [Wed, 20 Mar 2024 15:34:57 +0000 (08:34 -0700)]
Merge pull request #55502 from cbodley/wip-64361-reef

reef: cmake/modules/BuildRocksDB.cmake: inherit parent's CMAKE_CXX_FLAGS

Reviewed-by: Mark Nelson <mnelson@redhat.com>
15 months agoMerge pull request #54711 from mchangir/wip-63590-reef
Yuri Weinstein [Wed, 20 Mar 2024 15:33:28 +0000 (08:33 -0700)]
Merge pull request #54711 from mchangir/wip-63590-reef

reef: qa: run kernel_untar_build with newer tarball

Reviewed-by: Venky Shankar <vshankar@redhat.com>
15 months agoMerge pull request #56213 from idryomov/wip-63770-reef
Yuri Weinstein [Wed, 20 Mar 2024 15:31:03 +0000 (08:31 -0700)]
Merge pull request #56213 from idryomov/wip-63770-reef

reef: librbd: account for discards that truncate in ObjectListSnapsRequest

Reviewed-by: Ramana Raja <rraja@redhat.com>
15 months agoMerge pull request #56004 from prazumovsky/wip-63684-reef-backport
Yuri Weinstein [Wed, 20 Mar 2024 15:29:57 +0000 (08:29 -0700)]
Merge pull request #56004 from prazumovsky/wip-63684-reef-backport

reef: RGW - Swift retarget needs bucket set on object

Reviewed-by: Casey Bodley <cbodley@redhat.com>
15 months agoMerge pull request #55692 from neesingh-rh/wip-64518-reef
Yuri Weinstein [Wed, 20 Mar 2024 15:27:16 +0000 (08:27 -0700)]
Merge pull request #55692 from neesingh-rh/wip-64518-reef

reef: mgr/volumes: support to reject CephFS clones if cloner threads are not available

Reviewed-by: Venky Shankar <vshankar@redhat.com>
16 months agodoc/cephfs: fix architecture link to correct relative path 56340/head
molpako [Wed, 20 Mar 2024 09:43:42 +0000 (18:43 +0900)]
doc/cephfs: fix architecture link to correct relative path

Signed-off-by: molpako <35787116+molpako@users.noreply.github.com>
(cherry picked from commit ceeb1ca4b38dc307e493b04a59d5d07fed23971f)

16 months agoMerge pull request #55541 from rhcs-dashboard/wip-63728-reef
Nizamudeen A [Wed, 20 Mar 2024 10:46:04 +0000 (16:16 +0530)]
Merge pull request #55541 from rhcs-dashboard/wip-63728-reef

reef: mgr/dashboard: add support for editing and deleting rgw roles

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: ivoalmeida <NOT@FOUND>
16 months agoMerge pull request #56254 from rhcs-dashboard/wip-64930-reef
Pedro Gonzalez Gomez [Wed, 20 Mar 2024 07:46:10 +0000 (08:46 +0100)]
Merge pull request #56254 from rhcs-dashboard/wip-64930-reef

reef: mgr/dashboard: ceph authenticate user from fs

Reviewed-by: afreen23 <NOT@FOUND>
Reviewed-by: Nizamudeen A <nia@redhat.com>
16 months agoMerge pull request #56290 from zdover23/wip-doc-2024-03-20-backport-56109-to-reef
Adam King [Tue, 19 Mar 2024 21:07:17 +0000 (17:07 -0400)]
Merge pull request #56290 from zdover23/wip-doc-2024-03-20-backport-56109-to-reef

reef: doc/cephadm/services: Improve monitoring.rst

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
16 months agoMerge pull request #56230 from adk3798/reef-docs-typo-replace-osd
Adam King [Tue, 19 Mar 2024 21:01:07 +0000 (17:01 -0400)]
Merge pull request #56230 from adk3798/reef-docs-typo-replace-osd

reef: doc: cephadm/services/osd: fix typo

Reviewed-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
Reviewed-by: Zac Dover <zac.dover@proton.me>
16 months agomgr/dashboard: support rgw roles updating 55541/head
Nizamudeen A [Wed, 18 Oct 2023 06:38:21 +0000 (12:08 +0530)]
mgr/dashboard: support rgw roles updating

Right now only the modification of max_session_duration is supported via
the roles update command. To update, we need to use `policy modify`
command which is not added in this PR. That should be done separately

Refer: https://docs.ceph.com/en/latest/radosgw/role/#update-a-role

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

16 months agomgr/dashboard: support rgw roles removal
Nizamudeen A [Wed, 18 Oct 2023 06:36:47 +0000 (12:06 +0530)]
mgr/dashboard: support rgw roles removal

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

16 months agodoc/cephadm/services: Improve monitoring.rst 56290/head
Anthony D'Atri [Sun, 10 Mar 2024 21:36:37 +0000 (17:36 -0400)]
doc/cephadm/services: Improve monitoring.rst

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

16 months agoMerge pull request #55928 from ajarr/wip-64668-reef
Ilya Dryomov [Tue, 19 Mar 2024 14:05:58 +0000 (15:05 +0100)]
Merge pull request #55928 from ajarr/wip-64668-reef

reef: qa: add diff-continuous and compare-mirror-image tests to rbd and krbd suites respectively

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
16 months agoMerge pull request #56196 from vshankar/wip-64926-reef
Venky Shankar [Tue, 19 Mar 2024 13:21:44 +0000 (18:51 +0530)]
Merge pull request #56196 from vshankar/wip-64926-reef

reef: mds: disable `defer_client_eviction_on_laggy_osds' by default

Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
16 months agoqa/suites: add diff-continuous and compare-mirror-image tests 55928/head
Ramana Raja [Thu, 29 Feb 2024 17:12:19 +0000 (12:12 -0500)]
qa/suites: add diff-continuous and compare-mirror-image tests

... to rbd and krbd suites respectively.

This allows the compare-mirror-image tests introduced in ea3a567
to be run against various kernel branches, e.g., testing branch.
And allows diff_continuous test in rbd_suite to run against distro
kernel.

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

16 months agoqa/suites/rbd: rename nbd folder to device folder
Ramana Raja [Thu, 29 Feb 2024 16:55:08 +0000 (11:55 -0500)]
qa/suites/rbd: rename nbd folder to device folder

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

16 months agoMerge pull request #55762 from ajarr/wip-64554-reef
Ilya Dryomov [Tue, 19 Mar 2024 10:08:05 +0000 (11:08 +0100)]
Merge pull request #55762 from ajarr/wip-64554-reef

reef: qa: Add tests to validate synced images on rbd-mirror

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
16 months agodoc/rados: update common.rst 56268/head
Zac Dover [Sun, 17 Mar 2024 09:27:11 +0000 (19:27 +1000)]
doc/rados: update common.rst

Clarify some overwritten paragraphs in
doc/rados/configuration/common.rst. Cf.
https://github.com/ceph/ceph/pull/50795/files#r1153897231.

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

16 months agoMerge pull request #56262 from zdover23/wip-doc-2024-03-19-backport-56247-to-reef
Zac Dover [Mon, 18 Mar 2024 17:39:38 +0000 (03:39 +1000)]
Merge pull request #56262 from zdover23/wip-doc-2024-03-19-backport-56247-to-reef

reef: docs/rbd: fix typo in arg name

Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
16 months agodocs/rbd: fix typo in arg name 56262/head
N Balachandran [Mon, 18 Mar 2024 04:02:39 +0000 (09:32 +0530)]
docs/rbd: fix typo in arg name

Replace "{image-}" with "{image-id}" in the "rbd trash rm"
command description.

Signed-off-by: N Balachandran <nibalach@redhat.com>
(cherry picked from commit f3eb489520fd4fae057e61275d16c6c8fd596f3f)

docs/rbd: replace introspect with inspect

Replace "introspect" with "inspect" in the rbd basic commands
description.

Signed-off-by: N Balachandran <nibalach@redhat.com>
(cherry picked from commit ebf2f60f784728c04d8ec59015d666bafcef8218)

docs/rbd: typo in "retrieving image information"

Replace "for the image" with "of the image".

Signed-off-by: N Balachandran <nibalach@redhat.com>
(cherry picked from commit 4fd5c134536d652ae1f9e05ecf52cb81adb3b850)

16 months agoMerge pull request #56256 from zdover23/wip-doc-2024-03-18-backport-56248-to-reef
Anthony D'Atri [Mon, 18 Mar 2024 14:06:04 +0000 (10:06 -0400)]
Merge pull request #56256 from zdover23/wip-doc-2024-03-18-backport-56248-to-reef

reef: doc/rbd: minor changes to the rbd man page

16 months agodoc/rbd: minor changes to the rbd man page 56256/head
N Balachandran [Mon, 18 Mar 2024 12:22:47 +0000 (17:52 +0530)]
doc/rbd: minor changes to the rbd man page

Fixes typos and grammar for some commands. Adds
additional details for some commandds.

Signed-off-by: N Balachandran <nibalach@redhat.com>
(cherry picked from commit 5dcff6a4b8d835fc55e454af977dc5ebad99d37f)

16 months agoMerge pull request #56252 from guits/wip-64932-reef
Guillaume Abrioux [Mon, 18 Mar 2024 10:39:37 +0000 (11:39 +0100)]
Merge pull request #56252 from guits/wip-64932-reef

reef: node-proxy: fix RedFishClient.logout() method

16 months agomgr/dashboard: ceph authenticate user from fs 56254/head
Pedro Gonzalez Gomez [Fri, 1 Mar 2024 12:43:12 +0000 (13:43 +0100)]
mgr/dashboard: ceph authenticate user from fs

Fixes: https://tracker.ceph.com/issues/64660
Signed-off-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
(cherry picked from commit 19a9f79b5f218d8cb757579bf8c0f5d610dde3a8)

16 months agonode-proxy: support more Location value formats 56252/head
Guillaume Abrioux [Fri, 15 Mar 2024 14:20:29 +0000 (14:20 +0000)]
node-proxy: support more Location value formats

After some tests, it turns out that depending on the hardware,
the header 'Location' which is returned by the server after logged can be different.
I could notice the following:

either:

Location: scheme://address:port/redfish/v1/SessionService/Session

or

Location: /redfish/v1/SessionService/Session

a previous tracker [1] was opened because I thought only the first one existed, which is wrong.

Fixes: https://tracker.ceph.com/issues/64951
[1] https://tracker.ceph.com/issues/64894

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit d7ccf26983c41344a12f33b2a30fc79b65cc548f)

16 months agonode-proxy: fix RedFishClient.logout() method
Guillaume Abrioux [Wed, 13 Mar 2024 13:32:59 +0000 (13:32 +0000)]
node-proxy: fix RedFishClient.logout() method

the endpoint passed down to util.query() is wrong:
is passes the full url (scheme://addr:port/path) where it should only
pass the path. The cause is that RedFishClient.login() basically stores
the value of the Location header in `self.location`.

The consequence of this is that it makes the client unable to properly logout.

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

16 months agoMerge pull request #56235 from zdover23/wip-doc-2024-03-16-backport-56182-to-reef
Anthony D'Atri [Sat, 16 Mar 2024 01:32:54 +0000 (21:32 -0400)]
Merge pull request #56235 from zdover23/wip-doc-2024-03-16-backport-56182-to-reef

reef: doc/glossary: add "librados" entry

16 months agodoc/glossary: add "librados" entry 56235/head
Zac Dover [Thu, 14 Mar 2024 06:29:09 +0000 (16:29 +1000)]
doc/glossary: add "librados" entry

Add a "librados" entry to the glossary.

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

16 months agoMerge pull request #56104 from adk3798/wip-64632-reef
Adam King [Fri, 15 Mar 2024 19:50:25 +0000 (15:50 -0400)]
Merge pull request #56104 from adk3798/wip-64632-reef

reef: doc: adding documentation for secure monitoring stack configuration

Reviewed-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
16 months agoMerge pull request #56103 from adk3798/wip-64629-reef
Adam King [Fri, 15 Mar 2024 19:40:38 +0000 (15:40 -0400)]
Merge pull request #56103 from adk3798/wip-64629-reef

reef: mgr/cephadm: catch CancelledError in asyncio timeout handler

Reviewed-by: Guillaume Abrioux <gabrioux@ibm.com>
16 months agoMerge pull request #56094 from adk3798/wip-63533-reef
Adam King [Fri, 15 Mar 2024 19:39:32 +0000 (15:39 -0400)]
Merge pull request #56094 from adk3798/wip-63533-reef

reef: mgr/cephadm: fix reweighting of OSD when OSD removal is stopped

Reviewed-by: John Mulligan <jmulligan@redhat.com>
16 months agoMerge pull request #56029 from asm0deuz/wip-64698-reef
Adam King [Fri, 15 Mar 2024 19:37:50 +0000 (15:37 -0400)]
Merge pull request #56029 from asm0deuz/wip-64698-reef

reef: mgr/cephadm: Allow idmap overrides in nfs-ganesha configuration

Reviewed-by: Adam King <adking@redhat.com>
16 months agodoc: cephadm/services/osd: fix typo 56230/head
Lorenz Bausch [Wed, 13 Mar 2024 16:26:51 +0000 (17:26 +0100)]
doc: cephadm/services/osd: fix typo

Signed-off-by: Lorenz Bausch <info@lorenzbausch.de>
(cherry picked from commit d513f1ca69d38f0d7eb40a2d68275caed322cc68)

16 months agoMerge pull request #55915 from mchangir/wip-64223-reef
Yuri Weinstein [Fri, 15 Mar 2024 13:51:58 +0000 (06:51 -0700)]
Merge pull request #55915 from mchangir/wip-64223-reef

reef: qa: bump up scrub status command timeout

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
16 months agoMerge pull request #55829 from kotreshhr/wip-64582-reef
Yuri Weinstein [Fri, 15 Mar 2024 13:51:25 +0000 (06:51 -0700)]
Merge pull request #55829 from kotreshhr/wip-64582-reef

reef: qa: Fix fs/full suite

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
16 months agoMerge pull request #55746 from lxbsz/wip-64222
Yuri Weinstein [Fri, 15 Mar 2024 13:50:38 +0000 (06:50 -0700)]
Merge pull request #55746 from lxbsz/wip-64222

reef: qa/tasks/cephfs/test_misc: switch duration to timeout

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
16 months agoMerge pull request #55743 from lxbsz/wip-64075
Yuri Weinstein [Fri, 15 Mar 2024 13:50:08 +0000 (06:50 -0700)]
Merge pull request #55743 from lxbsz/wip-64075

reef: mds: just wait the client flushes the snap and dirty buffer

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
16 months agoMerge pull request #55742 from lxbsz/wip-64045
Yuri Weinstein [Fri, 15 Mar 2024 13:49:40 +0000 (06:49 -0700)]
Merge pull request #55742 from lxbsz/wip-64045

reef: mds: use explicitly sized types for network and disk encoding

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
16 months agoMerge pull request #54520 from joscollin/wip-63553-reef
Yuri Weinstein [Fri, 15 Mar 2024 13:48:20 +0000 (06:48 -0700)]
Merge pull request #54520 from joscollin/wip-63553-reef

reef: cephfs-top: include the missing fields in --dump output

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
16 months agoMerge pull request #53893 from rishabh-d-dave/wip-63147-reef
Yuri Weinstein [Fri, 15 Mar 2024 13:47:50 +0000 (06:47 -0700)]
Merge pull request #53893 from rishabh-d-dave/wip-63147-reef

reef: client: append to buffer list to save all result from wildcard command

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
16 months agoMerge pull request #52581 from rishabh-d-dave/wip-62026-reef
Yuri Weinstein [Fri, 15 Mar 2024 13:47:03 +0000 (06:47 -0700)]
Merge pull request #52581 from rishabh-d-dave/wip-62026-reef

reef: mds: allow all types of mds caps

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
16 months agoMerge pull request #55716 from cbodley/wip-64540-reef
Casey Bodley [Fri, 15 Mar 2024 13:32:53 +0000 (13:32 +0000)]
Merge pull request #55716 from cbodley/wip-64540-reef

reef: rgw: RGWSI_SysObj_Cache::remove() invalidates after successful delete

Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
16 months agoMerge pull request #56208 from zdover23/wip-doc-2024-03-15-backport-56188-to-reef
Zac Dover [Fri, 15 Mar 2024 11:03:37 +0000 (21:03 +1000)]
Merge pull request #56208 from zdover23/wip-doc-2024-03-15-backport-56188-to-reef

reef: doc/rbd: add clone mapping command

Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
16 months agomgr/dashboard: disable applitools e2e 56215/head
Nizamudeen A [Thu, 7 Mar 2024 08:43:54 +0000 (14:13 +0530)]
mgr/dashboard: disable applitools e2e

Temporarily disabling this so the CI could turn green. Meanwhile I'll
research for a proper way to handle the applitools e2es which I'll track
on https://tracker.ceph.com/issues/64783

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

16 months agotest/librbd: add DiffIterateTruncate and DiffIterateWriteAndTruncate 56213/head
Ilya Dryomov [Tue, 5 Mar 2024 20:05:22 +0000 (21:05 +0100)]
test/librbd: add DiffIterateTruncate and DiffIterateWriteAndTruncate

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

16 months agolibrbd: don't clip expanded diff on truncate in ObjectListSnapsRequest
Ilya Dryomov [Wed, 28 Feb 2024 13:20:16 +0000 (14:20 +0100)]
librbd: don't clip expanded diff on truncate in ObjectListSnapsRequest

If the diff was expanded due to LIST_SNAPS_FLAG_WHOLE_OBJECT, clipping
it when handling a truncate is wrong -- when subtracting that interval,
we either split the expanded extent into two or chop off a piece of it.
However the point of LIST_SNAPS_FLAG_WHOLE_OBJECT is to report a single
extent covering the entire object.

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

16 months agolibrados/snap_set_diff: ignore truncates above size at start
Ilya Dryomov [Sun, 18 Feb 2024 10:46:15 +0000 (11:46 +0100)]
librados/snap_set_diff: ignore truncates above size at start

Because currently calc_snap_set_diff() only ever appends to the running
diff, an excessive (either too large or completely bogus) zero extent
is reported in cases where an object is first expanded (with a snapshot
taken at that point) and then truncated but still above the size of the
object as of the starting snapshot.

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

16 months agomgr/vol: don't import IndexException since it's unused 55692/head
Rishabh Dave [Mon, 4 Mar 2024 11:41:21 +0000 (17:11 +0530)]
mgr/vol: don't import IndexException since it's unused

Introduced-by: 079f722c37ef6cc8bd3cc26c49ae119dd83431f9
Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit b4c1d552aa4066efdda3493192927cb780693469)

16 months agoqa: disable snapshot_clone_no_wait for some tests
Venky Shankar [Mon, 19 Feb 2024 06:36:32 +0000 (01:36 -0500)]
qa: disable snapshot_clone_no_wait for some tests

Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit e5099d67a2478e199bba6a435300964756005525)

16 months agodoc: add the reject the clone when threads are not available feature in the document
neeraj pratap singh [Tue, 22 Aug 2023 08:02:58 +0000 (13:32 +0530)]
doc: add the reject the clone when threads are not available feature in the document

Fixes: https://tracker.ceph.com/issues/59714
Signed-off-by: Neeraj Pratap Singh <neesingh@redhat.com>
(cherry picked from commit 6a44322d59e5542731dd450b383046a13bc28a66)

Conflicts:
doc/cephfs/fs-volumes.rst: order of lines were improper
due to amendments in `max_concurrent_clones` config option
explanation.

16 months agoqa: add test cases for the support to reject clones feature
neeraj pratap singh [Tue, 22 Aug 2023 07:12:21 +0000 (12:42 +0530)]
qa: add test cases for the support to reject clones feature

Fixes: https://tracker.ceph.com/issues/59714
Signed-off-by: Neeraj Pratap Singh <neesingh@redhat.com>
(cherry picked from commit dbdc161f7473b6445a46f2cd69efb09f99e8193d)

16 months agodoc/rbd: add clone mapping command 56208/head
Zac Dover [Thu, 14 Mar 2024 08:37:23 +0000 (18:37 +1000)]
doc/rbd: add clone mapping command

Add a command that explains how to map a formatted clone when the parent
image and the formatted clone have different encryption types.

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

16 months agoMerge pull request #55356 from cbodley/wip-64228-reef
Yuri Weinstein [Thu, 14 Mar 2024 19:46:29 +0000 (12:46 -0700)]
Merge pull request #55356 from cbodley/wip-64228-reef

reef: rgw/rest: fix url decode of post params for iam/sts/sns

Reviewed-by: Casey Bodley <cbodley@redhat.com>
16 months agoMerge pull request #56186 from zdover23/wip-doc-2024-03-14-backport-56160-to-reef
Zac Dover [Thu, 14 Mar 2024 19:44:46 +0000 (05:44 +1000)]
Merge pull request #56186 from zdover23/wip-doc-2024-03-14-backport-56160-to-reef

reef: doc/rbd: add map information for clone images to rbd-encryption.rst

Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
16 months agoMerge pull request #55197 from rzarzynski/wip-rocksdb-compression-reef
Yuri Weinstein [Thu, 14 Mar 2024 17:06:58 +0000 (10:06 -0700)]
Merge pull request #55197 from rzarzynski/wip-rocksdb-compression-reef

reef: common/options: Set LZ4 compression for bluestore RocksDB.

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
16 months agomds: disable `defer_client_eviction_on_laggy_osds' by default 56196/head
Venky Shankar [Mon, 4 Mar 2024 13:23:53 +0000 (18:53 +0530)]
mds: disable `defer_client_eviction_on_laggy_osds' by default

This config can result in a single client holding up mds to service
other clients since once a client is deferred from eviction due to
laggy OSD(s), a new clients cap acquire request can be possibly
blocked until the other laggy client resumes operation, i.e., when
the laggy OSD is considered non-laggy anymore.

Disable the config by default till the issue is fixed.

Fixes: http://tracker.ceph.com/issues/64685
Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit 109de8bdab86e1adaad580d9e7322c18fa01bc09)

16 months agoMerge pull request #56161 from zdover23/wip-doc-2024-03-13-backport-54173-to-reef
Zac Dover [Thu, 14 Mar 2024 16:34:19 +0000 (02:34 +1000)]
Merge pull request #56161 from zdover23/wip-doc-2024-03-13-backport-54173-to-reef

reef: doc/dev: backport zipapp docs to reef

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
16 months agoqa/workunits/rbd: switch rbd-mirror workunits to bash 55762/head
Ilya Dryomov [Sat, 9 Mar 2024 21:53:44 +0000 (22:53 +0100)]
qa/workunits/rbd: switch rbd-mirror workunits to bash

By making use of here strings in commit ea3a567f7f03 ("qa/workunits:
make wait_for_status_in_pool_dir() reentrant") we grew a dependency on
bash.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 166a2362378b1ff93e43f483f354c428fd6cef9e)
Signed-off-by: Ramana Raja <rraja@redhat.com>
Conflicts:
qa/workunits/rbd/rbd_mirror_journal.sh
        -  Commit 3fd8a03887354 not backported
           "qa/workunits/rbd: merge journal and snapshot test scripts"

16 months agoqa: Add tests to validate syncing of images using rbd-mirror
Ramana Raja [Thu, 25 May 2023 16:48:12 +0000 (16:48 +0000)]
qa: Add tests to validate syncing of images using rbd-mirror

Introduce functional tests to validate that the images under
workloads are correctly mirrored between two clusters using snapshot
based mirroring.

Run workload on a primary image using a krbd or nbd client. Take
mirror snapshots of the image under workload. Unmount the mapped image
and calculate its MD5 checksum before demoting it. After demotion,
wait for the mirror status of the image to be 'up+unknown' in both
the clusters. This is to make sure that the non-primary image in the
other cluster is ready to be promoted. Now promote the non-primary
image in the other cluster. Map the promoted image and calculate its
MD5 checksum. Verify that the checksums of the demoted and promoted
images in the two clusters are the same.

The above test is run as part of two different workunits:
 - a workunit that validates the syncing of multiple mirrored images
   with workloads running on them
 - another workunit that validates the syncing of a single mirrored
   image with workload running on it and the image is set as primary
   alternatively between the two clusters, as it happens during
   failover and failback scenarios.

Fixes: https://tracker.ceph.com/issues/61617
Signed-off-by: Ramana Raja <rraja@redhat.com>
Co-authored-by: Ilya Dryomov <idryomov@redhat.com>
Co-authored-by: Christopher Hoffman <choffman@redhat.com>
(cherry picked from commit b7aae5c3c5a1dd24c4cb7ceb499292af00bae680)

Cherry-pick notes:
- In qa/workunits/rbd/compare_mirror_images.sh, replace
  `wait_for_replaying_status_in_pool_dir` with `wait_for_status_in_pool_dir`
  Commit 3fd8a03 that added `wait_for_replaying_status_in_pool_dir`
  not backported

16 months agomgr/dashboard: add ACLs 55575/head
Pedro Gonzalez Gomez [Wed, 1 Nov 2023 15:06:49 +0000 (16:06 +0100)]
mgr/dashboard: add ACLs

Fixes: https://tracker.ceph.com/issues/63547
Signed-off-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
(cherry picked from commit c3251fbf873b9781287ae937db614f115b7674ac)

16 months agomgr/dashboard: remove bucket policy
Pedro Gonzalez Gomez [Fri, 19 Jan 2024 05:40:05 +0000 (06:40 +0100)]
mgr/dashboard: remove bucket policy
add a button on the bucket form to clear the bucket policy

Fixes: https://tracker.ceph.com/issues/64096
Signed-off-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
(cherry picked from commit ae367352c7467f6ae3135fed154e89007e848347)

16 months agomgr/dashboard: set bucket policies
Pedro Gonzalez Gomez [Thu, 4 Jan 2024 22:16:10 +0000 (23:16 +0100)]
mgr/dashboard: set bucket policies

conflict: /home/pegonzal/ceph/ceph/src/pybind/mgr/dashboard/frontend/src/app/shared/enum/icons.enum.ts

- Adds support to set bucket policies through the Dashboard.
- Rename rgw bucket policy from 'policy' to 'bucket policy' and tab 'Permissions' to 'Policies'
- Fix: hide Tags when none are present on bucket list details and sets bucket form dirty after deleting a tag
- Added service to manage the formatting of a textArea that works with json

Signed-off-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
Fixes: https://tracker.ceph.com/issues/63942
(cherry picked from commit 2817d8e25d84bba47951bd68cb3e8651cdb51b56)

16 months agomgr/dashboard: add tags field to bucket edit
Pedro Gonzalez Gomez [Thu, 2 Nov 2023 07:25:53 +0000 (08:25 +0100)]
mgr/dashboard: add tags field to bucket edit

Fixes: https://tracker.ceph.com/issues/63412
Signed-off-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
(cherry picked from commit 9481b7e52dd66ee035adb234104dafdd2878e3a1)

16 months agodoc/rbd: add map information for clone images to rbd-encryption.rst 56186/head
N Balachandran [Wed, 13 Mar 2024 11:57:49 +0000 (17:27 +0530)]
doc/rbd: add map information for clone images to rbd-encryption.rst

Add information on the arguments required when mapping the
formatted clone of an encrypted parent image.

Co-authored-by: Zac Dover <zac.dover@proton.me>
Signed-off-by: N Balachandran <nibalach@redhat.com>
(cherry picked from commit 7a2e324a6e1c3e145d3b1e04e6f006defbe0e0b4)

16 months agoMerge pull request #56154 from rhcs-dashboard/wip-64883-reef
Nizamudeen A [Thu, 14 Mar 2024 07:17:05 +0000 (12:47 +0530)]
Merge pull request #56154 from rhcs-dashboard/wip-64883-reef

reef: mgr/dashboard: fix snap schedule time format

Reviewed-by: Nizamudeen A <nia@redhat.com>
16 months agomgr/cephadm: catch CancelledError in asyncio timeout handler 56103/head
Adam King [Fri, 16 Feb 2024 16:24:32 +0000 (11:24 -0500)]
mgr/cephadm: catch CancelledError in asyncio timeout handler

Specifically, concurrent.futures.CancelledError. At least on
python 3.9, this error can be raised when certain commands
being run asynchronously fail. Not catching this results in
the whole cephadm module crashing with something like

Traceback (most recent call last):
  File "/usr/share/ceph/mgr/cephadm/utils.py", line 94, in do_work
    return f(*arg)
  File "/usr/share/ceph/mgr/cephadm/serve.py", line 267, in refresh
    r = self._refresh_facts(host)
  File "/usr/share/ceph/mgr/cephadm/serve.py", line 370, in _refresh_facts
    val = self.mgr.wait_async(self._run_cephadm_json(
  File "/usr/share/ceph/mgr/cephadm/module.py", line 671, in wait_async
    return self.event_loop.get_result(coro, timeout)
  File "/usr/share/ceph/mgr/cephadm/ssh.py", line 64, in get_result
    return future.result(timeout)
  File "/lib64/python3.9/concurrent/futures/_base.py", line 444, in result
    raise CancelledError()
concurrent.futures._base.CancelledError

Fixes: https://tracker.ceph.com/issues/64473
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 9c34973932bf3a0ec50c1c63bcba5e35bfe407e5)

16 months agoMerge pull request #56102 from adk3798/wip-64627-reef
Adam King [Wed, 13 Mar 2024 14:08:18 +0000 (10:08 -0400)]
Merge pull request #56102 from adk3798/wip-64627-reef

reef: cephadm: create ceph-exporter sock dir if it's not present

Reviewed-by: John Mulligan <jmulligan@redhat.com>
16 months agoMerge pull request #56101 from adk3798/wip-64622-reef
Adam King [Wed, 13 Mar 2024 14:06:13 +0000 (10:06 -0400)]
Merge pull request #56101 from adk3798/wip-64622-reef

reef: mgr/cephadm is not defining haproxy tcp healthchecks for Ganesha

Reviewed-by: John Mulligan <jmulligan@redhat.com>
16 months agoMerge pull request #56100 from adk3798/wip-64620-reef
Adam King [Wed, 13 Mar 2024 14:04:40 +0000 (10:04 -0400)]
Merge pull request #56100 from adk3798/wip-64620-reef

reef: cephadm: Add nvmeof to autotuner calculation

Reviewed-by: John Mulligan <jmulligan@redhat.com>
16 months agoMerge pull request #56092 from adk3798/wip-63447-reef
Adam King [Wed, 13 Mar 2024 13:59:21 +0000 (09:59 -0400)]
Merge pull request #56092 from adk3798/wip-63447-reef

reef: mgr/cephadm: support for removing host entry from crush map during host removal

Reviewed-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
16 months agodoc/dev: backport zipapp docs to reef 56161/head
Zac Dover [Wed, 13 Mar 2024 12:04:35 +0000 (22:04 +1000)]
doc/dev: backport zipapp docs to reef

Backport the docs changes in https://github.com/ceph/ceph/pull/54173 to
the Reef release branch. This was not previously done because the docs
changes in PR#54173 were bundled with code changes.

Signed-off-by: Zac Dover <zac.dover@proton.me>
16 months agomgr/dashboard: fix snap schedule time format 56154/head
Ivo Almeida [Mon, 11 Mar 2024 15:09:57 +0000 (15:09 +0000)]
mgr/dashboard: fix snap schedule time format

Fixes: https://tracker.ceph.com/issues/64831
Signed-off-by: Ivo Almeida <ialmeida@redhat.com>
(cherry picked from commit a2942f01ae9bde76c6d562374a0bd8aceeee317e)

16 months agoMerge pull request #56115 from rhcs-dashboard/wip-64826-reef
Nizamudeen A [Wed, 13 Mar 2024 06:20:58 +0000 (11:50 +0530)]
Merge pull request #56115 from rhcs-dashboard/wip-64826-reef

reef: mgr/dashboard: fix snap schedule list toggle cols

Reviewed-by: Nizamudeen A <nia@redhat.com>
16 months agoqa/cephadm: adjust host drain test to handle explicit placement warning 56092/head
Adam King [Mon, 6 Nov 2023 16:19:09 +0000 (11:19 -0500)]
qa/cephadm: adjust host drain test to handle explicit placement warning

Since we're adding a warning if any host is listed explicitly
in the placement of any service when removing the host,
we need to adjust the host drain test that removes a host
without the --force flag to not have the explicit hostname
in the placement for the mon service.

Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit b4db5e4ffcf0fb345c99986718b16853f76b148a)

16 months agomgr/cephadm: warn when draining host explicitly listed in placement
Adam King [Mon, 16 Oct 2023 19:15:54 +0000 (15:15 -0400)]
mgr/cephadm: warn when draining host explicitly listed in placement

In the case you apply a spec like

```
service_type: node-exporter
placement:
  hosts:
  - host3
```

and then you run `ceph orch host drain host3`, cephadm will remove
the daemon from that host and the placement would now match nothing.

This is definitely an issue that should be able to be bypassed as
it generally isn't serious, but it would be good to let users
know they have the host listed explicitly in placements like this
when they want to drain it.

Fixes: https://tracker.ceph.com/issues/63220
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 434e5fe6aa69cad11454d437002015cff55b727a)

16 months agoqa/cephadm: test --rm-crush-entry host rm flag in host drain test
Adam King [Fri, 29 Sep 2023 20:52:37 +0000 (16:52 -0400)]
qa/cephadm: test --rm-crush-entry host rm flag in host drain test

Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 7870538dc1e19760cd96a3d343ae3d3235f71eb2)

16 months agoqa/cephadm: add teuthology test for host draining
Adam King [Fri, 29 Sep 2023 20:09:48 +0000 (16:09 -0400)]
qa/cephadm: add teuthology test for host draining

This was a gap in our testing in general, but I'm
adding it here right now specifically to use it
to test the "--rm-crush-entry" flag in a follow
up commit

Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 13f16e8d7bb029980d6688680390521253970e9a)

16 months agomgr/cephadm: add --rm-crush-entry flag to host removal
Adam King [Fri, 29 Sep 2023 18:39:10 +0000 (14:39 -0400)]
mgr/cephadm: add --rm-crush-entry flag to host removal

This will tell cephadm to try and remove the
crush bucket for the host at the end of the host
removal process. If this fails, we still consider the
host as having been successfully remove from
cephadm's POV, but the user will get back an error
message telling them we failed to remove the
host from the crush map

Fixes: https://tracker.ceph.com/issues/63031
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit fa0f62aa57755c45c713367620dc834530276b25)

Conflicts:
src/pybind/mgr/cephadm/module.py
src/pybind/mgr/orchestrator/_interface.py

16 months agoMerge pull request #56108 from adk3798/wip-64635-reef
Adam King [Wed, 13 Mar 2024 01:40:27 +0000 (21:40 -0400)]
Merge pull request #56108 from adk3798/wip-64635-reef

reef: cephadm/nvmeof: scrape nvmeof prometheus endpoint

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: John Mulligan <jmulligan@redhat.com>
16 months agoMerge pull request #56107 from adk3798/wip-64689-reef
Adam King [Wed, 13 Mar 2024 01:39:13 +0000 (21:39 -0400)]
Merge pull request #56107 from adk3798/wip-64689-reef

reef: mgr/cephadm: fix placement with label and host pattern

Reviewed-by: John Mulligan <jmulligan@redhat.com>
16 months agoMerge pull request #56106 from adk3798/wip-64644-reef
Adam King [Wed, 13 Mar 2024 01:38:30 +0000 (21:38 -0400)]
Merge pull request #56106 from adk3798/wip-64644-reef

reef: cephadm: remove restriction for crush device classes

Reviewed-by: John Mulligan <jmulligan@redhat.com>
16 months agoMerge pull request #56105 from adk3798/wip-64634-reef
Adam King [Wed, 13 Mar 2024 01:37:56 +0000 (21:37 -0400)]
Merge pull request #56105 from adk3798/wip-64634-reef

reef: cephadm: rm podman-auth.json if removing last cluster

Reviewed-by: John Mulligan <jmulligan@redhat.com>
16 months agoMerge pull request #56099 from adk3798/wip-64414-reef
Adam King [Wed, 13 Mar 2024 01:36:46 +0000 (21:36 -0400)]
Merge pull request #56099 from adk3798/wip-64414-reef

reef: cephadm: fix get_version for nvmeof

Reviewed-by: John Mulligan <jmulligan@redhat.com>
16 months agoMerge pull request #56098 from adk3798/wip-63985-reef
Adam King [Wed, 13 Mar 2024 01:36:15 +0000 (21:36 -0400)]
Merge pull request #56098 from adk3798/wip-63985-reef

reef: orchestrator: Add summary line to orch device ls output

Reviewed-by: John Mulligan <jmulligan@redhat.com>
16 months agoMerge pull request #56097 from adk3798/wip-63984-reef
Adam King [Wed, 13 Mar 2024 01:35:30 +0000 (21:35 -0400)]
Merge pull request #56097 from adk3798/wip-63984-reef

reef: orchestrator: Fix representation of CPU threads in host ls --detail command

Reviewed-by: John Mulligan <jmulligan@redhat.com>
16 months agoMerge pull request #56096 from adk3798/wip-63817-reef
Adam King [Wed, 13 Mar 2024 01:34:55 +0000 (21:34 -0400)]
Merge pull request #56096 from adk3798/wip-63817-reef

reef: python-common/drive_selection: fix limit with existing devices

Reviewed-by: John Mulligan <jmulligan@redhat.com>