]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
13 months agodoc/rados: add stretch_rule workaround 58109/head
Zac Dover [Tue, 18 Jun 2024 05:22:41 +0000 (15:22 +1000)]
doc/rados: add stretch_rule workaround

Add a method for defining a CRUSH rule that returns the actual value of
the total available size.

Fixes: https://tracker.ceph.com/issues/56650
Signed-off-by: Zac Dover <zac.dover@proton.me>
13 months agoMerge pull request #58091 from zdover23/wip-doc-2024-06-17-dev-developer-guide-essentials
Zac Dover [Tue, 18 Jun 2024 01:12:02 +0000 (11:12 +1000)]
Merge pull request #58091 from zdover23/wip-doc-2024-06-17-dev-developer-guide-essentials

doc/dev: link to ceph.io leads list

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Dan Mick <dmick@redhat.com>
13 months agoMerge pull request #57988 from mohit84/issue_62934
Laura Flores [Mon, 17 Jun 2024 18:23:09 +0000 (13:23 -0500)]
Merge pull request #57988 from mohit84/issue_62934

unittest_osdmap aborted during OSDMapTest.BUG_42485

13 months agoMerge pull request #57147 from xxhdx1985126/wip-65696
Samuel Just [Mon, 17 Jun 2024 18:08:53 +0000 (11:08 -0700)]
Merge pull request #57147 from xxhdx1985126/wip-65696

crimson/osd/pg_recovery: skip unfound objects when recovering the primary

Reviewed-by: Samuel Just <sjust@redhat.com>
13 months agoMerge pull request #40849 from dvanders/drainpeeringbug
Radoslaw Zarzynski [Mon, 17 Jun 2024 17:50:45 +0000 (19:50 +0200)]
Merge pull request #40849 from dvanders/drainpeeringbug

test: test osd drain flap peering bug

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
13 months agoMerge pull request #57955 from phlogistonjohn/jjm-fix-issue66389-apparmor
Adam King [Mon, 17 Jun 2024 17:15:15 +0000 (13:15 -0400)]
Merge pull request #57955 from phlogistonjohn/jjm-fix-issue66389-apparmor

cephadm: fix apparmor profiles with spaces in the names

Reviewed-by: Adam King <adking@redhat.com>
13 months agoMerge pull request #58054 from phlogistonjohn/jjm-cpatch-py-vers
Adam King [Mon, 17 Jun 2024 15:16:53 +0000 (11:16 -0400)]
Merge pull request #58054 from phlogistonjohn/jjm-cpatch-py-vers

script/cpatch.py: add support for multiple valid python versions

Reviewed-by: Adam King <adking@redhat.com>
13 months agoMerge pull request #58053 from rkhudov/src-cephadm-box_remove_unused_imports
Adam King [Mon, 17 Jun 2024 15:16:02 +0000 (11:16 -0400)]
Merge pull request #58053 from rkhudov/src-cephadm-box_remove_unused_imports

src/cephadm/box: remove unused imports

Reviewed-by: Adam King <adking@redhat.com>
13 months agoMerge pull request #57293 from phlogistonjohn/jjm-smb-create-only
Adam King [Mon, 17 Jun 2024 15:14:38 +0000 (11:14 -0400)]
Merge pull request #57293 from phlogistonjohn/jjm-smb-create-only

smb: have create cluster and create share commands only create

Reviewed-by: Adam King <adking@redhat.om>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
13 months agodoc/dev: link to ceph.io leads list 58091/head
Zac Dover [Mon, 17 Jun 2024 14:39:10 +0000 (00:39 +1000)]
doc/dev: link to ceph.io leads list

Remove the docs.ceph.com list of team leads, and link to the list of
leads on ceph.io.

Fixes: https://tracker.ceph.com/issues/66392
Signed-off-by: Zac Dover <zac.dover@proton.me>
13 months agoMerge pull request #58079 from jrchyang/main
Igor Fedotov [Mon, 17 Jun 2024 11:02:13 +0000 (14:02 +0300)]
Merge pull request #58079 from jrchyang/main

os/bluestore: corrected the description of the bluefs stats output

Reviewed-by: Igor Fedotov <igor.fedotov@croit.io>
13 months agoMerge PR #57991 into main
Venky Shankar [Mon, 17 Jun 2024 09:27:52 +0000 (14:57 +0530)]
Merge PR #57991 into main

* refs/pull/57991/head:
qa: upgrade sub-suite upgraded_client from from n-1|n-2 releases
qa: upgrade sub-suite nofs from n-1 and n-2 releases
qa: use supported releases for featureful_client

Reviewed-by: Leonid Usov <leonid.usov@ibm.com>
13 months agoMerge pull request #57865 from ronen-fr/wip-rf-at-once
Ronen Friedman [Mon, 17 Jun 2024 07:23:09 +0000 (10:23 +0300)]
Merge pull request #57865 from ronen-fr/wip-rf-at-once

osd/scrub: allow new scrubs while reserving

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
13 months agoMerge pull request #57818 from xxhdx1985126/wip-seastore-lba-remap-perf-opt
Yingxin [Mon, 17 Jun 2024 05:56:23 +0000 (13:56 +0800)]
Merge pull request #57818 from xxhdx1985126/wip-seastore-lba-remap-perf-opt

crimson/os/seastore/lba_manager: do batch mapping allocs when remapping multiple mappings

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
13 months agoMerge pull request #57359 from perezjosibm/wip-perezjos-vstart-alien
Yingxin [Mon, 17 Jun 2024 03:59:00 +0000 (11:59 +0800)]
Merge pull request #57359 from perezjosibm/wip-perezjos-vstart-alien

