]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/log
ceph-ci.git
12 days agoMerge PR #61383 into wip-jcollin-testing-20251002.062440-reef wip-jcollin-testing-20251002.062440-reef testing/wip-jcollin-testing-20251002.062440-reef
Jos Collin [Thu, 2 Oct 2025 06:25:01 +0000 (11:55 +0530)]
Merge PR #61383 into wip-jcollin-testing-20251002.062440-reef

* refs/pull/61383/head:
qa/cephfs: update ignorelist

12 days agoMerge PR #62059 into wip-jcollin-testing-20251002.062440-reef
Jos Collin [Thu, 2 Oct 2025 06:24:57 +0000 (11:54 +0530)]
Merge PR #62059 into wip-jcollin-testing-20251002.062440-reef

* refs/pull/62059/head:
mon,cephfs: small improvement for health warning methods
qa/cephfs: test that failing a FS is possible when other MDS/FS has...
qa/cephfs: allow detecting MDS ID from FS object for method the..
mon,cephfs: don't disallow "fs fail" when other FS/MDS has health...
cephfs,mon: rename variable to a better name
mon,cephfs: fix indentation level for a code block
qa/cephfs: test that a MDS can be failed when other FS/MDS has a...
qa/cephfs: allow passing MDS ID to method that generate...
mon,cephfs: check MDS ID before aborting "mds fail" command

12 days agoMerge PR #62460 into wip-jcollin-testing-20251002.062440-reef
Jos Collin [Thu, 2 Oct 2025 06:24:54 +0000 (11:54 +0530)]
Merge PR #62460 into wip-jcollin-testing-20251002.062440-reef

* refs/pull/62460/head:
PendingReleaseNote: add note that "volume create" accepts pool names...
doc/cephfs: mention new options for "fs volume create" cmd
qa/cephfs: test passing pool names to "fs volume create" cmd
qa/cephfs: separate the tests for "ceph fs volume create" cmd
mgr/vol: allow passing pool names to "fs volume create" cmd

12 days agoMerge PR #62500 into wip-jcollin-testing-20251002.062440-reef
Jos Collin [Thu, 2 Oct 2025 06:24:50 +0000 (11:54 +0530)]
Merge PR #62500 into wip-jcollin-testing-20251002.062440-reef

* refs/pull/62500/head:
client: process path without inode anchor
test/client: add ll_walk test with cwd and root path

12 days agoMerge PR #62917 into wip-jcollin-testing-20251002.062440-reef
Jos Collin [Thu, 2 Oct 2025 06:24:46 +0000 (11:54 +0530)]
Merge PR #62917 into wip-jcollin-testing-20251002.062440-reef

* refs/pull/62917/head:
release note: add a note for "snapshot getpath" command
doc/cephfs: add doc for "snapshot getpath" cmd
qa/cephfs: add tests for "subvolume snapshot getpath" cmd
mgr/vol: add command to get snapshot path
mgr/vol: move reusable parts from async_cloner

12 days agoMerge pull request #61512 from mchangir/wip-68768-reef
Jos Collin [Thu, 2 Oct 2025 01:59:19 +0000 (07:29 +0530)]
Merge pull request #61512 from mchangir/wip-68768-reef

reef: mds: add an asok command to dump export states

Reviewed-by: Jos Collin <jcollin@redhat.com>
2 weeks agoMerge pull request #65710 from aaSharma14/wip-73294-reef
Aashish Sharma [Tue, 30 Sep 2025 08:54:49 +0000 (14:24 +0530)]
Merge pull request #65710 from aaSharma14/wip-73294-reef

reef: monitoring: fix MTU Mismatch alert rule and expr

Reviewed-by: Afreen Misbah <afreen@ibm.com>
2 weeks agomonitoring: fix MTU Mismatch alert rule and expr
Aashish Sharma [Wed, 2 Jul 2025 11:05:14 +0000 (16:35 +0530)]
monitoring: fix MTU Mismatch alert rule and expr

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

Conflicts:
monitoring/ceph-mixin/prometheus_alerts.yml
monitoring/ceph-mixin/tests_alerts/test_alerts.yml
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/active-alert-list/active-alert-list.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/active-alert-list/active-alert-list.component.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table-key-value/table-key-value.component.scss

2 weeks agoclient: process path without inode anchor
Patrick Donnelly [Thu, 20 Mar 2025 01:25:35 +0000 (21:25 -0400)]
client: process path without inode anchor

ll_walk was wrongly coded to make the input file path relative to ino=0. That inode
does not exist and isn't considered the root inode.

Fixes: https://tracker.ceph.com/issues/70573
Fixes: e08210dda01f4e154561fcf008084e6d640e4683
Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
(cherry picked from commit 25eb99d309ac2d13ac4e7dccf973250ca844c781)

Conflicts:
src/client/Client.cc: path_walk refactor conflict

2 weeks agotest/client: add ll_walk test with cwd and root path
Patrick Donnelly [Thu, 13 Mar 2025 19:48:15 +0000 (15:48 -0400)]
test/client: add ll_walk test with cwd and root path

Fixes: https://tracker.ceph.com/issues/70573
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 0306789f7f9fa7a276d3b68a077339b0f1f72ee7)

2 weeks agoMerge pull request #65621 from aaSharma14/wip-73165-reef
Aashish Sharma [Fri, 26 Sep 2025 14:08:09 +0000 (19:38 +0530)]
Merge pull request #65621 from aaSharma14/wip-73165-reef

reef: mgr/dashboard: fix zone update API forcing STANDARD storage class

