]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
15 months agoqa/tasks: add a template filter to map a role name to a remote
John Mulligan [Mon, 26 Feb 2024 21:17:22 +0000 (16:17 -0500)]
qa/tasks: add a template filter to map a role name to a remote

Add a `role_to_remote` template filter function that has the ability to
map a role name to a remote. Attributes of the remote can then be
used to get the actual node ip or name.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
15 months agoqa/tasks: a new cephadm exec task similar to vip.exec but generalized
John Mulligan [Mon, 26 Feb 2024 21:16:57 +0000 (16:16 -0500)]
qa/tasks: a new cephadm exec task similar to vip.exec but generalized

Add a new cephadm.exec task that works similarly to the existing
vip.exec but instead of only considering VIP related string replacements
it uses that templating feature that was recently added to the
cephadm module for generalized string templating.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
15 months agoqa/tasks: add a cephadm.exclude role
John Mulligan [Mon, 26 Feb 2024 18:47:04 +0000 (13:47 -0500)]
qa/tasks: add a cephadm.exclude role

Add a cephadm.exclude role that excludes a test node from cluster setup
and related commands. I need this as I have  test node that will be set
up as an AD Domain Controller for testing Samba and do not want that
node to be have *any* other services running on it.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
15 months agoqa/tasks: allow passing stdin string to cephadm shell commands
John Mulligan [Sat, 24 Feb 2024 19:26:36 +0000 (14:26 -0500)]
qa/tasks: allow passing stdin string to cephadm shell commands

There are cases where I want to pass some large-ish strings to ceph
commands executed via cephadm shell. Allow items within the commands
list to be dicts containing a command (as before) and an optional
stdin variable. This change also supports possible future extensions as
well.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
15 months agoqa/tasks: add a new cephadm task for setting up samba ad dc
John Mulligan [Tue, 20 Feb 2024 23:28:58 +0000 (18:28 -0500)]
qa/tasks: add a new cephadm task for setting up samba ad dc

Add a new task function to cephadm.py that sets up a container running
the Samba based domain controller on a node using podman or docker.
Much of the function actually deals with disabling systemd-resolved
because that service conflicts with the DNS server component of the DC.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
15 months agodoc/cephadm: add a file documenting the smb service
John Mulligan [Sat, 10 Feb 2024 14:06:53 +0000 (09:06 -0500)]
doc/cephadm: add a file documenting the smb service

Signed-off-by: John Mulligan <jmulligan@redhat.com>
15 months agomgr/cephadm: add some tests for the new smb service
John Mulligan [Thu, 14 Dec 2023 00:36:46 +0000 (19:36 -0500)]
mgr/cephadm: add some tests for the new smb service

Signed-off-by: John Mulligan <jmulligan@redhat.com>
15 months agomgr/cephadm: simplify _get_container_image a bit
John Mulligan [Fri, 5 Jan 2024 15:45:08 +0000 (10:45 -0500)]
mgr/cephadm: simplify _get_container_image a bit

Because the "if-ladder" was only ever assigning a single variable with
a value it can be directly replaced by a dict & dict-lookup which is
much more succinct.
Also take the opportunity to sort the (non-comment) lines as there's
no meaning to the previous order and this makes it easier for a reader
to scan through.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
15 months agomgr/cephadm: add the samba container image for smb daemons
John Mulligan [Fri, 15 Dec 2023 18:15:19 +0000 (13:15 -0500)]
mgr/cephadm: add the samba container image for smb daemons

Signed-off-by: John Mulligan <jmulligan@redhat.com>
15 months agomgr/cepahdm: add various touch points to enable smb service
John Mulligan [Thu, 4 Jan 2024 21:38:08 +0000 (16:38 -0500)]
mgr/cepahdm: add various touch points to enable smb service

Add the smb service by name or by type to one of the many, many touch
points in the orchestrator and cephadm packages needed to get the
orchestrator aware of smb.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
15 months agomgr/cephadm: add a new smb ceph service subclass
John Mulligan [Wed, 13 Dec 2023 21:10:11 +0000 (16:10 -0500)]
mgr/cephadm: add a new smb ceph service subclass

Will be used in a later commit to implement deploying smb instances.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
15 months agopython-common: define a new SMBSpec service spec type
John Mulligan [Wed, 13 Dec 2023 21:10:37 +0000 (16:10 -0500)]
python-common: define a new SMBSpec service spec type

Signed-off-by: John Mulligan <jmulligan@redhat.com>
15 months agopython-common: reformat ServiceSpec class level service type lists
John Mulligan [Thu, 14 Dec 2023 00:20:45 +0000 (19:20 -0500)]
python-common: reformat ServiceSpec class level service type lists

Reformat the ServiceSpec classes properties KNOWN_SERVICE_TYPES and
REQUIRES_SERVICE_ID. These were previously strings that were converted
to lists via a call to split. With a string there's very little a human
or a tool can do to validate the content. Changing these into proper
lists in the source code brings clarity of intent and the ability to
analyze the code. Because there's no semantic difference what services
are listed where (this means the type could probably be a set - a quest
for another day) I also took the opportunity to sort the contents of the
lists and add some basic comments for what these lists are for.

