]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
21 months agocephadm: move monitoring daemon args out of _get_daemon_args
John Mulligan [Fri, 20 Oct 2023 15:13:52 +0000 (11:13 -0400)]
cephadm: move monitoring daemon args out of _get_daemon_args

Signed-off-by: John Mulligan <jmulligan@redhat.com>
21 months agocephadm: move jaeger tracing daemon args out of _get_daemon_args
John Mulligan [Fri, 20 Oct 2023 15:11:27 +0000 (11:11 -0400)]
cephadm: move jaeger tracing daemon args out of _get_daemon_args

Signed-off-by: John Mulligan <jmulligan@redhat.com>
21 months agocephadm: move nfs daemon args out of _get_daemon_args
John Mulligan [Fri, 20 Oct 2023 15:09:52 +0000 (11:09 -0400)]
cephadm: move nfs daemon args out of _get_daemon_args

Signed-off-by: John Mulligan <jmulligan@redhat.com>
21 months agocephadm: move ceph exporter daemon args out of _get_daemon_args
John Mulligan [Fri, 20 Oct 2023 15:08:09 +0000 (11:08 -0400)]
cephadm: move ceph exporter daemon args out of _get_daemon_args

Signed-off-by: John Mulligan <jmulligan@redhat.com>
21 months agocephadm: move haproxy daemon args out of _get_daemon_args
John Mulligan [Fri, 20 Oct 2023 15:04:32 +0000 (11:04 -0400)]
cephadm: move haproxy daemon args out of _get_daemon_args

Signed-off-by: John Mulligan <jmulligan@redhat.com>
21 months agocephadm: move custom container daemon args out of _get_daemon_args
John Mulligan [Fri, 20 Oct 2023 15:03:52 +0000 (11:03 -0400)]
cephadm: move custom container daemon args out of _get_daemon_args

Signed-off-by: John Mulligan <jmulligan@redhat.com>
21 months agocephadm: move snmp daemon args out of _get_daemon_args
John Mulligan [Fri, 20 Oct 2023 14:59:55 +0000 (10:59 -0400)]
cephadm: move snmp daemon args out of _get_daemon_args

Signed-off-by: John Mulligan <jmulligan@redhat.com>
21 months agocephadm: move daemon args assignment to a variable
John Mulligan [Fri, 20 Oct 2023 14:52:56 +0000 (10:52 -0400)]
cephadm: move daemon args assignment to a variable

Move the call to _get_daemon_args out of the function call.
This will aid with the next refactoring steps, were the content
of _get_daemon_args will be lifted into get_container.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
21 months agocephadm: ensure entrypoint is assigned a string
John Mulligan [Fri, 20 Oct 2023 14:30:16 +0000 (10:30 -0400)]
cephadm: ensure entrypoint is assigned a string

Ensure that the entrypoint variable is assigned a string. The
custom container class can have None and that can confuse future
refactoring.
The mypy command we're using does not notice this.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
21 months agocephadm: make get_daemon_args private
John Mulligan [Thu, 19 Oct 2023 20:25:17 +0000 (16:25 -0400)]
cephadm: make get_daemon_args private

The get_daemon_args function now only has one caller. To double check
that and to prepare for this function's eventual removal we prefix the
name with an underscore to take it private.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
21 months agocephadm: use ceph specific get_daemon_args calls
John Mulligan [Thu, 19 Oct 2023 20:22:37 +0000 (16:22 -0400)]
cephadm: use ceph specific get_daemon_args calls

Use the new Ceph class specific get_daemon_args method instead of the
generic get_daemon_args calls that check all sorts of daemon types when
we're running specialized mon containers, which we know for certain are
ceph based.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
21 months agocephadm: move tracing get_daemon_args logic to class
John Mulligan [Thu, 19 Oct 2023 20:19:21 +0000 (16:19 -0400)]
cephadm: move tracing get_daemon_args logic to class

Move the logic used to get deamon args into a method of the
Tracing class.
This requires an update to save a reference to ctx.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
21 months agocephadm: move monitoring get_daemon_args logic to class
John Mulligan [Thu, 19 Oct 2023 20:11:26 +0000 (16:11 -0400)]
cephadm: move monitoring get_daemon_args logic to class

Move the logic used to get deamon args into a method of the Monitoring
class.
This requires an update to save a reference to ctx.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
21 months agocephadm: move ceph get_daemon_args logic to a method on the class
John Mulligan [Thu, 19 Oct 2023 20:03:22 +0000 (16:03 -0400)]
cephadm: move ceph get_daemon_args logic to a method on the class

Move the logic used to get deamon args into a method of the Ceph class.
This requires an update to save a reference to ctx.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
21 months agocephadm: consolidate if-blocks in get_container function
John Mulligan [Thu, 19 Oct 2023 18:48:17 +0000 (14:48 -0400)]
cephadm: consolidate if-blocks in get_container function

