]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
21 months agomgr/dashboard: show a message to restart the rgw daemons after moving from single... 53673/head
Aashish Sharma [Tue, 26 Sep 2023 12:27:39 +0000 (17:57 +0530)]
mgr/dashboard: show a message to restart the rgw daemons after moving from single-site to multi-site

Fixes: https://tracker.ceph.com/issues/62984
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
21 months agoMerge pull request #53657 from zdover23/wip-doc-2023-09-26-architecture-10-of-x
zdover23 [Tue, 26 Sep 2023 04:38:38 +0000 (14:38 +1000)]
Merge pull request #53657 from zdover23/wip-doc-2023-09-26-architecture-10-of-x

doc/architecture: edit "SDEH"

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
21 months agodoc/architecture: edit "SDEH" 53657/head
Zac Dover [Mon, 25 Sep 2023 21:40:42 +0000 (07:40 +1000)]
doc/architecture: edit "SDEH"

Edit the front matter of the "Smart Daemons Enable Hyperscale" section
of doc/architecture.rst.

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
21 months agoMerge pull request #52442 from kamoltat/wip-ksirivad-fix-tracker-61922
Kamoltat (Junior) Sirivadhna [Mon, 25 Sep 2023 21:57:38 +0000 (17:57 -0400)]
Merge pull request #52442 from kamoltat/wip-ksirivad-fix-tracker-61922

pybind/mgr/pg_autoscaler: noautoscale flag retains individual pool configs
Reviewed-by: Kamoltat Sirivadhna <ksirivad@redhat.com>
21 months agoMerge pull request #51926 from adk3798/host-drain-zap
Adam King [Mon, 25 Sep 2023 17:39:54 +0000 (13:39 -0400)]
Merge pull request #51926 from adk3798/host-drain-zap

mgr/cephadm: add ability to zap OSDs' devices while draining host

Reviewed-by: John Mulligan <jmulligan@redhat.com>
Reviewed-by: Redouane Kachach <rkachach@redhat.com>
21 months agoMerge pull request #53589 from adk3798/cephadm-refactor-host-facts
Adam King [Mon, 25 Sep 2023 17:38:07 +0000 (13:38 -0400)]
Merge pull request #53589 from adk3798/cephadm-refactor-host-facts

cephadm: create host_facts.py in cephadmlib

Reviewed-by: John Mulligan <jmulligan@redhat.com>
21 months agocephadm: format black host_facts.py 53589/head
Adam King [Thu, 21 Sep 2023 20:28:09 +0000 (16:28 -0400)]
cephadm: format black host_facts.py

Signed-off-by: Adam King <adking@redhat.com>
21 months agocephadm: create host_facts.py in cephadmlib
Adam King [Thu, 21 Sep 2023 20:25:31 +0000 (16:25 -0400)]
cephadm: create host_facts.py in cephadmlib

For storing classes/functions related to gathering
information about the hosts such as disk enclosures
and networks

Signed-off-by: Adam King <adking@redhat.com>
21 months agoqa/workunits: modified tests for noautoscale flag change 52442/head
Kamoltat [Thu, 13 Jul 2023 19:41:29 +0000 (19:41 +0000)]
qa/workunits: modified tests for noautoscale flag change

modified:

`qa/workunits/mon/test_noautoscale_flag.sh`
`qa/workunits/cephtool/test.sh`

adding test coverage to files mentioned above

Fixes: https://tracker.ceph.com/issues/61922
Signed-off-by: Kamoltat <ksirivad@redhat.com>
21 months agoMerge pull request #53482 from adk3798/cephadm-refactor-decorators
Adam King [Mon, 25 Sep 2023 12:32:39 +0000 (08:32 -0400)]
Merge pull request #53482 from adk3798/cephadm-refactor-decorators

cephadm: start decorators.py in cephadmlib

Reviewed-by: John Mulligan <jmulligan@redhat.com>
21 months agoMerge pull request #53479 from rhcs-dashboard/upgrade-ui-popover-fix
Pedro Gonzalez Gomez [Mon, 25 Sep 2023 10:24:58 +0000 (12:24 +0200)]
Merge pull request #53479 from rhcs-dashboard/upgrade-ui-popover-fix

mgr/dashboard: remove empty popover when there are no health warns

Reviewed-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
21 months agoMerge pull request #53512 from rhcs-dashboard/promqls-enhancements
Nizamudeen A [Mon, 25 Sep 2023 07:45:11 +0000 (13:15 +0530)]
Merge pull request #53512 from rhcs-dashboard/promqls-enhancements

mgr/dashboard: fix prometheus queries subscriptions

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
21 months agoMerge pull request #53631 from zdover23/wip-doc-2023-09-25-architecture-9-of-x
zdover23 [Mon, 25 Sep 2023 05:06:22 +0000 (15:06 +1000)]
Merge pull request #53631 from zdover23/wip-doc-2023-09-25-architecture-9-of-x

doc/architecture: edit "HA Authentication"

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
21 months agodoc/architecture: edit "HA Authentication" 53631/head
Zac Dover [Mon, 25 Sep 2023 04:34:06 +0000 (14:34 +1000)]
doc/architecture: edit "HA Authentication"

