]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
8 months agoceph-volume: address mypy errors in disk.py
Guillaume Abrioux [Wed, 9 Oct 2024 15:00:53 +0000 (15:00 +0000)]
ceph-volume: address mypy errors in disk.py

typical error:

```
ceph_volume/util/disk.py:1374: error: Incompatible types in assignment (expression has type "Optional[str]", variable has type "str")  [assignment]
```

This commits addresses it.

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

8 months agoceph-volume: address test_activate_dmcrypt_tpm
Guillaume Abrioux [Wed, 9 Oct 2024 14:59:38 +0000 (14:59 +0000)]
ceph-volume: address test_activate_dmcrypt_tpm

This mocks the call to `luks_close()`, otherwise this test
fails when run on a system where `cryptsetup` isn't available.

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

8 months agoMerge pull request #60482 from zdover23/wip-doc-2024-10-25-backport-60480-to-squid
Anthony D'Atri [Fri, 25 Oct 2024 03:43:39 +0000 (23:43 -0400)]
Merge pull request #60482 from zdover23/wip-doc-2024-10-25-backport-60480-to-squid

squid: doc/cephfs: use 'p' flag to set layouts or quotas

8 months agodoc/cephfs: use 'p' flag to set layouts or quotas 60482/head
TruongSinh Tran-Nguyen [Thu, 24 Oct 2024 20:57:49 +0000 (13:57 -0700)]
doc/cephfs: use 'p' flag to set layouts or quotas

Remind users that clients must use the 'p' flag when writing file
layouts.

This PR is made in response to
https://www.reddit.com/r/ceph/comments/1gbad51/comment/ltkgd5v/

Co-authored-by: Zac Dover <zac.dover@proton.me>
Signed-off-by: TruongSinh Tran-Nguyen <i@truongsinh.pro>
(cherry picked from commit 13c7c9d99881c7b4491ba1a693283c047161ea8a)

8 months agoMerge pull request #59603 from cbodley/wip-67882-squid
Yuri Weinstein [Thu, 24 Oct 2024 12:55:00 +0000 (05:55 -0700)]
Merge pull request #59603 from cbodley/wip-67882-squid

squid: qa/rgw/multisite: specify realm/zonegroup/zone args for 'account create'

Reviewed-by: Shilpa Jagannath <smanjara@redhat.com>
8 months agoMerge pull request #60244 from cbodley/wip-67957-squid
Shilpa Jagannath [Thu, 24 Oct 2024 05:38:49 +0000 (22:38 -0700)]
Merge pull request #60244 from cbodley/wip-67957-squid

squid: rgw/beast: optimize for accept when meeting error in listenning

8 months agoMerge pull request #60065 from cbodley/wip-68330-squid
Shilpa Jagannath [Thu, 24 Oct 2024 05:37:13 +0000 (22:37 -0700)]
Merge pull request #60065 from cbodley/wip-68330-squid

squid: rgw/rados: don't rely on IoCtx::get_last_version() for async ops

8 months agoMerge pull request #59917 from yuvalif/wip-67648-squid
Shilpa Jagannath [Thu, 24 Oct 2024 05:36:36 +0000 (22:36 -0700)]
Merge pull request #59917 from yuvalif/wip-67648-squid

squid: test/rgw/notifications: don't check for full queue if topics expired

8 months agoMerge pull request #59670 from mkogan1/wip-67922-squid
Shilpa Jagannath [Thu, 24 Oct 2024 05:30:43 +0000 (22:30 -0700)]
Merge pull request #59670 from mkogan1/wip-67922-squid

squid: rgw: decrement qlen/qactive perf counters on error

8 months agoMerge pull request #59439 from cbodley/wip-67712-squid
Shilpa Jagannath [Thu, 24 Oct 2024 05:29:37 +0000 (22:29 -0700)]
Merge pull request #59439 from cbodley/wip-67712-squid

squid: rgw/http: finish_request() after logging errors

8 months agoMerge pull request #59413 from cbodley/wip-67686-squid
Shilpa Jagannath [Thu, 24 Oct 2024 05:29:16 +0000 (22:29 -0700)]
Merge pull request #59413 from cbodley/wip-67686-squid

squid: rgw: load copy source bucket attrs in putobj

8 months agoMerge pull request #59303 from yuvalif/wip-67609-squid
Shilpa Jagannath [Thu, 24 Oct 2024 05:28:35 +0000 (22:28 -0700)]
Merge pull request #59303 from yuvalif/wip-67609-squid

squid: test/rgw/notification: use real ip address instead of localhost

8 months agoMerge pull request #59226 from cbodley/wip-67558-squid
Shilpa Jagannath [Thu, 24 Oct 2024 05:27:33 +0000 (22:27 -0700)]
Merge pull request #59226 from cbodley/wip-67558-squid

squid: rgw/notify: visit() returns copy of owner string

8 months agoMerge pull request #59223 from cbodley/wip-67557-squid
Shilpa Jagannath [Thu, 24 Oct 2024 05:26:45 +0000 (22:26 -0700)]
Merge pull request #59223 from cbodley/wip-67557-squid

squid: rgwlc: fix typo in getlc (ObjectSizeGreaterThan)

8 months agoMerge pull request #60461 from zdover23/wip-doc-2024-10-24-backport-60460-to-squid
Anthony D'Atri [Thu, 24 Oct 2024 00:47:19 +0000 (20:47 -0400)]
Merge pull request #60461 from zdover23/wip-doc-2024-10-24-backport-60460-to-squid

squid: doc/start: add vstart install guide

8 months agodoc/start: add vstart install guide 60461/head
Zac Dover [Wed, 23 Oct 2024 23:04:08 +0000 (09:04 +1000)]
doc/start: add vstart install guide

Add "vstart Cluster Installation and Configuration Procedure" to the
Beginner's Guide.

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

8 months agoMerge pull request #60354 from guits/wip-68556-squid
Adam King [Wed, 23 Oct 2024 18:30:01 +0000 (14:30 -0400)]
Merge pull request #60354 from guits/wip-68556-squid