vstart.sh: add options to set number of alien threads, and number of cpu cores for alien threads

Reviewed-by: Matan Breizman <mbreizma@redhat.com>
Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
13 months agoos/bluestore: corrected the description of the horizontal and vertical axes in bluefs... 58079/head
jrchyang [Mon, 17 Jun 2024 02:55:18 +0000 (02:55 +0000)]
os/bluestore: corrected the description of the horizontal and vertical axes in bluefs stats output

Signed-off-by: Jrchyang Yu <yuzhiqiang_yewu@cmss.chinamobile.com>
13 months agoMerge pull request #58062 from rhcs-dashboard/cephadm-flake8-fix
Ilya Dryomov [Sun, 16 Jun 2024 19:19:40 +0000 (21:19 +0200)]
Merge pull request #58062 from rhcs-dashboard/cephadm-flake8-fix

mgr/cephadm: fix flake8 test failures

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
13 months agoosd/scrub: do not track reserving state at OSD level 57865/head
Ronen Friedman [Tue, 4 Jun 2024 09:02:55 +0000 (04:02 -0500)]
osd/scrub: do not track reserving state at OSD level

As we no longer block the initiation of new scrub sessions for an OSD
for which any of its PGs is in the process of reserving scrub resources,
there is no need to track the reserving state at the OSD level.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
13 months agoosd/scrub: allow new scrubs while reserving
Ronen Friedman [Tue, 4 Jun 2024 08:53:04 +0000 (03:53 -0500)]
osd/scrub: allow new scrubs while reserving

allow new scrub session to be initiated by an OSD even while a PG is
in the process of reserving scrub resources.
The existing restriction made sense when the replica reservation process
was expected to succeed or fail within a few milliseconds. It makes less
sense now that the reservation process is queue-based (Reserver based)
and can take unlimited time (hours, days, ...) to complete.

Fixes: https://tracker.ceph.com/issues/66351
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
13 months agomgr/cephadm: fix flake8 test failures 58062/head
Nizamudeen A [Sun, 16 Jun 2024 09:11:04 +0000 (14:41 +0530)]
mgr/cephadm: fix flake8 test failures

after a recent update on flake8, some tests in cephadm started failing
```
flake8: commands[0]> flake8 --config=tox.ini alerts balancer cephadm cli_api crash devicehealth diskprediction_local hello iostat localpool nfs orchestrator prometheus rbd_support rgw selftest smb
cephadm/configchecks.py:94:6: E204 whitespace after decorator '@'
cephadm/module.py:3017:10: E204 whitespace after decorator '@'
cephadm/module.py:3344:144: E226 missing whitespace around arithmetic operator
cephadm/tests/test_cephadm.py:982:6: E204 whitespace after decorator '@'
3     E204 whitespace after decorator '@'
1     E226 missing whitespace around arithmetic operator
```

Signed-off-by: Nizamudeen A <nia@redhat.com>
13 months agoMerge pull request #57367 from xxhdx1985126/wip-65872
Matan Breizman [Sun, 16 Jun 2024 08:34:01 +0000 (11:34 +0300)]
Merge pull request #57367 from xxhdx1985126/wip-65872

crimson/osd/osd_operations/client_request: check "can_serve_replica_reads" before getting obc

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Matan Breizman <mbreizma@redhat.com>
13 months agoMerge pull request #56994 from guojidan/historic-ops
Matan Breizman [Sun, 16 Jun 2024 08:32:36 +0000 (11:32 +0300)]
Merge pull request #56994 from guojidan/historic-ops

crimson/osd/osd_operation: fix dump_historic_slow_ops command works

Reviewed-by: Samuel Just <sjust@redhat.com>
13 months agoMerge pull request #58057 from zdover23/wip-doc-2024-06-15-rados-troubleshooting-mon
Zac Dover [Sun, 16 Jun 2024 05:13:26 +0000 (15:13 +1000)]
Merge pull request #58057 from zdover23/wip-doc-2024-06-15-rados-troubleshooting-mon

doc/rados: explain replaceable parts of command

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
13 months agodoc/rados: explain replaceable parts of command 58057/head
Zac Dover [Sat, 15 Jun 2024 11:55:18 +0000 (21:55 +1000)]
doc/rados: explain replaceable parts of command

Add an explanation that directs the reader to replace the "X" part of
the command "ceph tell mon.X mon_status" with the value specific to the
reader's Ceph cluster (which is (probably) not "X").

In the future, such replaceable strings in commands may be bounded by
angle brackets ("<" and ">").

This improvement to the documentation was suggested on the [ceph-users]
email list by Joel Davidow. This email, an absolute model of user
engagement with an upstream project, can be reviewed here:
https://lists.ceph.io/hyperkitty/list/ceph-users@ceph.io/message/KF67F5TXFSSTPXV7EKL6JKLA5KZQDLDQ/

Signed-off-by: Zac Dover <zac.dover@proton.me>
13 months agoscript/cpatch.py: add support for multiple valid python versions 58054/head
John Mulligan [Fri, 14 Jun 2024 14:07:07 +0000 (10:07 -0400)]
script/cpatch.py: add support for multiple valid python versions

Fix running cpatch.py with the latest centos9s based container images.
Future proof a little by adding multiple valid, existing, python version
numbers to probe.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
13 months agosrc/cephadm/box: remove unused imports 58053/head
rkhudov [Fri, 14 Jun 2024 13:40:59 +0000 (14:40 +0100)]
src/cephadm/box: remove unused imports