It also removes the use of (ugly, IMO) line continuations. The downside
is that it makes more total lines, but if that bugs you - use code
folding :-).

Signed-off-by: John Mulligan <jmulligan@redhat.com>
15 months agomgr/cephadm: refactor keyring simplification out of get_keyring_with_caps
John Mulligan [Fri, 5 Jan 2024 15:24:10 +0000 (10:24 -0500)]
mgr/cephadm: refactor keyring simplification out of get_keyring_with_caps

Refactor get_keyring_with_caps such that the keyring simplification code
is moved into a new function that can be used in other locations.
get_keyring_with_caps will now call the new function to return the
simplified & consistent keyring output.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
15 months agomgr/cephadm: reformat the _service_classes variable
John Mulligan [Wed, 13 Dec 2023 20:49:12 +0000 (15:49 -0500)]
mgr/cephadm: reformat the _service_classes variable

Reformat the _service_classes variable so that it uses a multi-line list
with a single item on each line in a more black-ish style that is more
readable (especially if you use code-folding wisely).
Sort the list while we're at it.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
15 months agomgr/orchestrator: fix the sorting of the imports
John Mulligan [Wed, 13 Dec 2023 21:05:27 +0000 (16:05 -0500)]
mgr/orchestrator: fix the sorting of the imports

While ceph doesn't enforce sorted imports I prefer them when possible. I
had once sorted these imports but then nvmeof came along an ruined
things. Put nvmeof back in it's place.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
15 months agomgr/orchestrator: clean up import style
John Mulligan [Wed, 13 Dec 2023 19:37:17 +0000 (14:37 -0500)]
mgr/orchestrator: clean up import style

In the seemingly never-ending fight against line continuations and just
blatting tons of stuff onto single lines another small victory is won.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
15 months agomgr/cephadm: fix test failure on newer python
John Mulligan [Wed, 13 Dec 2023 19:33:20 +0000 (14:33 -0500)]
mgr/cephadm: fix test failure on newer python

Tests that touch this enum fail for me locally but pass in the CI. This
seems to be due to new enum related behavior in Python 3.11.
See: https://blog.pecar.me/python-enum
Instead of fixing it as suggested in the above blog, adding a __str__
method works on all python versions I care to know about.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
15 months agocephadm: fix issue joining to ad by using a virtual hostname
John Mulligan [Tue, 16 Jan 2024 20:37:27 +0000 (15:37 -0500)]
cephadm: fix issue joining to ad by using a virtual hostname

The not-a-real-fqdn hostname that the containers got were causing
performance issues joining AD (and running testjoin and winbind).
Define a virtual hostname that can be passed in from the service or
automatically derived from the system's hostname.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
15 months agocephadm: add a basic deployment test for an smb daemon
John Mulligan [Wed, 6 Dec 2023 20:14:32 +0000 (15:14 -0500)]
cephadm: add a basic deployment test for an smb daemon

Signed-off-by: John Mulligan <jmulligan@redhat.com>
15 months agocephadm: import and enable deployment of SMB daemon class
John Mulligan [Wed, 6 Dec 2023 20:14:32 +0000 (15:14 -0500)]
cephadm: import and enable deployment of SMB daemon class

Enable the use of the SMB container daemon form class by importing, and
thus registering, it. Note that the only way to invoke this feature is
by hand rolling some JSON to feed to the `ceph _orch deploy` command.
Connecting this with the cephadm mgr module is left as a future task.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
15 months agocephadm: add an SMB daemon module and classes
John Mulligan [Wed, 6 Dec 2023 20:14:31 +0000 (15:14 -0500)]
cephadm: add an SMB daemon module and classes

Add an incomplete but largely viable SMB/Samba container daemon form
implementation to cephadm. Currently unused but it lays out some of the
basics needed to create smb sharing using samba containers under cephadm
orchestration.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
15 months agocephadm: add a default constant value for samba server container image
John Mulligan [Tue, 21 Nov 2023 22:11:37 +0000 (17:11 -0500)]
cephadm: add a default constant value for samba server container image

Signed-off-by: John Mulligan <jmulligan@redhat.com>
15 months agocephadm: add generic methods for sharing namespaces across containers
John Mulligan [Sun, 3 Dec 2023 16:01:05 +0000 (11:01 -0500)]
cephadm: add generic methods for sharing namespaces across containers

In the future, some sidecar containers will need to share namespaces
with the primary container (or each other). Make it easy to set this up
by creating a enable_shared_namespaces function and Namespace enum.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
15 months agoMerge pull request #56008 from kchheda3/wip-notification-subsys
Casey Bodley [Thu, 21 Mar 2024 15:08:35 +0000 (15:08 +0000)]
Merge pull request #56008 from kchheda3/wip-notification-subsys

rgw/notification: add rgw notification specific debug log subsystem