Reviewed-by: Afreen Misbah <afreen@ibm.com>
2 weeks agoPendingReleaseNote: add note that "volume create" accepts pool names...
Rishabh Dave [Mon, 3 Mar 2025 16:41:25 +0000 (22:11 +0530)]
PendingReleaseNote: add note that "volume create" accepts pool names...

in args.

Add a release note that "ceph fs volume create" command allows users to
pass pool names to "ceph fs volume create" command.

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

2 weeks agodoc/cephfs: mention new options for "fs volume create" cmd
Rishabh Dave [Mon, 3 Mar 2025 16:36:10 +0000 (22:06 +0530)]
doc/cephfs: mention new options for "fs volume create" cmd

Command "ceph fs volume create" accepts 2 new options to allow users to
pass data and metadata pool name. Update docs to include mention of both
the options.

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

2 weeks agoqa/cephfs: test passing pool names to "fs volume create" cmd
Rishabh Dave [Sat, 8 Feb 2025 14:42:08 +0000 (20:12 +0530)]
qa/cephfs: test passing pool names to "fs volume create" cmd

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

Conflicts:
qa/tasks/cephfs/test_volumes.py
- Imports on reef branch are slightly different from main leading to
  conflict.

2 weeks agoqa/cephfs: separate the tests for "ceph fs volume create" cmd
Rishabh Dave [Wed, 5 Mar 2025 11:10:11 +0000 (16:40 +0530)]
qa/cephfs: separate the tests for "ceph fs volume create" cmd

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

2 weeks agomgr/vol: allow passing pool names to "fs volume create" cmd
Rishabh Dave [Sat, 8 Feb 2025 14:30:37 +0000 (20:00 +0530)]
mgr/vol: allow passing pool names to "fs volume create" cmd

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

2 weeks agoMerge pull request #62436 from rishabh-d-dave/mgr-vol-no-del-reef
Jos Collin [Fri, 26 Sep 2025 07:14:14 +0000 (12:44 +0530)]
Merge pull request #62436 from rishabh-d-dave/mgr-vol-no-del-reef

reef: mgr/volumes: allow disabling async job threads

Reviewed-by: Jos Collin <jcollin@redhat.com>
2 weeks agoPendingReleaseNote: add note for pause_purging and pause_cloninig
Rishabh Dave [Mon, 2 Sep 2024 14:13:45 +0000 (19:43 +0530)]
PendingReleaseNote: add note for pause_purging and pause_cloninig

Added release notes for mgr/vol config option "pause_purging and
"pause_cloning".

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

2 weeks agodoc/cephfs: add note for config option pause_purging and pause_cloning
Rishabh Dave [Mon, 2 Sep 2024 14:11:17 +0000 (19:41 +0530)]
doc/cephfs: add note for config option pause_purging and pause_cloning

Update documentation for add information about mgr/vol config options
"pause_purging" and "pause_cloning".

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

2 weeks agoqa/cephfs: add tests for mgr/vol config pause_cloning
Rishabh Dave [Fri, 11 Oct 2024 19:08:09 +0000 (00:38 +0530)]
qa/cephfs: add tests for mgr/vol config pause_cloning

mgr/vol config option pause_cloning allows pausing of cloner threads.
Add tests for this.

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

2 weeks agoqa/cephfs: extend wait for trash empty
Rishabh Dave [Fri, 11 Oct 2024 19:03:29 +0000 (00:33 +0530)]
qa/cephfs: extend wait for trash empty

Trash directory for a volume is not created by default. If
_wait_for_trash_empty() in test_volumes.py encounters absence of trash
directory, return true.

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

2 weeks agoqa/cephfs: add tests for config option pause_purging
Rishabh Dave [Sat, 6 Jan 2024 14:42:31 +0000 (20:12 +0530)]
qa/cephfs: add tests for config option pause_purging

Setting MGR config option mgr/volumes/pause_purging to true halts
all ongoing purges and allows no new purging to begin until this option
is changed to false. Add tests for this.

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

Conflicts:
qa/tasks/cephfs/test_volumes.py
- First conflict occurred due to missing import of safe_while which
  in Reef branch compared to main branch. Along with resolving this
  conflict this has been imported as it used by the tests.
- Second conflict occured due to absence of some test methods right
  before where TestPausePurging was to be added.
- Third conflict occured because entire contextutil was imported instead
  of just safe_while and only CommandFailedError was imported from
  teuthology.exceptions while this commit imports MaxWhileTries too.

2 weeks agoqa/cephfs: don't strip any whitespace for get_shell_stdout
Rishabh Dave [Fri, 12 Jan 2024 10:28:41 +0000 (15:58 +0530)]
qa/cephfs: don't strip any whitespace for get_shell_stdout

Whitespace is not removed from the end of the stdout returned by the
method get_ceph_cmd_stdout(). Follow the same policy here since it is
better to not do so (this whitespace can be useful, when copying Ceph
auth keyrings from stdout to a file) and also for sake of uniformity of
interfaces.

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

Conflicts:
qa/tasks/cephfs/mount.py
- Conflict occured for 2 reasons -
  - One, method get_shell_stdout() is absent on Reef branch but not in
    main so this patch which makes modification to it will obviously run
    in to conflict
   - Two, run_shell_payload() lies right next to get_shell_stdout() in
     main branch and its definition is quite different, leading to
     conflict again.

2 weeks agomgr/vol: add pause/resume mechanism for async jobs
Rishabh Dave [Tue, 3 Sep 2024 10:01:07 +0000 (15:31 +0530)]
mgr/vol: add pause/resume mechanism for async jobs