Signed-off-by: rkhudov <rhudov@gmail.com>
13 months agoMerge pull request #57969 from yuvalif/wip-yuval-64305
Yuval Lifshitz [Fri, 14 Jun 2024 11:39:09 +0000 (14:39 +0300)]
Merge pull request #57969 from yuvalif/wip-yuval-64305

rgw: do not assert on thread name setting failures

Reviewed-By: Casey Bodley <cbodley@ibm.com>
13 months agoMerge pull request #57898 from yuvalif/wip-yuval-notif-decode
Yuval Lifshitz [Fri, 14 Jun 2024 10:35:17 +0000 (13:35 +0300)]
Merge pull request #57898 from yuvalif/wip-yuval-notif-decode

rgw/admin/notification: add command to dump notifications

Reviewed-By: Ali Masarwe <ali.masarwa@ibm.com>
13 months agoqa: upgrade sub-suite upgraded_client from from n-1|n-2 releases 57991/head
Dhairya Parmar [Tue, 30 Apr 2024 11:09:19 +0000 (16:39 +0530)]
qa: upgrade sub-suite upgraded_client from from n-1|n-2 releases

... and move to centos9.

Fixes: https://tracker.ceph.com/issues/65580
Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
Signed-off-by: Venky Shankar <vshankar@redhat.com>
13 months agoqa: upgrade sub-suite nofs from n-1 and n-2 releases
Dhairya Parmar [Thu, 4 Apr 2024 12:25:52 +0000 (17:55 +0530)]
qa: upgrade sub-suite nofs from n-1 and n-2 releases

also adjust the respective upgrade YAMLs and move to
centos9.

Fixes: https://tracker.ceph.com/issues/65580
Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
Signed-off-by: Venky Shankar <vshankar@redhat.com>
13 months agoqa: use supported releases for featureful_client
Venky Shankar [Fri, 7 Jun 2024 05:13:27 +0000 (05:13 +0000)]
qa: use supported releases for featureful_client

... and switch for centos9.

Fixes: https://tracker.ceph.com/issues/65580
Signed-off-by: Venky Shankar <vshankar@redhat.com>
13 months agoMerge pull request #57690 from ceph/carbon-setup-ui-shell
Ivo Almeida [Fri, 14 Jun 2024 08:45:20 +0000 (09:45 +0100)]
Merge pull request #57690 from ceph/carbon-setup-ui-shell

mgr/dashboard: carbon setup and ui shel

Reviewed-by: Ankush Behl <cloudbehl@gmail.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
13 months agoMerge pull request #57698 from rhcs-dashboard/due-timer-validate
Nizamudeen A [Fri, 14 Jun 2024 07:45:50 +0000 (13:15 +0530)]
Merge pull request #57698 from rhcs-dashboard/due-timer-validate

mgr/dashboard: add dueTime to rgw bucket validator

Reviewed-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
13 months agoMerge pull request #57713 from rhcs-dashboard/bucket-replication-form
Nizamudeen A [Fri, 14 Jun 2024 06:34:59 +0000 (12:04 +0530)]
Merge pull request #57713 from rhcs-dashboard/bucket-replication-form

mgr/dashboard: apply replication policy for a bucket

Reviewed-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
Reviewed-by: Ankush Behl <cloudbehl@gmail.com>
13 months agoMerge pull request #57801 from afreen23/wip-nvmeof-service
Nizamudeen A [Fri, 14 Jun 2024 05:08:49 +0000 (10:38 +0530)]
Merge pull request #57801 from afreen23/wip-nvmeof-service

mgr/dashboard: Configure NVMe/TCP

Reviewed-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
Reviewed-by: Ankush Behl <cloudbehl@gmail.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: rivkap <NOT@FOUND>
13 months agoMerge PR #54159 into main
Patrick Donnelly [Thu, 13 Jun 2024 18:03:41 +0000 (14:03 -0400)]
Merge PR #54159 into main

* refs/pull/54159/head:
qa: add export thrashing to fs:thrash

Reviewed-by: Venky Shankar <vshankar@redhat.com>
13 months agoMerge pull request #57954 from idryomov/wip-64662
Ilya Dryomov [Thu, 13 Jun 2024 17:10:56 +0000 (19:10 +0200)]
Merge pull request #57954 from idryomov/wip-64662

librbd: allow cloning from non-user snapshots

Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Afreen Misbah <afreen23.git@gmail.com>
13 months agoMerge pull request #57855 from rzarzynski/wip-bug-66321
Laura Flores [Thu, 13 Jun 2024 14:56:17 +0000 (09:56 -0500)]
Merge pull request #57855 from rzarzynski/wip-bug-66321

qa/rados: don't pass --max_attr_len to ceph_test_rados unconditionally

13 months agomgr/smb: share and cluster create commands only create resources 57293/head
John Mulligan [Wed, 1 May 2024 14:57:02 +0000 (10:57 -0400)]
mgr/smb: share and cluster create commands only create resources

Prior to this change the create commands could be used counter to the
term 'create' as a create-or-update command. IMO this violates the
principle of least surprise so make them create-only.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
13 months agomgr/smb: add a unit test to cover apply func create_only argument
John Mulligan [Wed, 1 May 2024 14:55:34 +0000 (10:55 -0400)]
mgr/smb: add a unit test to cover apply func create_only argument

Signed-off-by: John Mulligan <jmulligan@redhat.com>
13 months agomgr/smb: add create_only arg for handler apply function
John Mulligan [Wed, 1 May 2024 14:55:27 +0000 (10:55 -0400)]
mgr/smb: add create_only arg for handler apply function