Reviewed-by: Yuval Lifshitz <ylifshit@redhat.com>
15 months agoMerge pull request #55348 from chenyuanrun/fix-io-ctx-impl-flags
Yuri Weinstein [Thu, 21 Mar 2024 14:48:01 +0000 (07:48 -0700)]
Merge pull request #55348 from chenyuanrun/fix-io-ctx-impl-flags

librados: use CEPH_OSD_FLAG_FULL_FORCE for IoCtxImpl::remove

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
15 months agoMerge pull request #50622 from cofractal/close-range
Yuri Weinstein [Thu, 21 Mar 2024 14:47:34 +0000 (07:47 -0700)]
Merge pull request #50622 from cofractal/close-range

common: use close_range on Linux

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
15 months agoMerge pull request #56278 from sachinpunadikar/vstart_ganesha_fix
Adam King [Thu, 21 Mar 2024 11:01:47 +0000 (07:01 -0400)]
Merge pull request #56278 from sachinpunadikar/vstart_ganesha_fix

vstart: Ganesha should not be started in DEBUG mode

Reviewed-by: Adam King <adking@redhat.com>
15 months agoMerge pull request #56284 from ivoalmeida/snapshot-schedule-monthly-retention-frequency
Ivo Almeida [Thu, 21 Mar 2024 09:10:57 +0000 (09:10 +0000)]
Merge pull request #56284 from ivoalmeida/snapshot-schedule-monthly-retention-frequency

mgr/dashboard: fix M retention frequency display

Reviewed-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
Reviewed-by: Ankush Behl <cloudbehl@gmail.com>
15 months agoMerge pull request #56146 from ljflores/wip-tracker-64725 56346/head
Laura Flores [Wed, 20 Mar 2024 21:50:47 +0000 (16:50 -0500)]
Merge pull request #56146 from ljflores/wip-tracker-64725

qa/suites/rados/singleton: add POOL_APP_NOT_ENABLED to ignorelist

15 months agoMerge pull request #56183 from rhcs-dashboard/fix-tags-null
Nizamudeen A [Wed, 20 Mar 2024 19:17:04 +0000 (00:47 +0530)]
Merge pull request #56183 from rhcs-dashboard/fix-tags-null

mgr/dashboard: fix empty tags

Reviewed-by: afreen23 <NOT@FOUND>
Reviewed-by: Ankush Behl <cloudbehl@gmail.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
15 months agoMerge pull request #52617 from TomNewChao/main
Nizamudeen A [Wed, 20 Mar 2024 18:58:38 +0000 (00:28 +0530)]
Merge pull request #52617 from TomNewChao/main

mgr/dashboard/frontend:Ceph dashboard supports multiple languages

Reviewed-by: Svelar <NOT@FOUND>
Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Ankush Behl <cloudbehl@gmail.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
15 months agoMerge pull request #55841 from Matan-B/wip-matanb-mon-rmsnap-fix
Yuri Weinstein [Wed, 20 Mar 2024 15:43:22 +0000 (08:43 -0700)]
Merge pull request #55841 from Matan-B/wip-matanb-mon-rmsnap-fix

mon/OSDMonitor: fix rmsnap command

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
15 months agoMerge pull request #55409 from cybozu/add-ceph-exporter-to-deb-package
Yuri Weinstein [Wed, 20 Mar 2024 15:40:57 +0000 (08:40 -0700)]
Merge pull request #55409 from cybozu/add-ceph-exporter-to-deb-package

debian: add ceph-exporter package

Reviewed-by: Kefu Chai <tchaikov@gmail.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
15 months agoMerge pull request #53308 from NitzanMordhai/wip-nitzan-qa-tasks-with-crush-rules
Yuri Weinstein [Wed, 20 Mar 2024 15:37:45 +0000 (08:37 -0700)]
Merge pull request #53308 from NitzanMordhai/wip-nitzan-qa-tasks-with-crush-rules

suites: qa tasks with crush rules

Reviewed-by: Samuel Just <sjust@redhat.com>
15 months agoMerge pull request #56266 from cbodley/wip-qa-rgw-lua-pool-application
Casey Bodley [Wed, 20 Mar 2024 14:44:17 +0000 (14:44 +0000)]
Merge pull request #56266 from cbodley/wip-qa-rgw-lua-pool-application

qa/rgw: ignore POOL_APP_NOT_ENABLED in rgw/lua subsuite

Reviewed-by: Soumya Koduri <skoduri@redhat.com>
16 months agoMerge pull request #56220 from linuxbox2/wip-nfs-rename
Casey Bodley [Wed, 20 Mar 2024 13:41:56 +0000 (13:41 +0000)]
Merge pull request #56220 from linuxbox2/wip-nfs-rename

rgw_file: fix mv/rename cases broken by zipper integration

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
16 months agoMerge pull request #56225 from linuxbox2/wip-cors-fix
Casey Bodley [Wed, 20 Mar 2024 13:41:41 +0000 (13:41 +0000)]
Merge pull request #56225 from linuxbox2/wip-cors-fix

rgw: Add missing empty checks to the split string in is_string_in_set().

