]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
20 months agorgw/sal: rename Bucket::remove_bucket() to remove() 50599/head
Casey Bodley [Wed, 4 Oct 2023 16:49:10 +0000 (12:49 -0400)]
rgw/sal: rename Bucket::remove_bucket() to remove()

Signed-off-by: Casey Bodley <cbodley@redhat.com>
20 months agorgw/sal: remove forward-to-master functions from Driver
Casey Bodley [Sat, 18 Mar 2023 21:51:25 +0000 (17:51 -0400)]
rgw/sal: remove forward-to-master functions from Driver

Signed-off-by: Casey Bodley <cbodley@redhat.com>
20 months agorgw: add free function forward_iam_request_to_master()
Casey Bodley [Sat, 18 Mar 2023 21:42:56 +0000 (17:42 -0400)]
rgw: add free function forward_iam_request_to_master()

Signed-off-by: Casey Bodley <cbodley@redhat.com>
20 months agorgw: add free function rgw_forward_request_to_master()
Casey Bodley [Sat, 18 Mar 2023 20:55:58 +0000 (16:55 -0400)]
rgw: add free function rgw_forward_request_to_master()

Signed-off-by: Casey Bodley <cbodley@redhat.com>
20 months agorgw: forward_request takes const req_info
Casey Bodley [Sat, 18 Mar 2023 18:25:32 +0000 (14:25 -0400)]
rgw: forward_request takes const req_info

Signed-off-by: Casey Bodley <cbodley@redhat.com>
20 months agorgw/sal: remove ZoneGroup::get_endpoint()
Casey Bodley [Tue, 3 Oct 2023 18:13:24 +0000 (14:13 -0400)]
rgw/sal: remove ZoneGroup::get_endpoint()

Signed-off-by: Casey Bodley <cbodley@redhat.com>
20 months agorgw/sal: move User::create_bucket() to Bucket::create()
Casey Bodley [Sat, 18 Mar 2023 15:48:38 +0000 (11:48 -0400)]
rgw/sal: move User::create_bucket() to Bucket::create()

the CreateBucket operation always has to deal with existing buckets, so
we have to load the Bucket handle first anyway

also moves the related placement and forward_request_to_master() logic
out of sal entirely

Signed-off-by: Casey Bodley <cbodley@redhat.com>
20 months agorgw: add free function rgw::get_zonegroup_endpoint()
Casey Bodley [Tue, 3 Oct 2023 18:12:35 +0000 (14:12 -0400)]
rgw: add free function rgw::get_zonegroup_endpoint()

Signed-off-by: Casey Bodley <cbodley@redhat.com>
20 months agorgw: use load_bucket()'s rgw_bucket overload
Casey Bodley [Tue, 3 Oct 2023 19:51:13 +0000 (15:51 -0400)]
rgw: use load_bucket()'s rgw_bucket overload

Signed-off-by: Casey Bodley <cbodley@redhat.com>
20 months agorgw: add rgw_bucket() ctor for tenant+name
Casey Bodley [Tue, 3 Oct 2023 19:25:04 +0000 (15:25 -0400)]
rgw: add rgw_bucket() ctor for tenant+name

this avoids the need to construct a temporary rgw_bucket_key just to
construct a rgw_bucket without an instance id

Signed-off-by: Casey Bodley <cbodley@redhat.com>
20 months agorgw/sal: remove load_bucket() overload with tenant/name
Casey Bodley [Tue, 3 Oct 2023 19:23:49 +0000 (15:23 -0400)]
rgw/sal: remove load_bucket() overload with tenant/name

Signed-off-by: Casey Bodley <cbodley@redhat.com>
20 months agorgw/sal: rename loading get_bucket()s to load_bucket()
Casey Bodley [Sat, 18 Mar 2023 15:47:29 +0000 (11:47 -0400)]
rgw/sal: rename loading get_bucket()s to load_bucket()