Add a create_only argument to the handler class apply function. This
flag is used to prevent modification of existing resources. This flag
will be use by 'cluster create' and 'share create' commands to make
them true to their names and not sneaky modify-or-create commands.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
13 months agomgr/smb: cache new and stored keys separately in the staging area
John Mulligan [Wed, 1 May 2024 14:55:14 +0000 (10:55 -0400)]
mgr/smb: cache new and stored keys separately in the staging area

We would like a quick way of determining what is new. Add methods to the
staging area class to make it possible to do so using (cached) keys.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
13 months agomgr/dashboard: Configure NVMe/TCP 57801/head
Afreen [Fri, 31 May 2024 07:54:27 +0000 (13:24 +0530)]
mgr/dashboard: Configure NVMe/TCP

Fixes https://tracker.ceph.com/issues/63686

- creation of Nvme-oF/TCP service
- deletion of Nvme-oF/TCP service
- edit/update Nvme-oF/TCP service
- added unit tests for Nvme-oF/TCP service
- changed Id -> Service Name
- added prefix of service type in service name (similar to <client.> in
  fs access)
- service name and pool are required fields for nvmeof
- placement count now takes default value as mentioned in cephadm
- slight refactors
- prepopulate serviceId for each service type setServiceId()
- in case serviceId is same as servcie type then do not add create service name with<servicetype>.<setrviceid> format

Signed-off-by: Afreen <afreen23.git@gmail.com>
13 months agorbd: include original namespace type in "rbd snap ls --all" output 57954/head
Ilya Dryomov [Mon, 10 Jun 2024 11:19:25 +0000 (13:19 +0200)]
rbd: include original namespace type in "rbd snap ls --all" output

Before (snap 22 comes from "rbd group snap create", snap 23 created
manually with "rbd snap create"):

SNAPID  NAME                                  SIZE   PROTECTED  TIMESTAMP                 NAMESPACE
    21  f7cfdcfe-5f71-40e4-be82-3fb0e7caf2aa  1 GiB             Mon Jun 10 09:23:40 2024  trash (mysnap)
    22  bd67397f-32cb-48fe-b1ac-ef6f02319239  1 GiB             Mon Jun 10 09:26:06 2024  trash (.group.2_1491b049b556_1497bf66f586)
    23  27a5f053-8431-428e-ab33-be9d8b6cf51e  1 GiB             Mon Jun 10 09:28:30 2024  trash (.group.2_1491b049b556_1497bf66f586)

After:

SNAPID  NAME                                  SIZE   PROTECTED  TIMESTAMP                 NAMESPACE
    21  f7cfdcfe-5f71-40e4-be82-3fb0e7caf2aa  1 GiB             Mon Jun 10 09:23:40 2024  trash (user mysnap)
    22  bd67397f-32cb-48fe-b1ac-ef6f02319239  1 GiB             Mon Jun 10 09:26:06 2024  trash (group .group.2_1491b049b556_1497bf66f586)
    23  27a5f053-8431-428e-ab33-be9d8b6cf51e  1 GiB             Mon Jun 10 09:28:30 2024  trash (user .group.2_1491b049b556_1497bf66f586)

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
13 months agolibrbd: add rbd_snap_get_trash_namespace2() API to return full namespace
Ilya Dryomov [Fri, 7 Jun 2024 10:12:29 +0000 (12:12 +0200)]
librbd: add rbd_snap_get_trash_namespace2() API to return full namespace

The existing rbd_snap_get_trash_namespace() API returns only the
original name of the deleted snapshot, omitting its namespace type.
While non-user snapshots have distinctive names, there is nothing
preventing the user from creating user snapshots with identical names
(i.e. starting with ".group" or ".mirror" prefix).  After cloning from
non-user snapshots is allowed, it's possible for such user snapshots to
get mixed up with non-user snapshots in the trash, so let's provide
means for disambiguation.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
13 months agoqa/workunits/rbd: fix bogus grep -v asserts in test_clone()
Ilya Dryomov [Thu, 30 May 2024 14:54:53 +0000 (16:54 +0200)]
qa/workunits/rbd: fix bogus grep -v asserts in test_clone()

The intent of "rbd ls | grep -v clone" was probably to check that an
image with the name "clone" shows up in rbd2 pool and not in rbd pool.
However, it's very far from that -- "grep -v clone" would succeed
regardless because of an image with the name "test1" in rbd pool.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
13 months agorbd: add --snap-id option to "rbd clone"
Ilya Dryomov [Thu, 30 May 2024 09:38:53 +0000 (11:38 +0200)]
rbd: add --snap-id option to "rbd clone"

Enable cloning from non-user snapshots via the CLI.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
13 months agorbd: pass ArgumentModifier to add_snap_id_option()
Ilya Dryomov [Thu, 30 May 2024 09:34:40 +0000 (11:34 +0200)]
rbd: pass ArgumentModifier to add_snap_id_option()

Make ARGUMENT_MODIFIER_DEST synonymous to ARGUMENT_MODIFIER_NONE as
there is no use case for a destination snap ID for now.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
13 months agotracing: rename parent/child_id fields on librbd clone tracepoints
Ilya Dryomov [Fri, 24 May 2024 10:19:14 +0000 (12:19 +0200)]
tracing: rename parent/child_id fields on librbd clone tracepoints

Make it clear that these are pool IDs, referring to the same pool(s) as
parent/child_pool_name fields.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
13 months agolibrbd: add rbd_clone4() API to take parent snapshot by ID
Ilya Dryomov [Fri, 24 May 2024 10:06:09 +0000 (12:06 +0200)]
librbd: add rbd_clone4() API to take parent snapshot by ID