Edit "High Availability Authentication" in doc/architecture.rst.

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
21 months agoMerge pull request #53575 from rkachach/fix_issue_62838
Adam King [Sun, 24 Sep 2023 13:48:20 +0000 (09:48 -0400)]
Merge pull request #53575 from rkachach/fix_issue_62838

mgr/cephadm: removing double quotes from the generated nvmeof config

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: John Mulligan <jmulligan@redhat.com>
21 months agocephadm: black format initial decorators.py 53482/head
Adam King [Fri, 15 Sep 2023 13:48:29 +0000 (09:48 -0400)]
cephadm: black format initial decorators.py

Signed-off-by: Adam King <adking@redhat.com>
21 months agocephadm: start decorators.py in cephadmlib
Adam King [Fri, 15 Sep 2023 13:44:58 +0000 (09:44 -0400)]
cephadm: start decorators.py in cephadmlib

Originally, wanted to move all the decorators into
their own files. Unfortunately, that isn't possible
at this time as most of them depend on things that
are still within cephadm.py This includes

list_daemons
_rm_cluster
is_fsid
termcolor
ContainerInfo
Ceph

and I'm sure I'm missing some others. We'll have to
revisit this again later when more of these things
have moved, or they can be slowly moved as their
dependencies are.

Signed-off-by: Adam King <adking@redhat.com>
21 months agoMerge pull request #53468 from phlogistonjohn/jjm-cephadm-move-container-types
Adam King [Sun, 24 Sep 2023 13:39:47 +0000 (09:39 -0400)]
Merge pull request #53468 from phlogistonjohn/jjm-cephadm-move-container-types

cephadm: move container types

Reviewed-by: Adam King <adking@redhat.com>
21 months agoMerge pull request #53613 from zdover23/wip-doc-2023-09-23-architecture-8-of-x
zdover23 [Sat, 23 Sep 2023 17:52:15 +0000 (03:52 +1000)]
Merge pull request #53613 from zdover23/wip-doc-2023-09-23-architecture-8-of-x

doc/architecture: "Edit HA Auth"

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
21 months agodoc/architecture: "Edit HA Auth" 53613/head
Zac Dover [Sat, 23 Sep 2023 02:26:18 +0000 (12:26 +1000)]
doc/architecture: "Edit HA Auth"

Rewrite the explanation of how a client authenticates against a monitor.
This is a rewrite of a single paragraph, and has been set apart in its
own PR so that it can receive the maximum amount of scrutiny that the
upstream Ceph community can muster.

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
21 months agoMerge pull request #53097 from mkogan1/rgw-wip-t62141-valg-supp
Casey Bodley [Sat, 23 Sep 2023 15:11:38 +0000 (16:11 +0100)]
Merge pull request #53097 from mkogan1/rgw-wip-t62141-valg-supp

valgrind: UninitCondition under __run_exit_handlers suppression

Reviewed-by: Casey Bodley <cbodley@redhat.com>
21 months agoMerge pull request #49405 from tchaikov/clang-16
Kefu Chai [Sat, 23 Sep 2023 12:23:15 +0000 (20:23 +0800)]
Merge pull request #49405 from tchaikov/clang-16

run-make-check.sh: use clang-17 if available

Reviewed-by: Yuval Lifshitz <ylifshit@redhat.com>
21 months agoMerge pull request #51890 from lxbsz/wip-61394
Rishabh Dave [Sat, 23 Sep 2023 09:24:14 +0000 (14:54 +0530)]
Merge pull request #51890 from lxbsz/wip-61394

test: unmount the mountpoint just before exiting

Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Kotresh HR <khiremat@redhat.com>
Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Neeraj Pratap Singh <neesingh@redhat.com>
Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
21 months agorun-make-check.sh: use clang-17 if available 49405/head
Kefu Chai [Tue, 13 Dec 2022 07:54:04 +0000 (15:54 +0800)]
run-make-check.sh: use clang-17 if available

now that clang-17 has been released, let's use it if available.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
21 months agoMerge pull request #53546 from mcv21/deb_package_fixes
Kefu Chai [Sat, 23 Sep 2023 05:43:12 +0000 (13:43 +0800)]
Merge pull request #53546 from mcv21/deb_package_fixes

debian: update to dh compat 12, fix more serious packaging errors, correct copyright syntax

Reviewed-by: Kefu Chai <tchaikov@gmail.com>
21 months agoMerge pull request #50611 from cbodley/wip-rgw-sal-list-buckets
Casey Bodley [Fri, 22 Sep 2023 22:20:20 +0000 (23:20 +0100)]
Merge pull request #50611 from cbodley/wip-rgw-sal-list-buckets

rgw/sal: list_buckets() returns RGWBucketEnts

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
22 months agorgw/sal: StoreBucket no longer wraps RGWBucketEnt 50611/head
Casey Bodley [Tue, 21 Mar 2023 18:21:26 +0000 (14:21 -0400)]
rgw/sal: StoreBucket no longer wraps RGWBucketEnt