Signed-off-by: Casey Bodley <cbodley@redhat.com>
20 months agorgw/services: make set_attrs const correct
Casey Bodley [Sat, 18 Mar 2023 14:41:12 +0000 (10:41 -0400)]
rgw/services: make set_attrs const correct

Signed-off-by: Casey Bodley <cbodley@redhat.com>
20 months agorgw: remove legacy bucket placement and 'radosgw-admin pool' commands
Casey Bodley [Wed, 27 Jul 2022 13:27:40 +0000 (09:27 -0400)]
rgw: remove legacy bucket placement and 'radosgw-admin pool' commands

Signed-off-by: Casey Bodley <cbodley@redhat.com>
20 months agorgw/rados: pass obj_lock_enabled into RGWRados::create_bucket
Casey Bodley [Tue, 26 Jul 2022 21:25:32 +0000 (17:25 -0400)]
rgw/rados: pass obj_lock_enabled into RGWRados::create_bucket

there's a retry loop here that may end up overwriting RGWBucketInfo, so
pass obj_lock_enabled and use it to update info.flags on each iteration

Signed-off-by: Casey Bodley <cbodley@redhat.com>
20 months agorgw: read existing placement and swift_ver_location outside of sal
Casey Bodley [Tue, 26 Jul 2022 20:05:51 +0000 (16:05 -0400)]
rgw: read existing placement and swift_ver_location outside of sal

Signed-off-by: Casey Bodley <cbodley@redhat.com>
20 months agorgw: RGWCreateBucket cleanup
Casey Bodley [Tue, 26 Jul 2022 19:09:42 +0000 (15:09 -0400)]
rgw: RGWCreateBucket cleanup

Signed-off-by: Casey Bodley <cbodley@redhat.com>
20 months agorgw: move rgw_op_get_bucket_policy_from_attr() out of sal
Casey Bodley [Tue, 26 Jul 2022 18:52:25 +0000 (14:52 -0400)]
rgw: move rgw_op_get_bucket_policy_from_attr() out of sal

this was duplicated in rgw_op.cc and rgw_sal_rados.cc

Signed-off-by: Casey Bodley <cbodley@redhat.com>
20 months agorgw/sal: User::remove_bucket() no longer supports forward_to_master
Casey Bodley [Tue, 26 Jul 2022 16:49:55 +0000 (12:49 -0400)]
rgw/sal: User::remove_bucket() no longer supports forward_to_master

callers of remove_bucket() are now responsible for calling
forward_request_to_master() themselves

Signed-off-by: Casey Bodley <cbodley@redhat.com>
20 months agorgw: RGWBulkDelete calls forward_to_master before remove_bucket()
Casey Bodley [Tue, 26 Jul 2022 16:29:08 +0000 (12:29 -0400)]
rgw: RGWBulkDelete calls forward_to_master before remove_bucket()

fix the path of the forwarded request the same way that RGWBulkUpload
does, and call forward_request_to_master() before remove_bucket()

Signed-off-by: Casey Bodley <cbodley@redhat.com>
20 months agorgw: don't use other zone's shard count for forwarded CreateBucket requests
Casey Bodley [Tue, 26 Jul 2022 15:48:05 +0000 (11:48 -0400)]
rgw: don't use other zone's shard count for forwarded CreateBucket requests

multisite no longer requires shard counts to match between zones. each
zone can configure its own default index shard count, so ignore the shard
counts that come from the metadata master zone

Signed-off-by: Casey Bodley <cbodley@redhat.com>
20 months agorgw: remove unused RGWObjectSimplePutCR
Casey Bodley [Sat, 18 Mar 2023 16:01:49 +0000 (12:01 -0400)]
rgw: remove unused RGWObjectSimplePutCR

Signed-off-by: Casey Bodley <cbodley@redhat.com>
20 months agorgw: remove unused RGWBucketCreateLocalCR
Casey Bodley [Fri, 17 Mar 2023 15:11:05 +0000 (11:11 -0400)]
rgw: remove unused RGWBucketCreateLocalCR