squid: cephadm: pull container images from quay.io

Reviewed-by: Adam King <adking@redhat.com>
8 months agoMerge pull request #60353 from guits/wip-68566-squid
Guillaume Abrioux [Wed, 23 Oct 2024 07:16:01 +0000 (09:16 +0200)]
Merge pull request #60353 from guits/wip-68566-squid

squid: ceph-volume: drop unnecessary call to `get_single_lv()`

8 months agoMerge pull request #60091 from guits/wip-68343-squid
Guillaume Abrioux [Wed, 23 Oct 2024 06:44:03 +0000 (08:44 +0200)]
Merge pull request #60091 from guits/wip-68343-squid

squid: ceph-volume: add new class UdevData

8 months agoMerge pull request #60435 from zdover23/wip-doc-2024-10-23-backport-60433-to-squid
Anthony D'Atri [Wed, 23 Oct 2024 01:52:26 +0000 (21:52 -0400)]
Merge pull request #60435 from zdover23/wip-doc-2024-10-23-backport-60433-to-squid

squid: doc/cephfs: rearrange subvolume group information

8 months agodoc/cephfs: rearrange subvolume group information 60435/head
Indira Sawant [Tue, 22 Oct 2024 21:45:10 +0000 (16:45 -0500)]
doc/cephfs: rearrange subvolume group information

Rearranging the documentation to align it with CephFS encapsulation design.

Signed-off-by: Indira Sawant <indira.sawant@ibm.com>
(cherry picked from commit f6cf7ae5281f5740ac78bfa5e2a22913353b8167)

8 months agoMerge pull request #60432 from zdover23/wip-doc-2024-10-23-backport-60423-to-squid
Zac Dover [Wed, 23 Oct 2024 01:28:45 +0000 (11:28 +1000)]
Merge pull request #60432 from zdover23/wip-doc-2024-10-23-backport-60423-to-squid

squid: doc/cephadm: correct "ceph orch apply" command

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
8 months agocephadm: pull container images from quay.io 60354/head
Guillaume Abrioux [Mon, 30 Sep 2024 13:30:25 +0000 (15:30 +0200)]
cephadm: pull container images from quay.io

Now that all required images are hosted and/or mirrored on quay.io
we can move away from docker.io

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

8 months agodoc/cephadm: correct "ceph orch apply" command 60432/head
Zac Dover [Tue, 22 Oct 2024 11:30:02 +0000 (21:30 +1000)]
doc/cephadm: correct "ceph orch apply" command

s/orch apply/ceph orch apply/ in a command where "ceph" was missing.

This was reported by Eugen Block to Zac Dover on 22 Oct 2024 through
Slack.

Co-authored-by: Eugen Block <eblock@nde.ag>
Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit c42066766428c72884ed6f5dd6fa88244f436a1f)

8 months agoMerge pull request #60127 from adamemerson/wip-40692-squid
Casey Bodley [Tue, 22 Oct 2024 15:44:35 +0000 (11:44 -0400)]
Merge pull request #60127 from adamemerson/wip-40692-squid

squid: global: Call getnam_r with a 64KiB buffer on the heap

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
8 months agoMerge pull request #59661 from idryomov/wip-67845-squid
Ilya Dryomov [Tue, 22 Oct 2024 10:32:42 +0000 (12:32 +0200)]
Merge pull request #59661 from idryomov/wip-67845-squid

squid: librbd/migration: prune snapshot extents in RawFormat::list_snaps()

Reviewed-by: Ramana Raja <rraja@redhat.com>
8 months agoMerge pull request #58542 from k0ste/wip-66530-squid
Yuri Weinstein [Mon, 21 Oct 2024 20:56:02 +0000 (13:56 -0700)]
Merge pull request #58542 from k0ste/wip-66530-squid

squid: cephadm: fix apparmor profiles with spaces in the names

Reviewed-by: Adam King adking@redhat.com
8 months agoMerge pull request #60171 from idryomov/wip-63184-squid
Yuri Weinstein [Mon, 21 Oct 2024 19:21:59 +0000 (12:21 -0700)]
Merge pull request #60171 from idryomov/wip-63184-squid

squid: librbd/crypto/LoadRequest: clone format for migration source image

Reviewed-by: Ramana Raja <rraja@redhat.com>
8 months agoMerge pull request #59771 from nbalacha/wip-67764-squid
Yuri Weinstein [Mon, 21 Oct 2024 19:21:08 +0000 (12:21 -0700)]
Merge pull request #59771 from nbalacha/wip-67764-squid

squid: rbd-mirror: use correct ioctx for namespace

Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
8 months agoMerge pull request #59502 from idryomov/wip-67698-squid
Yuri Weinstein [Mon, 21 Oct 2024 19:20:14 +0000 (12:20 -0700)]
Merge pull request #59502 from idryomov/wip-67698-squid

squid: rbd: "rbd bench" always writes the same byte

Reviewed-by: Mykola Golub <mgolub@suse.com>
8 months agoMerge pull request #59145 from idryomov/wip-53674-squid
Yuri Weinstein [Mon, 21 Oct 2024 19:19:31 +0000 (12:19 -0700)]
Merge pull request #59145 from idryomov/wip-53674-squid

squid: librbd/crypto: fix issue when live-migrating from encrypted export

Reviewed-by: Ramana Raja <rraja@redhat.com>
8 months agoMerge pull request #60335 from aclamk/wip-68560-squid
Adam Kupczyk [Mon, 21 Oct 2024 13:08:32 +0000 (15:08 +0200)]
Merge pull request #60335 from aclamk/wip-68560-squid

squid: os/bluestore: Fix ceph-bluestore-tool allocmap command

8 months agoMerge pull request #59969 from aclamk/wip-68222-squid
Adam Kupczyk [Mon, 21 Oct 2024 07:55:27 +0000 (09:55 +0200)]
Merge pull request #59969 from aclamk/wip-68222-squid

squid: os/bluestore: Fix BlueFS allocating bdev label reserved location