Instead of having a number of separate if-statement blocks try to
reduce the number of sections so that you can look at one block
and see what the function is doing for that daemon type.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
21 months agocephadm: move all pids-limit logic to renamed function
John Mulligan [Thu, 19 Oct 2023 18:28:46 +0000 (14:28 -0400)]
cephadm: move all pids-limit logic to renamed function

Repurpose set_pids_limit_unlimited as _update_pids_limit, moving the
logic to decide if the daemon should have unlimited pids into the
function. This was the only caller of set_pids_limit_unlimited.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
21 months agocephadm: remove get_deployment_container
John Mulligan [Thu, 19 Oct 2023 18:22:49 +0000 (14:22 -0400)]
cephadm: remove get_deployment_container

Remove get_deployment_container replacing all calls to it with calls to
to_deployment_container. Now, callers can inject modifications to the
container object between calls or even have to_deployment_container
update container objects that were constructed in some other way.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
21 months agocephadm: split get_deployment_container function
John Mulligan [Thu, 19 Oct 2023 18:12:40 +0000 (14:12 -0400)]
cephadm: split get_deployment_container function

Split get_deployment_container into to_depoyment_container and
a call to get_container. A future change will remove
get_deployment_container entirely.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
21 months agocephadm: enhance test case with env vars
John Mulligan [Fri, 20 Oct 2023 14:43:04 +0000 (10:43 -0400)]
cephadm: enhance test case with env vars

Add some env vars to the custom container test to help assure
future changes don't overlook the ability to set them.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
21 months agocephadm: fix mistaken call to get_container_mounts_for_type
John Mulligan [Thu, 19 Oct 2023 20:33:57 +0000 (16:33 -0400)]
cephadm: fix mistaken call to get_container_mounts_for_type

When this function was refactored two variants were created:
get_container_mounts_for_type and _get_container_mounts_for_type.  The
latter doesn't append podman specific mounts so that it can be called
from other functions that do append podman specific mounts.
Unfortunately, I didn't call the correct function from
get_container_mounts and therefore it was redundantly doing the podman
mounts update. This corrects that error.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
21 months agoMerge pull request #54104 from phlogistonjohn/jjm-cephadm-move-extract
Adam King [Sat, 4 Nov 2023 16:01:10 +0000 (12:01 -0400)]
Merge pull request #54104 from phlogistonjohn/jjm-cephadm-move-extract

cephadm: move extract_uid_gid function

Reviewed-by: Adam King <adking@redhat.com>
21 months agoMerge pull request #54056 from rkachach/fix_issue_ci_for_rook
Adam King [Fri, 3 Nov 2023 23:56:34 +0000 (19:56 -0400)]
Merge pull request #54056 from rkachach/fix_issue_ci_for_rook

mgr/rook: adding e2e testing for rook orchestrator

reviewed-by: Nizamudeen A <nia@redhat.com>

21 months agoMerge pull request #54339 from aclamk/fix-aclamk-bs-reshard-doc-v2
Anthony D'Atri [Fri, 3 Nov 2023 23:28:26 +0000 (19:28 -0400)]
Merge pull request #54339 from aclamk/fix-aclamk-bs-reshard-doc-v2

doc/rados/configuration/bluestore-config-ref: Fix lowcase typo

21 months agoMerge pull request #51784 from muahdib69/rsachere_cache_ratios
Yuri Weinstein [Fri, 3 Nov 2023 22:57:09 +0000 (15:57 -0700)]
Merge pull request #51784 from muahdib69/rsachere_cache_ratios

osd: make _set_cache_sizes ratio aware of cache_kv_onode_ratio

Reviewed-by: Laura Flores <lflores@redhat.com>
Reviewed-by: Igor Fedotov <ifedotov@suse.com>
21 months agodoc/rados/configuration/bluestore-config-ref: Fix lowcase typo 54339/head
Adam Kupczyk [Fri, 3 Nov 2023 19:32:28 +0000 (20:32 +0100)]
doc/rados/configuration/bluestore-config-ref: Fix lowcase typo

Letter "O" got lowcased to "o".
Reverted that.

Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
21 months agoMerge pull request #54077 from adk3798/event-update-timestamp
Adam King [Fri, 3 Nov 2023 17:55:44 +0000 (13:55 -0400)]
Merge pull request #54077 from adk3798/event-update-timestamp

mgr/cephadm: update timestamp on repeat daemon/service events

Reviewed-by: John Mulligan <jmulligan@redhat.com>
21 months agoMerge pull request #54331 from aclamk/fix-aclamk-bs-reshard-doc
Anthony D'Atri [Fri, 3 Nov 2023 16:17:13 +0000 (12:17 -0400)]
Merge pull request #54331 from aclamk/fix-aclamk-bs-reshard-doc

Fixing example of BlueStore resharding.

21 months agoMerge pull request #53747 from rkachach/fix_issue_12858
Adam King [Fri, 3 Nov 2023 15:59:18 +0000 (11:59 -0400)]
Merge pull request #53747 from rkachach/fix_issue_12858