Signed-off-by: Casey Bodley <cbodley@redhat.com>
20 months agoMerge pull request #54285 from thmour/main
Adam King [Mon, 6 Nov 2023 15:59:47 +0000 (10:59 -0500)]
Merge pull request #54285 from thmour/main

mgr/cephadm: discovery service (port 8765) fails on ipv6 only clusters

Reviewed-by: Adam King <adking@redhat.com>
20 months agoMerge pull request #54126 from phlogistonjohn/jjm-cephadm-remove-get_daemon_args
Adam King [Mon, 6 Nov 2023 15:57:50 +0000 (10:57 -0500)]
Merge pull request #54126 from phlogistonjohn/jjm-cephadm-remove-get_daemon_args

cephadm: remove get_daemon_args function

Reviewed-by: Adam King <adking@redhat.com>
20 months agoMerge pull request #53928 from adk3798/rm-cleanup-on-failure
Adam King [Mon, 6 Nov 2023 15:57:06 +0000 (10:57 -0500)]
Merge pull request #53928 from adk3798/rm-cleanup-on-failure

cephadm: remove --cleanup-on-failure flag

Reviewed-by: Redouane Kachach <rkachach@redhat.com>
20 months agoMerge pull request #53737 from adk3798/rm-host-crushmap
Adam King [Mon, 6 Nov 2023 15:55:27 +0000 (10:55 -0500)]
Merge pull request #53737 from adk3798/rm-host-crushmap

mgr/cephadm: support for removing host entry from crush map during host removal

Reviewed-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
Reviewed-by: John Mulligan <jmulligan@redhat.com>
20 months agoMerge pull request #52492 from phlogistonjohn/jjm-cephadm-jinja
Adam King [Mon, 6 Nov 2023 15:53:02 +0000 (10:53 -0500)]
Merge pull request #52492 from phlogistonjohn/jjm-cephadm-jinja

Add templating, via jinja2, to cephadm

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
20 months agoMerge pull request #53842 from BBoozmen/oozmen_sts_max_duration
Casey Bodley [Mon, 6 Nov 2023 15:48:59 +0000 (15:48 +0000)]
Merge pull request #53842 from BBoozmen/oozmen_sts_max_duration

RGW/STS: honor configured limits when updating max session duration

Reviewed-by: Pritha Srivastava <prsrivas@redhat.com>
20 months agoMerge pull request #53997 from Inode1/rgw-subuser-user-policy-check
Casey Bodley [Mon, 6 Nov 2023 15:48:35 +0000 (15:48 +0000)]
Merge pull request #53997 from Inode1/rgw-subuser-user-policy-check

rgw: add subuser to user policy condition check

Reviewed-by: Pritha Srivastava <prsrivas@redhat.com>
20 months agoMerge pull request #54050 from shreyanshjain7174/fix_62646
Casey Bodley [Mon, 6 Nov 2023 15:48:14 +0000 (15:48 +0000)]
Merge pull request #54050 from shreyanshjain7174/fix_62646

RadosGW: RGW Swift info not providing max_deletes_per_request in bulk_delete

Reviewed-by: Casey Bodley <cbodley@redhat.com>
20 months agoMerge pull request #54174 from cbodley/wip-63306
Casey Bodley [Mon, 6 Nov 2023 15:47:49 +0000 (15:47 +0000)]
Merge pull request #54174 from cbodley/wip-63306

rgw: fetch_remote_obj() uses uncompressed size for encrypted objects

Reviewed-by: Shilpa Jagannath <smanjara@redhat.com>
20 months agoMerge pull request #54213 from cbodley/wip-63333
Casey Bodley [Mon, 6 Nov 2023 15:47:23 +0000 (15:47 +0000)]
Merge pull request #54213 from cbodley/wip-63333