`sal::Bucket` no longer needs to wrap `RGWBucketEnt` to support user
bucket listings, so can be represented by `RGWBucketInfo` alone. the
bucket stats interfaces that relied on RGWBucketEnt internally now
return their result as either `RGWBucketEnt` or `RGWStorageStats`

Signed-off-by: Casey Bodley <cbodley@redhat.com>
22 months agorgw/sal: list_buckets() returns RGWBucketEnts
Casey Bodley [Tue, 21 Mar 2023 17:36:56 +0000 (13:36 -0400)]
rgw/sal: list_buckets() returns RGWBucketEnts

`sal::User::list_buckets()` no longer returns a map of `sal::Bucket`
handles. it now uses `std::span<RGWBucketEnt>` for input and output.
`RGWBucketEnt` contains all of the information we need to satisfy
ListBuckets requests, and also stores the `rgw_bucket` key for use with
`Driver::get_bucket()` where a `sal::Bucket` handle is necessary

`sal::BucketList` contains the span of results and the `next_marker`.
the `is_truncated` flag was removed in favor of `!next_marker.empty()`

the checks for `user->get_max_buckets()` on bucket creation now use a
paginated `check_user_max_buckets()` helper function that limits the
number of allocated entries to `rgw_list_buckets_max_chunk`

Signed-off-by: Casey Bodley <cbodley@redhat.com>
22 months agodebian: call dh_python3 for ceph-{base,common,fuse,volume} 53546/head
Matthew Vernon [Wed, 20 Sep 2023 15:37:17 +0000 (16:37 +0100)]
debian: call dh_python3 for ceph-{base,common,fuse,volume}

In the cases of ceph-base, ceph-common, and ceph-fuse, this picks up
that these packages contain python scripts and adds a necessary
python3 dependency. In the case of ceph-volume it additionally parses
the requirements.txt file.

Signed-off-by: Matthew Vernon <mvernon@wikimedia.org>
22 months agodebian: radosgw.init to installinit, remove auto_build override
Matthew Vernon [Wed, 20 Sep 2023 15:33:13 +0000 (16:33 +0100)]
debian: radosgw.init to installinit, remove auto_build override

Installation of init scripts properly belongs with dh_installinit, so
move the installation there.

That means we no longer need the override of dh_auto_build, which
simplifies the rules file.

Signed-off-by: Matthew Vernon <mvernon@wikimedia.org>
22 months agodebian: specify a dependency on python3 for cephadm
Matthew Vernon [Wed, 20 Sep 2023 15:30:24 +0000 (16:30 +0100)]
debian: specify a dependency on python3 for cephadm

cephadm is a compressed zipapp, and dh3_python3 doesn't understand
this sort of binary file, so fails to produce the required python3
dependency. So specify this explicitly in debian/control

Signed-off-by: Matthew Vernon <mvernon@wikimedia.org>
22 months agodebian: remove obsolete ceph-base.docs, restore dh_installdocs
Matthew Vernon [Wed, 20 Sep 2023 15:23:52 +0000 (16:23 +0100)]
debian: remove obsolete ceph-base.docs, restore dh_installdocs

debian/ceph-base.docs only referred to a README that doesn't exist, so
remove it. Because dpkg-source doesn't reflect deletions from debian/
cf the orig.tar.gz, also remove the file in dh_auto_clean.

Then do away with the removal of the empty override of dh_installdocs;
the main benefit of which here is that debian/copyright gets installed
in all of the built packages, which otherwise lack a copyright
file.

Signed-off-by: Matthew Vernon <mvernon@wikimedia.org>
22 months agodebian: correct maintainer address
Matthew Vernon [Wed, 20 Sep 2023 15:15:54 +0000 (16:15 +0100)]
debian: correct maintainer address

This means that debian/control matches changelog entries, and that the
Maintainer address is up to date.

Signed-off-by: Matthew Vernon <mvernon@wikimedia.org>
22 months agodebian: dh compat to 12, necessary init/systemd adjustments
Matthew Vernon [Wed, 20 Sep 2023 15:13:43 +0000 (16:13 +0100)]
debian: dh compat to 12, necessary init/systemd adjustments

Bring the dh compat level to 12, the most recent supported by the
oldest supported Ubuntu LTS release, 20.04. This necessitates changes
to how initscripts & systemd packaging are done.

Signed-off-by: Matthew Vernon <mvernon@wikimedia.org>
22 months agodebian/copyright: update syntax, maintainer, add license stanzas
Matthew Vernon [Wed, 20 Sep 2023 12:27:15 +0000 (13:27 +0100)]
debian/copyright: update syntax, maintainer, add license stanzas

Update the header paragraph to link to the canonical URL for the
format, and point to dev@ceph.io as the Contact.

Also add License: stanzas to reflect the licences in use (and refer to
fuller versions in /usr/share/common-licenses/ as appropriate).

This means that packages containing this copyright file are better in
compliance with the licences concerned.