mgr/rook: Adding support to automatically discover storage classes on Rook cluster

Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@ibm.com>
21 months agodoc/rados/configuration/bluestore-config-ref: Fix lowcase typo 54331/head
Adam Kupczyk [Fri, 3 Nov 2023 15:50:19 +0000 (16:50 +0100)]
doc/rados/configuration/bluestore-config-ref: Fix lowcase typo

Letters "L P" got lowcased to "l p".
Reverted that.

Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
21 months agocephadm: update extract_uid_gid function annotations & format 54104/head
John Mulligan [Thu, 19 Oct 2023 13:46:58 +0000 (09:46 -0400)]
cephadm: update extract_uid_gid function annotations & format

Update the type annotations of extract_uid_gid to the type annotations
form used in more recent python versions. Reformat the function.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
21 months agocephadm: move extract_uid_gid func to container_types module
John Mulligan [Thu, 19 Oct 2023 13:42:34 +0000 (09:42 -0400)]
cephadm: move extract_uid_gid func to container_types module

While extract_uid_gid isn't a perfect fit for container_types it is a
fairly fundamental function for working with containers in cephadm and
doesn't require anything beyond types in containers_types and that
module's existing imports.  Moving extract_uid_gid should allow us to
more easily move other functions in the future.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
21 months agoMerge pull request #54081 from phlogistonjohn/jjm-cephadm-podman-props
Adam King [Fri, 3 Nov 2023 15:19:34 +0000 (11:19 -0400)]
Merge pull request #54081 from phlogistonjohn/jjm-cephadm-podman-props

cephadm: move some podman specific logic to Podman methods

Reviewed-by: Adam King <adking@redhat.com>
21 months agoMerge pull request #53987 from diabolocom/main
Adam King [Fri, 3 Nov 2023 15:16:46 +0000 (11:16 -0400)]
Merge pull request #53987 from diabolocom/main

cephadm: add option to install systemd unit only

Reviewed-by: Adam King <adking@redhat.com>
21 months agoMerge pull request #54274 from aliakseimakarau/patch-1
Casey Bodley [Fri, 3 Nov 2023 15:04:50 +0000 (15:04 +0000)]
Merge pull request #54274 from aliakseimakarau/patch-1

doc: Update dynamicresharding.rst

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Jiffin Tony Thottan <jthottan@redhat.com>
21 months agodoc: Update dynamicresharding.rst patch-1 54274/head
Aliaksei Makarau [Tue, 31 Oct 2023 15:20:05 +0000 (16:20 +0100)]
doc: Update dynamicresharding.rst

"3, After resharding completed:" should be
"3. After resharding completed:"

Signed-off-by: Aliaksei Makarau <aliaksei.makarau@ibm.com>
21 months agomgr/rook: adding behave as testing python dependency 54056/head
Redouane Kachach [Fri, 3 Nov 2023 14:06:08 +0000 (15:06 +0100)]
mgr/rook: adding behave as testing python dependency

Signed-off-by: Redouane Kachach <rkachach@redhat.com>
21 months agoMerge pull request #53129 from rishabh-d-dave/xfstests-dev-deps
Rishabh Dave [Fri, 3 Nov 2023 12:39:52 +0000 (18:09 +0530)]
Merge pull request #53129 from rishabh-d-dave/xfstests-dev-deps

qa/cephfs: update dependencies for xfstests-dev

Reviewed-by: Venky Shankar <vshankar@redhat.com>
21 months agoMerge pull request #48508 from pkalever/rbd-tests
Ilya Dryomov [Fri, 3 Nov 2023 11:55:02 +0000 (12:55 +0100)]
Merge pull request #48508 from pkalever/rbd-tests

qa/workunits/rbd: merge journal and snapshot test scripts

Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Mykola Golub <mgolub@suse.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
21 months agoMerge pull request #50615 from batrick/i59119
Venky Shankar [Fri, 3 Nov 2023 11:29:36 +0000 (16:59 +0530)]
Merge pull request #50615 from batrick/i59119

mds: respawn standby-replay if read_pos is <= expire_pos

Reviewed-by: Venky Shankar <vshankar@redhat.com>
21 months agoMerge pull request #53611 from Patty8122/adding-useful-print
Rishabh Dave [Fri, 3 Nov 2023 11:02:41 +0000 (16:32 +0530)]
Merge pull request #53611 from Patty8122/adding-useful-print

mds: Include more information in print statement in MDSRank.cc

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
Reviewed-by: Rishabh Dave <ridave@redhat.com>
21 months agoMerge pull request #53126 from tengjie5/origin/tmp2
Rishabh Dave [Fri, 3 Nov 2023 11:01:13 +0000 (16:31 +0530)]
Merge pull request #53126 from tengjie5/origin/tmp2

cephfs-shell: getxattr fail while the xattr's length > 256

Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Neeraj Pratap Singh <neesingh@redhat.com>
21 months agomgr/rook: adding e2e version based on minikube
Redouane Kachach [Tue, 17 Oct 2023 07:31:59 +0000 (09:31 +0200)]
mgr/rook: adding e2e version based on minikube