Add mechansim that allows pausing/resuming of the entire async job
machinery that queues, launches and picks next async job; both async
jobs, clones as well as purges.

And then add mgr/vol config option pause_purging and pause_cloning so
that both of these async jobs can be paused and resumed individually.

Fixes: https://tracker.ceph.com/issues/61903
Fixes: https://tracker.ceph.com/issues/68630
Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 01d37d5e1ba0e250e9d3a5f28ec7f3fa3597c63f)

Conflicts:
src/pybind/mgr/volumes/module.py
- Code where patch was to be applied was slighty different

2 weeks agoqa: add test for 'dump_export_states'
Zhansong Gao [Tue, 14 Feb 2023 08:24:24 +0000 (16:24 +0800)]
qa: add test for 'dump_export_states'

Signed-off-by: Zhansong Gao <zhsgao@hotmail.com>
(cherry picked from commit 5506ed63c2f14cc5f4c3e72998d8a47fdd97f200)

Conflicts:
qa/tasks/cephfs/test_exports.py
- conflicts due to new test class addition at the bottom of file

2 weeks agomds: add an asok command to dump export states
Zhansong Gao [Tue, 14 Feb 2023 08:10:59 +0000 (16:10 +0800)]
mds: add an asok command to dump export states

Task to export subtree may be blocked, use this command
to find out what's going on.

Fixes: https://tracker.ceph.com/issues/58835
Signed-off-by: Zhansong Gao <zhsgao@hotmail.com>
(cherry picked from commit d34f33055d25ba78f63369f661eb75515b5f465d)

Conflicts:
src/mds/MDSCacheObject.h
src/mds/Migrator.cc
- conflicts due to quiesce additions in main branch

2 weeks agoMerge pull request #60630 from kamoltat/wip-68841-reef
SrinivasaBharathKanta [Wed, 24 Sep 2025 10:44:27 +0000 (16:14 +0530)]
Merge pull request #60630 from kamoltat/wip-68841-reef

reef: mon [stretch mode]: support disable_stretch_mode & qa/workunits/mon: ensure election strategy is "connectivity" for stretch mode

2 weeks agoMerge pull request #65637 from adk3798/reef-cephadm-pin-cheroot
Adam King [Tue, 23 Sep 2025 21:11:02 +0000 (17:11 -0400)]
Merge pull request #65637 from adk3798/reef-cephadm-pin-cheroot

reef: pybind/mgr: pin cheroot version in requirements-required.txt

Reviewed-by: John Mulligan <jmulligan@redhat.com>
3 weeks agomgr/dashboard: bump cheroot to > 10.0
Nizamudeen A [Fri, 19 Apr 2024 08:07:11 +0000 (13:37 +0530)]
mgr/dashboard: bump cheroot to > 10.0

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

3 weeks agoMerge pull request #65638 from zdover23/wip-doc-2025-09-23-reef-remove-cloud-restore-rst
Casey Bodley [Tue, 23 Sep 2025 13:24:37 +0000 (09:24 -0400)]
Merge pull request #65638 from zdover23/wip-doc-2025-09-23-reef-remove-cloud-restore-rst

reef: doc/radosgw: remove cloud-restore from reef

Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 weeks agoMerge pull request #61279 from vshankar/wip-68765-reef
Jos Collin [Tue, 23 Sep 2025 05:57:40 +0000 (11:27 +0530)]
Merge pull request #61279 from vshankar/wip-68765-reef

reef: qa: increase the http.maxRequestBuffer to 100MB and enable the git debug logs

Reviewed-by: Jos Collin <jcollin@redhat.com>
3 weeks agoMerge pull request #65630 from phlogistonjohn/jjm-r-65514
David Galloway [Tue, 23 Sep 2025 02:27:07 +0000 (19:27 -0700)]
Merge pull request #65630 from phlogistonjohn/jjm-r-65514

reef: build-with-container: add argument groups to organize options

3 weeks agopybind/mgr: pin cheroot version in requirements-required.txt
Adam King [Mon, 22 Sep 2025 21:05:07 +0000 (17:05 -0400)]
pybind/mgr: pin cheroot version in requirements-required.txt

With python 3.10 (didn't seem to happen with python 3.12) the
pybind/mgr/cephadm/tests/test_node_proxy.py test times out.
This appears to be related to a new release of the cheroot
package and a github issues describing the same problem
we're seeing has been opened by another user
https://github.com/cherrypy/cheroot/issues/769

It is worth noting that the workaround described in that
issue does also work for us. If you add

```
import cheroot
cheroot.server.HTTPServer._serve_unservicable = lambda: None
```

after the existing imports in test_node_proxy.py the
test hanging issue also disappears. Also worth noting the
particular pin of

cheroot~=10.0

was chosen as it matches the existing pin being used
in pybind/mgr/dashboard/constraints.txt

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

3 weeks agodoc/radosgw: remove cloud-restore from reef
Zac Dover [Tue, 23 Sep 2025 02:06:14 +0000 (12:06 +1000)]
doc/radosgw: remove cloud-restore from reef

Remove doc/radosgw/cloud-restore.rst from the reef branch.

cloud-restore does not appear in index.rst, so its removal from
index.rst is unnecessary.

Signed-off-by: Zac Dover <zac.dover@proton.me>
3 weeks agobuild-with-container: add argument groups to organize options
John Mulligan [Fri, 12 Sep 2025 17:52:25 +0000 (13:52 -0400)]
build-with-container: add argument groups to organize options

Use the argparse add_argument_group feature to organize the mass of
arguments into more sensible categories. Hopefully, someone reading
over the `--help` output can now more easily see options that
are useful rather than being overwhelmed by a wall of text.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 71a1be4dd0aea004da56c2f518ee70a281a3f7d3)