rgw-check-policy: remove check for nonempty tenant

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
20 months agoMerge pull request #50680 from linuxbox2/wip-notify-lctrans
Casey Bodley [Mon, 6 Nov 2023 15:37:16 +0000 (15:37 +0000)]
Merge pull request #50680 from linuxbox2/wip-notify-lctrans

rgwlc: dispatch S3 notifications on transition and mpu abort

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
Reviewed-by: Yuval Lifshitz <ylifshit@redhat.com>
20 months agoMerge pull request #54307 from rkachach/fix_issue_63326
Nizamudeen A [Mon, 6 Nov 2023 15:19:58 +0000 (20:49 +0530)]
Merge pull request #54307 from rkachach/fix_issue_63326

mgr/dashboard: fix secure_monitoring_stack check

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
20 months agoMerge pull request #54352 from zdover23/wip-doc-2023-11-06-rados-troubleshooting...
Anthony D'Atri [Mon, 6 Nov 2023 14:05:00 +0000 (09:05 -0500)]
Merge pull request #54352 from zdover23/wip-doc-2023-11-06-rados-troubleshooting-mon-common-issues-formatting

doc/rados: format Q&A list in tshooting-mon.rst

20 months agoMerge pull request #54222 from nbalacha/deep_copy_logs
Ilya Dryomov [Mon, 6 Nov 2023 13:51:27 +0000 (14:51 +0100)]
Merge pull request #54222 from nbalacha/deep_copy_logs

librbd: additional logs for deep-copy debugging

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
20 months agolibrbd: additional logs for debugging 54222/head
N Balachandran [Mon, 6 Nov 2023 08:57:59 +0000 (14:27 +0530)]
librbd: additional logs for debugging

Added image and object information to the deep_copy class constructors
debugging easier.

Signed-off-by: N Balachandran <nibalach@redhat.com>
20 months agoMerge pull request #54351 from cyx1231st/wip-seastore-cleanup-is-stable-cleanup-only
Yingxin [Mon, 6 Nov 2023 08:36:10 +0000 (16:36 +0800)]
Merge pull request #54351 from cyx1231st/wip-seastore-cleanup-is-stable-cleanup-only

crimson/os/seastore: cleanup, be explicit about stable and stable_written

Reviewed-by: Xuehan Xu <xuxuehan@qianxin.com>
Reviewed-by: Myoungwon Oh <myoungwon.oh@samsung.com>
20 months agoMerge pull request #54347 from yuvalif/wip-yuval-coverity-y2k38
Yuval Lifshitz [Mon, 6 Nov 2023 07:26:27 +0000 (09:26 +0200)]
Merge pull request #54347 from yuvalif/wip-yuval-coverity-y2k38

rgw: adding y2k38 annotations to supress coverity issues

reviewed-by: vedanshbhartia, idryomov

20 months agoMerge pull request #54286 from jnsaff/patch-1
zdover23 [Mon, 6 Nov 2023 05:09:27 +0000 (15:09 +1000)]
Merge pull request #54286 from jnsaff/patch-1

doc: Update mount-using-fuse.rst

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
Reviewed-by: Jos Collin <jcollin@redhat.com>
20 months agoMerge pull request #54336 from adk3798/cephadm-dashboard-e2e-fedora-link
Nizamudeen A [Mon, 6 Nov 2023 05:00:35 +0000 (10:30 +0530)]
Merge pull request #54336 from adk3798/cephadm-dashboard-e2e-fedora-link

mgr/dashboard: update fedora link for dashboard-cephadm-e2e test

Reviewed-by: Nizamudeen A <nia@redhat.com>
20 months agodoc/rados: format Q&A list in tshooting-mon.rst 54352/head
Zac Dover [Mon, 6 Nov 2023 04:31:20 +0000 (14:31 +1000)]
doc/rados: format Q&A list in tshooting-mon.rst

Bold the questions in a Q&A list in the "Most Common Monitor Issues"
section of doc/rados/troubleshooting/troubleshooting-mon.rst.