Signed-off-by: Matthew Vernon <mvernon@wikimedia.org>
22 months agodebian: add missing item separators in debian/control
Matthew Vernon [Mon, 11 Sep 2023 15:52:49 +0000 (16:52 +0100)]
debian: add missing item separators in debian/control

Signed-off-by: Matthew Vernon <mvernon@wikimedia.org>
22 months agodebian: remove {Build-,}Depends on essential packages
Matthew Vernon [Mon, 11 Sep 2023 15:49:19 +0000 (16:49 +0100)]
debian: remove {Build-,}Depends on essential packages

Unless there's a version requirement (which there isn't here),
packages should not declare a Build-Depends: or Depends: relationship
on essential packages. Policy link:

https://www.debian.org/doc/debian-policy/ch-binary.html#dependencies

Signed-off-by: Matthew Vernon <mvernon@wikimedia.org>
22 months agodebian: specify interpreters for ceph-mon and ceph-osd postinsts
Matthew Vernon [Mon, 11 Sep 2023 15:48:17 +0000 (16:48 +0100)]
debian: specify interpreters for ceph-mon and ceph-osd postinsts

These were previously missing. The requirement for interpreters is in
Debian policy section 10.4:
https://www.debian.org/doc/debian-policy/ch-files.html#s-scripts

Debian's packaging already adds the #! to these two postinsts. In
practice, a text executible without a #! line will likely be executed
by the calling shell, so a lot of the time we'd get away with it
unless the administrator is using an incompatible shell like tcsh.

This behaviour of shells is documented in POSIX section 1(e)(i)(b)
here:
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_09_01_01

Signed-off-by: Matthew Vernon <mvernon@wikimedia.org>
22 months agodebian: Build-Depend on g++ 11 or greater
Matthew Vernon [Wed, 20 Sep 2023 16:43:30 +0000 (17:43 +0100)]
debian: Build-Depend on g++ 11 or greater

Rely on the packaging system to provide a suitable g++ of version 11
or greater, and removing the corresponding hard-coding from
debian/rules, since cmake will then find a suitable version. This
seems better than trying to hard-code a particular version in
debian/rules, and Debian package building tools like e.g. sbuild will
then do the right thing.

This enables Reef (v18.2.0) to build on Debian bookworm in a clean
chroot.

Fixes: https://tracker.ceph.com/issues/61845
Signed-off-by: Matthew Vernon <mvernon@wikimedia.org>
22 months agoMerge pull request #52524 from dparmar18/wip-62072
Rishabh Dave [Fri, 22 Sep 2023 14:45:04 +0000 (20:15 +0530)]
Merge pull request #52524 from dparmar18/wip-62072

tools/cephfs_mirror: only perform actions if init succeed

Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
22 months agoMerge PR #53407 into main
Venky Shankar [Fri, 22 Sep 2023 14:41:49 +0000 (20:11 +0530)]
Merge PR #53407 into main

* refs/pull/53407/head:
Client: Fix nonblocking-io zero by read

Reviewed-by: Venky Shankar <vshankar@redhat.com>
22 months agoMerge PR #53279 into main
Venky Shankar [Fri, 22 Sep 2023 14:41:12 +0000 (20:11 +0530)]
Merge PR #53279 into main

* refs/pull/53279/head:
qa: descrease pgbench scale factor to 32 for postgresql database test

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
22 months agoMerge PR #52747 into main
Venky Shankar [Fri, 22 Sep 2023 14:40:42 +0000 (20:10 +0530)]
Merge PR #52747 into main

* refs/pull/52747/head:
cephfs-mirror: restart failed/blocklisted replayer instances
cephfs-mirror: do not run concurrent C_RestartMirroring context

Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
22 months agoMerge PR #53418 into main
Venky Shankar [Fri, 22 Sep 2023 14:39:44 +0000 (20:09 +0530)]
Merge PR #53418 into main

* refs/pull/53418/head:
qa: use exisitng ignorelist override list for fs:mirror[-ha]

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Jos Collin <jcollin@redhat.com>
22 months agoMerge pull request #48027 from lxbsz/wip-57154
Rishabh Dave [Fri, 22 Sep 2023 14:38:10 +0000 (20:08 +0530)]
Merge pull request #48027 from lxbsz/wip-57154

mds/client: check the cephx mds auth access in client side

Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Rishabh Dave <ridave@redhat.com>
22 months agoMerge pull request #52576 from cfsnyder/wip-62075
Casey Bodley [Fri, 22 Sep 2023 14:33:25 +0000 (15:33 +0100)]
Merge pull request #52576 from cfsnyder/wip-62075

rgw: add radosgw-admin bucket check olh/unlinked commands

Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
22 months agoMerge pull request #52042 from rishabh-d-dave/better-errmsg-for-perm
Rishabh Dave [Fri, 22 Sep 2023 14:32:40 +0000 (20:02 +0530)]
Merge pull request #52042 from rishabh-d-dave/better-errmsg-for-perm

MDSAuthCaps: print better error message for perm flag in MDS caps

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
22 months agoMerge pull request #47533 from rishabh-d-dave/ceph-fuse-cmd
Rishabh Dave [Fri, 22 Sep 2023 14:31:13 +0000 (20:01 +0530)]
Merge pull request #47533 from rishabh-d-dave/ceph-fuse-cmd