3 weeks agomgr/dashboard: fix zone update API forcing STANDARD storage class
Aashish Sharma [Thu, 18 Sep 2025 10:59:52 +0000 (16:29 +0530)]
mgr/dashboard: fix zone update API forcing STANDARD storage class

The zone update REST API (`edit_zone`) always attempted to configure a
placement target for the `STANDARD` storage class, even when the request
was intended for a different storage class name.
This caused failures in deployments where `STANDARD` is not defined.

Changes:
Club add placement target and add storage class methods into one single
add_placement_targets_storage_class_zone method which takes the storage
class as a param as well alongside the rest of the placement params.

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

3 weeks agoMerge pull request #65297 from joscollin/wip-71832-reef
Jos Collin [Mon, 22 Sep 2025 06:20:16 +0000 (11:50 +0530)]
Merge pull request #65297 from joscollin/wip-71832-reef

reef: mgr/volumes: Keep mon caps if auth key has remaining mds/osd caps

Reviewed-by: Kotresh HR <khiremat@redhat.com>
3 weeks agoMerge pull request #61297 from batrick/wip-68451-reef
Jos Collin [Mon, 22 Sep 2025 06:01:15 +0000 (11:31 +0530)]
Merge pull request #61297 from batrick/wip-68451-reef

reef: qa: ignore pg availability/degraded warnings

Reviewed-by: Jos Collin <jcollin@redhat.com>
3 weeks agoMerge pull request #62092 from batrick/wip-70155-reef
Jos Collin [Mon, 22 Sep 2025 04:55:55 +0000 (10:25 +0530)]
Merge pull request #62092 from batrick/wip-70155-reef

reef: qa: ignore variant of down fs

Reviewed-by: Jos Collin <jcollin@redhat.com>
3 weeks agoMerge pull request #63017 from batrick/wip-71092-reef
Jos Collin [Mon, 22 Sep 2025 04:46:13 +0000 (10:16 +0530)]
Merge pull request #63017 from batrick/wip-71092-reef

reef: qa/workunits/fs/misc: remove data pool cleanup

Reviewed-by: Jos Collin <jcollin@redhat.com>
3 weeks agoMerge pull request #65595 from aaSharma14/wip-73134-reef
Aashish Sharma [Fri, 19 Sep 2025 09:43:00 +0000 (15:13 +0530)]
Merge pull request #65595 from aaSharma14/wip-73134-reef

reef: Handle failures in metric parsing

Reviewed-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
3 weeks agoHandle failures in metric parsing
Anmol Babu [Thu, 3 Jul 2025 13:25:39 +0000 (18:55 +0530)]
Handle failures in metric parsing

fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2345460
Signed-off-by: Anmol Babu <anmolbabu@Anmols-MacBook-Pro.local>
(cherry picked from commit f29e3f307c46401328e920204cbe893fbd837c65)

Conflicts:
src/exporter/DaemonMetricCollector.cc

3 weeks agoMerge pull request #61978 from batrick/wip-70066-reef
Neeraj Pratap Singh [Thu, 18 Sep 2025 11:32:54 +0000 (17:02 +0530)]
Merge pull request #61978 from batrick/wip-70066-reef

reef: mds: dump next_snap when checking dentry corruption

3 weeks agoMerge pull request #62278 from dparmar18/wip-70034-reef
Neeraj Pratap Singh [Thu, 18 Sep 2025 11:32:40 +0000 (17:02 +0530)]
Merge pull request #62278 from dparmar18/wip-70034-reef

reef: mgr/nfs: validate path when modifying cephfs export

3 weeks agoMerge pull request #62409 from neesingh-rh/wip-70418-reef
Neeraj Pratap Singh [Thu, 18 Sep 2025 11:32:14 +0000 (17:02 +0530)]
Merge pull request #62409 from neesingh-rh/wip-70418-reef

reef: cephfs-shell: add option to remove xattr

3 weeks agoMerge pull request #65251 from joscollin/wip-70031-reef
Neeraj Pratap Singh [Thu, 18 Sep 2025 11:32:00 +0000 (17:02 +0530)]
Merge pull request #65251 from joscollin/wip-70031-reef

reef: qa: enable debug mds/client for fs/nfs suite

3 weeks agoMerge pull request #65253 from joscollin/wip-71379-reef
Neeraj Pratap Singh [Thu, 18 Sep 2025 11:31:45 +0000 (17:01 +0530)]
Merge pull request #65253 from joscollin/wip-71379-reef

reef: cephfs: session tracker accounts for killing sessions

3 weeks agoqa/workunits/mon: ensure election strategy is "connectivity" for stretch mode wip-68841-reef
Laura Flores [Tue, 3 Dec 2024 22:15:19 +0000 (16:15 -0600)]
qa/workunits/mon: ensure election strategy is "connectivity" for stretch mode

The election strategy is randomly chosen for this type of test. Sometimes,
the test passes if the "connectivity" election strategy happens to be picked.
But if a different strategy, i.e. "classic", is picked, then the test will fail.

We can ensure that the election strategy is "connectivity" by setting it in the
workunit with the ceph CLI command. Although connectivity was specified in
stretch-mode-5-mons-8-osds.yaml, that config ultimately gets overridden by
the "qa/mon_config" yaml.

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