8 months agoMerge pull request #60336 from aclamk/wip-68558-squid
Adam Kupczyk [Mon, 21 Oct 2024 07:55:17 +0000 (09:55 +0200)]
Merge pull request #60336 from aclamk/wip-68558-squid

squid: os/bluestore: Fix repair of multilabel when collides with BlueFS

8 months agoMerge pull request #60338 from zdover23/wip-doc-2024-10-16-backport-60302-to-squid
Zac Dover [Mon, 21 Oct 2024 05:02:46 +0000 (15:02 +1000)]
Merge pull request #60338 from zdover23/wip-doc-2024-10-16-backport-60302-to-squid

squid: doc,mailmap: update my email / association to ibm

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
8 months agoMerge pull request #60003 from kamoltat/wip-68280-squid
Kamoltat (Junior) Sirivadhna [Fri, 18 Oct 2024 22:40:18 +0000 (18:40 -0400)]
Merge pull request #60003 from kamoltat/wip-68280-squid

squid: src/mon/ConnectionTracker.cc: Fix dump function
Reviewed-by: Neha Ojha <nojha@redhat.com>
9 months agoMerge pull request #60378 from rhcs-dashboard/wip-68597-squid
afreen23 [Thu, 17 Oct 2024 20:23:15 +0000 (01:53 +0530)]
Merge pull request #60378 from rhcs-dashboard/wip-68597-squid

squid: mgr/dashboard: fix lifecycle issues

Reviewed-by: Afreen Misbah <afreen@ibm.com>
9 months agoMerge pull request #60279 from mchangir/wip-log-save-thread-name-in-log-entries-squid
Yuri Weinstein [Thu, 17 Oct 2024 18:43:15 +0000 (11:43 -0700)]
Merge pull request #60279 from mchangir/wip-log-save-thread-name-in-log-entries-squid

squid: log: save/fetch thread name infra

Reviewed-by: Kamoltat (Junior) Sirivadhna <ksirivad@redhat.com>
9 months agomgr/dashboard: fix lifecycle issues 60378/head
Pedro Gonzalez Gomez [Mon, 7 Oct 2024 19:22:20 +0000 (21:22 +0200)]
mgr/dashboard: fix lifecycle issues

Conflicts:
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-details/rgw-bucket-details.component.html

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

9 months agoMerge pull request #60356 from rhcs-dashboard/wip-68565-squid
Pedro Gonzalez Gomez [Thu, 17 Oct 2024 06:01:19 +0000 (08:01 +0200)]
Merge pull request #60356 from rhcs-dashboard/wip-68565-squid

Squid: mgr/dashboard: The subvolumes are missing from the dropdown menu on the "Create NFS export" page

9 months agoMerge pull request #60346 from rhcs-dashboard/wip-68554-squid
afreen23 [Wed, 16 Oct 2024 16:33:12 +0000 (22:03 +0530)]
Merge pull request #60346 from rhcs-dashboard/wip-68554-squid

Squid: mgr/dashboard: sync policy's in Object >> Multi-site >> Sync-policy, does not show the zonegroup to which policy belongs to

Reviewed-by: Afreen Misbah <afreen@ibm.com>
9 months agoMerge pull request #60348 from afreen23/wip-68559-squid
afreen23 [Wed, 16 Oct 2024 15:24:03 +0000 (20:54 +0530)]
Merge pull request #60348 from afreen23/wip-68559-squid

squid: mgr/dashboard: fix group name bugs in the nvmeof API

Reviewed-by: Afreen Misbah <afreen@ibm.com>
9 months agoMerge pull request #60332 from cbodley/wip-doc-rgw-multisite-secondary-commit-squid
Casey Bodley [Wed, 16 Oct 2024 15:05:18 +0000 (11:05 -0400)]
Merge pull request #60332 from cbodley/wip-doc-rgw-multisite-secondary-commit-squid

squid: doc/radosgw/multisite: fix Configuring Secondary Zones -> Updating the Period

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
9 months agoMerge pull request #58991 from cbodley/wip-67307-squid
SrinivasaBharathKanta [Wed, 16 Oct 2024 14:36:34 +0000 (20:06 +0530)]
Merge pull request #58991 from cbodley/wip-67307-squid

squid: msg: insert PriorityDispatchers in sorted position

9 months agoMerge pull request #60343 from zdover23/wip-doc-2024-10-16-backport-60256-to-squid
Anthony D'Atri [Wed, 16 Oct 2024 13:17:13 +0000 (09:17 -0400)]
Merge pull request #60343 from zdover23/wip-doc-2024-10-16-backport-60256-to-squid

squid: doc: update Key Idea in cephfs-mirroring.rst

9 months agoSquid: mgr/dashboard: The subvolumes are missing from the dropdown menu on the "Creat... 60356/head
Dnyaneshwari [Mon, 14 Oct 2024 04:26:45 +0000 (09:56 +0530)]
Squid: mgr/dashboard: The subvolumes are missing from the dropdown menu on the "Create NFS export" page

Fixes: https://tracker.ceph.com/issues/68519
Signed-off-by: Dnyaneshwari Talwekar <dtalweka@redhat.com>
(cherry picked from commit e036fde7e4b03241e617cbb3ef8f19a703aae716)

9 months agoceph-volume: drop unnecessary call to `get_single_lv()` 60353/head
Guillaume Abrioux [Mon, 30 Sep 2024 09:17:11 +0000 (09:17 +0000)]
ceph-volume: drop unnecessary call to `get_single_lv()`

`Zap.zap_lv()` currently makes a call to `get_single_lv()`:

```
        lv = api.get_single_lv(filters={'lv_name': device.lv_name,
                                        'vg_name': device.vg_name})
```

this isn't needed and redundant as zap_lv() takes an instance of `Device()`
as argument which has already a `lv_api` attribute:

class Device in device.py:

```
            else:
                vgname, lvname = self.path.split('/')
                filters = {'lv_name': lvname, 'vg_name': vgname}
            lv = lvm.get_single_lv(filters=filters)         # <---- same call

        if lv:
            self.lv_api = lv
```

