]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
22 months agodoc: reformat so note is not part of code 53144/head
Patrick Donnelly [Thu, 24 Aug 2023 18:03:34 +0000 (14:03 -0400)]
doc: reformat so note is not part of code

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
22 months agoMerge pull request #53104 from ceph/revert-49428-maintain_prefix_itr
Radoslaw Zarzynski [Wed, 23 Aug 2023 22:36:46 +0000 (00:36 +0200)]
Merge pull request #53104 from ceph/revert-49428-maintain_prefix_itr

Revert "osd/SnapMapper: Maintain the prefix_itr between calls to avoid search…"

Reviewed-by: Gabriel BenHanokh <gbenhano@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
22 months agoRevert "osd/SnapMapper: Maintain the prefix_itr between calls to avoid search…" 53104/head
Radoslaw Zarzynski [Wed, 23 Aug 2023 18:05:25 +0000 (20:05 +0200)]
Revert "osd/SnapMapper: Maintain the prefix_itr between calls to avoid search…"

Signed-off-by: Radosław Zarzyński <rzarzyns@redhat.com>
22 months agoMerge PR #53053 into main
Patrick Donnelly [Wed, 23 Aug 2023 17:57:25 +0000 (13:57 -0400)]
Merge PR #53053 into main

* refs/pull/53053/head:
libcephsqlite: fill 0s in unread portion of buffer

Reviewed-by: Casey Bodley <cbodley@redhat.com>
22 months agoMerge pull request #49428 from benhanokh/maintain_prefix_itr
Gabriel Benhanokh [Wed, 23 Aug 2023 15:34:22 +0000 (18:34 +0300)]
Merge pull request #49428 from benhanokh/maintain_prefix_itr

osd/SnapMapper: Maintain the prefix_itr between calls to avoid search…

22 months agoosd/SnapMapper: 49428/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() 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

Signed-off-by: Gabriel BenHanokh <gbenhano@redhat.com>
22 months agoMerge pull request #53076 from zdover23/wip-doc-2023-08-22-start-os-recommendations...
zdover23 [Wed, 23 Aug 2023 11:47:51 +0000 (21:47 +1000)]
Merge pull request #53076 from zdover23/wip-doc-2023-08-22-start-os-recommendations-chart

doc/start: refactor ABC test chart

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
22 months agoMerge PR #53077 into main
Venky Shankar [Wed, 23 Aug 2023 05:37:24 +0000 (11:07 +0530)]
Merge PR #53077 into main

* refs/pull/53077/head:
qa: add `POOL_APP_NOT_ENABLED` to ignorelist for cephfs tests

Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
22 months agoMerge pull request #53051 from xxhdx1985126/wip-crimson-omap-list
Yingxin [Wed, 23 Aug 2023 05:11:08 +0000 (13:11 +0800)]
Merge pull request #53051 from xxhdx1985126/wip-crimson-omap-list

crimson/os/seastore/omap_manager: fix the entry leak issue in BtreeOMapManager::omap_list()

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
22 months agolibcephsqlite: fill 0s in unread portion of buffer 53053/head
Patrick Donnelly [Fri, 18 Aug 2023 17:43:27 +0000 (13:43 -0400)]
libcephsqlite: fill 0s in unread portion of buffer

Unfortunately, this code is filling 0s at the beginning of the short-read
buffer.

Fixes: https://tracker.ceph.com/issues/62492
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
22 months agoMerge pull request #52984 from tchaikov/cmake-python3
Yuri Weinstein [Tue, 22 Aug 2023 18:34:10 +0000 (11:34 -0700)]
Merge pull request #52984 from tchaikov/cmake-python3

cmake: update FindPython3 module

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Zack Cerza <zack@redhat.com>
22 months agoMerge pull request #52904 from ronen-fr/wip-rf-ost-fmt
Yuri Weinstein [Tue, 22 Aug 2023 18:32:16 +0000 (11:32 -0700)]
Merge pull request #52904 from ronen-fr/wip-rf-ost-fmt

commom,osd: support for default fmtlib formatters

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
22 months agoMerge pull request #52809 from sseshasa/wip-mclock-client-lim-62293
Yuri Weinstein [Tue, 22 Aug 2023 18:31:22 +0000 (11:31 -0700)]
Merge pull request #52809 from sseshasa/wip-mclock-client-lim-62293

osd/scheduler/mClockScheduler: Use same profile and client ids for all clients to ensure allocated QoS limit consumption.

Reviewed-by: Samuel Just <sjust@redhat.com>
22 months agoMerge pull request #52339 from Matan-B/wip-matanb-trim-maps-refactor
Yuri Weinstein [Tue, 22 Aug 2023 18:31:05 +0000 (11:31 -0700)]
Merge pull request #52339 from Matan-B/wip-matanb-trim-maps-refactor

osd/OSD: Simplify trim_maps

Reviewed-by: Samuel Just <sjust@redhat.com>
22 months agoMerge pull request #51868 from NitzanMordhai/wip-nitzan-admin-socket-new-session...
Yuri Weinstein [Tue, 22 Aug 2023 18:30:37 +0000 (11:30 -0700)]
Merge pull request #51868 from NitzanMordhai/wip-nitzan-admin-socket-new-session-mon-shutdown