qa/cephfs: cleanup code for ceph-fuse command

Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
22 months agoMerge pull request #52259 from cbodley/wip-61859
Casey Bodley [Fri, 22 Sep 2023 14:08:36 +0000 (15:08 +0100)]
Merge pull request #52259 from cbodley/wip-61859

qa/rgw: disable 'rgw lc debug interval' in most suites

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
Reviewed-by: Soumya Koduri <skoduri@redhat.com>
22 months agoMerge pull request #53531 from ronen-fr/wip-rf-squeue2 53263/head
Ronen Friedman [Fri, 22 Sep 2023 13:46:38 +0000 (16:46 +0300)]
Merge pull request #53531 from ronen-fr/wip-rf-squeue2

osd/scrub: extract scrub initiation code out of the OSD

Reviewed-by: Samuel Just <sjust@redhat.com>
22 months agoMerge pull request #53311 from idryomov/wip-62711
Ilya Dryomov [Fri, 22 Sep 2023 13:44:35 +0000 (15:44 +0200)]
Merge pull request #53311 from idryomov/wip-62711

qa/suites/{rbd,krbd}: disable POOL_APP_NOT_ENABLED health check

Reviewed-by: Ramana Raja <rraja@redhat.com>
22 months agorgw: radosgw-admin bucket check should only print index entries with --check-objects... 52576/head
Cory Snyder [Fri, 22 Sep 2023 08:35:16 +0000 (08:35 +0000)]
rgw: radosgw-admin bucket check should only print index entries with --check-objects flag

Printing all index entries can be very time consuming for large
buckets and the inability to switch this behavior off makes it
cumbersome to use the command for fixing bucket stats. This was
also preventing the command from outputting recalculated bucket
stats when the --fix flag wasn't specified.

Signed-off-by: Cory Snyder <csnyder@1111systems.com>
22 months agoMerge pull request #53528 from rishabh-d-dave/cephfs-qa-mdtest
Rishabh Dave [Fri, 22 Sep 2023 06:26:03 +0000 (11:56 +0530)]
Merge pull request #53528 from rishabh-d-dave/cephfs-qa-mdtest

qa/cephfs: fix build failure for mdtest project

Reviewed-by: Venky Shankar <vshankar@redhat.com>
22 months agoqa/rgw: enable s3tests for 'storage classes' 52259/head
Casey Bodley [Thu, 21 Sep 2023 14:59:42 +0000 (10:59 -0400)]
qa/rgw: enable s3tests for 'storage classes'

other than the rgw/lifecycle subsuite, all of the other subsuites were just
adding storage classes to the rgw task, but not the s3tests task that
enables the storage class test cases

Signed-off-by: Casey Bodley <cbodley@redhat.com>
22 months agoqa/rgw: disable 'rgw lc debug interval' in most suites
Casey Bodley [Thu, 29 Jun 2023 14:54:03 +0000 (10:54 -0400)]
qa/rgw: disable 'rgw lc debug interval' in most suites

this has a performance cost, and the teuthology environment can
already be sluggish. if lifecycle expiration/transition testing
was limited to the rgw/lifecycle and rgw/cloud-transition suites,
the others would probably run significantly faster

Fixes: https://tracker.ceph.com/issues/61859
Signed-off-by: Casey Bodley <cbodley@redhat.com>
22 months agoqa/s3tests: use cloudtier_tests and lifecycle_tests to control filters
Casey Bodley [Thu, 29 Jun 2023 14:40:16 +0000 (10:40 -0400)]
qa/s3tests: use cloudtier_tests and lifecycle_tests to control filters

when `extra_attrs` was made additive, these tests were adding both
'not lifecycle_expiration' and 'lifecycle_expiration' to the command
line. use a yaml flag instead to control whether or not the s3tests task
adds the 'not' filter

Signed-off-by: Casey Bodley <cbodley@redhat.com>
22 months agoqa/rgw: remove duplicate overrides in rgw/lifecycle
Casey Bodley [Thu, 29 Jun 2023 14:44:02 +0000 (10:44 -0400)]
qa/rgw: remove duplicate overrides in rgw/lifecycle

Signed-off-by: Casey Bodley <cbodley@redhat.com>
22 months agoqa/suites/krbd: disable POOL_APP_NOT_ENABLED health check 53311/head
Ilya Dryomov [Fri, 15 Sep 2023 13:33:27 +0000 (15:33 +0200)]
qa/suites/krbd: disable POOL_APP_NOT_ENABLED health check

... same as for rbd suite.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
22 months agoqa/suites/rbd: drop POOL_APP_NOT_ENABLED from ignorelists
Ilya Dryomov [Fri, 15 Sep 2023 13:33:27 +0000 (15:33 +0200)]
qa/suites/rbd: drop POOL_APP_NOT_ENABLED from ignorelists