Allow cloning from non-user snapshots -- namely snapshots in group
and mirror namespaces.  The motivation is to provide a building block
for cloning new groups from group snapshots ("rbd group snap create").
Otherwise, group snapshots as they are today can be used only for
rolling back the group as a whole, which is very limiting.

While at it, there doesn't seem to be anything wrong with making it
possible to clone from mirror snapshots as well.

Snapshots in a trash namespace can't be cloned from since they are
considered to be deleted.

Cloning from non-user snapshots is limited to clone v2 just because
protecting/unprotecting is limited to snapshots in a user namespace.
This happens to simplify some invariants.

Fixes: https://tracker.ceph.com/issues/64662
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
13 months agopybind/rbd: expand what get_parent_image_spec() returns
Ilya Dryomov [Sun, 9 Jun 2024 08:08:00 +0000 (10:08 +0200)]
pybind/rbd: expand what get_parent_image_spec() returns

Propagate everything there is in rbd_linked_image_spec_t and
rbd_snap_spec_t structures returned by the C API.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
13 months agolibrbd: replace assert with error check in clone()
Ilya Dryomov [Thu, 11 Apr 2024 16:56:15 +0000 (18:56 +0200)]
librbd: replace assert with error check in clone()

With an error check for p_snap_name, it doesn't make much sense to
crash if "either p_id or p_name" contract is violated.  Replace the
assert with a similar error check.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
13 months agolibrbd: fix error message in handle_attach_child()
Ilya Dryomov [Thu, 11 Apr 2024 15:12:25 +0000 (17:12 +0200)]
librbd: fix error message in handle_attach_child()

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
13 months agoMerge pull request #58007 from zdover23/wip-doc-2024-06-13-rados-operations
Anthony D'Atri [Thu, 13 Jun 2024 12:02:57 +0000 (08:02 -0400)]
Merge pull request #58007 from zdover23/wip-doc-2024-06-13-rados-operations

doc/rados: add pg-states and pg-concepts to tree

13 months agoMerge pull request #57992 from afreen23/wip-fix-test
Pedro Gonzalez Gomez [Thu, 13 Jun 2024 11:56:59 +0000 (13:56 +0200)]
Merge pull request #57992 from afreen23/wip-fix-test

mgr/dashboard: Fix login and notification e2e tests

Reviewed-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
13 months agodoc/rados: add pg-states and pg-concepts to tree 58007/head
Zac Dover [Thu, 13 Jun 2024 11:29:47 +0000 (21:29 +1000)]
doc/rados: add pg-states and pg-concepts to tree

Add "pg-states" and "pg-concepts" to the left tree pane on
docs.ceph.com.

This commit has been made in response to a request from the upstream
made in https://pad.ceph.com/p/Report_Documentation_Bugs.

Signed-off-by: Zac Dover <zac.dover@proton.me>
13 months agomgr/dashboard: carbon initial setup 57690/head
Ivo Almeida [Wed, 15 May 2024 08:42:47 +0000 (09:42 +0100)]
mgr/dashboard: carbon initial setup

* replace header and side navigation by carbon components
* added carbon specifc style overrides
* added carbon icons
* created custom theme based on current color scheme

Fixes: https://tracker.ceph.com/issues/66217
Signed-off-by: Ivo Almeida <ialmeida@redhat.com>
13 months agorgw: do not assert on thread name setting failures 57969/head
Yuval Lifshitz [Tue, 11 Jun 2024 15:12:01 +0000 (15:12 +0000)]
rgw: do not assert on thread name setting failures

Fixes: https://tracker.ceph.com/issues/64305
Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
13 months agoMerge pull request #57925 from guits/cv-fix-version-checking
Guillaume Abrioux [Thu, 13 Jun 2024 07:25:56 +0000 (09:25 +0200)]
Merge pull request #57925 from guits/cv-fix-version-checking

ceph-volume: fix set_dmcrypt_no_workqueue()

13 months agoMerge pull request #57486 from ljflores/wip-tracker-66019
Laura Flores [Thu, 13 Jun 2024 05:53:42 +0000 (00:53 -0500)]
Merge pull request #57486 from ljflores/wip-tracker-66019

13 months agoMerge pull request #57856 from athanatos/sjust/wip-66226-ec-crc
Samuel Just [Thu, 13 Jun 2024 00:44:51 +0000 (17:44 -0700)]
Merge pull request #57856 from athanatos/sjust/wip-66226-ec-crc

test/librados: fix LibRadosIoECPP.CrcZeroWrite

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
13 months agoMerge pull request #57934 from ljflores/wip-tracker-66398
Laura Flores [Wed, 12 Jun 2024 19:11:50 +0000 (14:11 -0500)]
Merge pull request #57934 from ljflores/wip-tracker-66398

qa/suites/rados/thrash-old-clients: update supported releases and distro

13 months agoMerge PR #57963 into main
Patrick Donnelly [Wed, 12 Jun 2024 16:47:50 +0000 (12:47 -0400)]
Merge PR #57963 into main

* refs/pull/57963/head:
srcipt/ceph-backports: add redmine ticket's JSON to debug output

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
13 months agoMerge pull request #56906 from dang/wip-dang-65471
Daniel Gryniewicz [Wed, 12 Jun 2024 16:06:34 +0000 (12:06 -0400)]
Merge pull request #56906 from dang/wip-dang-65471

RGW - Remove potential string overflow in POSIXDriver

Reviewed-by: Casey Bodley <cbodley@redhat.com>
13 months agomgr/dashboard: Fix login and notification e2e tests 57992/head
Afreen Misbah [Wed, 12 Jun 2024 15:50:04 +0000 (21:20 +0530)]
mgr/dashboard: Fix login and notification e2e tests