Reviewed-by: Casey Bodley <cbodley@redhat.com>
16 months agoMerge pull request #56044 from pr0ton11/rgw-disable-signature-url
Casey Bodley [Wed, 20 Mar 2024 13:41:09 +0000 (13:41 +0000)]
Merge pull request #56044 from pr0ton11/rgw-disable-signature-url

RGW: allow user disabling presigned urls in rgw configuration

Reviewed-by: Casey Bodley <cbodley@redhat.com>
16 months agoMerge pull request #55795 from kchheda3/wip-rename-notif-events
Casey Bodley [Wed, 20 Mar 2024 13:40:43 +0000 (13:40 +0000)]
Merge pull request #55795 from kchheda3/wip-rename-notif-events

rgw/notification: Make the LifeCycle & Replication events AWS Compatible and Support s3:Replication:Delete event

Reviewed-by: Yuval Lifshitz <ylifshit@redhat.com>
Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
16 months agoMerge pull request #56333 from molpako/patch-3
Zac Dover [Wed, 20 Mar 2024 13:36:25 +0000 (23:36 +1000)]
Merge pull request #56333 from molpako/patch-3

doc/cephfs: fix architecture link to correct relative path

Reviewed-by: Zac Dover <zac.dover@proton.me>
16 months agomgr/dashboard: fix M retention frequency display 56284/head
Ivo Almeida [Tue, 19 Mar 2024 13:13:17 +0000 (13:13 +0000)]
mgr/dashboard: fix M retention frequency display

Fix snap schedule list monthly retention frequency display

Fixes: https://tracker.ceph.com/issues/64982
Signed-off-by: Ivo Almeida <ialmeida@redhat.com>
16 months agomgr/dashboard: fix empty tags 56183/head
Pedro Gonzalez Gomez [Thu, 14 Mar 2024 06:58:36 +0000 (07:58 +0100)]
mgr/dashboard: fix empty tags

Fixes: https://tracker.ceph.com/issues/64911
Signed-off-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
16 months agoMerge pull request #55595 from VallariAg/wip-nvmeof-test-v3
Ilya Dryomov [Wed, 20 Mar 2024 09:49:36 +0000 (10:49 +0100)]
Merge pull request #55595 from VallariAg/wip-nvmeof-test-v3

qa/suite/rbd/nvmeof: Deploy multiple gateways and namespaces

Reviewed-by: Barak Davidov <barakda@il.ibm.com>
Reviewed-by: Aviv Caro <Aviv.Caro@ibm.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
16 months agodoc/cephfs: fix architecture link to correct relative path 56333/head
molpako [Wed, 20 Mar 2024 09:43:42 +0000 (18:43 +0900)]
doc/cephfs: fix architecture link to correct relative path

Signed-off-by: molpako <35787116+molpako@users.noreply.github.com>
16 months agoMerge pull request #55864 from rosinL/wip-speedup-check-generated
Rixin Luo [Wed, 20 Mar 2024 01:19:07 +0000 (09:19 +0800)]
Merge pull request #55864 from rosinL/wip-speedup-check-generated

test/encoding/check-generated: parallel testing by type

16 months agoMerge pull request #56203 from athanatos/sjust/wip-protoc-dependencies
Dan Mick [Tue, 19 Mar 2024 23:03:00 +0000 (16:03 -0700)]
Merge pull request #56203 from athanatos/sjust/wip-protoc-dependencies

crimson: add crimson-osd rpm and deb runtime dependencies for protobuf inherited from seastar

16 months agoMerge pull request #56070 from phlogistonjohn/jjm-cephadm-sudo-cmd-auditing
Adam King [Tue, 19 Mar 2024 19:39:07 +0000 (15:39 -0400)]
Merge pull request #56070 from phlogistonjohn/jjm-cephadm-sudo-cmd-auditing

cephadm: sudo cmd auditing

Reviewed-by: Adam King <adking@redhat.com>
16 months agoMerge pull request #56178 from adk3798/cephadm-pub-net-config-check-out-of-date 56294/head 56311/head
Adam King [Tue, 19 Mar 2024 18:04:51 +0000 (14:04 -0400)]
Merge pull request #56178 from adk3798/cephadm-pub-net-config-check-out-of-date

mgr/cephadm: refresh public_network for config checks before checking

Reviewed-by: John Mulligan <jmulligan@redhat.com>
16 months agoMerge pull request #56175 from asm0deuz/bootstrap_no_container
Adam King [Tue, 19 Mar 2024 18:01:47 +0000 (14:01 -0400)]
Merge pull request #56175 from asm0deuz/bootstrap_no_container

cephadm: bootstrap fails if no container engine installed

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: John Mulligan <jmulligan@redhat.com>
16 months agoMerge pull request #56147 from adk3798/stopped-daemon-shell
Adam King [Tue, 19 Mar 2024 18:00:29 +0000 (14:00 -0400)]
Merge pull request #56147 from adk3798/stopped-daemon-shell

cephadm: fix `cephadm shell --name <daemon-name>` for stopped/failed daemon

Reviewed-by: John Mulligan <jmulligan@redhat.com>
16 months agorgw/notification: add rgw notification specific debug log subsystem. 56008/head
kchheda3 [Wed, 6 Mar 2024 23:13:57 +0000 (18:13 -0500)]
rgw/notification: add rgw notification specific debug log subsystem.