3 weeks agosrc/mon/MonMap: modify dump function
Kamoltat Sirivadhna [Sat, 14 Sep 2024 18:22:55 +0000 (18:22 +0000)]
src/mon/MonMap: modify dump function

Problem:
Current dump for "removed_ranks" and "disallowed_leaders"
doesn't have the correct format so the python test
script can parse through these values.

Solution:
Modified the values such that it is in the correct format

Conflict: src/osd/osd_types.cc: Added f->dump_bool("is_stretch_pool", is_stretch_pool());

Signed-off-by: Kamoltat Sirivadhna <ksirivad@redhat.com>
(cherry picked from commit a7f3b7b749acabd235d615a3f5b80e3398a6d80d)

3 weeks agoqa: Added tests for disabling stretch mode
Kamoltat Sirivadhna [Sun, 8 Sep 2024 19:20:34 +0000 (19:20 +0000)]
qa: Added tests for disabling stretch mode

Test disabling stretch mode with the following scenario:

1. Healthy Stretch Mode
2. Degraded Stretch Mode

Fixes: https://tracker.ceph.com/issues/67467
Signed-off-by: Kamoltat Sirivadhna <ksirivad@redhat.com>
(cherry picked from commit 4d2f8879bed2abd10c00e5a1c5008bd56c11bf61)

3 weeks agodoc/rados/operations/stretch-mode.rst: Added Exitting Stretch Mode
Kamoltat Sirivadhna [Sat, 7 Sep 2024 23:01:23 +0000 (23:01 +0000)]
doc/rados/operations/stretch-mode.rst: Added Exitting Stretch Mode

Added documentation about exiting stretch mode.

Fixes: https://tracker.ceph.com/issues/67467
Signed-off-by: Kamoltat Sirivadhna <ksirivad@redhat.com>
(cherry picked from commit 0680f17d7bab386429a013c254dd90c70fbabeb7)

3 weeks agomon [stretch mode]: support disable_stretch_mode
Kamoltat Sirivadhna [Wed, 28 Aug 2024 13:40:59 +0000 (13:40 +0000)]
mon [stretch mode]: support disable_stretch_mode

Problem:

Currently, Ceph lacks the ability
to exit stretch mode and move back
to normal cluster (non-stretched).

Solution:

Provide a command to allow
the user to exit stretch mode gracefully:

`ceph mon disable_stretch_mode <crush_rule> --yes-i-really-mean-it`

User can either specify a crush rule that
they want all pools to move to or not specify
a rule and Ceph will use a default replicated crush rule.

Fixes: https://tracker.ceph.com/issues/67467
Signed-off-by: Kamoltat Sirivadhna <ksirivad@redhat.com>
(cherry picked from commit 78ce68de41b1d5278e14cf56dff7f15394969255)

Conflicts:
src/mon/MonmapMonitor.cc - replace `goto reply` with
`goto reply_no_propose`
src/mon/OSDMonitorcc - replace `rule_valid_for_pool_type`
with `get_rule_type` since
`rule_valid_for_pool_type` is not
backported.

4 weeks agorelease note: add a note for "snapshot getpath" command
Rishabh Dave [Mon, 7 Apr 2025 14:39:44 +0000 (20:09 +0530)]
release note: add a note for "snapshot getpath" command

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

4 weeks agodoc/cephfs: add doc for "snapshot getpath" cmd
Rishabh Dave [Mon, 7 Apr 2025 14:36:33 +0000 (20:06 +0530)]
doc/cephfs: add doc for "snapshot getpath" cmd

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

4 weeks agoqa/cephfs: add tests for "subvolume snapshot getpath" cmd
Rishabh Dave [Mon, 7 Apr 2025 14:14:57 +0000 (19:44 +0530)]
qa/cephfs: add tests for "subvolume snapshot getpath" cmd

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

4 weeks agomgr/vol: add command to get snapshot path
Rishabh Dave [Wed, 2 Apr 2025 15:25:32 +0000 (20:55 +0530)]
mgr/vol: add command to get snapshot path

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

Conflicts:
src/pybind/mgr/volumes/fs/volume.py
- Line where the original patch makes the change is slightly
  different in main compared to Squid banch, leading to conflict.

4 weeks agomgr/vol: move reusable parts from async_cloner
Rishabh Dave [Wed, 14 Feb 2024 09:52:47 +0000 (15:22 +0530)]
mgr/vol: move reusable parts from async_cloner

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

4 weeks agomon,cephfs: small improvement for health warning methods
Rishabh Dave [Thu, 6 Feb 2025 13:52:36 +0000 (19:22 +0530)]
mon,cephfs: small improvement for health warning methods

Use const qualifier since warnings vector won't be modified by the
helper methods and use also use a reference instead of a regular
variable.

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

4 weeks agoqa/cephfs: test that failing a FS is possible when other MDS/FS has...
Rishabh Dave [Wed, 29 Jan 2025 13:07:44 +0000 (18:37 +0530)]
qa/cephfs: test that failing a FS is possible when other MDS/FS has...

health warnings.

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

Conflicts:
qa/tasks/cephfs/test_admin.py
- Conflict occured because the region where patch was to be applied is
  slightly different in Reef branch compared to main branch.

4 weeks agoqa/cephfs: allow detecting MDS ID from FS object for method the..
Rishabh Dave [Thu, 6 Feb 2025 16:34:13 +0000 (22:04 +0530)]
qa/cephfs: allow detecting MDS ID from FS object for method the..

tha generates MDS_CACHE_OVERSIZE warning.

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