Signed-off-by: Redouane Kachach <rkachach@redhat.com>
21 months agoMerge pull request #54036 from xxhdx1985126/wip-seastore-clone-remap-ut
Yingxin [Fri, 3 Nov 2023 08:17:00 +0000 (16:17 +0800)]
Merge pull request #54036 from xxhdx1985126/wip-seastore-clone-remap-ut

crimson/os/seastore: add unittests for transaction manager's clone/remap/read_pin and fix bugs

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
Reviewed-by: Myoungwon Oh <myoungwon.oh@samsung.com>
21 months agoMerge pull request #53132 from benhanokh/maintain_prefix_itr_2
Gabriel Benhanokh [Fri, 3 Nov 2023 06:21:22 +0000 (08:21 +0200)]
Merge pull request #53132 from benhanokh/maintain_prefix_itr_2

osd/SnapMapper:maintain the prefix_itr between calls to SnapMapper::get_next_objects_to_trim()

21 months agoMerge pull request #54322 from bluikko/patch-22
zdover23 [Fri, 3 Nov 2023 06:16:50 +0000 (16:16 +1000)]
Merge pull request #54322 from bluikko/patch-22

doc/cephadm/services: remove excess rendered indentation in osd.rst

Reviewed-by: Zac Dover <zac.dover@proton.me>
21 months agodoc/cephadm/services: remove excess rendered indentation in osd.rst 54322/head
Ville Ojamo [Fri, 3 Nov 2023 05:44:00 +0000 (12:44 +0700)]
doc/cephadm/services: remove excess rendered indentation in osd.rst

Start bash command blocks at the left margin, removing
excessive padding/indentation that would render the
block too much towards the right.

At the same time ident the source consistently:
- Two spaces for command blocks and output blocks.
- Four spaces for notes, code blocks.

There seems to be no uniform style for this, sometimes
commands are indented with three spaces but it would
seem two spaces is common. In the end it all renders
the same I guess.

Signed-off-by: Ville Ojamo <14869000+bluikko@users.noreply.github.com>
21 months agoMerge pull request #54048 from rhcs-dashboard/rgw-bucket-policy
Nizamudeen A [Fri, 3 Nov 2023 05:05:18 +0000 (10:35 +0530)]
Merge pull request #54048 from rhcs-dashboard/rgw-bucket-policy

mgr/dashboard: get object bucket policies for a bucket

Reviewed-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
Reviewed-by: Ankush Behl <cloudbehl@gmail.com>
21 months agoMerge pull request #54303 from zdover23/wip-doc-2023-11-02-cephadm-troubleshooting...
zdover23 [Fri, 3 Nov 2023 03:19:19 +0000 (13:19 +1000)]
Merge pull request #54303 from zdover23/wip-doc-2023-11-02-cephadm-troubleshooting-2-of-x

doc/cephadm: edit troubleshooting.rst (2 of x)

Reviewed-by: John Mulligan <jmulligan@redhat.com>
21 months agoMerge pull request #54309 from linuxbox2/wip-fix-lockguard
Casey Bodley [Thu, 2 Nov 2023 21:08:07 +0000 (21:08 +0000)]
Merge pull request #54309 from linuxbox2/wip-fix-lockguard

rgwfile: fix lock_guard decl

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Leonid Usov <leonid.usov@ibm.com>
21 months agoMerge PR #47121 into main
Patrick Donnelly [Thu, 2 Nov 2023 19:41:17 +0000 (15:41 -0400)]
Merge PR #47121 into main

* refs/pull/47121/head:
mds: ensure next replay is queued on req drop

Reviewed-by: Venky Shankar <vshankar@redhat.com>
21 months agoMerge PR #53883 into main
Patrick Donnelly [Thu, 2 Nov 2023 19:40:09 +0000 (15:40 -0400)]
Merge PR #53883 into main

* refs/pull/53883/head:
mon: fix mds metadata lost in one case.

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
21 months agoMerge PR #53636 into main
Patrick Donnelly [Thu, 2 Nov 2023 19:39:12 +0000 (15:39 -0400)]
Merge PR #53636 into main

* refs/pull/53636/head:
mds: do not simplify fragset

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
21 months agoosd/SnapMapper: maintain the prefix_itr between calls to SnapMapper::get_next_objects... 53132/head
Gabriel BenHanokh [Wed, 14 Dec 2022 12:55:19 +0000 (12:55 +0000)]
osd/SnapMapper: maintain the prefix_itr between calls to SnapMapper::get_next_objects_to_trim()
Maintain the prefix_itr between calls to SnapMapper::get_next_objects_to_trim() to prevent searching depleted prefixes.
We got 8 distinct hash prefixes used for searching objects owned by a given PG.
On each call to SnapMapper::get_next_objects_to_trim() we start from the first prefix even after all objects mapped to it were depleted.
This means that we will be searching for 1 non-existing prefix after the first prefix was depleted, 2 after the first two prefixes were depleted... and so on until we will search 7 non-existing prefixes after the first 7 prefixes were depleted.