decorate the events with event details while logging.

Signed-off-by: kchheda3 <kchheda3@bloomberg.net>
16 months agoMerge pull request #56143 from insatomcat/timemaster
Adam King [Tue, 19 Mar 2024 17:51:19 +0000 (13:51 -0400)]
Merge pull request #56143 from insatomcat/timemaster

cephadm.py: add timemaster to timesync services list

Reviewed-by: Adam King <adking@redhat.com>
16 months agoMerge pull request #56075 from phlogistonjohn/jjm-enable-black-cephadm
Adam King [Tue, 19 Mar 2024 17:46:11 +0000 (13:46 -0400)]
Merge pull request #56075 from phlogistonjohn/jjm-enable-black-cephadm

cephadm: enforce black formatting for cephadmlib

Reviewed-by: Adam King <adking@redhat.com>
16 months agoMerge pull request #55883 from thegreenbear/ingress-haproxy-bind-ipv4v6
Adam King [Tue, 19 Mar 2024 17:43:03 +0000 (13:43 -0400)]
Merge pull request #55883 from thegreenbear/ingress-haproxy-bind-ipv4v6

Ingress service: make HAProxy to listen on IPv4 and IPv6 â€¦

Reviewed-by: Adam King <adking@redhat.com>
16 months agoMerge pull request #55874 from adk3798/only-bind-to-network
Adam King [Tue, 19 Mar 2024 16:35:53 +0000 (12:35 -0400)]
Merge pull request #55874 from adk3798/only-bind-to-network

mgr/cephadm: allow grafana and prometheus to only bind to specific network

Reviewed-by: John Mulligan <jmulligan@redhat.com>
16 months agoMerge pull request #55645 from ronen-fr/wip-rf-nextobj
Ronen Friedman [Tue, 19 Mar 2024 15:36:48 +0000 (17:36 +0200)]
Merge pull request #55645 from ronen-fr/wip-rf-nextobj

osd: improved get_objects_by_prefixes() ergonomics

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Matan Breizman <mbreizma@redhat.com>
16 months agoqa/suite/rbd/nvmeof: Deploy multiple gateways and namespaces 55595/head
Vallari Agrawal [Tue, 20 Feb 2024 07:44:32 +0000 (13:14 +0530)]
qa/suite/rbd/nvmeof: Deploy multiple gateways and namespaces

1. Deploy 2 gateways on different nodes, then check for multi-path.
    To add another gateway, only "roles" need to be changed in job yaml.
2. Create "n" nvmeof namespaces, configured by 'namespaces_count'
3. Rename qa/suites/rbd/nvmeof/cluster/fixed-3.yaml to fixed-4.yaml
    which contains 2 gateways and 2 initiators.

Signed-off-by: Vallari Agrawal <val.agl002@gmail.com>
16 months agoMerge pull request #56109 from anthonyeleven/improve-monitoring 56281/head
Zac Dover [Tue, 19 Mar 2024 14:13:20 +0000 (00:13 +1000)]
Merge pull request #56109 from anthonyeleven/improve-monitoring

doc/cephadm/services: Improve monitoring.rst

Reviewed-by: Zac Dover <zac.dover@proton.me>
16 months agoMerge pull request #55877 from adk3798/cephadm-pull-usage
Adam King [Tue, 19 Mar 2024 14:11:20 +0000 (10:11 -0400)]
Merge pull request #55877 from adk3798/cephadm-pull-usage

cephadm: improve cephadm pull usage message

Reviewed-by: Guillaume Abrioux <gabrioux@ibm.com>
Reviewed-by: John Mulligan <jmulligan@redhat.com>
16 months agoMerge pull request #55615 from rhcs-dashboard/grafana-mount-dashboards
Adam King [Tue, 19 Mar 2024 14:03:16 +0000 (10:03 -0400)]
Merge pull request #55615 from rhcs-dashboard/grafana-mount-dashboards

mgr/cephadm: mount grafana dashboards from the path

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
16 months agoMerge pull request #52760 from thotz/add-healthchecker-timeout-haproxy
Adam King [Tue, 19 Mar 2024 13:41:54 +0000 (09:41 -0400)]
Merge pull request #52760 from thotz/add-healthchecker-timeout-haproxy

cephadm: adjust the ingress ha proxy health check interval

Reviewed-by: Adam King <adking@redhat.com>
16 months agovstart: Ganesha should not be started in DEBUG mode 56278/head
Sachin Punadikar [Tue, 19 Mar 2024 09:41:53 +0000 (05:41 -0400)]
vstart: Ganesha should not be started in DEBUG mode

Currently vstart script, deploy NFS Ganesha in debug mode. Enabling
DEBUG mode for Ganesha leads to logging lot of debug messages, which may
not be required all the time. One can enable DEBUG mode on need basis.
Hence removing the default DEBUG mode.