4 weeks agomon,cephfs: don't disallow "fs fail" when other FS/MDS has health...
Rishabh Dave [Wed, 29 Jan 2025 13:06:59 +0000 (18:36 +0530)]
mon,cephfs: don't disallow "fs fail" when other FS/MDS has health...

warnings.

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

Conflicts:
src/mon/MDSMonitor.cc
src/mon/MDSMonitor.h
- The region where patch has to be applied in both of these files is
  different in Reef branch compared to main branch, due to abence of
  method has_any_health_warning() in Reef branch.

4 weeks agocephfs,mon: rename variable to a better name
Rishabh Dave [Wed, 29 Jan 2025 12:34:55 +0000 (18:04 +0530)]
cephfs,mon: rename variable to a better name

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

Conflicts:
src/mon/FSCommands.cc
- The region was to be applied in region use "std::vector" to a declare
  a variable but main branch uses "vector" instead. Using either makes
  no difference since because vector has been imported in to the
  namespace.

4 weeks agomon,cephfs: fix indentation level for a code block
Rishabh Dave [Wed, 29 Jan 2025 12:33:06 +0000 (18:03 +0530)]
mon,cephfs: fix indentation level for a code block

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

4 weeks agoqa/cephfs: test that a MDS can be failed when other FS/MDS has a...
Rishabh Dave [Tue, 28 Jan 2025 17:45:28 +0000 (23:15 +0530)]
qa/cephfs: test that a MDS can be failed when other FS/MDS has a...

health warning.

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

Conflicts:
qa/tasks/cephfs/test_admin.py
- The region where the patch has to be applied is different in reef
  branch compared to the main branch.

Conflicts:
qa/tasks/cephfs/test_admin.py
- This file is slightly different from main which prevented seamless
  rebase.

4 weeks agoqa/cephfs: allow passing MDS ID to method that generate...
Rishabh Dave [Thu, 6 Feb 2025 16:31:59 +0000 (22:01 +0530)]
qa/cephfs: allow passing MDS ID to method that generate...

MDS_CACHE_OVERSIZE warning.

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

4 weeks agomon,cephfs: check MDS ID before aborting "mds fail" command
Rishabh Dave [Tue, 28 Jan 2025 17:43:31 +0000 (23:13 +0530)]
mon,cephfs: check MDS ID before aborting "mds fail" command

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

Conflicts:
src/mon/MDSMonitor.h
- The region where the patch has to be applied is different in Reef
  branch compared to main branch

4 weeks agoMerge pull request #65473 from rhcs-dashboard/wip-72963-reef
Nizamudeen A [Thu, 11 Sep 2025 06:17:46 +0000 (11:47 +0530)]
Merge pull request #65473 from rhcs-dashboard/wip-72963-reef

reef: monitoring: add user-agent headers to the urllib

4 weeks agomonitoring: add user-agent headers to the urllib
Nizamudeen A [Wed, 10 Sep 2025 13:00:36 +0000 (18:30 +0530)]
monitoring: add user-agent headers to the urllib

The documentation started raising 403 suddenly. Adding User-Agent
headers to the request

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

5 weeks agoMerge pull request #65002 from aaSharma14/wip-68481-reef
afreen23 [Mon, 8 Sep 2025 18:47:22 +0000 (00:17 +0530)]
Merge pull request #65002 from aaSharma14/wip-68481-reef

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

Reviewed-by: Afreen Misbah <afreen@ibm.com>
5 weeks agomgr/volumes: Fix json.loads for test on mon caps
Enrico Bocchi [Tue, 5 Nov 2024 08:26:04 +0000 (09:26 +0100)]
mgr/volumes: Fix json.loads for test on mon caps

Signed-off-by: Enrico Bocchi <enrico.bocchi@cern.ch>
(cherry picked from commit b008ef9eb690618608f902c67f8df1fb8a587e33)

5 weeks agomgr/volumes: Add test for mon caps if auth key has remaining mds/osd caps
Enrico Bocchi [Wed, 16 Oct 2024 09:40:26 +0000 (11:40 +0200)]
mgr/volumes: Add test for mon caps if auth key has remaining mds/osd caps

Signed-off-by: Enrico Bocchi <enrico.bocchi@cern.ch>
(cherry picked from commit 403d5411364e2fddd70d98a6f120b26e416c1d99)

5 weeks agomgr/volumes: Keep mon caps if auth key has remaining mds/osd caps
Enrico Bocchi [Mon, 26 Aug 2024 11:30:02 +0000 (13:30 +0200)]
mgr/volumes: Keep mon caps if auth key has remaining mds/osd caps

Signed-off-by: Enrico Bocchi <enrico.bocchi@cern.ch>
(cherry picked from commit 0882bbe8a4470f82993d87b7c02b19aa7fe7fbcc)

5 weeks agoMerge pull request #65418 from ceph/fix-api-tests-reef
Dan Mick [Sat, 6 Sep 2025 00:43:39 +0000 (17:43 -0700)]
Merge pull request #65418 from ceph/fix-api-tests-reef

reef: pybind/mgr/dashboard: Use teuthology's actual requirements

5 weeks agopybind/mgr/dashboard: Use teuthology's actual requirements
David Galloway [Fri, 5 Sep 2025 17:58:43 +0000 (13:58 -0400)]
pybind/mgr/dashboard: Use teuthology's actual requirements

Signed-off-by: David Galloway <david.galloway@ibm.com>
(cherry picked from commit 22a87d959bca74478de1e2d9f86859676385491d)