This is a performance improvement PR only!
It maintains the existing behavior and does not try to fix/change any of the TRIM logic.
I added an extra step after the last object is trimmed doing a full scan of the DB and only if no object was found it will return ENOENT.
This should make the new code no-worse than existing code which returns ENOENT after a full scan found no object.
It should not impact performance in real life snaps as it should only happen once per-snap.

added snap-mapper tests to rados-test-suite
disabled osd_debug_trim_objects when running (SnapMapperTest, prefix_itr) to prevent asserts(as this code does illegal inserts into DELETED snaps)
Code beautifing

Disabled the assert as there is a corner case when we retrieve the last valid object/s in a snap
The prefix_itr is advanced past the last valid value (as we completed a full scan)
If the OSD will call get_next_objects_to_trim() before the retrieved object/s was processed and removed from the SnapMapper DB it won't be found by the next call (as the prefix_itr is invalid).
The object will be found in the second-pass which will seems as if it was added after the trim was started (which is illegal) and will trigger an ASSERT

Signed-off-by: Gabriel BenHanokh <gbenhano@redhat.com>
21 months agoMerge pull request #54299 from ionutbalutoiu/fix-rgw-cloud-sync-multi-tenancy
Casey Bodley [Thu, 2 Nov 2023 18:01:46 +0000 (18:01 +0000)]
Merge pull request #54299 from ionutbalutoiu/fix-rgw-cloud-sync-multi-tenancy

rgw: fix cloud-sync multi-tenancy scenario

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
21 months agorgwfile: fix lock_guard decl 54309/head
Matt Benjamin [Thu, 2 Nov 2023 17:45:12 +0000 (13:45 -0400)]
rgwfile: fix lock_guard decl

Reported by Leonid Usov <leonid.usov@ibm.com>.

Fixes: https://tracker.ceph.com/issues/63409
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
21 months agoMerge pull request #53828 from smanjara/wip-sync-error-trim
Casey Bodley [Thu, 2 Nov 2023 14:27:13 +0000 (14:27 +0000)]
Merge pull request #53828 from smanjara/wip-sync-error-trim

rgw/multisite: fix sync_error_trim command

Reviewed-by: Casey Bodley <cbodley@redhat.com>
21 months agodoc/cephadm: edit troubleshooting.rst (2 of x) 54303/head
Zac Dover [Thu, 2 Nov 2023 06:07:39 +0000 (16:07 +1000)]
doc/cephadm: edit troubleshooting.rst (2 of x)

Edit doc/cephadm/troubleshooting.rst. This commit and the PR of which it
is a part was raised in response to https://github.com/ceph/ceph/pull/53976.

Co-authored-by: John Mulligan <jmulligan@redhat.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
21 months agoqa/workunits/rbd: merge journal and snapshot test scripts 48508/head
Prasanna Kumar Kalever [Mon, 17 Oct 2022 08:05:22 +0000 (13:35 +0530)]
qa/workunits/rbd: merge journal and snapshot test scripts

The idea is to avoid the maintenance of duplicate code in both the journal
and snapshot test scripts.

Usage:
   RBD_MIRROR_MODE=journal rbd_mirror.sh

Use environment variable RBD_MIRROR_MODE to set the mode
Available modes: snapshot | journal

Fixes: https://tracker.ceph.com/issues/54312
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
21 months agoMerge pull request #49486 from ifed01/wip-ifed-fix-rados-pybind
Igor Fedotov [Thu, 2 Nov 2023 12:21:05 +0000 (15:21 +0300)]
Merge pull request #49486 from ifed01/wip-ifed-fix-rados-pybind

pybind/rados: fix missed changes for PEP484 style type annotations

Reviewed-by: Kefu Chai <tchaikov@gmail.com>
21 months agoMerge pull request #53843 from ronen-fr/wip-rf-1b1
Ronen Friedman [Thu, 2 Nov 2023 10:27:46 +0000 (12:27 +0200)]
Merge pull request #53843 from ronen-fr/wip-rf-1b1

osd/scrub: reserve replicas in OSD order, one by one

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

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

Fixes: https://tracker.ceph.com/issues/63221
Signed-off-by: Nizamudeen A <nia@redhat.com>
21 months agocrimson/os/seastore/lba_manager: rename clone_extent to clone_mapping 54036/head
Xuehan Xu [Tue, 31 Oct 2023 12:42:56 +0000 (20:42 +0800)]
crimson/os/seastore/lba_manager: rename clone_extent to clone_mapping

Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
21 months agocrimson/os/seastore/lba_manager: hide lba mapping ref count update away
Xuehan Xu [Mon, 16 Oct 2023 03:58:32 +0000 (11:58 +0800)]
crimson/os/seastore/lba_manager: hide lba mapping ref count update away
from users of TransactionManager

Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
21 months agotest/crimson/seastore: add unittests for clone/remap/read_pin
Xuehan Xu [Mon, 16 Oct 2023 08:22:31 +0000 (16:22 +0800)]
test/crimson/seastore: add unittests for clone/remap/read_pin

Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
21 months agocrimson/os/seastore/transaction_manager: indirect lba mappings should
Xuehan Xu [Mon, 16 Oct 2023 08:19:52 +0000 (16:19 +0800)]
crimson/os/seastore/transaction_manager: indirect lba mappings should
always have the entire original mappings as their targets

Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
21 months agoMerge pull request #52261 from myoungwon/wip-ceph-dedup-tool-snap-add
Samuel Just [Thu, 2 Nov 2023 01:53:28 +0000 (18:53 -0700)]
Merge pull request #52261 from myoungwon/wip-ceph-dedup-tool-snap-add