Signed-off-by: Sachin Punadikar <sachin.punadikar@ibm.com>
16 months agoMerge pull request #56189 from rhcs-dashboard/fix-64913-main 56273/head
Nizamudeen A [Tue, 19 Mar 2024 05:38:46 +0000 (11:08 +0530)]
Merge pull request #56189 from rhcs-dashboard/fix-64913-main

mgr/dashboard: Allow DELETE method api request, X-TOTAL-COUNT header in CORS config in dashboard

Reviewed-by: Ankush Behl <cloudbehl@gmail.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
16 months agoMerge pull request #56250 from myoungwon/wip-laod-metadata-during-gc
Yingxin [Tue, 19 Mar 2024 01:29:26 +0000 (09:29 +0800)]
Merge pull request #56250 from myoungwon/wip-laod-metadata-during-gc

crimson/os/seastore: cache metadata during trimming to prevent from disk read

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
Reviewed-by: Chunmei Liu <chunmei.liu@intel.com>
16 months agoMerge pull request #56204 from zmc/do-cmake-args
Zack Cerza [Tue, 19 Mar 2024 00:35:23 +0000 (18:35 -0600)]
Merge pull request #56204 from zmc/do-cmake-args

do_cmake.sh: Use value of ARGS at runtime

16 months agoosd/SnapMapper: add common logs 55645/head
Matan Breizman [Mon, 12 Feb 2024 09:31:52 +0000 (09:31 +0000)]
osd/SnapMapper: add common logs

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
(cherry picked from commit f302be018ebef365d8876d14185c4bdb246f22d8)

16 months agoosd: improved get_objects_by_prefixes() ergonomics
Ronen Friedman [Mon, 19 Feb 2024 14:50:41 +0000 (08:50 -0600)]
osd: improved get_objects_by_prefixes() ergonomics

Improved call signatures for get_next_objects_to_trim() &
get_objects_by_prefixes().

Also: as as get_next_objects_to_trim() has only a single
failure mode, we should not try to handle two distinct failures
in its callers' code.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
16 months agoMerge pull request #55846 from athanatos/sjust/for-review/wip-crimson-coroutine-support 56264/head
Samuel Just [Mon, 18 Mar 2024 19:23:54 +0000 (12:23 -0700)]
Merge pull request #55846 from athanatos/sjust/for-review/wip-crimson-coroutine-support

crimson: add coroutine support for errorated and interruptible futures

Reviewed-by: Matan Breizman <mbreizma@redhat.com>
Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
Reviewed-by: Chunmei Liu <chunmei.liu@intel.com>
16 months agoMerge pull request #56034 from tchaikov/wip-msgr-dont-panic-at-hot-unplug
Yuri Weinstein [Mon, 18 Mar 2024 18:22:28 +0000 (11:22 -0700)]
Merge pull request #56034 from tchaikov/wip-msgr-dont-panic-at-hot-unplug

msg: do not abort if driver->del_event() returns -ENOENT

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Kefu Chai <tchaikov@gmail.com>
16 months agoMerge pull request #55896 from ronen-fr/wip-rf-compactref
Yuri Weinstein [Mon, 18 Mar 2024 18:21:48 +0000 (11:21 -0700)]
Merge pull request #55896 from ronen-fr/wip-rf-compactref

osd: avoid calling a virtual function in a ctor

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
16 months agoMerge pull request #55872 from aclamk/wip-aclamk-bs-fix-unused
Yuri Weinstein [Mon, 18 Mar 2024 18:21:24 +0000 (11:21 -0700)]
Merge pull request #55872 from aclamk/wip-aclamk-bs-fix-unused

os/bluestore: Mute warnings

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
16 months agoMerge pull request #54492 from Matan-B/wip-matanb-op-thread-timeout
Yuri Weinstein [Mon, 18 Mar 2024 18:20:44 +0000 (11:20 -0700)]
Merge pull request #54492 from Matan-B/wip-matanb-op-thread-timeout

qa/suites/rados/verify/validater/valgrind: increase op thread timeout

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
16 months agoMerge pull request #56240 from zdover23/wip-doc-2024-03-17-rados-config-common
Zac Dover [Mon, 18 Mar 2024 17:40:18 +0000 (03:40 +1000)]
Merge pull request #56240 from zdover23/wip-doc-2024-03-17-rados-config-common

doc/rados: update common.rst

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
16 months agoqa/rgw: ignore POOL_APP_NOT_ENABLED in rgw/lua subsuite 56266/head
Casey Bodley [Mon, 18 Mar 2024 14:47:59 +0000 (10:47 -0400)]
qa/rgw: ignore POOL_APP_NOT_ENABLED in rgw/lua subsuite

> cluster [WRN] Health check failed: 1 pool(s) do not have an application enabled (POOL_APP_NOT_ENABLED)" in cluster log

Signed-off-by: Casey Bodley <cbodley@redhat.com>
16 months agodoc/cephadm/services: Improve monitoring.rst 56109/head
Anthony D'Atri [Sun, 10 Mar 2024 21:36:37 +0000 (17:36 -0400)]
doc/cephadm/services: Improve monitoring.rst