This implies a duplicate call to `subprocess.Popen()` unnecessarily.

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

9 months agoos/bluestore: Fix repair of multilabel when collides with BlueFS 60336/head
Adam Kupczyk [Tue, 15 Oct 2024 12:41:22 +0000 (12:41 +0000)]
os/bluestore: Fix repair of multilabel when collides with BlueFS

The problem was that BDEV_FIRST_LABEL_POSITION was removed from
bdev_label_valid_locations set.
Now, if label at BDEV_FIRST_LABEL_POSITION is valid, it is in the set.

Fixes: https://tracker.ceph.com/issues/68558
Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
(cherry picked from commit 7343be720870d4a5f82b55beee4685457a003067)

9 months agomgr/dashboard: fix group name bugs in the nvmeof API 60348/head
Nizamudeen A [Wed, 9 Oct 2024 14:45:55 +0000 (20:15 +0530)]
mgr/dashboard: fix group name bugs in the nvmeof API

there are 2 issues

1. in cephadm, i was always using the first daemon to populate the group
   in all the services for the dashboard config.

2. in the API, if there are more than 1 gateways listed in the config,
   rather than chosing a random gateway from the group, raise an
   exception and warn user to specify the gw_group parameter in the api
   request

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

 Conflicts:
src/pybind/mgr/cephadm/services/nvmeof.py

9 months agoMerge pull request #60311 from rhcs-dashboard/wip-68410-squid
afreen23 [Wed, 16 Oct 2024 06:57:27 +0000 (12:27 +0530)]
Merge pull request #60311 from rhcs-dashboard/wip-68410-squid

squid: mgr/dashboard: ignore exceptions raised when no cert/key found

Reviewed-by: Afreen Misbah <afreen@ibm.com>
9 months agoMerge pull request #60321 from aaSharma14/wip-68546-squid
afreen23 [Wed, 16 Oct 2024 06:54:11 +0000 (12:24 +0530)]
Merge pull request #60321 from aaSharma14/wip-68546-squid

squid: mgr/cephadm: Update multi-site configs before deploying  daemons on rgw service create

Reviewed-by: Afreen Misbah <afreen@ibm.com>
9 months agomgr/dashboard: sync policy's in Object >> Multi-site >> Sync-policy, does not show... 60346/head
Naman Munet [Tue, 8 Oct 2024 09:24:32 +0000 (14:54 +0530)]
mgr/dashboard: sync policy's in Object >> Multi-site >> Sync-policy, does not show the zonegroup to which policy belongs to

Fixes: https://tracker.ceph.com/issues/68355
Fixes Includes: Added default zonegroup name with the sync policy details

Signed-off-by: Naman Munet <namanmunet@li-ff83bccc-26af-11b2-a85c-a4b04bfb1003.ibm.com>
(cherry picked from commit 517ab013e2a9bd23b482134121bcb85c5a32f028)

9 months agodoc: update Key Idea in cephfs-mirroring.rst 60343/head
Jos Collin [Fri, 11 Oct 2024 05:03:47 +0000 (10:33 +0530)]
doc: update Key Idea in cephfs-mirroring.rst

Updates the snapdiff feature and it's url.

Signed-off-by: Jos Collin <jcollin@redhat.com>
(cherry picked from commit 629922bf6a0905cc87707f5e2d027f6320aafd99)

9 months agomailmap: add my ibm email 60338/head
Patrick Donnelly [Mon, 14 Oct 2024 18:50:41 +0000 (14:50 -0400)]
mailmap: add my ibm email

Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
(cherry picked from commit e4177406f9734f1c8af91f8292aa972d01fb77f9)

9 months agodoc/governance: update my CSC email
Patrick Donnelly [Mon, 14 Oct 2024 18:57:31 +0000 (14:57 -0400)]
doc/governance: update my CSC email

Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
(cherry picked from commit 2f61b2847d92b5156408dbcfa5b6e09e2de404c1)

9 months agoos/bluestore: Fix ceph-bluestore-tool allocmap command 60335/head
Adam Kupczyk [Fri, 13 Sep 2024 16:39:51 +0000 (16:39 +0000)]
os/bluestore: Fix ceph-bluestore-tool allocmap command

BlueStore::read_allocation_from_drive_for_bluestore_tool was
not informed that multiple bdev labels can exist and reserve space.
Comparison of real alloc vs recovered alloc was failing.

Fixes: https://tracker.ceph.com/issues/68560
Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
(cherry picked from commit 358f33a148c9a65478e33648f16e8c8af73c98f2)

9 months agodoc/radosgw/multisite: fix Configuring Secondary Zones -> Updating the Period 60332/head
Casey Bodley [Fri, 4 Oct 2024 19:50:05 +0000 (15:50 -0400)]
doc/radosgw/multisite: fix Configuring Secondary Zones -> Updating the Period

this was copy/pasted from Configuring a Master Zone -> Update the Period
but still referred to the 'master zone'

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

9 months agomgr/cephadm: RGW service deployment defaults to 'default' realm/zonegroup/zone despit... 60321/head
Aashish Sharma [Wed, 9 Oct 2024 14:02:49 +0000 (19:32 +0530)]
mgr/cephadm: RGW service deployment defaults to 'default' realm/zonegroup/zone despite non-default spec in service

When we create an RGW service using the ceph orch apply command, the service is always deployed in the default realm, zonegroup, and zone, even if we specify a different realm, zonegroup, or zone in the service spec. This happens because certain configuration values, like rgw_realm, rgw_zonegroup, and rgw_zone, need to be set for the RGW instances before the daemons are deployed. Currently, these configurations are being applied after the RGW daemons are deployed, which requires a service restart to reflect the correct realm, zonegroup, and zone. Ideally, these configurations should be applied before the RGW daemons are deployed, so they are correctly placed in the desired realm, zonegroup, and zone from the start.

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