Signed-off-by: Zac Dover <zac.dover@proton.me>
20 months agocrimson/os/seastore: cleanup, be explicit about stable and stable_written 54351/head
Yingxin Cheng [Fri, 3 Nov 2023 09:00:07 +0000 (17:00 +0800)]
crimson/os/seastore: cleanup, be explicit about stable and stable_written

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
20 months agoMerge pull request #54325 from cyx1231st/wip-seastore-fix-seastore-pr-54036
Yingxin [Mon, 6 Nov 2023 01:54:23 +0000 (09:54 +0800)]
Merge pull request #54325 from cyx1231st/wip-seastore-fix-seastore-pr-54036

crimson/os/seastore/transaction_manager: add the missing UNIT_TESTS_BUILT guard

Reviewed-by: Xuehan Xu <xuxuehan@qianxin.com>
20 months agoMerge pull request #54344 from zdover23/wip-doc-2023-11-05-rados-troubleshooting...
zdover23 [Sun, 5 Nov 2023 16:05:47 +0000 (02:05 +1000)]
Merge pull request #54344 from zdover23/wip-doc-2023-11-05-rados-troubleshooting-mon-clock-skews-edit

doc/rados: edit t-mon.rst text

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
20 months agorgw: adding y2k38 annotations to supress coverity issues 54347/head
Yuval Lifshitz [Sun, 5 Nov 2023 14:52:30 +0000 (16:52 +0200)]
rgw: adding y2k38 annotations to supress coverity issues

the supression comments must be directly above the line
where the issue is.

this is a followup on these commits:
edfb5b9049ee897779863d780bfbaa130a7fbc40
aca2668c88a048ab556c53411dcf2ccd43099d50

Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
20 months agodoc/rados: edit t-mon.rst text 54344/head
Zac Dover [Sun, 5 Nov 2023 12:28:39 +0000 (22:28 +1000)]
doc/rados: edit t-mon.rst text

Clarify the text in the "Clock Skew" section of
doc/rados/troubleshooting/troubleshooting-mon.rst.

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
20 months agoMerge pull request #54343 from zdover23/wip-doc-2023-11-05-rados-troubleshooting...
Anthony D'Atri [Sun, 5 Nov 2023 13:11:22 +0000 (08:11 -0500)]
Merge pull request #54343 from zdover23/wip-doc-2023-11-05-rados-troubleshooting-troubleshooting-mon-clock-skews-formatting

doc/rados: format Q&A list in t-mon.rst

20 months agodoc/rados: format Q&A list in t-mon.rst 54343/head
Zac Dover [Sun, 5 Nov 2023 06:24:16 +0000 (16:24 +1000)]
doc/rados: format Q&A list in t-mon.rst

Format a Q&A list in doc/rados/troubleshooting/troubleshooting.rst, in
the "Clock Skews" section.

Signed-off-by: Zac Dover <zac.dover@proton.me>
20 months agocephadm: eliminate the _get_daemon_args function 54126/head
John Mulligan [Fri, 20 Oct 2023 15:20:36 +0000 (11:20 -0400)]
cephadm: eliminate the _get_daemon_args function

Move the last remaining bit of daemon args logic (ceph) out of
the _get_daemon_args function and remove the function.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>
20 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>

20 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

20 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>
20 months agocephadm: switch to using template files 52492/head
John Mulligan [Wed, 1 Nov 2023 21:58:19 +0000 (17:58 -0400)]
cephadm: switch to using template files

Switch off of the embedded template strings to using the recently
added template files.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agocephadm: copy template strings into template files
John Mulligan [Thu, 5 Oct 2023 20:41:12 +0000 (16:41 -0400)]
cephadm: copy template strings into template files

Copy the current template strings into files under the `templates` dir.
Add a enum for holding the names of known template files.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agocephadm: expand the templating module
John Mulligan [Thu, 5 Oct 2023 20:02:06 +0000 (16:02 -0400)]
cephadm: expand the templating module