Fixes https://tracker.ceph.com/issues/66453

- `#rbdMirroring` checkbox is not found due to which both of these tests are failing on most of the Prs
- this is due to the pool helper function which checks for an existing app passed in parameter
- if app is not found, then mirroring checkbox remains hidden

Signed-off-by: Afreen Misbah <afreen23.git@gmail.com>
13 months agoMerge pull request #57601 from guits/cephadm-hostspec-fixes
Adam King [Wed, 12 Jun 2024 15:25:45 +0000 (11:25 -0400)]
Merge pull request #57601 from guits/cephadm-hostspec-fixes

cephadm: _extract_host_info_from_*() refactor

Reviewed-by: John Mulligan <jmulligan@redhat.com>
13 months agoMerge pull request #57807 from ifed01/wip-ifed-cephvol-zap-after-migrate
Guillaume Abrioux [Wed, 12 Jun 2024 15:21:47 +0000 (17:21 +0200)]
Merge pull request #57807 from ifed01/wip-ifed-cephvol-zap-after-migrate

ceph-volume: do source devices zapping if they're detached.

13 months agoMerge pull request #57889 from idryomov/wip-66359
Ilya Dryomov [Wed, 12 Jun 2024 13:52:17 +0000 (15:52 +0200)]
Merge pull request #57889 from idryomov/wip-66359

pybind/rbd: parse access and modify timestamps in UTC

Reviewed-by: Ramana Raja <rraja@redhat.com>
13 months agoMerge pull request #57759 from guojidan/group-info
Ilya Dryomov [Wed, 12 Jun 2024 13:50:11 +0000 (15:50 +0200)]
Merge pull request #57759 from guojidan/group-info

rbd: add group info command to output group id

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Ramana Raja <rraja@redhat.com>
13 months agoMerge PR #57979 into main
Patrick Donnelly [Wed, 12 Jun 2024 13:46:27 +0000 (09:46 -0400)]
Merge PR #57979 into main

* refs/pull/57979/head:
test/ smb: modify source_type to fix run-tox-mgr failed

Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
Reviewed-by: Adam King <adking@redhat.com>
13 months agoMerge pull request #57536 from kchheda3/wip-fix-persistent-queue-regression
Casey Bodley [Wed, 12 Jun 2024 13:33:08 +0000 (14:33 +0100)]
Merge pull request #57536 from kchheda3/wip-fix-persistent-queue-regression

 rgw/notification: Store the value of `persistent_queue` for existing topics and continue commiting events for all topics subscribed to given bucket

Reviewed-by: Yuval Lifshitz <ylifshit@redhat.com>
13 months agounittest_osdmap aborted during OSDMapTest.BUG_42485 57988/head
Mohit Agrawal [Wed, 12 Jun 2024 11:49:18 +0000 (17:19 +0530)]
unittest_osdmap aborted during OSDMapTest.BUG_42485

The testcase is aborted during the call of clean_upmap_tp
thread. The function(clean_pg_upmaps) spawns a number
of worker threads to process a PGMapper job. The worker
thread fetch a job from the queue and then process the
job and call process_finish the job. The process function
of PGMapper class destroying the object and as worker thread
call _process_finish function it crashes because job pointer
has become a dangling pointer.

Solution: To avoid a crash destroy the object in  _process_finish
          instead of doing in _process.

Fixes: https://tracker.ceph.com/issues/62934
Signed-off-by: Mohit Agrawal <moagrawa@redhat.com>
13 months agosrcipt/ceph-backports: add redmine ticket's JSON to debug output 57963/head
Rishabh Dave [Tue, 11 Jun 2024 06:13:30 +0000 (11:43 +0530)]
srcipt/ceph-backports: add redmine ticket's JSON to debug output

Add ticket received as JSON to debug output of ceph-backports.sh since
it is pretty helpful while debugging errors related to ticket's field.

This issue was discovered while running -
./src/script/ceph-backport.sh <tracker-num> --existing-pr <pr-num> --debug

Signed-off-by: Rishabh Dave <ridave@redhat.com>
13 months agoMerge pull request #57976 from zdover23/wip-doc-2024-06-12-glossary
Zac Dover [Wed, 12 Jun 2024 09:33:59 +0000 (19:33 +1000)]
Merge pull request #57976 from zdover23/wip-doc-2024-06-12-glossary

doc/glossary: Add "S3"

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
13 months agotest/ smb: modify source_type to fix run-tox-mgr failed 57979/head
Rongqi Sun [Wed, 12 Jun 2024 02:48:59 +0000 (02:48 +0000)]
test/ smb: modify source_type to fix run-tox-mgr failed

source_type should be resource
fixes: https://tracker.ceph.com/issues/66437

Signed-off-by: Rongqi Sun <sunrongqi@huawei.com>
13 months agodoc/glossary: Add "S3" 57976/head
Zac Dover [Tue, 11 Jun 2024 23:11:35 +0000 (09:11 +1000)]
doc/glossary: Add "S3"

Add "S3" entry to the glossary.

Signed-off-by: Zac Dover <zac.dover@proton.me>
13 months agocephadm: rename test_enclosure to test_host_facts 57955/head
John Mulligan [Mon, 10 Jun 2024 18:36:33 +0000 (14:36 -0400)]
cephadm: rename test_enclosure to test_host_facts

There was a whole file dedicated to the enclosure class from host_facts,
but no other tests for host facts. Rename the enclosure test file to
cover all of host_facts module (for the future).

Signed-off-by: John Mulligan <jmulligan@redhat.com>
13 months agocephadm: black-format the file test_enclosure.py
John Mulligan [Mon, 10 Jun 2024 18:32:34 +0000 (14:32 -0400)]
cephadm: black-format the file test_enclosure.py