With "mon warn on pool no app = false" in the config, it's obviously
redundant.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
22 months agoqa/suites/rbd: disable POOL_APP_NOT_ENABLED health check
Ilya Dryomov [Fri, 15 Sep 2023 13:33:27 +0000 (15:33 +0200)]
qa/suites/rbd: disable POOL_APP_NOT_ENABLED health check

Commit 990806e635a1 ("mon, qa: issue pool application warning even
if pool is empty") made it impossible to create a pool without raising
a (bogus) health alert.  See [1] for details.

[1] https://lists.ceph.io/hyperkitty/list/dev@ceph.io/thread/ZTDYC5HN677RR26EB4P6PORN6L2IFH4R/

Fixes: https://tracker.ceph.com/issues/62711
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
22 months agoMerge pull request #53448 from cbodley/wip-62378
Casey Bodley [Thu, 21 Sep 2023 21:15:37 +0000 (22:15 +0100)]
Merge pull request #53448 from cbodley/wip-62378

rgw/crypt: don't deref null manifest_bl

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
22 months agoMerge pull request #53045 from smanjara/wip-shilpa-revert-51772
Casey Bodley [Thu, 21 Sep 2023 19:59:59 +0000 (20:59 +0100)]
Merge pull request #53045 from smanjara/wip-shilpa-revert-51772

rgw/multisite: fixes assertion failure during realm reload

Reviewed-by: Casey Bodley <cbodley@redhat.com>
22 months agorgw: prevent another leftover bucket index olh entry scenario
Cory Snyder [Thu, 21 Sep 2023 19:27:51 +0000 (19:27 +0000)]
rgw: prevent another leftover bucket index olh entry scenario

If a call to bucket_index_link_olh or bucket_index_unlink_instance
fails, its associated pending xattr may have prevented the olh object
from being removed by another thread. We should do a best effort
cleanup attempt for this case by calling update_olh before returning
an error to the caller.

Signed-off-by: Cory Snyder <csnyder@1111systems.com>
22 months agoMerge pull request #53493 from zdover23/wip-doc-2023-09-18-architecture-7-of-x
zdover23 [Thu, 21 Sep 2023 17:41:21 +0000 (03:41 +1000)]
Merge pull request #53493 from zdover23/wip-doc-2023-09-18-architecture-7-of-x

doc/architecture: "Edit HA Auth" (one of several)

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
22 months agorgw/admin: 'buckets list' takes --marker
Casey Bodley [Tue, 21 Mar 2023 02:39:31 +0000 (22:39 -0400)]
rgw/admin: 'buckets list' takes --marker

Signed-off-by: Casey Bodley <cbodley@redhat.com>
22 months agorgw: remove Bucket::update_container_stats()
Casey Bodley [Mon, 20 Mar 2023 22:40:05 +0000 (18:40 -0400)]
rgw: remove Bucket::update_container_stats()

callers use Bucket::read_stats() to load bucket stats

Signed-off-by: Casey Bodley <cbodley@redhat.com>
22 months agoMerge pull request #53505 from cbodley/wip-62771
Casey Bodley [Thu, 21 Sep 2023 17:30:07 +0000 (18:30 +0100)]
Merge pull request #53505 from cbodley/wip-62771

rgw/sal: get_placement_target_names() returns void

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
22 months agoMerge pull request #52392 from yuvalif/wip-yuval-trace-name
Yuval Lifshitz [Thu, 21 Sep 2023 17:12:01 +0000 (20:12 +0300)]
Merge pull request #52392 from yuvalif/wip-yuval-trace-name

rgw: rename request traces and change for tags

reviewed-by: cbodley

22 months agoMerge PR #50503 into main
Patrick Donnelly [Thu, 21 Sep 2023 15:51:31 +0000 (11:51 -0400)]
Merge PR #50503 into main

* refs/pull/50503/head:
mon: do not change pending if strategy is unchanged
mon/MonmapMonitor: do not propose on error in prepare_update
mon/MonmapMonitor: wait for commit before reply
mon: use wait_for_commit to reply
mon: add context list for commit wait
mon: remove unused method
test/mon: add commit benchmark script
mon/MonClient: provide config to target specific rank

Reviewed-by: Laura Flores <lflores@redhat.com>
Reviewed-by: Ramana Raja <rraja@redhat.com>
22 months agodoc/architecture: "Edit HA Auth" (one of several) 53493/head
Zac Dover [Sun, 17 Sep 2023 20:41:28 +0000 (06:41 +1000)]
doc/architecture: "Edit HA Auth" (one of several)

Edit "High Availability Authentication" in doc/architecture.rst.

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
22 months agovalgrind: UninitCondition under __run_exit_handlers suppression 53097/head
Mark Kogan [Mon, 21 Aug 2023 17:49:28 +0000 (17:49 +0000)]
valgrind: UninitCondition under __run_exit_handlers suppression

reqiered in CentOS / RHEL 9 & Ubuntu 22.04.1 LTS

Fixes: https://tracker.ceph.com/issues/62141
Signed-off-by: Mark Kogan <mkogan@redhat.com>
22 months agocephadm: black format container_types.py 53468/head
John Mulligan [Tue, 12 Sep 2023 22:28:07 +0000 (18:28 -0400)]
cephadm: black format container_types.py

Signed-off-by: John Mulligan <jmulligan@redhat.com>
22 months agocephadm: black format systemd.py
John Mulligan [Tue, 12 Sep 2023 22:27:47 +0000 (18:27 -0400)]
cephadm: black format systemd.py

Signed-off-by: John Mulligan <jmulligan@redhat.com>
22 months agocephadm: move CephContainer/similar to new container_types.py
John Mulligan [Tue, 12 Sep 2023 14:25:29 +0000 (10:25 -0400)]
cephadm: move CephContainer/similar to new container_types.py

Part of general cephadm split-up refactoring. I am not happy with the
name 'container_types' but none of the alternatives I could think
of were much better.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
22 months agocephadm: move a pair of systemd unit status funcs to systemd.py
John Mulligan [Tue, 12 Sep 2023 18:11:37 +0000 (14:11 -0400)]
cephadm: move a pair of systemd unit status funcs to systemd.py

Signed-off-by: John Mulligan <jmulligan@redhat.com>
22 months agocephadm: fix unit tests executing FileLock type
John Mulligan [Wed, 20 Sep 2023 19:38:50 +0000 (15:38 -0400)]
cephadm: fix unit tests executing FileLock type

The FileLock type doesn't play much of a role when running tests so
to prevent issues, always mock it out when using with_cephadm_ctx.

In particular, a future patch revealed a problem with the FileLock code
that I can not understand how it was not hit before, or why this simple
refactoring - not directly related to file locking - triggered it. But
in short, the FakeFilesystem mocking utility only covers some syscalls.
In fact, the fake filesystem was returning an fd that was then passed to
real calls (fcntl and os.close).  The latter then triggered issues when
pytest was trying to clean up after it applied it's magic to stdio
objects in sys. The fix is easy - understanding why it happens and how
was hard.  I still don't understand why it popped up when it did only
that this is necessary to implement the following patches.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
22 months agoosd/scrub: modify schedule_result_t to report error class 53531/head
Ronen Friedman [Thu, 21 Sep 2023 12:34:52 +0000 (07:34 -0500)]
osd/scrub: modify schedule_result_t to report error class

(which directly translates to the required followup action)
instead of reporting the exact failure. The specific of the failure
were never used by the scrub scheduler.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
22 months agoosd/scrub: scheduler refactoring - cleanups
Ronen Friedman [Thu, 21 Sep 2023 09:57:30 +0000 (04:57 -0500)]
osd/scrub: scheduler refactoring - cleanups

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
22 months agoqa/cephfs: add "set -x" in mdtest.yaml 53528/head
Rishabh Dave [Thu, 21 Sep 2023 12:41:41 +0000 (18:11 +0530)]
qa/cephfs: add "set -x" in mdtest.yaml

Set the flag for printing the commands that will be executed so that
it's easier to go through teuthology.log

Signed-off-by: Rishabh Dave <ridave@redhat.com>
22 months agoqa/cephfs: fix build failure for mdtest project
Rishabh Dave [Wed, 20 Sep 2023 08:42:43 +0000 (14:12 +0530)]
qa/cephfs: fix build failure for mdtest project

To fix the mdtest job failure (which happens because building mdtest
project fails) do -

1. Use ior projects intead of mdtest project bcecause latter was merged
   into former. See:
   https://github.com/MDTEST-LANL/mdtest/blob/master/README.md

2. Purge mpich package and then install it again. This is a vital step
   that's needed to build ior project on Ubuntu 22.04.

Fixes: https://tracker.ceph.com/issues/61574
Signed-off-by: Rishabh Dave <ridave@redhat.com>
22 months agoMerge pull request #52863 from batrick/i62326
Adam King [Thu, 21 Sep 2023 12:14:54 +0000 (08:14 -0400)]
Merge pull request #52863 from batrick/i62326

pybind/mgr/cephadm/upgrade: stop disabling FSMap sanity checks

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
22 months agoosd/scrub: scheduler: removing unused code
Ronen Friedman [Thu, 21 Sep 2023 09:59:11 +0000 (04:59 -0500)]
osd/scrub: scheduler: removing unused code

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
22 months agoosd/scrub: correct placement for some scheduler-related methods
Ronen Friedman [Tue, 19 Sep 2023 14:04:23 +0000 (09:04 -0500)]
osd/scrub: correct placement for some scheduler-related methods

Moving some member functions to their corresponding files.
Including ScrubQueue::dump_scrubs()
as it was moved in a previous commit,
and some ScrubJob code.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
22 months agoMerge pull request #53501 from zhscn/wip-lba-backref-node-size
Yingxin [Thu, 21 Sep 2023 09:20:28 +0000 (17:20 +0800)]
Merge pull request #53501 from zhscn/wip-lba-backref-node-size

crimson/os/seastore: create page aligned bufferptr in copy ctor of CachedExtent

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
22 months agomgr/cephadm: removing double quotes from the generated nvmeof config 53575/head
Redouane Kachach [Thu, 21 Sep 2023 08:13:13 +0000 (10:13 +0200)]
mgr/cephadm: removing double quotes from the generated nvmeof config
Fixes: https://tracker.ceph.com/issues/62838
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
22 months agoMerge pull request #52150 from paulreece42/wip-grafana-quorum-fix
Nizamudeen A [Thu, 21 Sep 2023 07:06:21 +0000 (12:36 +0530)]
Merge pull request #52150 from paulreece42/wip-grafana-quorum-fix

monitoring: grafana mons out of quorum should be count - sum

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
22 months agoMerge PR #53028 into main
Venky Shankar [Thu, 21 Sep 2023 00:41:54 +0000 (06:11 +0530)]
Merge PR #53028 into main

* refs/pull/53028/head:
Update MDSDaemon.cc
Update MDSRank.cc - Logoutput: Fix personal pronoun "I" to uppercase

Reviewed-by: Venky Shankar <vshankar@redhat.com>
22 months agoMerge PR #53176 into main
Venky Shankar [Thu, 21 Sep 2023 00:33:42 +0000 (06:03 +0530)]
Merge PR #53176 into main

* refs/pull/53176/head:
doc: add note for removing (automatic) partitioning policy

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Milind Changire <mchangir@redhat.com>
22 months agoMerge pull request #53467 from phlogistonjohn/jjm-cephadm-move-get_data_dir
Adam King [Wed, 20 Sep 2023 18:20:09 +0000 (14:20 -0400)]
Merge pull request #53467 from phlogistonjohn/jjm-cephadm-move-get_data_dir

cephadm: move get data dir function to daemonidentity method

Reviewed-by: Adam King <adking@redhat.com>
22 months agoMerge pull request #53415 from rkachach/fix_issue_62814
Adam King [Wed, 20 Sep 2023 18:19:02 +0000 (14:19 -0400)]
Merge pull request #53415 from rkachach/fix_issue_62814

cephadm: fix cephadm binary mount when --shared_ceph_folder is used

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
22 months agoMerge pull request #53298 from phlogistonjohn/jjm-logging-2
Adam King [Wed, 20 Sep 2023 18:17:03 +0000 (14:17 -0400)]
Merge pull request #53298 from phlogistonjohn/jjm-logging-2

cephadm: enhance logging behavior

Reviewed-by: Adam King <adking@redhat.com>
22 months agoMerge pull request #52251 from rkachach/fix_issue_61856
Adam King [Wed, 20 Sep 2023 18:14:23 +0000 (14:14 -0400)]
Merge pull request #52251 from rkachach/fix_issue_61856

mgr/cephadm: Adding sort-by support for ceph orch ps

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: John Mulligan <jmulligan@redhat.com>
22 months agoMerge pull request #52982 from batrick/backport-cp-simplify
Ilya Dryomov [Wed, 20 Sep 2023 17:58:40 +0000 (19:58 +0200)]
Merge pull request #52982 from batrick/backport-cp-simplify

script/ceph-backport: perform cherry-pick in single command

Reviewed-by: Casey Bodley <cbodley@redhat.com>
22 months agomgr/dashboard: fix prometheus queries subscriptions 53512/head
Pedro Gonzalez Gomez [Mon, 18 Sep 2023 16:34:28 +0000 (18:34 +0200)]
mgr/dashboard: fix prometheus queries subscriptions

Fixes: https://tracker.ceph.com/issues/62868
Signed-off-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
22 months agoMerge PR #53145 into main
Patrick Donnelly [Wed, 20 Sep 2023 12:57:07 +0000 (08:57 -0400)]
Merge PR #53145 into main

* refs/pull/53145/head:
mds: log message when exiting due to asok command

Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
22 months agoMerge PR #53149 into main
Patrick Donnelly [Wed, 20 Sep 2023 12:31:17 +0000 (08:31 -0400)]
Merge PR #53149 into main

* refs/pull/53149/head:
qa: lengthen shutdown timeout for thrashed MDS

Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
22 months agodoc: add note for removing (automatic) partitioning policy 53176/head
Venky Shankar [Mon, 28 Aug 2023 10:42:57 +0000 (16:12 +0530)]
doc: add note for removing (automatic) partitioning policy

Signed-off-by: Venky Shankar <vshankar@redhat.com>
22 months agoMerge pull request #53309 from guits/bz2203397
Guillaume Abrioux [Wed, 20 Sep 2023 07:32:49 +0000 (09:32 +0200)]
Merge pull request #53309 from guits/bz2203397

ceph-volume: fix mpath device support

22 months agoosd/scrub: handle configuration changes in OsdScrub
Ronen Friedman [Tue, 19 Sep 2023 12:16:03 +0000 (07:16 -0500)]
osd/scrub: handle configuration changes in OsdScrub

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
22 months agoosd/scrub: move initiate_a_scrub() to OsdScrub
Ronen Friedman [Tue, 19 Sep 2023 11:55:25 +0000 (06:55 -0500)]
osd/scrub: move initiate_a_scrub() to OsdScrub

Scrub initiation is now fully owned by OsdScrub.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>