Signed-off-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
16 months agoMerge pull request #56248 from nbalacha/wip-nbalacha-rbd-doc-man 56242/head
Zac Dover [Mon, 18 Mar 2024 13:38:02 +0000 (23:38 +1000)]
Merge pull request #56248 from nbalacha/wip-nbalacha-rbd-doc-man

doc/rbd: minor changes to the rbd man page

Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
16 months agodoc/rbd: minor changes to the rbd man page 56248/head
N Balachandran [Mon, 18 Mar 2024 12:22:47 +0000 (17:52 +0530)]
doc/rbd: minor changes to the rbd man page

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

Signed-off-by: N Balachandran <nibalach@redhat.com>
16 months agocrimson/os/seastore: cache metadata during trimming to prevent from disk read 56250/head
myoungwon oh [Mon, 18 Mar 2024 06:48:07 +0000 (06:48 +0000)]
crimson/os/seastore: cache metadata during trimming to prevent from disk read

I encountered continous disk reads during trimming even though there are sufficient
cache available, in 4K random write test with RBM (RBD).
This is because metadata is note cached if its source is background transaction
within touch_extent(). So, seastore, including the trimming process,  needs to
constantly retrieve metadata (e.g., BACKREF_LEAF).

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
16 months agoMerge pull request #56223 from guits/tracker_64951
Guillaume Abrioux [Mon, 18 Mar 2024 08:25:07 +0000 (09:25 +0100)]
Merge pull request #56223 from guits/tracker_64951

node-proxy: support more Location value formats

16 months agoMerge pull request #56247 from nbalacha/wip-nbalacha-rbd-doc-2
Anthony D'Atri [Mon, 18 Mar 2024 08:14:31 +0000 (04:14 -0400)]
Merge pull request #56247 from nbalacha/wip-nbalacha-rbd-doc-2

docs/rbd: fix typos in the rbd basic cmds documentation

16 months agoMerge pull request #56198 from ivoalmeida/fix-nfs-attach-cmd
Nizamudeen A [Mon, 18 Mar 2024 06:47:44 +0000 (12:17 +0530)]
Merge pull request #56198 from ivoalmeida/fix-nfs-attach-cmd

mgr/dashboard: fixed nfs attach command

Reviewed-by: Nizamudeen A <nia@redhat.com>
16 months agodocs/rbd: typo in "retrieving image information" 56247/head
N Balachandran [Mon, 18 Mar 2024 04:34:44 +0000 (10:04 +0530)]
docs/rbd: typo in "retrieving image information"

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

Signed-off-by: N Balachandran <nibalach@redhat.com>
16 months agodocs/rbd: replace introspect with inspect
N Balachandran [Mon, 18 Mar 2024 04:11:10 +0000 (09:41 +0530)]
docs/rbd: replace introspect with inspect

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

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

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

Signed-off-by: N Balachandran <nibalach@redhat.com>
16 months agoMerge pull request #56217 from xxhdx1985126/wip-seastore-remap-bug-fixes
Yingxin [Mon, 18 Mar 2024 02:29:17 +0000 (10:29 +0800)]
Merge pull request #56217 from xxhdx1985126/wip-seastore-remap-bug-fixes

test/crimson/sesastore/test_block: add constructor to construct

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
16 months agodoc/cephdam: document limiting passwordless sudo commands 56070/head
John Mulligan [Fri, 8 Mar 2024 18:56:19 +0000 (13:56 -0500)]
doc/cephdam: document limiting passwordless sudo commands

Based on the previous commits making the remote executables auditable
and explicit, document the admin's ability to restrict password-less
sudo access to only the set of commands cephadm actually uses.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
16 months agomgr/cephadm: add a simple unit test for RemoteCommand class
John Mulligan [Thu, 14 Mar 2024 18:02:17 +0000 (14:02 -0400)]
mgr/cephadm: add a simple unit test for RemoteCommand class

Converting a remote command to something that other libs uses requires
converting the enum to a string. Python behavior in the area varies
across versions so add a unit test that verifies the conversion
behaves as intended.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
16 months agomgr/cephadm: add test to ensure the list of remote commands is known
John Mulligan [Fri, 8 Mar 2024 18:19:39 +0000 (13:19 -0500)]
mgr/cephadm: add test to ensure the list of remote commands is known

Add a test file to help ensure the audit of remote commands is kept up
to date.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
16 months agomgr/cephadm: make remote command execution auditable
John Mulligan [Wed, 14 Feb 2024 16:35:57 +0000 (11:35 -0500)]
mgr/cephadm: make remote command execution auditable

Update ssh.py and other code using it to only allow commands wrapped
in particular python types as executables on the remote hosts.
By using a specific type for remote executables we make the code more
auditable, avoiding the possibility of executing arbitrary strings
as commands with sudo. This is all enforced by mypy's type checking.