A bunch of stray whitespace in this file called out to be cleaned up.
Black did that job and fixed up some other formatting stuff.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
13 months agocephadm: update hosts_facts to read apparmor profile names with spaces
John Mulligan [Mon, 10 Jun 2024 18:30:31 +0000 (14:30 -0400)]
cephadm: update hosts_facts to read apparmor profile names with spaces

Fixes: https://tracker.ceph.com/issues/66389
Update the host_facts class kernel_security method to correctly read
apparmor profile names that have spaces in them. Update the test to
verify this functionality.

Original-version-by: Sebastian Marsching <sebastian.marsching-git-2016@aquenos.com>
Signed-off-by: John Mulligan <jmulligan@redhat.com>
13 months agocephadm: add a test case to cover reading apparmor profiles
John Mulligan [Mon, 10 Jun 2024 18:27:51 +0000 (14:27 -0400)]
cephadm: add a test case to cover reading apparmor profiles

Add a test case that covers the HostFacts functionality regarding
the apparmor kernel security (lsm) feature.
Put it in the test_enclosure.py file for now because enclosure is
part of host_facts module.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
13 months agomgr/dashboard: apply replication policy for a bucket 57713/head
Nizamudeen A [Fri, 24 May 2024 14:20:11 +0000 (19:50 +0530)]
mgr/dashboard: apply replication policy for a bucket

On a normal multisite configured cluster, you can create a bucket with
this replication enabled which will stop the normal syncing and starts
doing the granular bucket syncing; meaning only the bucket with the
replication enabled will be syncing to the secondary site.

To enable replication, there should be a group policy created in the
primary site. If no group policy is there, the dashboard will create
one with bidirectional rule and add all the zones in the zonegroup for
syncing.

Fixes: https://tracker.ceph.com/issues/66239
Signed-off-by: Nizamudeen A <nia@redhat.com>
13 months agoMerge pull request #57106 from phlogistonjohn/jjm-mgr-quiet-notify-types-err
Adam King [Tue, 11 Jun 2024 16:42:28 +0000 (12:42 -0400)]
Merge pull request #57106 from phlogistonjohn/jjm-mgr-quiet-notify-types-err

mgr: do not require NOTIFY_TYPES in python modules

Reviewed-by: Adam King <adking@redhat.com>
13 months agoMerge pull request #57847 from thegreenbear/keepalived-security-context
Adam King [Tue, 11 Jun 2024 16:38:41 +0000 (12:38 -0400)]
Merge pull request #57847 from thegreenbear/keepalived-security-context

cephadm/services/ingress: configure security user in keepalived template

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: John Mulligan <jmulligan@redhat.com>
13 months agoMerge pull request #57829 from gukaifeng/adjust_bootstrap_config_priorities
Adam King [Tue, 11 Jun 2024 16:33:07 +0000 (12:33 -0400)]
Merge pull request #57829 from gukaifeng/adjust_bootstrap_config_priorities

cephadm: the user config is preferred during the bootstrap

Reviewed-by: Adam King <adking@redhat.com>
13 months agoMerge pull request #57685 from tchaikov/replace-pkg_resources-with-importlib
Adam King [Tue, 11 Jun 2024 16:28:09 +0000 (12:28 -0400)]
Merge pull request #57685 from tchaikov/replace-pkg_resources-with-importlib

cephadm: use importlib.metadata for querying ceph_iscsi's version

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: John Mulligan <jmulligan@redhat.com>
13 months agoMerge pull request #57292 from adk3798/staggered-upgrade-non-ceph-daemons
Adam King [Tue, 11 Jun 2024 16:23:12 +0000 (12:23 -0400)]
Merge pull request #57292 from adk3798/staggered-upgrade-non-ceph-daemons

mgr/cephadm: make SMB and NVMEoF upgrade last in staggered upgrade

Reviewed-by: John Mulligan <jmulligan@redhat.com>
13 months agoMerge pull request #57389 from thmour/patch-1
Adam King [Tue, 11 Jun 2024 16:22:15 +0000 (12:22 -0400)]
Merge pull request #57389 from thmour/patch-1

cephadm: CephExporter doesn't bind to IPv6 in dual stack

Reviewed-by: Adam King <adking@redhat.com>
13 months agoMerge pull request #57180 from phlogistonjohn/jjm-smb-linked-res
Adam King [Tue, 11 Jun 2024 16:20:30 +0000 (12:20 -0400)]
Merge pull request #57180 from phlogistonjohn/jjm-smb-linked-res

mgr/smb: cluster linked  join auth and users/groups resource types

Reviewed-by: Adam King <adking@redhat.com>
13 months agoMerge PR #57881 into main
Patrick Donnelly [Tue, 11 Jun 2024 15:59:45 +0000 (11:59 -0400)]
Merge PR #57881 into main

* refs/pull/57881/head:
qa/tasks/vstart_runner: avoid deprecation warning

Reviewed-by: Leonid Usov <leonid.usov@ibm.com>
13 months agoceph-volume: fix set_dmcrypt_no_workqueue() 57925/head
Guillaume Abrioux [Fri, 7 Jun 2024 08:46:16 +0000 (10:46 +0200)]
ceph-volume: fix set_dmcrypt_no_workqueue()

`set_dmcrypt_no_workqueue()` from `ceph_volume.util.encryption`

The function `set_dmcrypt_no_workqueue` in `encryption.py` now
dynamically retrieves the installed cryptsetup version using `cryptsetup
--version` command. It then parses the version string using a regular
expression to accommodate varying digit counts. If the retrieved version
is greater than or equal to the specified target version,
`conf.dmcrypt_no_workqueue` is set to True, allowing for flexible version
handling.