9 months agoMerge pull request #59140 from zdover23/wip-doc-2024-08-10-backport-58951-to-squid
Zac Dover [Tue, 15 Oct 2024 12:22:17 +0000 (22:22 +1000)]
Merge pull request #59140 from zdover23/wip-doc-2024-08-10-backport-58951-to-squid

squid: mgr/dashboard: fix ceph-users api doc

Reviewed-by: Afreen <afreen23.git@gmail.com>
9 months agolog: thread name save/fetch infra 60279/head
Milind Changire [Fri, 27 Sep 2024 10:40:22 +0000 (16:10 +0530)]
log: thread name save/fetch infra

* pthread name is saved in a thread_local storage
* the thread_local name is copied into Entry object's ctor
* Log::dump_recent() reads the thread name from the Entry
  object's data member when dumping logs

Fixes: https://tracker.ceph.com/issues/50743
Signed-off-by: Milind Changire <mchangir@redhat.com>
(cherry picked from commit 0be8d01c9ddde0d7d24edd34dc75f6cfc861b5ba)

9 months agoMerge pull request #60287 from ronen-fr/wip-rf-60198-squid
Ronen Friedman [Tue, 15 Oct 2024 11:26:07 +0000 (14:26 +0300)]
Merge pull request #60287 from ronen-fr/wip-rf-60198-squid

squid: qa/standalone/scrub: remove TEST_recovery_scrub_2

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
9 months agoMerge pull request #60293 from rhcs-dashboard/squid-sync-policy-pipe-edit-fixes
afreen23 [Tue, 15 Oct 2024 10:52:47 +0000 (16:22 +0530)]
Merge pull request #60293 from rhcs-dashboard/squid-sync-policy-pipe-edit-fixes

Squid: mgr/dashboard: unable to edit pipe config for bucket level policy of bucket

Reviewed-by: Afreen Misbah <afreen@ibm.com>
9 months agoMerge pull request #60292 from afreen23/wip-68521-squid
afreen23 [Tue, 15 Oct 2024 10:51:29 +0000 (16:21 +0530)]
Merge pull request #60292 from afreen23/wip-68521-squid

squid: mgr/dashboard: Fix listener deletion

Reviewed-by: Afreen Misbah <afreen@ibm.com>
9 months agomgr/dashboard: Fix listener deletion 60292/head
Afreen Misbah [Fri, 11 Oct 2024 08:57:24 +0000 (14:27 +0530)]
mgr/dashboard: Fix listener deletion

Listener deletion is broken due to passing wrong gateway address.
Including `traddr` in DELETE API of listener to choose correct gateway address for deletion.

The same fix we did for POST API here: https://github.com/afreen23/ceph/commit/287ff3b3603291763b3cd08f9b1543fe60d5f3b9

Fixes: https://tracker.ceph.com/issues/68506
Signed-off-by: Afreen Misbah <afreen23.git@gmail.com>
(cherry picked from commit 3dc091dd12c54103b9e93b5c38b86c883d93f242)

 Conflicts:
src/pybind/mgr/dashboard/controllers/nvmeof.py

9 months agoMerge pull request #60310 from rhcs-dashboard/wip-pr-60150-squid
afreen23 [Tue, 15 Oct 2024 06:41:12 +0000 (12:11 +0530)]
Merge pull request #60310 from rhcs-dashboard/wip-pr-60150-squid

squid: mgr/dashboard: add gw_groups to all nvmeof endpoints

Reviewed-by: Afreen Misbah <afreen@ibm.com>
9 months agoMerge pull request #60294 from rhcs-dashboard/wip-68523-squid
afreen23 [Tue, 15 Oct 2024 06:35:59 +0000 (12:05 +0530)]
Merge pull request #60294 from rhcs-dashboard/wip-68523-squid

squid: mgr/dashboard: introduce server side pagination for osds

Reviewed-by: Afreen Misbah <afreen@ibm.com>
9 months agomgr/dashboard: rm unnecessary classmethods 60311/head
Nizamudeen A [Thu, 19 Sep 2024 04:44:07 +0000 (10:14 +0530)]
mgr/dashboard: rm unnecessary classmethods

Refer: https://github.com/ceph/ceph/pull/59482#discussion_r1756557726
Signed-off-by: Nizamudeen A <nia@redhat.com>
(cherry picked from commit b534f60ed5f415eb5757f734e1c0c6a292c631e9)

9 months agomgr/dashboard: ignore exceptions raised when no cert/key found
Nizamudeen A [Thu, 19 Sep 2024 03:39:20 +0000 (09:09 +0530)]
mgr/dashboard: ignore exceptions raised when no cert/key found

for nvmeof client, when there are no cert found, it raises an exception
which gets logged more often because the dashboard polls the client
frequently.