Expand the templating module so that templates can be source from the
python package. Add (more) convenient to use methods.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agocephadm: workaround jinja2 package loader issue
John Mulligan [Thu, 5 Oct 2023 19:58:22 +0000 (15:58 -0400)]
cephadm: workaround jinja2 package loader issue

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agocephadm: update agent unit file func to use jinja template
John Mulligan [Mon, 17 Jul 2023 13:28:35 +0000 (09:28 -0400)]
cephadm: update agent unit file func to use jinja template

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agocephadm: update get_unit_file to use jinja template
John Mulligan [Sun, 16 Jul 2023 20:15:49 +0000 (16:15 -0400)]
cephadm: update get_unit_file to use jinja template

The somewhat complex string assembly of the main systemd unit file
for cephadm services can benefit from using a standard templating
approach.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agocephadm: add wrapper func for jinja templating
John Mulligan [Fri, 14 Jul 2023 19:44:50 +0000 (15:44 -0400)]
cephadm: add wrapper func for jinja templating

Add a simple wrapper function for templating from a string to a string.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agocephadm: add new requirements file to tox.ini envs
John Mulligan [Sun, 16 Jul 2023 20:14:53 +0000 (16:14 -0400)]
cephadm: add new requirements file to tox.ini envs

Add `-rzipapp-reqs.txt` to the unit tests and mypy environments in
tox.ini, enabling the use of dependencies outside the stdlib.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agocephadm: add zipapp-reqs.txt, mirroring cephadm's zipapp dependencies
John Mulligan [Fri, 14 Jul 2023 19:44:09 +0000 (15:44 -0400)]
cephadm: add zipapp-reqs.txt, mirroring cephadm's zipapp dependencies

Add Jinja2 and MarkupSafe dependencies to a requirements.txt style file.
This file tracks the dependencies needed to run the cephadm libs
in the unit test framework. The actual dependencies that get added
to the ziapp are managed by build.py but mirrored here.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agocephadm: add more thorough test coverage to unit file generation
John Mulligan [Mon, 17 Jul 2023 13:24:14 +0000 (09:24 -0400)]
cephadm: add more thorough test coverage to unit file generation

Add tests that check the generation of the standard systemd unit
for cephadm services. This test ensures that non trivial changes
to the content of these files are noticed.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agocephadm: add additional test cases for unit file contents
John Mulligan [Tue, 11 Jul 2023 19:51:19 +0000 (15:51 -0400)]
cephadm: add additional test cases for unit file contents

Asserts more about the unit files.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agocephadm: remove --cleanup-on-failure flag 53928/head
Adam King [Tue, 10 Oct 2023 18:00:27 +0000 (14:00 -0400)]
cephadm: remove --cleanup-on-failure flag

As discussed in the orch weekly, instead of having the
two flags, we'll just have the --no-cleanup-on-failure
flag on its own. This commit does not change the behavior
at all. It will still do the cleanup if --no-cleanup-on-failure
is not provided and not do the cleanup if it was. This just
removes the additional flag.

Signed-off-by: Adam King <adking@redhat.com>
20 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>
20 months agocephadm: move unit file related tests to dedicated file
John Mulligan [Tue, 11 Jul 2023 19:45:13 +0000 (15:45 -0400)]
cephadm: move unit file related tests to dedicated file

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agocephadm: add tests for build.py script
John Mulligan [Wed, 1 Nov 2023 22:14:34 +0000 (18:14 -0400)]
cephadm: add tests for build.py script

Add tests that cover the four main distros that ceph is built on (in
the ceph infra). These tests should not be run by automation as they
are slow and have special requirements like a working podman.
Instead, these are provided to be run by a dev when build.py is updated.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agocephadm: update the build.py script to work on multiple distros
John Mulligan [Wed, 1 Nov 2023 22:14:34 +0000 (18:14 -0400)]
cephadm: update the build.py script to work on multiple distros