tool/ceph-dedup-tool: perform dedup on snapshotted object during sample dedup

Reviewed-by: Samuel Just <sjust@redhat.com>
21 months agorgw: fix cloud-sync multi-tenancy scenario 54299/head
Ionut Balutoiu [Wed, 1 Nov 2023 16:07:58 +0000 (18:07 +0200)]
rgw: fix cloud-sync multi-tenancy scenario

At the moment, we cannot set buckets prefixed with tenant ID in the
`source_bucket` field from cloud-sync profiles (non-trivial config):
https://docs.ceph.com/en/latest/radosgw/cloud-sync-module/#non-trivial-configuration

This is because the `do_find_profile` function only searches in the
profiles configured using `bucket.name`, and it ignores `bucket.tenant`.

This is problematic in the RGW multi-tenancy scenario:
https://docs.ceph.com/en/latest/radosgw/multitenancy/#rgw-multi-tenancy

At the moment, we can only configure bucket name in the profile
`source_bucket` field. In the multi-tenancy scenario, this would sync
all the buckets (from all the tenants).

Without this fix, we cannot configure a cloud-sync profile that syncs
all the buckets from a tenant to a particular S3 target.

For example, we cannot do this:

* `tenantA/test-bucket` -> S3 target A
* `tenantB/test-bucket` -> S3 target B
* `tenantC/test-bucket` -> S3 target C

We can only do this at the moment:

* `test-bucket` -> S3 target A

If `test-bucket` is present in both `tenantA` and `tenantB`, both
buckets will be synced to S3 target A.

The idea would be to be able to do this:

* `tenantA/*` -> S3 target A
* `tenantB/*` -> S3 target B
* `tenantC/*` -> S3 target C

If `test-bucket` is present in all tenants, each tenant bucket is
synced to its own S3 target.

Fixes: https://tracker.ceph.com/issues/63395
Signed-off-by: Ionut Balutoiu <ibalutoiu@cloudbasesolutions.com>
21 months agoMerge pull request #52545 from Matan-B/wip-matanb-trim-61962
Yuri Weinstein [Wed, 1 Nov 2023 19:09:44 +0000 (12:09 -0700)]
Merge pull request #52545 from Matan-B/wip-matanb-trim-61962

osd/OSD: fix trim_maps() - possible leak on `skip_maps`

Reviewed-by: Samuel Just <sjust@redhat.com>
21 months agoMerge pull request #50081 from NitzanMordhai/wip-nitzan-subscription-manager-rocksdb...
Yuri Weinstein [Wed, 1 Nov 2023 19:08:42 +0000 (12:08 -0700)]
Merge pull request #50081 from NitzanMordhai/wip-nitzan-subscription-manager-rocksdb-librados