```
Sep 18 13:40:54 ceph-node-00 ceph-mgr[2716]: log_channel(cephadm) log [ERR] : No secret found for entity nvmeof_root_ca_cert with service name nvmeof.rbd.default
                                             Traceback (most recent call last):
                                               File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 140, in wrapper
                                                 return OrchResult(f(*args, **kwargs))
                                               File "/usr/share/ceph/mgr/cephadm/module.py", line 3271, in cert_store_get_cert
                                                 raise OrchSecretNotFound(entity=entity, service_name=service_name, hostname=hostname)
                                             cephadm.inventory.OrchSecretNotFound: No secret found for entity nvmeof_root_ca_cert with service name nvmeof.rbd.default
Sep 18 13:40:54 ceph-node-00 ceph-mgr[2716]: [dashboard INFO orchestrator] is orchestrator available: True,
Sep 18 13:40:54 ceph-node-00 ceph-mgr[2716]: [cephadm ERROR orchestrator._interface] No secret found for entity nvmeof_server_cert with service name nvmeof.rbd.default
                                             Traceback (most recent call last):
                                               File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 140, in wrapper
                                                 return OrchResult(f(*args, **kwargs))
                                               File "/usr/share/ceph/mgr/cephadm/module.py", line 3271, in cert_store_get_cert
                                                 raise OrchSecretNotFound(entity=entity, service_name=service_name, hostname=hostname)
                                             cephadm.inventory.OrchSecretNotFound: No secret found for entity nvmeof_server_cert with service name nvmeof.rbd.default
Sep 18 13:40:54 ceph-node-00 ceph-0377c7c2-75c1-11ef-bb0e-5254000e47d2-mgr-ceph-node-00-cvrrld[2712]: 2024-09-18T13:40:54.529+0000 7fbbd9272640 -1 log_channel(cephadm) log [ERR] : No secret found for entity nvmeof_server_cert with service name nvmeof.rbd.default
Sep 18 13:40:54 ceph-node-00 ceph-0377c7c2-75c1-11ef-bb0e-5254000e47d2-mgr-ceph-node-00-cvrrld[2712]: Traceback (most recent call last):
Sep 18 13:40:54 ceph-node-00 ceph-0377c7c2-75c1-11ef-bb0e-5254000e47d2-mgr-ceph-node-00-cvrrld[2712]:   File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 140, in wrapper
Sep 18 13:40:54 ceph-node-00 ceph-0377c7c2-75c1-11ef-bb0e-5254000e47d2-mgr-ceph-node-00-cvrrld[2712]:     return OrchResult(f(*args, **kwargs))
Sep 18 13:40:54 ceph-node-00 ceph-0377c7c2-75c1-11ef-bb0e-5254000e47d2-mgr-ceph-node-00-cvrrld[2712]:   File "/usr/share/ceph/mgr/cephadm/module.py", line 3271, in cert_store_get_cert
Sep 18 13:40:54 ceph-node-00 ceph-0377c7c2-75c1-11ef-bb0e-5254000e47d2-mgr-ceph-node-00-cvrrld[2712]:     raise OrchSecretNotFound(entity=entity, service_name=service_name, hostname=hostname)
Sep 18 13:40:54 ceph-node-00 ceph-0377c7c2-75c1-11ef-bb0e-5254000e47d2-mgr-ceph-node-00-cvrrld[2712]: cephadm.inventory.OrchSecretNotFound: No secret found for entity nvmeof_server_cert with service name nvmeof.rbd.default
Sep 18 13:40:54 ceph-node-00 ceph-mgr[2716]: log_channel(cephadm) log [ERR] : No secret found for entity nvmeof_server_cert with service name nvmeof.rbd.default
                                             Traceback (most recent call last):
                                               File "/usr/share/ceph/mgr/orchestrator/_interface.py", line 140, in wrapper
                                                 return OrchResult(f(*args, **kwargs))
                                               File "/usr/share/ceph/mgr/cephadm/module.py", line 3271, in cert_store_get_cert
                                                 raise OrchSecretNotFound(entity=entity, service_name=service_name, hostname=hostname)
                                             cephadm.inventory.OrchSecretNotFound: No secret found for entity nvmeof_server_cert with service name nvmeof.rbd.default
Sep 18 13:40:54 ceph-node-00 ceph-mgr[2716]: [dashboard INFO nvmeof_client] Insecurely connecting to: 192.168.100.101:5500
```

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

9 months agomgr/dashboard: add gw_groups to all nvmeof endpoints 60310/head
Nizamudeen A [Mon, 7 Oct 2024 06:41:11 +0000 (12:11 +0530)]
mgr/dashboard: add gw_groups to all nvmeof endpoints

This was missed in the previous implementation

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

9 months agoMerge pull request #60229 from dmick/wip-68469-squid
Laura Flores [Mon, 14 Oct 2024 22:59:37 +0000 (17:59 -0500)]
Merge pull request #60229 from dmick/wip-68469-squid

squid: Add Containerfile and build.sh to build it.

9 months agoMerge pull request #55865 from trociny/wip-64651-squid
Yuri Weinstein [Mon, 14 Oct 2024 21:26:08 +0000 (14:26 -0700)]
Merge pull request #55865 from trociny/wip-64651-squid

squid: mon/OSDMonitor: fix get_min_last_epoch_clean()

Reviewed-by: Matan Breizman <Matan.Brz@gmail.com>
9 months agoMerge pull request #60297 from zdover23/wip-doc-2024-10-14-backport-60242-to-squid
Anthony D'Atri [Mon, 14 Oct 2024 19:13:03 +0000 (15:13 -0400)]
Merge pull request #60297 from zdover23/wip-doc-2024-10-14-backport-60242-to-squid

squid: doc: SubmittingPatches-backports - remove backports team

9 months agocontainer/build.sh: fix arm architecture tagging 60229/head
Dan Mick [Thu, 10 Oct 2024 23:38:58 +0000 (16:38 -0700)]
container/build.sh: fix arm architecture tagging

The wrong string was used for comparison, and for tagging,
so the arm64 branch and sha1 images overwrote and destroyed
the amd64 images.

Signed-off-by: Dan Mick <dmick@redhat.com>
(cherry picked from commit 7e03ee798f4ed3aa4a0bb1a9e9d62df52e54406d)

9 months agoMerge pull request #60272 from zdover23/wip-doc-2024-10-12-backport-60243-to-squid
Zac Dover [Mon, 14 Oct 2024 13:57:46 +0000 (23:57 +1000)]
Merge pull request #60272 from zdover23/wip-doc-2024-10-12-backport-60243-to-squid

squid: doc/dev: remove "Stable Releases and Backports"

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
9 months agodoc: SubmittingPatches-backports - remove backports team 60297/head
Zac Dover [Thu, 10 Oct 2024 12:11:22 +0000 (22:11 +1000)]
doc: SubmittingPatches-backports - remove backports team

Remove all references to the "Stable Releases and Backports Team", which
as of October 2024 does not exist.

Fixes: https://tracker.ceph.com/issues/68471
Co-authored-by: Laura Flores <lflores@ibm.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit 0317b5f87ac22399f6242d72f0bb9924794687de)

9 months agoMerge pull request #59894 from avanthakkar/wip-68125-squid
Venky Shankar [Mon, 14 Oct 2024 09:54:42 +0000 (15:24 +0530)]
Merge pull request #59894 from avanthakkar/wip-68125-squid