5 weeks agoMerge pull request #65380 from zdover23/wip-doc-2025-09-04-backport-65325-to-reef
Zac Dover [Thu, 4 Sep 2025 03:51:47 +0000 (13:51 +1000)]
Merge pull request #65380 from zdover23/wip-doc-2025-09-04-backport-65325-to-reef

reef: doc/cephfs: edit troubleshooting.rst

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
5 weeks agodoc/cephfs: edit troubleshooting.rst
Zac Dover [Tue, 2 Sep 2025 00:31:41 +0000 (10:31 +1000)]
doc/cephfs: edit troubleshooting.rst

Update the "Disconnected+Remounted FS" section in
doc/cephfs/troubleshooting.rst, as suggested by Venky Shankar in https://github.com/ceph/ceph/pull/65129/files#r2312903062

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

5 weeks agoMerge pull request #65250 from ceph/reef-pipeline-backports
David Galloway [Wed, 3 Sep 2025 13:15:04 +0000 (09:15 -0400)]
Merge pull request #65250 from ceph/reef-pipeline-backports

reef: Recent pipeline backports

6 weeks agoMerge pull request #65094 from zdover23/wip-doc-2025-08-18-backport-64931-to-reef
Zac Dover [Mon, 1 Sep 2025 04:38:35 +0000 (14:38 +1000)]
Merge pull request #65094 from zdover23/wip-doc-2025-08-18-backport-64931-to-reef

reef: doc/cephfs: edit troubleshooting.rst

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
6 weeks agoMerge pull request #65207 from zdover23/wip-doc-2025-08-26-backport-64074-to-reef
Zac Dover [Mon, 1 Sep 2025 04:28:47 +0000 (14:28 +1000)]
Merge pull request #65207 from zdover23/wip-doc-2025-08-26-backport-64074-to-reef

reef: doc/rados/configuration: Mention show-with-defaults and ceph-conf

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
6 weeks agoMerge pull request #65212 from zdover23/wip-doc-2025-08-26-backport-65180-to-reef
Zac Dover [Mon, 1 Sep 2025 04:28:14 +0000 (14:28 +1000)]
Merge pull request #65212 from zdover23/wip-doc-2025-08-26-backport-65180-to-reef

reef: doc/dev:update blkin.rst doc for lttng trace

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
6 weeks agoMerge pull request #65239 from zdover23/wip-doc-2025-08-26-backport-65230-to-reef
Zac Dover [Mon, 1 Sep 2025 04:27:40 +0000 (14:27 +1000)]
Merge pull request #65239 from zdover23/wip-doc-2025-08-26-backport-65230-to-reef

reef: doc/rados/operations: Improve health-checks.rst

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
6 weeks agoMerge pull request #64843 from NitzanMordhai/wip-72419-reef
NitzanMordhai [Sun, 31 Aug 2025 08:36:24 +0000 (11:36 +0300)]
Merge pull request #64843 from NitzanMordhai/wip-72419-reef

reef: monitor: Enhance historic ops command output and error handling

6 weeks agoMerge pull request #63134 from kshtsk/wip-71215-reef
Venky Shankar [Fri, 29 Aug 2025 13:23:33 +0000 (18:53 +0530)]
Merge pull request #63134 from kshtsk/wip-71215-reef

reef: tasks/cephfs/mount: use 192.168.144.0.0/20 for brxnet

6 weeks agomgr/dashboard: show non default realm sync status in rgw overview page
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)

Conflicts:
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-overview-dashboard/rgw-overview-dashboard.component.ts
src/pybind/mgr/dashboard/openapi.yaml

6 weeks agoMerge pull request #65201 from zdover23/wip-doc-2025-08-25-backport-65185-to-reef
Zac Dover [Wed, 27 Aug 2025 19:57:36 +0000 (05:57 +1000)]
Merge pull request #65201 from zdover23/wip-doc-2025-08-25-backport-65185-to-reef

reef: doc/cephfs: edit troubleshooting.rst (Slow MDS)

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
6 weeks agoMerge pull request #65184 from zdover23/wip-doc-2025-08-22-backport-64726-to-reef
Zac Dover [Wed, 27 Aug 2025 19:56:56 +0000 (05:56 +1000)]
Merge pull request #65184 from zdover23/wip-doc-2025-08-22-backport-64726-to-reef

reef: doc/man/8: Improve mount.ceph.rst

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
6 weeks agoMerge pull request #65138 from zdover23/wip-doc-2025-08-20-backport-65128-to-reef
Zac Dover [Wed, 27 Aug 2025 19:56:34 +0000 (05:56 +1000)]
Merge pull request #65138 from zdover23/wip-doc-2025-08-20-backport-65128-to-reef

reef: doc/rados: repair short underline

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
6 weeks agoMerge pull request #65091 from zdover23/wip-doc-2025-08-18-backport-64928-to-reef
Zac Dover [Wed, 27 Aug 2025 19:55:25 +0000 (05:55 +1000)]
Merge pull request #65091 from zdover23/wip-doc-2025-08-18-backport-64928-to-reef

reef: doc/cephfs: edit troubleshooting.rst

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
6 weeks agocephfs: session tracker accounts for killing sessions
Abhishek Lekshmanan [Wed, 2 Apr 2025 13:57:42 +0000 (15:57 +0200)]
cephfs: session tracker accounts for killing sessions

Fixes: https://tracker.ceph.com/issues/70770
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@cern.ch>
(cherry picked from commit bb52cb72abe9540affce713fa3078e9b0f59d65a)

6 weeks agoqa: enable debug mds/client for fs/nfs suite
Venky Shankar [Wed, 8 Nov 2023 06:20:24 +0000 (11:50 +0530)]
qa: enable debug mds/client for fs/nfs suite

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