The result is a list of commands that the cephadm mgr module may
execute on a remote host using sudo:
```
$ git ls-files -z | xargs -0 grep 'RemoteExecutable(' -d skip -h | grep
-v '(str)' | sed -e 's/.*RemoteExecutable(//' -e 's/)//' -e 's/,$//'
'which'
'/usr/bin/cephadm'
python
'chmod'
'ls'
'sysctl'
'chown'
'mkdir'
'mv'
'touch'
'rm'
'true'
```
Note that *python* is special as it is based on the output of which and
may vary from OS to OS. The quoted items are used exactly as named.
Only the binary at `/usr/bin/cephadm` _or_ the dynamically discovered
python3 binary will be used. This depends on a configuration option for
the cephadm module.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
16 months agodoc/rados: update common.rst 56240/head
Zac Dover [Sun, 17 Mar 2024 09:27:11 +0000 (19:27 +1000)]
doc/rados: update common.rst

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

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
16 months agoMerge pull request #56182 from zdover23/wip-doc-2024-03-14-glossary-librados
Anthony D'Atri [Sat, 16 Mar 2024 00:27:16 +0000 (20:27 -0400)]
Merge pull request #56182 from zdover23/wip-doc-2024-03-14-glossary-librados

doc/glossary: add "librados" entry

16 months agoMerge PR #56218 into main
Patrick Donnelly [Fri, 15 Mar 2024 20:42:27 +0000 (16:42 -0400)]
Merge PR #56218 into main

* refs/pull/56218/head:
qa/crontab: use historically normal priorities for nightlies
doc/dev: update teuthology priority guidance

Reviewed-by: Yuri Weinstein <yweins@redhat.com>
16 months agoMerge pull request #56177 from lbausch/docs-typo-replace-osd
Adam King [Fri, 15 Mar 2024 19:01:10 +0000 (15:01 -0400)]
Merge pull request #56177 from lbausch/docs-typo-replace-osd

doc: cephadm/services/osd: fix typo

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Zac Dover <zac.dover@proton.me>
16 months agomgr/cephadm: refresh public_network for config checks before checking 56178/head
Adam King [Wed, 13 Mar 2024 19:30:25 +0000 (15:30 -0400)]
mgr/cephadm: refresh public_network for config checks before checking

The place it was being run before meant it would only grab the
public_network setting once at startup of the module. This meant
if a user changed the setting, which they are likely to do if they
get the warning, cephadm would ignore the change and continue
reporting that the hosts don't match up with the old setting
for the public_network. This moves the call to refresh the
setting to right before we actually run the checks. It does
mean we'll do the `ceph config dump --format json` call
each serve loop iteration, but I've found that only tends
to take a few milliseconds, which is nothing compared to
the time to refresh other things we check during the serve
loop.

I additionally modified the use of this option to use
the attribute on the mgr, rather than calling
`get_module_option`. This was just to get it more in
line with how we tend to handle other config options

Fixes: https://tracker.ceph.com/issues/64902
Signed-off-by: Adam King <adking@redhat.com>
16 months agocephadm: fix `cephadm shell --name <daemon-name>` for stopped/failed daemon 56147/head
Adam King [Tue, 12 Mar 2024 14:26:18 +0000 (10:26 -0400)]
cephadm: fix `cephadm shell --name <daemon-name>` for stopped/failed daemon

This previously would always try to use 'podman
inspect' on the running container of the daemon,
but this doesn't work if the daemon is stopped
or failed. Doing this for stopped/failed daemons
is a valid use case as we recommend cephadm shell
with --name for running debugging tools (often
for OSDs)

Fixes: https://tracker.ceph.com/issues/64879
Signed-off-by: Adam King <adking@redhat.com>
16 months agocephadm: allow list_daemons for only a specific daemon
Adam King [Mon, 11 Mar 2024 18:44:17 +0000 (14:44 -0400)]
cephadm: allow list_daemons for only a specific daemon

At the moment, my thoughts are to use this internally
in the binary for when we need infor from list_daemons
but only for a specific daemon. I could also see wanting
this just on the command line to get info on a certain
daemon, so I've added it as a flag for `cephadm ls` as well

Signed-off-by: Adam King <adking@redhat.com>
16 months agoMerge pull request #55796 from kchheda3/wip-fix-filterrule-json
Casey Bodley [Fri, 15 Mar 2024 16:46:38 +0000 (16:46 +0000)]
Merge pull request #55796 from kchheda3/wip-fix-filterrule-json

rgw/notification: Fix the notification FilterRule to emit unique key name in json & Log successful delivery of notification event.

Reviewed-by: Yuval Lifshitz <ylifshit@redhat.com>
16 months agoMerge pull request #56179 from cbodley/wip-doc-rgw-notification_v2
Casey Bodley [Fri, 15 Mar 2024 15:43:10 +0000 (15:43 +0000)]
Merge pull request #56179 from cbodley/wip-doc-rgw-notification_v2

doc/rgw: document the notification_v2 zone feature

Reviewed-by: Krunal Chheda <kchheda3@bloomberg.net>
Reviewed-by: Yuval Lifshitz <ylifshit@redhat.com>
16 months agonode-proxy: support more Location value formats 56223/head
Guillaume Abrioux [Fri, 15 Mar 2024 14:20:29 +0000 (14:20 +0000)]
node-proxy: support more Location value formats

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

either:

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

or

Location: /redfish/v1/SessionService/Session

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

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

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>