squid: mgr/volumes: add earmarking for subvol

Reviewed-by: Venky Shankar <vshankar@redhat.com>
9 months agomgr/dashboard: introduce server side pagination for osds 60294/head
Nizamudeen A [Fri, 20 Sep 2024 15:05:38 +0000 (20:35 +0530)]
mgr/dashboard: introduce server side pagination for osds

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

 Conflicts:
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-list/osd-list.component.ts
 - remove the carbon cds modal import

9 months agomgr/dashboard: unable to edit pipe config for bucket level policy of a bucket 60293/head
Naman Munet [Mon, 7 Oct 2024 05:11:29 +0000 (10:41 +0530)]
mgr/dashboard: unable to edit pipe config for bucket level policy of a bucket

Fixes: https://tracker.ceph.com/issues/68387
Fixes Includes:
1) Passing additional parameter for 'user' and 'mode' as the user can be either system/dashboard or other values while creating pipe.
2) Previously while removing the src/dest bucket field, we were getting same old values on editing pipe, but now it will become '*' if empty value passed from frontend.

Signed-off-by: Naman Munet <namanmunet@li-ff83bccc-26af-11b2-a85c-a4b04bfb1003.ibm.com>
(cherry picked from commit 5a1a21573b92113144060e8475778c669b1de4aa)

9 months agoqa/standalone/scrub: remove TEST_recovery_scrub_2 60287/head
Ronen Friedman [Tue, 8 Oct 2024 13:25:56 +0000 (08:25 -0500)]
qa/standalone/scrub: remove TEST_recovery_scrub_2

That test does no longer match the actual requirements and
implementation of scrubbing.
It was already deactivated in
https://github.com/ceph/ceph/pull/59590. Here - it is
fully removed, mainly for the sake of backporting.

Fixes (original): https://tracker.ceph.com/issues/50245
Fixes (Squid backport): https://tracker.ceph.com/issues/68403

(cherry picked from commit 0c4028a6a356ae8c6e7d6d646e96c8e38a114789)
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
9 months agodoc/dev: remove "Stable Releases and Backports" 60272/head
Zac Dover [Thu, 10 Oct 2024 12:17:12 +0000 (22:17 +1000)]
doc/dev: remove "Stable Releases and Backports"

Remove mention of "Stable Releases and Backports" from
doc/dev/developer_guide/essentials.rst.

Co-authored-by: Laura Flores <lflores@ibm.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit 95916c91906604c516e78b550010e9de511fc1e9)

9 months agoMerge pull request #60269 from zdover23/wip-doc-2024-10-12-backport-59507-to-squid
Anthony D'Atri [Fri, 11 Oct 2024 20:05:25 +0000 (16:05 -0400)]
Merge pull request #60269 from zdover23/wip-doc-2024-10-12-backport-59507-to-squid

squid: doc/rbd: add namespace information for mirror commands

9 months agodoc/rbd: add namespace information for mirror commands 60269/head
N Balachandran [Thu, 29 Aug 2024 09:04:44 +0000 (14:34 +0530)]
doc/rbd: add namespace information for mirror commands

Updates the rbd man page to clarify  that some mirror commands
can apply to pools and namespaces.

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

9 months agoMerge pull request #60232 from aaSharma14/wip-68480-squid
Aashish Sharma [Fri, 11 Oct 2024 05:19:28 +0000 (10:49 +0530)]
Merge pull request #60232 from aaSharma14/wip-68480-squid

squid: mgr/dashboard: show non default realm sync status in rgw overview page

Reviewed-by: Afreen Misbah <afreen23.git@gmail.com>
9 months agoMerge pull request #60231 from aaSharma14/wip-68479-squid
afreen23 [Thu, 10 Oct 2024 20:27:31 +0000 (01:57 +0530)]
Merge pull request #60231 from aaSharma14/wip-68479-squid

squid: mgr/dashboard: fix gateways section error:”404 - Not Found RGW Daemon not found: None”

Reviewed-by: Afreen Misbah <afreen23.git@gmail.com>
9 months agorgw/rados: rgw_rados_operate() takes version_t* 60065/head
Casey Bodley [Wed, 25 Sep 2024 22:38:08 +0000 (18:38 -0400)]
rgw/rados: rgw_rados_operate() takes version_t*

instead of calling ioctx.get_last_version() after a rados operation,
callers now pass version_t* as an output parameter. in the null_yield
case, that version is assigned to ioctx.get_last_version() as normal. in
the async case, we get the version out of librados::async_operate()'s
return value

Fixes: https://tracker.ceph.com/issues/63935
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 7769bdb9438d48afc8500c16167f82c8f549a914)

Conflicts: maybe_warn_about_blocking() not backported
src/rgw/driver/rados/rgw_tools.cc

9 months agolibrados/asio: add version_t to completion signatures
Casey Bodley [Wed, 25 Sep 2024 20:20:31 +0000 (16:20 -0400)]
librados/asio: add version_t to completion signatures

IoCtx::aio_operate() doesn't update IoCtx::get_last_version(). to make
the resulting version_t available to the caller, we have to read it out
of the AioCompletionImpl and return it to the caller

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

9 months agoMerge pull request #60233 from zdover23/wip-doc-2024-10-10-backport-60204-to-squid
Anthony D'Atri [Thu, 10 Oct 2024 12:44:35 +0000 (08:44 -0400)]
Merge pull request #60233 from zdover23/wip-doc-2024-10-10-backport-60204-to-squid

squid: doc: fix email

9 months agorgw/beast: optimize for accept when meeting error in listenning 60244/head
liangmingyuan [Mon, 5 Aug 2024 07:30:33 +0000 (15:30 +0800)]
rgw/beast:  optimize for accept when meeting error in listenning

It is not suitable to stop accept socket when meeting any error in
previous socket listen and accept. This will results in radosgw
stop work after a occasional case. For example, Too many open files
warning may occur at high iops(or just after reshard, sockets opened
may increase for doing operations blocked).