6 weeks agoRemove git clean -fdx
Dan Mick [Tue, 26 Aug 2025 00:45:21 +0000 (17:45 -0700)]
Remove git clean -fdx

either
1) a source tarball is supplied, in which case the local dir is
   irrelevant, or
2) make-debs calls make-dist, which doesn't care about a dirty cwd

so it just punishes the unaware by removing things that they may
have wanted to keep.

Signed-off-by: Dan Mick <dan.mick@redhat.com>
(cherry picked from commit ad529cce49c466daa02bb3b90804ff6a6ec548e8)

6 weeks agomake-debs.sh: invoke tar with --no-same-owner
Dan Mick [Sat, 23 Aug 2025 00:43:24 +0000 (17:43 -0700)]
make-debs.sh: invoke tar with --no-same-owner

When running as a normal user, tar does not attempt to preserve
owners set on the tar content files.  When running as root, it does.
Containerized builds are running as root.  Stop make-debs.sh from
trying to set other owners for files, and leaving files in the
host system with mapped UIDs other than the user running the container
(which causes jenkins to be unable to clear the workspace).

Signed-off-by: Dan Mick <dan.mick@redhat.com>
(cherry picked from commit 46c540444dd0dc4b4572e71ef452436a3b580d51)

6 weeks agomake-debs.sh: make "skip debug packages" conditional
Dan Mick [Thu, 21 Aug 2025 20:00:43 +0000 (13:00 -0700)]
make-debs.sh: make "skip debug packages" conditional

Now that we're using make-debs.sh as a builder inside containers,
the default should be to build all the packages, including debug.
(Also, fix a typo.)

Signed-off-by: Dan Mick <dan.mick@redhat.com>
(cherry picked from commit 86d6e931bd10bc15252d76aa58e4835a72742fcd)

7 weeks agodoc/rados/operations: Improve health-checks.rst
Anthony D'Atri [Tue, 26 Aug 2025 11:38:58 +0000 (07:38 -0400)]
doc/rados/operations: Improve health-checks.rst

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

7 weeks agodoc/dev:update blkin.rst doc for lttng trace
lizhipeng [Fri, 22 Aug 2025 03:53:52 +0000 (11:53 +0800)]
doc/dev:update blkin.rst doc for lttng trace
fixes:https://tracker.ceph.com/issues/72059

Signed-off-by: lizhipeng <qiuxinyidian@gmail.com>
(cherry picked from commit 3029cc9afdee352fb22db0895c5d3ec4a35277d3)

7 weeks agodoc/rados/configuration: Mention show-with-defaults and ceph-conf
Niklas Hambüchen [Sat, 21 Jun 2025 17:46:13 +0000 (19:46 +0200)]
doc/rados/configuration: Mention show-with-defaults and ceph-conf

A small improvement based on
"Why is it still so difficult to just dump all config and where it comes from?"
https://lists.ceph.io/hyperkitty/list/ceph-users@ceph.io/thread/EZSLRYBYEWDA6YIARQVMUKQUWHAE3PGR/

`show-with-defaults` is very useful, and `ceph-conf` is mentioned
so that it's clear that it's legacy, and the user doesn't have to
wonder if it's actually useful but was forgotten in the list.

Signed-off-by: Niklas Hambüchen <mail@nh2.me>
(cherry picked from commit 978ab834c464b993ec77c914cb36da47211a1cd4)

7 weeks agodoc/cephfs: edit troubleshooting.rst (Slow MDS)
Zac Dover [Fri, 22 Aug 2025 08:39:29 +0000 (18:39 +1000)]
doc/cephfs: edit troubleshooting.rst (Slow MDS)

Move the "Slow requests (MDS)" section immediately after the first
section in this document ("Slow/Stuck Operations"), because the first
procedure on the page directs the reader to undertake the operation in
"Slow requests (MDS)" before trying anything else.

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

7 weeks agoMerge pull request #65188 from phlogistonjohn/jjm-reef-bwc
David Galloway [Fri, 22 Aug 2025 18:18:25 +0000 (14:18 -0400)]
Merge pull request #65188 from phlogistonjohn/jjm-reef-bwc

reef:  backport build-with-container patches from main

7 weeks agobuild-with-container: improve source rpm detection
John Mulligan [Tue, 19 Aug 2025 23:12:07 +0000 (19:12 -0400)]
build-with-container: improve source rpm detection

Improve source rpm detection by adding a new detection method that
executes and rpm command in a container to get exactly the version of
the source rpm that the ceph.spec file would have generated.  For
backwards compatibility and that I don't entirely trust myself to have
tested this the old methods are still available.

The old `--rpm-no-match-sha` is now an alias for `--srpm-match=any` to
cause it to build any (unique) ceph srpm it finds.
`--srpm-match=versionglob` retains the previous default behavior of
using a glob matching on the git id or ceph version value.  The new
default of `--srpm-match=auto` implements the rpm command based behavior
described above.

All of this is wrapped in a new step `find-rpm` but that's mostly an
implementation detail and for testing.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 916088a4e7380cd7ac1403fb4416ef91ab07aa52)

7 weeks agomake-srpm.sh: don't shell out redundantly to pwd
John Mulligan [Tue, 19 Aug 2025 19:03:51 +0000 (15:03 -0400)]
make-srpm.sh: don't shell out redundantly to pwd

Just something that annoyed me while reading the script.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 544d8ab5eb81fc5b8b950c2c1c116fad6b1a40c4)