mon/Monitor: during shutdown don't accept new authentication and crea…

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
22 months agoMerge pull request #50216 from rhcs-dashboard/log-runway
Yuri Weinstein [Tue, 22 Aug 2023 18:30:17 +0000 (11:30 -0700)]
Merge pull request #50216 from rhcs-dashboard/log-runway

os/bluestore: expand BlueFS log if available space is insufficient

Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
Reviewed-by: Igor Fedotov <ifedotov@suse.com>
22 months agoMerge pull request #53038 from ronen-fr/wip-rf-max-utime
Ronen Friedman [Tue, 22 Aug 2023 18:16:50 +0000 (21:16 +0300)]
Merge pull request #53038 from ronen-fr/wip-rf-max-utime

common: add a utime_t::max constant

Reviewed-by: Samuel Just <sjust@redhat.com>
22 months agoMerge pull request #50200 from adk3798/drain-leave-etc-ceph
Adam King [Tue, 22 Aug 2023 16:31:33 +0000 (12:31 -0400)]
Merge pull request #50200 from adk3798/drain-leave-etc-ceph

mgr/cephadm: allow draining host without removing conf/keyring files

Reviewed-by: John Mulligan <jmulligan@redhat.com>
22 months agoMerge pull request #53008 from adk3798/cephadm-bind-to-specific-ip
Adam King [Tue, 22 Aug 2023 16:29:27 +0000 (12:29 -0400)]
Merge pull request #53008 from adk3798/cephadm-bind-to-specific-ip

mgr/cephadm: allow ingress services with same frontend port and different VIP

Reviewed-by: John Mulligan <jmulligan@redhat.com>
22 months agocephadm: have attempt_bind raise up OSErrors 53008/head
Adam King [Fri, 18 Aug 2023 16:32:38 +0000 (12:32 -0400)]
cephadm: have attempt_bind raise up OSErrors

Before it was always converting the OSError to
our self-defined "Error" class. This causes an issue
with the port_in_use function that has special handling
for OSError when the errno is EADDRNOTAVAIL or
EAFNOSUPPORT. Since the error being raised was no
longer an OSError it wasn't being caught and checked
properly in port_in_use.