Fixes: https://tracker.ceph.com/issues/66393
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
13 months agomgr/dashboard: add dueTime to rgw bucket validator 57698/head
Nizamudeen A [Fri, 24 May 2024 15:16:17 +0000 (20:46 +0530)]
mgr/dashboard: add dueTime to rgw bucket validator

the unique async validator which checks if the typed bucket is existing
or not in the bucket creation form sends a request to the backend on
each keystroke. Each keystroke will raise an exception if the bucket is
not found.

Fixes: https://tracker.ceph.com/issues/66221
Signed-off-by: Nizamudeen A <nia@redhat.com>
13 months agoMerge pull request #57319 from TRYTOBE8TME/wip-bug-59488
Yuval Lifshitz [Tue, 11 Jun 2024 14:21:05 +0000 (17:21 +0300)]
Merge pull request #57319 from TRYTOBE8TME/wip-bug-59488

src/rgw: Fixing event name

13 months agoMerge pull request #57931 from rhcs-dashboard/bucket-policy-other-daemon
Nizamudeen A [Tue, 11 Jun 2024 14:10:51 +0000 (19:40 +0530)]
Merge pull request #57931 from rhcs-dashboard/bucket-policy-other-daemon

mgr/dashboard: fix edit bucket failing in other selected gateways

Reviewed-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
Reviewed-by: Ankush Behl <cloudbehl@gmail.com>
13 months agovstart.sh: add options to set number of alien threads, and number of cpu cores for... 57359/head
Jose J Palacios-Perez [Wed, 8 May 2024 12:48:18 +0000 (13:48 +0100)]
vstart.sh: add options to set number of alien threads, and number of cpu cores for alien threads

Signed-off-by: Jose J Palacios-Perez <perezjos@uk.ibm.com>
13 months agocrimson/osd/osd_operations/client_request: check "can_serve_replica_reads" before... 57367/head
Xuehan Xu [Thu, 9 May 2024 02:24:26 +0000 (10:24 +0800)]
crimson/osd/osd_operations/client_request: check "can_serve_replica_reads" before getting obc

Fixes: https://tracker.ceph.com/issues/65872
Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
13 months agoMerge pull request #57957 from zdover23/wip-doc-2024-06-11-rados-troubleshooting-mon
Anthony D'Atri [Mon, 10 Jun 2024 22:46:59 +0000 (18:46 -0400)]
Merge pull request #57957 from zdover23/wip-doc-2024-06-11-rados-troubleshooting-mon

doc/rados: improve leader/peon monitor explanation

13 months agoqa/suites/rados/thrash-old-clients: update supported releases and distro 57934/head
Laura Flores [Fri, 7 Jun 2024 17:30:33 +0000 (12:30 -0500)]
qa/suites/rados/thrash-old-clients: update supported releases and distro

thrash-old-clients tests should only support N-3 releases. To fix this for
main, I have removed all releases < quincy and have added squid.

Also, we are fully switching to centos.9_stream packages/containers after
the centos.8_stream end of life, so I changed the distro from centos.8_stream
to centos.9_stream.

*** Note: If this commit is backported, it should be done in such a way that
only releases >= quincy reference centos.9_stream. For instance, if backporting to squid,
a reef/squid thrash test is okay to make references to centos.9_stream since both reef and
squid support this, but a pacific/squid test will have to take a different approach
since pacific does not support centos.9_stream.

Fixes: https://tracker.ceph.com/issues/66398
Signed-off-by: Laura Flores <lflores@ibm.com>
13 months agodoc/rados: improve leader/peon monitor explanation 57957/head
Zac Dover [Mon, 10 Jun 2024 22:00:00 +0000 (08:00 +1000)]
doc/rados: improve leader/peon monitor explanation

Add an explanation of leader-peon conditions that obtain when the
cluster is in the "HEALTH_OK" state. Previously, the text discussed
these two monitor states only in the context of a health detail entry.

This improvement to the documentation was suggested on the [ceph-users]
email list by Joel Davidow. This email, an absolute model of user
engagement with an upstream project, can be reviewed here: https://lists.ceph.io/hyperkitty/list/ceph-users@ceph.io/message/KF67F5TXFSSTPXV7EKL6JKLA5KZQDLDQ/

I will list Joel Davidow here as the co-author for the sake of more
expediently getting this change into the documentation, but though he is
listed as the co-author, he is the true author.

Co-authored-by: Joel Davidow <jdavidow@nso.edu>
Signed-off-by: Zac Dover <zac.dover@proton.me>
13 months agoMerge pull request #56744 from benhanokh/ncb_async_discard_fix
Yuri Weinstein [Mon, 10 Jun 2024 19:42:47 +0000 (12:42 -0700)]
Merge pull request #56744 from benhanokh/ncb_async_discard_fix

os/BlueStore: NCB fix for leaked space when bdev_async_discard is ena…

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
Reviewed-by: Ronen Friedman <rfriedma@redhat.com>
Reviewed-by: Joshua Baergen <jbaergen@digitalocean.com>
13 months agoMerge pull request #53477 from jianwei1216/fix_msgr_worker_cpu_high
Yuri Weinstein [Mon, 10 Jun 2024 19:39:45 +0000 (12:39 -0700)]
Merge pull request #53477 from jianwei1216/fix_msgr_worker_cpu_high

src/msg: fix high CPU consumption of msgr worker thread

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
Reviewed-by: Mark Nelson <mnelson@redhat.com>