qa/*/test_envlibrados_for_rocksdb.sh: subscribe repo

Reviewed-by: Laura Flores <lflores@redhat.com>
21 months agoMerge pull request #52171 from myoungwon/wip-ceph-dedup-tool-improve-print
Samuel Just [Wed, 1 Nov 2023 17:45:39 +0000 (10:45 -0700)]
Merge pull request #52171 from myoungwon/wip-ceph-dedup-tool-improve-print

tool/ceph-dedup-tool: improve the progress report

Reviewed-by: Samuel Just <sjust@redhat.com>
21 months agoMerge pull request #53346 from linuxbox2/wip-build-fio
Ilya Dryomov [Wed, 1 Nov 2023 17:18:40 +0000 (18:18 +0100)]
Merge pull request #53346 from linuxbox2/wip-build-fio

cmake: BuildFIO.cmake should not introduce -std=gnu++17

Reviewed-by: Kefu Chai <tchaikov@gmail.com>
21 months agoMerge pull request #54141 from phlogistonjohn/jjm-cephadm-more-assertions
Adam King [Wed, 1 Nov 2023 14:27:31 +0000 (10:27 -0400)]
Merge pull request #54141 from phlogistonjohn/jjm-cephadm-more-assertions

cephadm: add more deployment test assertions

Reviewed-by: Adam King <adking@redhat.com>
21 months agoMerge pull request #54040 from Matan-B/wip-wip-matanb-crimson-do_osd_ops_execute-v3
Matan Breizman [Wed, 1 Nov 2023 10:41:33 +0000 (12:41 +0200)]
Merge pull request #54040 from Matan-B/wip-wip-matanb-crimson-do_osd_ops_execute-v3

crimson/osd/pg: do_osd_ops_execute refactor

Reviewed-by: Samuel Just <sjust@redhat.com>
21 months agoMerge pull request #53535 from ajarr/wip-62891
Ilya Dryomov [Wed, 1 Nov 2023 09:45:59 +0000 (10:45 +0100)]
Merge pull request #53535 from ajarr/wip-62891

qa/suites/rbd: add test to check rbd_support module recovery

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Mykola Golub <mgolub@suse.com>
21 months agoMerge pull request #54251 from ajarr/wip-62994
Ilya Dryomov [Wed, 1 Nov 2023 09:44:05 +0000 (10:44 +0100)]
Merge pull request #54251 from ajarr/wip-62994

mgr/rbd_support: fix recursive locking on CreateSnapshotRequests lock

Reviewed-by: Mykola Golub <mgolub@suse.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
21 months agoMerge pull request #47730 from ifed01/wip-ifed-alloc-logging
Igor Fedotov [Wed, 1 Nov 2023 09:38:06 +0000 (12:38 +0300)]
Merge pull request #47730 from ifed01/wip-ifed-alloc-logging

os/bluestore: assert on improper release in AvlAllocator

Reviewed-by: Pere Diaz Bou <pere-altea@hotmail.com>
21 months agotest/crimson/seastore/lba_manager: skip indirect lba mappings
Xuehan Xu [Mon, 16 Oct 2023 08:16:58 +0000 (16:16 +0800)]
test/crimson/seastore/lba_manager: skip indirect lba mappings

Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
21 months agocrimson/os/seastore/lba_manager: copy intermediate_length when
Xuehan Xu [Mon, 16 Oct 2023 03:59:05 +0000 (11:59 +0800)]
crimson/os/seastore/lba_manager: copy intermediate_length when
dupicating lba mappings

Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
21 months agocrimson/os/seastore/btree: drop unused lba mapping method
Xuehan Xu [Mon, 16 Oct 2023 03:57:39 +0000 (11:57 +0800)]
crimson/os/seastore/btree: drop unused lba mapping method

Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
21 months agoMerge pull request #54281 from zdover23/wip-doc-2023-11-01-cephadm-troubleshooting...
zdover23 [Wed, 1 Nov 2023 06:48:58 +0000 (16:48 +1000)]
Merge pull request #54281 from zdover23/wip-doc-2023-11-01-cephadm-troubleshooting-1-of-x

doc/cephadm: edit troubleshooting.rst (1 of x)

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
21 months agoMerge pull request #54262 from barakda/nvmeof-bump-version-v0.0.5
barakda [Wed, 1 Nov 2023 05:47:25 +0000 (07:47 +0200)]
Merge pull request #54262 from barakda/nvmeof-bump-version-v0.0.5

Update default nvmeof gw version to v0.0.5

21 months agoMerge pull request #54210 from rishabh-d-dave/progress-submodule-update
Rishabh Dave [Wed, 1 Nov 2023 05:29:59 +0000 (10:59 +0530)]
Merge pull request #54210 from rishabh-d-dave/progress-submodule-update

add --progress flag to git submodule update commands

Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
21 months agodoc/cephadm: edit troubleshooting.rst (1 of x) 54281/head
Zac Dover [Wed, 1 Nov 2023 01:53:59 +0000 (11:53 +1000)]
doc/cephadm: edit troubleshooting.rst (1 of x)

Edit doc/cephadm/troubleshooting.rst. This commit and the PR of which it
is a part was raised in response to
https://github.com/ceph/ceph/pull/53976. The limits of reStructuredText
are particularly visible here in every instance of a BASH for-loop and
in every instance of a command stretched over multiple lines.

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
21 months agoMerge pull request #54226 from adamemerson/wip-build-experiment
Casey Bodley [Tue, 31 Oct 2023 20:28:17 +0000 (20:28 +0000)]
Merge pull request #54226 from adamemerson/wip-build-experiment

build: Fix ARM build and make install-deps.sh more robust

Reviewed-by: Casey Bodley <cbodley@redhat.com>
21 months agoMerge pull request #54216 from adamemerson/wip-fmt-felicity
Casey Bodley [Tue, 31 Oct 2023 20:20:56 +0000 (20:20 +0000)]
Merge pull request #54216 from adamemerson/wip-fmt-felicity

build: fmt felicity

Reviewed-by: Casey Bodley <cbodley@redhat.com>
21 months agocmake: add --progress flag to git submodule update commands 54210/head
Rishabh Dave [Thu, 26 Oct 2023 10:48:31 +0000 (16:18 +0530)]
cmake: add --progress flag to git submodule update commands

Ceph has lots of submodules that needs to be cloned before building
binaries from the repository. Seeing the progress when these submodules
are being cloned is useful, especially when developers/users have a
network issue or a slow network.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
21 months agoMerge PR #54272 into main
Patrick Donnelly [Tue, 31 Oct 2023 17:22:19 +0000 (13:22 -0400)]
Merge PR #54272 into main

* refs/pull/54272/head:
cmake: do not issue CMAKE_BUILD_TYPE warning if set

Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
21 months agoMerge pull request #53720 from ljflores/bz_2241104
Yuri Weinstein [Tue, 31 Oct 2023 15:07:15 +0000 (08:07 -0700)]
Merge pull request #53720 from ljflores/bz_2241104

osd: fix logic in check_pg_upmaps

Reviewed-by: Samuel Just <sjust@redhat.com>
21 months agocmake: do not issue CMAKE_BUILD_TYPE warning if set 54272/head
Patrick Donnelly [Tue, 31 Oct 2023 14:54:37 +0000 (10:54 -0400)]
cmake: do not issue CMAKE_BUILD_TYPE warning if set

Fixes: b8c6ba01b262d33084b9c607d829503ac8ae25c5
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
21 months agoMerge pull request #54238 from zdover23/wip-doc-2023-10-30-rados-config-osd-config...
zdover23 [Tue, 31 Oct 2023 13:34:52 +0000 (23:34 +1000)]
Merge pull request #54238 from zdover23/wip-doc-2023-10-30-rados-config-osd-config-ref-scrubbing

doc/rados: improve "scrubbing" explanation

Reviewed-by: Ronen Friedman <rfriedma@redhat.com>
21 months agoUpdate default nvmeof gw version to v0.0.5 54262/head
barakda [Tue, 31 Oct 2023 13:15:41 +0000 (15:15 +0200)]
Update default nvmeof gw version to v0.0.5

Signed-off-by: barakda <barak.davidov@gmail.com>
21 months agoMerge pull request #50821 from cbodley/wip-cmake-uring
Casey Bodley [Tue, 31 Oct 2023 13:03:46 +0000 (13:03 +0000)]
Merge pull request #50821 from cbodley/wip-cmake-uring

cmake: fix WITH_SYSTEM_LIBURING and make uring available outside of src/blk

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
21 months agodoc/rados: improve "scrubbing" explanation 54238/head
Zac Dover [Mon, 30 Oct 2023 02:19:07 +0000 (12:19 +1000)]
doc/rados: improve "scrubbing" explanation

Improve the English describing the operation of scrubbing PGs in
doc/rados/configuration/osd-config-ref.rst.

Co-authored-by: Ronen Friedman <rfriedma@redhat.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
21 months agoMerge pull request #54239 from zdover23/wip-doc-2023-10-30-glossary-bluestore
zdover23 [Tue, 31 Oct 2023 12:02:37 +0000 (22:02 +1000)]
Merge pull request #54239 from zdover23/wip-doc-2023-10-30-glossary-bluestore

doc/glossary: improve "BlueStore" entry

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
21 months agodoc/glossary: improve "BlueStore" entry 54239/head
Zac Dover [Mon, 30 Oct 2023 02:37:39 +0000 (12:37 +1000)]
doc/glossary: improve "BlueStore" entry

Initially s/backend/back end/ but then I added a little more information
about BlueStore's use of RocksDB to map object names to block locations
on disk.

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
21 months agoMerge pull request #54247 from rhcs-dashboard/fix-no-multisite-error
Aashish Sharma [Tue, 31 Oct 2023 05:04:05 +0000 (10:34 +0530)]
Merge pull request #54247 from rhcs-dashboard/fix-no-multisite-error

mgr/dashboard: fix rgw multisite error when no rgw entity is present

Reviewed-by: Nizamudeen A <nia@redhat.com>
21 months agoMerge pull request #54240 from rhcs-dashboard/fix-63347-main
Aashish Sharma [Tue, 31 Oct 2023 05:02:13 +0000 (10:32 +0530)]
Merge pull request #54240 from rhcs-dashboard/fix-63347-main

mgr/dashboard: Block Ui fails in angular with target es2022

Reviewed-by: Nizamudeen A <nia@redhat.com>
21 months agoMerge pull request #54142 from YiteGu/add-bluestore-fragmentation-to-metrics
Yuri Weinstein [Mon, 30 Oct 2023 20:30:58 +0000 (13:30 -0700)]
Merge pull request #54142 from YiteGu/add-bluestore-fragmentation-to-metrics

os/bluestore: add bluestore fragmentation micros to prometheus

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
21 months agoMerge pull request #53993 from shminjs/fix-out-and-down-osd-daemon-report
Yuri Weinstein [Mon, 30 Oct 2023 20:30:03 +0000 (13:30 -0700)]
Merge pull request #53993 from shminjs/fix-out-and-down-osd-daemon-report

mgr: remove out&down osd from mgr daemons

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
21 months agoMerge pull request #53689 from leonid-s-usov/mds-raise
Yuri Weinstein [Mon, 30 Oct 2023 20:29:46 +0000 (13:29 -0700)]
Merge pull request #53689 from leonid-s-usov/mds-raise

common/admin_socket: add a command to raise a signal

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>