Unfortunately, a single simple call to pip does not work on all the
distributions that ceph is built on. In particular, Ubuntu 20.04 and
Ubuntu 22.04 come with pip versions that can not correctly handle
disabling wheels and installing Jinja2 (it tries to use the markupsafe
dependency before it is installed). This can be worked around by using a
virtual env and updating pip before proceeding. However, this is not
enough because CentOS/RHEL 8 uses python 3.6 and there is no version of
pip that supports 3.6 that we can update to that is new enough to  fix
the issue with disabling wheels. The workaround in this case is to
install each dependency one at a time through multiple calls to pip.

Because of this extra complexity is it simpler to eschew the use of a
requirements.txt file in build.py entirely. Thus the zipapp is built
using build.py only. Requirements files for cephadm are for setting up
the tox environments *only*.

For completeness a new option is added that gives the caller control
over when build.py uses a virtualenv or not. Thus the build.py script
requires at least one of: a working pip that handles disabling wheels;
or, a virtualenv (venv) and the ability to update to a working version
of pip. If the list of distros ceph supports (and the python versions
they use) ever becomes simpler/newer some of this complexity could be
removed from the build.py script.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agocephadm: disable wheels and C compilers when building cephadm zipapp
John Mulligan [Fri, 14 Jul 2023 19:41:54 +0000 (15:41 -0400)]
cephadm: disable wheels and C compilers when building cephadm zipapp

We can not rely on any particular python version (py 3.6+ is supported)
and can not assume any particular architecture. So using wheels
based on the build system is pointless. Installing binary .so files
compiled from C/C++ similarly so. Attempt to block the behaviors
when adding dependencies to the zipapp.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 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>
20 months agomgr/dashboard: update fedora link for dashboard-cephadm-e2e test 54336/head
Adam King [Fri, 3 Nov 2023 17:42:51 +0000 (13:42 -0400)]
mgr/dashboard: update fedora link for dashboard-cephadm-e2e test

The old link points to a directory that now only contains a
README saying

---

ATTENTION
======================================
The contents of this directory have been moved to our archives available at:

http://archives.fedoraproject.org/pub/archive/fedora/

If you are having troubles finding something there please stop by #fedora-admin on irc.freenode.net

---

so I think we either need to start using a newer fedora or point
to the archive link. This commit is currently doing the latter.

Signed-off-by: Adam King <adking@redhat.com>
20 months agoqa/cephadm: test --rm-crush-entry host rm flag in host drain test 53737/head
Adam King [Fri, 29 Sep 2023 20:52:37 +0000 (16:52 -0400)]
qa/cephadm: test --rm-crush-entry host rm flag in host drain test

Signed-off-by: Adam King <adking@redhat.com>
20 months agoqa/cephadm: add teuthology test for host draining
Adam King [Fri, 29 Sep 2023 20:09:48 +0000 (16:09 -0400)]
qa/cephadm: add teuthology test for host draining

This was a gap in our testing in general, but I'm
adding it here right now specifically to use it
to test the "--rm-crush-entry" flag in a follow
up commit

Signed-off-by: Adam King <adking@redhat.com>
20 months agodoc/cephadm: document --rm-crush-entry host rm flag
Adam King [Fri, 29 Sep 2023 19:32:53 +0000 (15:32 -0400)]
doc/cephadm: document --rm-crush-entry host rm flag

Signed-off-by: Adam King <adking@redhat.com>
20 months agomgr/cephadm: add --rm-crush-entry flag to host removal
Adam King [Fri, 29 Sep 2023 18:39:10 +0000 (14:39 -0400)]
mgr/cephadm: add --rm-crush-entry flag to host removal

This will tell cephadm to try and remove the
crush bucket for the host at the end of the host
removal process. If this fails, we still consider the
host as having been successfully remove from
cephadm's POV, but the user will get back an error
message telling them we failed to remove the
host from the crush map

Fixes: https://tracker.ceph.com/issues/63031
Signed-off-by: Adam King <adking@redhat.com>
20 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.

20 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>