Signed-off-by: Mingyuan Liang <liangmingyuan@baidu.com>
(cherry picked from commit a7090783cf820045633c66ca04926cb3f2b5a4aa)

9 months agorgw/beast: spawn a cancellable coroutine for the accept loop
Casey Bodley [Tue, 6 Aug 2024 16:07:18 +0000 (12:07 -0400)]
rgw/beast: spawn a cancellable coroutine for the accept loop

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

9 months agoMerge pull request #60133 from liangmingyuanneo/wip-55592-and-57630-squid
Casey Bodley [Thu, 10 Oct 2024 12:25:11 +0000 (08:25 -0400)]
Merge pull request #60133 from liangmingyuanneo/wip-55592-and-57630-squid

squid: rgw: switch back to boost::asio for spawn() and yield_context

Reviewed-by: Casey Bodley <cbodley@redhat.com>
9 months agodoc: fix email 60233/head
Ernesto Puerta [Wed, 9 Oct 2024 06:12:42 +0000 (08:12 +0200)]
doc: fix email

Signed-off-by: Ernesto Puerta <37327689+epuertat@users.noreply.github.com>
(cherry picked from commit 512eea1af52126e9b082744ee7b870c12c23d55d)

9 months agoMerge pull request #59900 from rhcs-dashboard/wip-68163-squid
Nizamudeen A [Thu, 10 Oct 2024 06:47:18 +0000 (12:17 +0530)]
Merge pull request #59900 from rhcs-dashboard/wip-68163-squid

Squid: mgr/dashboard: NFS Export form fixes

Reviewed-by: afreen23 <NOT@FOUND>
Reviewed-by: Nizamudeen A <nia@redhat.com>
9 months agomgr/dashboard: show non default realm sync status in rgw overview page 60232/head
Aashish Sharma [Wed, 25 Sep 2024 12:39:32 +0000 (18:09 +0530)]
mgr/dashboard: show non default realm sync status in rgw overview page

Currently, we just show the sync status of the default realm in rgw
overview page. This PR is to show the sync status of non-default realms
as well. Multisite sync status can be viewed for any of the active daemon
which runs in default/non-default realm.

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

9 months agomgr/dashboard: fix gateways section error:”404 - Not Found RGW Daemon not found:... 60231/head
Aashish Sharma [Thu, 3 Oct 2024 08:28:14 +0000 (13:58 +0530)]
mgr/dashboard: fix gateways section error:”404 - Not Found RGW Daemon not found: None”

A case was missed here where we do have a default realm created but no default_zonegorup, in that case, the existing behavior should prevail and that's not being handled. If a default_realm is created but no default_zonegroup is there, weshould continue getting the keys from daemon_name = next(iter(daemon_keys))

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

9 months agoAdd Containerfile and build.sh to build it.
Dan Mick [Wed, 26 Jun 2024 02:07:41 +0000 (19:07 -0700)]
Add Containerfile and build.sh to build it.

The intent is to replace ceph-container.git, at first for ci containers
only, and eventually production containers as well.

There is code present for production containers, including
a separate "make-manifest-list.py" to scan for and glue the two
arch-specific containers into a 'manifest-list' 'fat' container,
but that code is not yet fully tested.

This code will not be used until a corresponding change to the
Jenkins jobs in ceph-build.git is pushed.

Note that this tooling does not authenticate to the container repo;
it is assumed that will be done elsewhere.  Authentication is
verified by pushing a minimal image to the requested repo.

Signed-off-by: Dan Mick <dmick@redhat.com>
(cherry picked from commit 5c40a5c1737cf0628c899c4e9f788017b8b4fca8)

9 months agoMerge pull request #60154 from rhcs-dashboard/wip-68313-squid
afreen23 [Wed, 9 Oct 2024 13:54:44 +0000 (19:24 +0530)]
Merge pull request #60154 from rhcs-dashboard/wip-68313-squid

squid: mgr/dashboard: fix doc links in rgw-multisite

Reviewed-by: Afreen Misbah <afreen23.git@gmail.com>
9 months agomgr/dashboard: NFS Export form fixes 59900/head
Dnyaneshwari [Wed, 7 Aug 2024 07:26:10 +0000 (12:56 +0530)]
mgr/dashboard: NFS Export form fixes
Fixes: https://tracker.ceph.com/issues/67400
Signed-off-by: Dnyaneshwari Talwekar <dtalweka@redhat.com>
(cherry picked from commit 28d2fa30c25cb9d089e93921ef3be022c98ac35e)

9 months agolibrbd/crypto/LoadRequest: clone format for migration source image 60171/head
Ilya Dryomov [Thu, 3 Oct 2024 15:54:07 +0000 (17:54 +0200)]
librbd/crypto/LoadRequest: clone format for migration source image

Migration source and migration target images naturally have the same
encryption format, but the user shouldn't have to need to specify it
for the image that they can't even immediately see -- migration source
image gets moved to the RBD trash to avoid mistaken usage while
migration is in progress.

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

9 months agolibrbd/crypto/LoadRequest: rename m_is_current_format_cloned
Ilya Dryomov [Mon, 16 Sep 2024 09:37:49 +0000 (11:37 +0200)]
librbd/crypto/LoadRequest: rename m_is_current_format_cloned

Formats must also be cloned if the image is under migration, so
rename m_is_current_format_cloned to m_is_current_format_assumed to
avoid potential confusion with clone() being called in two places but
m_is_current_format_cloned being set in only one place.

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

9 months agoglobal: Call getnam_r with a 64KiB buffer on the heap 60127/head
Adam Emerson [Wed, 2 Oct 2024 18:42:52 +0000 (14:42 -0400)]
global: Call getnam_r with a 64KiB buffer on the heap

Fixes: https://tracker.ceph.com/issues/40692
Signed-off-by: Adam Emerson <aemerson@redhat.com>
(cherry picked from commit 9eeca730fa0d99f39d81f6d16cb5faff9d033516)

Fixes: https://tracker.ceph.com/issues/68388
Signed-off-by: Adam Emerson <aemerson@redhat.com>