This has the additional property of being necessary
to check port availability for haproxy on its VIP. If
we fail deployment when EADDRNOTAVAIL is raised, it becomes
difficult to deploy the ingress service. If we deploy
haproxy first it fails because the VIP isn't available
yet (since keepalive isn't up) and it fails saying the port
it wants to bind to is unavailable (specifically EADDRNOTAVAIL).
If we try to deploy keepalive first it fails because it
needs to know the location of the haproxy daemons in
order to build its config file. This has worked in the past
by just having the haproxy fail to bind at first and then
fix itself once the keepalive daemon is deployed. That
no longer works if the haproxy daemon fails to deploy
because cephadm is reporting the port it needs is
unavailable. Since EADDRNOTAVAIL when deploying
haproxy likely means the VIP is not up rather than
something else is taking up the port it needs, fixing
the handling of this allows ingress deployment to
work while also allowing multiple haproxy daemons
on the same host to use the same frontend port
bound to different VIPs.

Signed-off-by: Adam King <adking@redhat.com>
22 months agomgr/cephadm: only check haproxy frontend_port conflicts on VIP
Adam King [Fri, 11 Aug 2023 18:00:31 +0000 (14:00 -0400)]
mgr/cephadm: only check haproxy frontend_port conflicts on VIP

If we know what IP the frontend_port will be binding
to, we can pass that down through the port_ips mapping
so cephadm will only check if that port on that specific
VIP if in use. This allows multiple haproxy daemons
to be bound to the same port on different VIPs on the
same host.

Note that you still must use a different monitor port
for the two different ingress services as that port
is bound to on the actual IP of the host. Only the
frontend port can be the same for haproxies on the
same host as long as the VIP is different.

Fixes: https://tracker.ceph.com/issues/57614
Signed-off-by: Adam King <adking@redhat.com>
22 months agocephadm: support for specifying IP a port will be bound to on
Adam King [Fri, 11 Aug 2023 17:35:10 +0000 (13:35 -0400)]
cephadm: support for specifying IP a port will be bound to on

This is mostly for checking for port conflicts.
Currently, we just check if the port is bound to
on any IP on the host. This mechanism should allow
certain daemon types to specify a port -> IP mapping
that will be passed to the cephadm binary. That
mapping will then be used by cephadm to only
check for the port being bound to on that specific
IP rather than any IP on the host. The end result
is we could have daemons bound to the same
port on different IPs on the same node.

It's expected that daemon types will set this
up as part of their prepare_create or generate_config
functions where they may have more info about the
specific IPs and ports they need.

Signed-off-by: Adam King <adking@redhat.com>
22 months agocommon: add a utime_t::max constant 53038/head
Ronen Friedman [Thu, 17 Aug 2023 14:20:33 +0000 (09:20 -0500)]
common: add a utime_t::max constant

a convenient init value when searching for some early timepoint.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
22 months agoMerge pull request #52700 from cloudbehl/utilization-improvements
Aashish Sharma [Tue, 22 Aug 2023 13:02:28 +0000 (18:32 +0530)]
Merge pull request #52700 from cloudbehl/utilization-improvements

mgr/dashboard: Adding legends and fixing queries

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
22 months agoMerge pull request #53040 from ronen-fr/wip-rf-conf-minor
Ronen Friedman [Tue, 22 Aug 2023 12:52:45 +0000 (15:52 +0300)]
Merge pull request #53040 from ronen-fr/wip-rf-conf-minor

osd: minor changes to the descriptions of some configuration items

Reviewed-by: Samuel Just <sjust@redhat.com>
22 months agoMerge pull request #53036 from ceph/revert-52416-ior-make-failures
Rishabh Dave [Tue, 22 Aug 2023 09:46:42 +0000 (15:16 +0530)]
Merge pull request #53036 from ceph/revert-52416-ior-make-failures

Revert "qa/cephfs: fix ior build failure"

Reviewed-by: Rishabh Dave <ridave@redhat.com>
22 months agoMerge PR #52111 into main
Venky Shankar [Tue, 22 Aug 2023 07:57:17 +0000 (13:27 +0530)]
Merge PR #52111 into main

* refs/pull/52111/head:
ceph: allow xlock state to be LOCK_SYNC when putting it
ceph: allow xlock state to be LOCK_PREXLOCK when putting it

Reviewed-by: Venky Shankar <vshankar@redhat.com>
22 months agoMerge PR #52335 into main
Venky Shankar [Tue, 22 Aug 2023 07:56:02 +0000 (13:26 +0530)]
Merge PR #52335 into main

* refs/pull/52335/head:
client: move the Inode to new auth mds session when changing auth cap
client: check the xlists in ~MetaSession()

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
22 months agoMerge PR #52520 into main
Venky Shankar [Tue, 22 Aug 2023 07:55:07 +0000 (13:25 +0530)]
Merge PR #52520 into main

* refs/pull/52520/head:
mds: acquire inode snaplock in open

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Milind Changire <mchangir@redhat.com>
22 months agoMerge PR #52741 into main
Venky Shankar [Tue, 22 Aug 2023 07:53:40 +0000 (13:23 +0530)]
Merge PR #52741 into main

* refs/pull/52741/head:
qa/cephfs: switch to python3 for centos stream 9

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
22 months agoqa: add `POOL_APP_NOT_ENABLED` to ignorelist for cephfs tests 53077/head
Venky Shankar [Tue, 22 Aug 2023 06:14:55 +0000 (11:44 +0530)]
qa: add `POOL_APP_NOT_ENABLED` to ignorelist for cephfs tests

Fixes: http://tracker.ceph.com/issues/62508
Signed-off-by: Venky Shankar <vshankar@redhat.com>
22 months agodoc/start: refactor ABC test chart 53076/head
Zac Dover [Tue, 22 Aug 2023 05:30:21 +0000 (15:30 +1000)]
doc/start: refactor ABC test chart

Refactor the ABC test chart so that the information about which tests
have been run is presented in the center of the chart instead of, as it
was before, in a superscript.

Signed-off-by: Zac Dover <zac.dover@proton.me>
22 months agoMerge pull request #53069 from zdover23/wip-doc-2023-08-22-start-os-recommendations...
zdover23 [Tue, 22 Aug 2023 04:36:42 +0000 (14:36 +1000)]
Merge pull request #53069 from zdover23/wip-doc-2023-08-22-start-os-recommendations-platforms

doc/start: update "platforms" table

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
22 months agoMerge pull request #53068 from zdover23/wip-doc-2023-08-21-README-md-cmake-options
zdover23 [Tue, 22 Aug 2023 04:35:19 +0000 (14:35 +1000)]
Merge pull request #53068 from zdover23/wip-doc-2023-08-21-README-md-cmake-options

doc/README.md - improve "CMake Options"

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
22 months agoMerge pull request #53046 from cyx1231st/wip-crimson-msgr-perf-random-client-nonce
Yingxin [Tue, 22 Aug 2023 01:29:49 +0000 (09:29 +0800)]
Merge pull request #53046 from cyx1231st/wip-crimson-msgr-perf-random-client-nonce

crimson/tools/perf_crimson_msgr: randomize client nonce

Reviewed-by: Samuel Just <sjust@redhat.com>
22 months agoMerge pull request #52673 from tobias-urdin/options-anon-auth-presigned
Casey Bodley [Mon, 21 Aug 2023 19:52:25 +0000 (15:52 -0400)]
Merge pull request #52673 from tobias-urdin/options-anon-auth-presigned

rgw: handle http options CORS with v4 auth

Reviewed-by: Casey Bodley <cbodley@redhat.com>
22 months agoMerge PR #52868 into main
Casey Bodley [Mon, 21 Aug 2023 19:16:44 +0000 (15:16 -0400)]
Merge PR #52868 into main

* refs/pull/52868/head:
mailmap: update affiliations for reef release
script: fix credits.sh showing 0 lines changed for mapped emails
script: credits.sh uses grep -E

Reviewed-by: Joshua Baergen <jbaergen@digitalocean.com>
Reviewed-by: Mykola Golub <mgolub@suse.com>
Reviewed-by: Zack Cerza <zack@redhat.com>
Reviewed-by: John Mulligan <jmulligan@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Parth Arora <paarora@redhat.com>
Reviewed-by: Guillaume Abrioux <gabrioux@redhat.com>
Reviewed-by: zmc <NOT@FOUND>
22 months agodoc/start: update "platforms" table 53069/head
Zac Dover [Mon, 21 Aug 2023 15:18:40 +0000 (01:18 +1000)]
doc/start: update "platforms" table

Update the table that reports which versions of which Linux releases
have been used in tests of Ceph.

Fixes: https://tracker.ceph.com/issues/62354
Signed-off-by: Zac Dover <zac.dover@proton.me>
23 months agoosd: minor changes to the descriptions of some configuration items 53040/head
Ronen Friedman [Thu, 17 Aug 2023 15:28:06 +0000 (10:28 -0500)]
osd: minor changes to the descriptions of some configuration items

... mostly scrub-related.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
23 months agomailmap: update affiliations for reef release 52868/head
Casey Bodley [Mon, 7 Aug 2023 20:03:46 +0000 (16:03 -0400)]
mailmap: update affiliations for reef release

Signed-off-by: Casey Bodley <cbodley@redhat.com>
23 months agodoc/README.md - improve "CMake Options" 53068/head
Zac Dover [Mon, 21 Aug 2023 13:53:33 +0000 (23:53 +1000)]
doc/README.md - improve "CMake Options"

Add subheadings to the "CMake Options" section of ceph/README.md. Remove
modal verbs when appropriate and make sentences tidier.

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
23 months agoRevert "qa/cephfs: fix ior build failure" 53036/head
Venky Shankar [Thu, 17 Aug 2023 13:01:42 +0000 (18:31 +0530)]
Revert "qa/cephfs: fix ior build failure"

PR #52416 is incomplete and got merged on the basis of a linked
test run which passed, however, subsequent update to the PR
caused the test to start failing again.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
23 months agomgr/dashboard: Overview graph improvemntments 52700/head
cloudbehl [Thu, 10 Aug 2023 12:20:38 +0000 (17:50 +0530)]
mgr/dashboard: Overview graph improvemntments

Fixes: https://tracker.ceph.com/issues/62367
Signed-off-by: cloudbehl <cloudbehl@gmail.com>
23 months agoMerge pull request #52915 from rhcs-dashboard/rgw-multisite-sync-card
Aashish Sharma [Mon, 21 Aug 2023 12:41:12 +0000 (18:11 +0530)]
Merge pull request #52915 from rhcs-dashboard/rgw-multisite-sync-card

mgr/dashboard: multisite sync status card for rgw overview dashboard

Reviewed-by: Nizamudeen A <nia@redhat.com>
23 months agomgr/dashboard: multisite sync status card for rgw overview dashboard 52915/head
Aashish Sharma [Tue, 25 Jul 2023 12:07:38 +0000 (17:37 +0530)]
mgr/dashboard: multisite sync status card for rgw overview dashboard

Signed-off-by: Aashish Sharma <aasharma@redhat.com>
(cherry picked from commit 1d6f19e53b68c180a2d0301889974949fe899a2c)

23 months agoMerge PR #52867 into main
Venky Shankar [Mon, 21 Aug 2023 05:33:48 +0000 (11:03 +0530)]
Merge PR #52867 into main

* refs/pull/52867/head:
doc: modify and add descriptions for  cephfs-shell commands.

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Jos Collin <jcollin@redhat.com>
23 months agoMerge pull request #52128 from myoungwon/wip-fix-invalid-replay
Yingxin [Mon, 21 Aug 2023 01:49:44 +0000 (09:49 +0800)]
Merge pull request #52128 from myoungwon/wip-fix-invalid-replay

crimson/os/seastore/journal/cbj: generalize scan_valid_records()

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
23 months agoMerge pull request #53055 from zdover23/wip-doc-2023-08-19-README-md-building-ceph
zdover23 [Sun, 20 Aug 2023 10:44:23 +0000 (20:44 +1000)]
Merge pull request #53055 from zdover23/wip-doc-2023-08-19-README-md-building-ceph

doc/README.md - edit "Building Ceph"

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
23 months agodoc/README.md - edit "Building Ceph" 53055/head
Zac Dover [Sat, 19 Aug 2023 09:29:08 +0000 (19:29 +1000)]
doc/README.md - edit "Building Ceph"

Improve the "Building Ceph" section of ceph/README.md.

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
23 months agocrimson/os/seastore/omap_manager: fix the entry leak issue in 53051/head
Xuehan Xu [Fri, 18 Aug 2023 11:56:50 +0000 (19:56 +0800)]
crimson/os/seastore/omap_manager: fix the entry leak issue in
BtreeOMapManager::omap_list()

Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
23 months agoMerge pull request #53035 from zdover23/wip-doc-2023-08-17-README-md-contributing...
zdover23 [Fri, 18 Aug 2023 10:26:59 +0000 (20:26 +1000)]
Merge pull request #53035 from zdover23/wip-doc-2023-08-17-README-md-contributing-code

doc: edit README.md - contributing code

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
23 months agocrimson/os/seastore/journal/cbj: remove return_record and read_record 52128/head
myoungwon oh [Wed, 16 Aug 2023 11:58:49 +0000 (11:58 +0000)]
crimson/os/seastore/journal/cbj: remove return_record and read_record

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
23 months agocrimson/os/seastore/journal/cbj: check if batched records are written at once before...
myoungwon oh [Mon, 14 Aug 2023 08:10:04 +0000 (08:10 +0000)]
crimson/os/seastore/journal/cbj: check if batched records are written at once before rolling

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
23 months agocrimson/os/seastore: genralize read_validate_record_metadata and read_validate_data
myoungwon oh [Fri, 11 Aug 2023 14:47:21 +0000 (14:47 +0000)]
crimson/os/seastore: genralize read_validate_record_metadata and read_validate_data

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
23 months agocrimson/tools/perf_crimson_msgr: randomize client nonce 53046/head
Yingxin Cheng [Thu, 17 Aug 2023 03:28:37 +0000 (11:28 +0800)]
crimson/tools/perf_crimson_msgr: randomize client nonce

In case we want to start multiple clients simultaneously.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
23 months agoMerge pull request #53023 from xxhdx1985126/wip-seastore-daggling-ref
Yingxin [Fri, 18 Aug 2023 01:19:47 +0000 (09:19 +0800)]
Merge pull request #53023 from xxhdx1985126/wip-seastore-daggling-ref

crimson/os/seastore: fix daggling reference of oid in SeaStore::Shard::stat()

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
23 months agodoc: edit README.md - contributing code 53035/head
Zac Dover [Thu, 17 Aug 2023 10:38:20 +0000 (20:38 +1000)]
doc: edit README.md - contributing code

Edit the "Contributing Code" section of the "ceph/README.md" file.

Signed-off-by: Zac Dover <zac.dover@proton.me>
23 months agoMerge pull request #53022 from rhcs-dashboard/upgrade-start-enhancement
Avan [Thu, 17 Aug 2023 15:16:30 +0000 (20:46 +0530)]
Merge pull request #53022 from rhcs-dashboard/upgrade-start-enhancement

mgr/dashboard: support cluster upgrade even if the check for upgrade fails

Reviewed-by: cloudbehl <NOT@FOUND>
Reviewed-by: Nizamudeen A <nia@redhat.com>
23 months agoscript: fix credits.sh showing 0 lines changed for mapped emails
Casey Bodley [Tue, 8 Aug 2023 14:00:22 +0000 (10:00 -0400)]
script: fix credits.sh showing 0 lines changed for mapped emails

script was showing 0 for several contributors because the commit Author:
did not match their mapped address:
```
Number of lines added and removed, by authors
...
   306      0 Radoslaw Zarzynski <rzarzynski@redhat.com>
   307      0 Mike Perez <miperez@redhat.com>
   308      0 Michael J. Kidd <linuxkidd@redhat.com>
   309      0 Lukas Mayer <lmayer@wind.gmbh>
   310      0 Luis Henriques <lhenriques@suse.com>
   311      0 Kyle McGough <kmcgough@digitalocean.com>
   312      0 João Eduardo Luís <joao@suse.de>
   313      0 JinyongHa <jy200.ha@samsung.com>
   314      0 Ilya Dryomov <idryomov@redhat.com>
```

in the case of Ilya and Radoslaw:
```
$ git log --no-merges --pretty='%ae' v17.2.6..v18.2.0 | sed -e "s/'/ /g" | sort -u | grep -e idryomov -e rzarzyns
idryomov@gmail.com
rzarzyns@redhat.com
```

this output gets fed into `git log --numstat --author="$mail"` to fetch
the stats, but that command maps idryomov@gmail.com -> idryomov@redhat.com
and rzarzyns@redhat.com -> rzarzynski@redhat.com so no commits matched.
disabling the mapping for this command with --no-mailmap allows it to
fetch their stats correctly:
```
    14   11809 Radoslaw Zarzynski <rzarzynski@redhat.com>
    16   10051 Ilya Dryomov <idryomov@redhat.com>
```

Signed-off-by: Casey Bodley <cbodley@redhat.com>
23 months agoscript: credits.sh uses grep -E
Casey Bodley [Mon, 7 Aug 2023 19:47:19 +0000 (15:47 -0400)]
script: credits.sh uses grep -E

resolves warning spam:
> egrep: warning: egrep is obsolescent; using grep -E

Signed-off-by: Casey Bodley <cbodley@redhat.com>
23 months agorgw/auth: move http options v4 logic to get_v4_canonical_method() 52673/head
Tobias Urdin [Thu, 17 Aug 2023 11:45:06 +0000 (11:45 +0000)]
rgw/auth: move http options v4 logic to get_v4_canonical_method()

Signed-off-by: Tobias Urdin <tobias.urdin@binero.com>
23 months agorgw/auth: handle HTTP OPTIONS with v4 auth
Tobias Urdin [Mon, 7 Aug 2023 20:34:43 +0000 (20:34 +0000)]
rgw/auth: handle HTTP OPTIONS with v4 auth

This adds code to properly verify the signature
for HTTP OPTIONS calls that is preflight CORS
requests passing the expected method in the
access-control-request-method header.

Fixes: https://tracker.ceph.com/issues/62033
Signed-off-by: Tobias Urdin <tobias.urdin@binero.com>
23 months agorgw/auth: check auth for http options requests
Tobias Urdin [Thu, 27 Jul 2023 14:59:45 +0000 (14:59 +0000)]
rgw/auth: check auth for http options requests

If we get a HTTP OPTIONS request we previously always
allowed the anonymous engine to handle the request even
if other auth was given in the request.

Fixes: https://tracker.ceph.com/issues/62033
Signed-off-by: Tobias Urdin <tobias.urdin@binero.com>
23 months agodoc: modify and add descriptions for cephfs-shell commands. 52867/head
tengjie5 [Tue, 8 Aug 2023 02:13:58 +0000 (10:13 +0800)]
doc: modify and add descriptions for  cephfs-shell commands.
Fixes: https://tracker.ceph.com/issues/62074
Signed-off-by: Teng Jie <tengjie5@asiainfo.com>
23 months agoMerge pull request #53030 from petrutlucian94/rbd_tests
Ilya Dryomov [Thu, 17 Aug 2023 09:39:53 +0000 (11:39 +0200)]
Merge pull request #53030 from petrutlucian94/rbd_tests

test/librbd/fsx: fix wnbd check

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
23 months agotest/librbd/fsx: fix wnbd check 53030/head
Lucian Petrut [Thu, 17 Aug 2023 06:12:00 +0000 (06:12 +0000)]
test/librbd/fsx: fix wnbd check

When using WNBD, the IO size must be a multiple of the sector size
(WNBD only supports 512 at the moment).

We're currently checking the "wnbd_operations" variable, however
it's only defined on Windows, leading to a compilation failure
on other platforms.

We'll switch back to a separate boolean variable called "wnbd_disk".

Fixes: https://tracker.ceph.com/issues/62475
Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
23 months agomgr/dashboard: support cluster upgrade even if the check for upgrade fails 53022/head
avanthakkar [Wed, 16 Aug 2023 10:55:41 +0000 (16:25 +0530)]
mgr/dashboard: support cluster upgrade even if the check for upgrade fails

Fixes: https://tracker.ceph.com/issues/62457
Signed-off-by: avanthakkar <avanjohn@gmail.com>
23 months agoMerge pull request #51561 from rhcs-dashboard/hosts-no-data
Nizamudeen A [Thu, 17 Aug 2023 05:27:52 +0000 (10:57 +0530)]
Merge pull request #51561 from rhcs-dashboard/hosts-no-data

mgr/dashboard: add not avaialable with unpresent host facts

Reviewed-by: Pegonzal <NOT@FOUND>
Reviewed-by: cloudbehl <NOT@FOUND>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
23 months agoMerge pull request #51227 from jsoref/spelling-dashboard
Nizamudeen A [Thu, 17 Aug 2023 05:18:30 +0000 (10:48 +0530)]
Merge pull request #51227 from jsoref/spelling-dashboard

dashboard: Fix spelling

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
23 months agoMerge pull request #51126 from rhcs-dashboard/jeje-log
Nizamudeen A [Thu, 17 Aug 2023 05:14:22 +0000 (10:44 +0530)]
Merge pull request #51126 from rhcs-dashboard/jeje-log

mgr/prometheus: remove jeje log

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Juan Miguel Olmo <jolmomar@redhat.com>
23 months agocrimson/os/seastore/journal/cbj: check if the first record in CBJ is written after...
myoungwon oh [Fri, 11 Aug 2023 04:52:23 +0000 (04:52 +0000)]
crimson/os/seastore/journal/cbj: check if the first record in CBJ is written after rolling or not

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
23 months agocmake: update FindPython3 module 52984/head
Kefu Chai [Thu, 17 Aug 2023 02:23:45 +0000 (10:23 +0800)]
cmake: update FindPython3 module

* use the one shiped by the latest CMake (ab379e5054aa792df9572078dcf95bddd75f7661)
* use the new policy to use the new find strategy.
* accomodate the vanilla FindPython3 module to Ceph by:
  - dropping the `cmake_policy()` calls which set the policy not supported
    by 3.16.
  - `include (FindPackageHandleStandardArgs)` without specifying the
    relative path.
  - dropping the `HANDLE_VERSION_RANGE` from `FindPackageHandleStandardArgs()` call.
    this option was introduced by CMake v3.19, see
    https://cmake.org/cmake/help/latest/module/FindPackageHandleStandardArgs.html
    but Ubuntu focal comes with CMake 3.16, which is our minimal required CMake version.

the new FindPython3 module from CMake:

* enables us to find the recent Python intepreter and development files up to
  CPython 3.13.
* finds Python intepreter with the new `Python_FIND_STRATEGY`. the old and
  default strategy always finds the most recent version with all specified name
  and in all locations. so, if /usr/bin/python exists, it would accept, even
  if it is a symlink to python3.9 and what we want is python3.6. the
  new policy stops at the one which satisfies the constraints. this
  helps us to address the problem of issue we have when recreating
  the building system after the CMakeLists.txt is updated.

Fixes: https://tracker.ceph.com/issues/62428
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
23 months agocmake: update FindPython3 module
Kefu Chai [Mon, 14 Aug 2023 15:27:42 +0000 (23:27 +0800)]
cmake: update FindPython3 module

* use the one shiped by the latest CMake (ab379e5054aa792df9572078dcf95bddd75f7661)
* use the new policy to use the new find strategy.
* accomodate the vanilla FindPython3 module to Ceph by:
  - dropping the `cmake_policy()` calls which set the policy not supported
    by 3.16.
  - `include (FindPackageHandleStandardArgs)` without specifying the
    relative path.
  - dropping the `HANDLE_VERSION_RANGE` from `FindPackageHandleStandardArgs()` call.
    this option was introduced by CMake v3.19, see
    https://cmake.org/cmake/help/latest/module/FindPackageHandleStandardArgs.html
    but Ubuntu focal comes with CMake 3.16, which is our minimal required CMake version.

the new FindPython3 module from CMake:

* enables us to find the recent Python intepreter and development files up to
  CPython 3.13.
* finds intepreter with the new `Python_FIND_STRATEGY`. the old and default
  strategy always finds the most recent version with all specified name
  and in all locations. so, if /usr/bin/python exists, it would accept, even
  if it is  a symlink to python3.9 and what we want is python3.6. while
  the new policy stops at the one which satisfies the constraints.
  simpler this way and less error prone.

Fixes: https://tracker.ceph.com/issues/62428
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
23 months agoMerge pull request #53021 from rhcs-dashboard/buckets-e2e-fix
Nizamudeen A [Wed, 16 Aug 2023 17:38:35 +0000 (23:08 +0530)]
Merge pull request #53021 from rhcs-dashboard/buckets-e2e-fix

mgr/dashboard: fix rgw buckets e2e

Reviewed-by: cloudbehl <NOT@FOUND>
23 months agoMerge pull request #52740 from adk3798/ingress-vip-networks
Adam King [Wed, 16 Aug 2023 17:22:50 +0000 (13:22 -0400)]
Merge pull request #52740 from adk3798/ingress-vip-networks

mgr/cephadm: pick correct IPs for ingress service based on VIP

Reviewed-by: John Mulligan <jmulligan@redhat.com>
23 months agoMerge pull request #51881 from adk3798/logrotate-tcmu-runner
Adam King [Wed, 16 Aug 2023 17:05:08 +0000 (13:05 -0400)]
Merge pull request #51881 from adk3798/logrotate-tcmu-runner

cephadm: add tcmu-runner to logrotate config

Reviewed-by: John Mulligan <jmulligan@redhat.com>
23 months agoMerge pull request #52651 from galsalomon66/trino_tpcds_qe_fixes
Casey Bodley [Wed, 16 Aug 2023 16:36:55 +0000 (12:36 -0400)]
Merge pull request #52651 from galsalomon66/trino_tpcds_qe_fixes

rgw/s3select: s3select fixes related to Trino/TPCDS benchmark and QE tests

Reviewed-by: Casey Bodley <cbodley@redhat.com>
23 months agocrimson/os/seastore/journal/cbj: introduce magic value to identify that written recor...
myoungwon oh [Sat, 22 Jul 2023 14:52:14 +0000 (14:52 +0000)]
crimson/os/seastore/journal/cbj: introduce magic value to identify that written records are correct

The cbj would replay invalid records if the same write pattern (mkfs -> write -> mkfs -> write) repeats.
On the second mkfs(), current cbj wrongly recognizes the old records are valid beceause they have
correct seq. number at appropriate offset even though the records are expired.

To solve this, this commit introduces random value to identify the journal  during mkfs()

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
23 months agocrimson/os/seastore: introduce generalized scan_valid_records for RBM
myoungwon oh [Sat, 22 Jul 2023 06:03:04 +0000 (06:03 +0000)]
crimson/os/seastore: introduce generalized scan_valid_records for RBM

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
23 months agoMerge pull request #50141 from petrutlucian94/rbd_tests
Ilya Dryomov [Wed, 16 Aug 2023 15:44:37 +0000 (17:44 +0200)]
Merge pull request #50141 from petrutlucian94/rbd_tests

Enable librbd tests on Windows

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
23 months agoMerge pull request #52988 from ceph/gh-add-to-project-fix-perm-issue
Ernesto Puerta [Wed, 16 Aug 2023 14:30:10 +0000 (16:30 +0200)]
Merge pull request #52988 from ceph/gh-add-to-project-fix-perm-issue

.github: fix add to dashboard failing

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
23 months agoMerge pull request #52410 from phlogistonjohn/jjm-issue61852-haproxy-ips
Adam King [Wed, 16 Aug 2023 14:16:09 +0000 (10:16 -0400)]
Merge pull request #52410 from phlogistonjohn/jjm-issue61852-haproxy-ips

cephadm: fix issue with limited haproxy_hosts IPs list

Reviewed-by: Adam King <adking@redhat.com>
23 months agoMerge pull request #51899 from adk3798/cephadm-signed-keys
Adam King [Wed, 16 Aug 2023 14:10:36 +0000 (10:10 -0400)]
Merge pull request #51899 from adk3798/cephadm-signed-keys

cephadm: support for CA signed keys

Reviewed-by: John Mulligan <jmulligan@redhat.com>
23 months agocrimson/os/seastore: introduce RecordScanner to generalize scan_valid_records()
myoungwon oh [Thu, 20 Jul 2023 02:50:48 +0000 (02:50 +0000)]
crimson/os/seastore: introduce RecordScanner to generalize scan_valid_records()

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
23 months agoMerge pull request #51170 from kotreshhr/doc-mds-cap-acquisition-throttle
zdover23 [Wed, 16 Aug 2023 12:00:51 +0000 (22:00 +1000)]
Merge pull request #51170 from kotreshhr/doc-mds-cap-acquisition-throttle

doc: Fix doc for mds cap acquisition throttle

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
23 months agocrimson/os/seastore: fix daggling reference of oid in 53023/head
Xuehan Xu [Wed, 16 Aug 2023 11:37:59 +0000 (19:37 +0800)]
crimson/os/seastore: fix daggling reference of oid in
SeaStore::Shard::stat()

Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
23 months agocrimson/osd: fixing fmtlib-related compilation issues 52904/head
Ronen Friedman [Thu, 10 Aug 2023 06:38:39 +0000 (01:38 -0500)]
crimson/osd: fixing fmtlib-related compilation issues

brought about by the change to fmt formatting support.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
23 months agomgr/dashboard: fix rgw buckets e2e 53021/head
Nizamudeen A [Wed, 16 Aug 2023 09:16:42 +0000 (14:46 +0530)]
mgr/dashboard: fix rgw buckets e2e

Fixes: https://tracker.ceph.com/issues/62458
Signed-off-by: Nizamudeen A <nia@redhat.com>
23 months agoMerge pull request #53018 from rhcs-dashboard/rm-cephfs-subvolume-group
Nizamudeen A [Wed, 16 Aug 2023 08:33:44 +0000 (14:03 +0530)]
Merge pull request #53018 from rhcs-dashboard/rm-cephfs-subvolume-group

mgr/dashboard: cephfs remove subvolume group

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: cloudbehl <NOT@FOUND>
Reviewed-by: Nizamudeen A <nia@redhat.com>
23 months agotest/librbd/fsx: add rbd-wnbd tests 50141/head
Lucian Petrut [Fri, 4 Nov 2022 10:30:43 +0000 (12:30 +0200)]
test/librbd/fsx: add rbd-wnbd tests

rbd-wnbd can be used to map rbd images as Windows block devices.

This change will allow exercising rbd-wnbd and the wnbd driver
as opposed to using librbd directly.

One thing to note here is that read and write operations must be
512B aligned. Also, wnbd does not currently support "compare
and write".

For this reason, we'll stick to the basic operations for the time
being.

Note that we're renaming krbd_read/krbd_write to generic_pread
and generic_pwrite, reusing those functions for wnbd operations.
We're also removing the duplicated ggate read/write operations,
using the generic functions instead.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
23 months agoMerge PR #52416 into main
Venky Shankar [Wed, 16 Aug 2023 07:28:01 +0000 (12:58 +0530)]
Merge PR #52416 into main

* refs/pull/52416/head:
qa/cephfs: check if re-installing this mpich fixes the issue

Reviewed-by: Venky Shankar <vshankar@redhat.com>
23 months agodoc: Fix doc for mds cap acquisition throttle 51170/head
Kotresh HR [Wed, 16 Aug 2023 06:45:36 +0000 (12:15 +0530)]
doc: Fix doc for mds cap acquisition throttle

The config values picks the definition from the
description. Removed the duplicate description
in the doc.

Signed-off-by: Kotresh HR <khiremat@redhat.com>
23 months agomgr/dashboard: cephfs remove subvolume group 53018/head
Pedro Gonzalez Gomez [Wed, 16 Aug 2023 05:52:05 +0000 (07:52 +0200)]
mgr/dashboard: cephfs remove subvolume group

Fixes: https://tracker.ceph.com/issues/62452
Signed-off-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
23 months agomgr/cephadm: add utils class for tracking special host labels 50200/head
Adam King [Wed, 22 Feb 2023 19:07:58 +0000 (14:07 -0500)]
mgr/cephadm: add utils class for tracking special host labels

Signed-off-by: Adam King <adking@redhat.com>
23 months agomgr/cephadm: allow draining host without removing conf/keyring files
Adam King [Tue, 21 Feb 2023 18:53:32 +0000 (13:53 -0500)]
mgr/cephadm: allow draining host without removing conf/keyring files

Fixes: https://tracker.ceph.com/issues/58820
Signed-off-by: Adam King <adking@redhat.com>
23 months agocephadm: add tcmu-runner to logrotate config 51881/head
Adam King [Fri, 2 Jun 2023 00:06:35 +0000 (20:06 -0400)]
cephadm: add tcmu-runner to logrotate config

This process could be used to set up the tcmu-runner
to log to a file much like other ceph daemons

- create /etc/tcmu directory
- create /etc/tcmu/tcmu.conf directory with default options
- change dir to /var/log
- change log level to 4
- add -v /etc/tcmu:/etc/tcmu to tcmu-runner container podman line in unit.run

In order to support this (mostly for debugging) we should
add tcmu-runner to the logrotate config

Fixes: https://tracker.ceph.com/issues/61571
Signed-off-by: Adam King <adking@redhat.com>
23 months agoMerge pull request #47560 from pdvian/wip-pool-app
Laura Flores [Tue, 15 Aug 2023 19:53:42 +0000 (14:53 -0500)]
Merge pull request #47560 from pdvian/wip-pool-app

mon, qa: issue pool application warning even if pool is empty

23 months agoMerge pull request #52674 from asm0deuz/add_networks_cli
Adam King [Tue, 15 Aug 2023 19:52:31 +0000 (15:52 -0400)]
Merge pull request #52674 from asm0deuz/add_networks_cli

mgr/cephadm: Add "networks" parameter to orch apply rgw

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Francesco Pantano <fpantano@redhat.com>
Reviewed-by: Guillaume Abrioux <gabrioux@ibm.com>
23 months agoMerge pull request #52691 from adk3798/nvme-of-cleanup
Adam King [Tue, 15 Aug 2023 19:37:37 +0000 (15:37 -0400)]
Merge pull request #52691 from adk3798/nvme-of-cleanup

mgr/cephadm: nvme-of follow up work

Reviewed-by: John Mulligan <jmulligan@redhat.com>
23 months agoMerge pull request #52678 from phlogistonjohn/jjm-fix-test_valid_addr
Adam King [Tue, 15 Aug 2023 19:36:11 +0000 (15:36 -0400)]
Merge pull request #52678 from phlogistonjohn/jjm-fix-test_valid_addr

python-common: fix valid_addr on python 3.11

Reviewed-by: Adam King <adking@redhat.com>