]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
4 months agoceph-volume: update lvm batch unit tests 61976/head
Guillaume Abrioux [Mon, 24 Feb 2025 12:16:05 +0000 (12:16 +0000)]
ceph-volume: update lvm batch unit tests

This adds the recently `has_block_db_size_without_db_devices` attribute to the
mocked `args` object for lvm batch unit tests.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
4 months agoMerge pull request #61668 from badone/wip-fix-rados-verify-cluster-selection
Matan Breizman [Mon, 24 Feb 2025 09:43:13 +0000 (11:43 +0200)]
Merge pull request #61668 from badone/wip-fix-rados-verify-cluster-selection

qa/suites/rados/verify: Allow selection of 2 or 4 node cluster

Reviewed-by: Laura Flores <lflores@redhat.com>
4 months agoMerge pull request #61196 from xxhdx1985126/wip-crimson-mgr-dynamic-perf-report
Matan Breizman [Mon, 24 Feb 2025 09:42:37 +0000 (11:42 +0200)]
Merge pull request #61196 from xxhdx1985126/wip-crimson-mgr-dynamic-perf-report

crimson/osd: support mgr's dynamic perf stats

Reviewed-by: Samuel Just <sjust@redhat.com>
4 months agoMerge pull request #60185 from xxhdx1985126/wip-68306
Matan Breizman [Mon, 24 Feb 2025 09:41:55 +0000 (11:41 +0200)]
Merge pull request #60185 from xxhdx1985126/wip-68306

crimson/osd/pg_recovery: trigger BackfillState events synchronously

Reviewed-by: Matan Breizman <mbreizma@redhat.com>
Reviewed-by: Radosław Zarzyński <rzarzyns@redhat.com>
4 months agoMerge pull request #61848 from guits/split-db-block-collocated
Guillaume Abrioux [Mon, 24 Feb 2025 08:34:26 +0000 (09:34 +0100)]
Merge pull request #61848 from guits/split-db-block-collocated

ceph-volume: support splitting db even on collocated scenario

4 months agoMerge pull request #61941 from ronen-fr/wip-rf-test-match
Ronen Friedman [Mon, 24 Feb 2025 08:30:20 +0000 (10:30 +0200)]
Merge pull request #61941 from ronen-fr/wip-rf-test-match

qa/standalone/scrub: retry in TEST_abort_periodic_for_operator()

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 months agoMerge pull request #61899 from rhcs-dashboard/disable-deleting-bucket-with-objects
Aashish Sharma [Mon, 24 Feb 2025 06:19:17 +0000 (11:49 +0530)]
Merge pull request #61899 from rhcs-dashboard/disable-deleting-bucket-with-objects

mgr/dashboard: disable deleting bucket with objects

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
4 months agoMerge pull request #61893 from laimis9133/main
Nizamudeen A [Mon, 24 Feb 2025 05:06:12 +0000 (10:36 +0530)]
Merge pull request #61893 from laimis9133/main

mgr/dashboard: update openapi specification for /api/cluster/user/export

Reviewed-by: Anthony D Atri <anthony.datri@gmail.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
4 months agoMerge pull request #60872 from ronen-fr/wip-rf-repaironly
Ronen Friedman [Sun, 23 Feb 2025 14:31:28 +0000 (16:31 +0200)]
Merge pull request #60872 from ronen-fr/wip-rf-repaironly

osd/scrub: remove config option osd_repair_during_recovery
Reviewed-by: Samuel Just <sjust@redhat.com>
4 months agoMerge pull request #61950 from anthonyeleven/improve-rgw-yaml
Anthony D'Atri [Fri, 21 Feb 2025 13:51:28 +0000 (08:51 -0500)]
Merge pull request #61950 from anthonyeleven/improve-rgw-yaml

src/common/options: Improve descriptions in rgw.yaml.in

4 months agodoc: fix syntax (squash this) 61950/head
Zac Dover [Fri, 21 Feb 2025 04:38:23 +0000 (14:38 +1000)]
doc: fix syntax (squash this)

Signed-off-by: Zac Dover <zac.dover@gmail.com>
4 months agodoc: fixup (squash this)
Zac Dover [Fri, 21 Feb 2025 03:47:07 +0000 (13:47 +1000)]
doc: fixup (squash this)

Remove a colon from a yaml field that will not accept a colon.

Signed-off-by: Zac Dover <zac.dover@proton.me>
4 months agoMerge pull request #61948 from anthonyeleven/osd-rst-reimprove
Zac Dover [Fri, 21 Feb 2025 03:10:45 +0000 (13:10 +1000)]
Merge pull request #61948 from anthonyeleven/osd-rst-reimprove

doc/cephadm/services: Re-improve osd.rst

Reviewed-by: Mike Perez <thingee@gmail.com>
4 months agomgr/dashboard: update openapi specification for /api/cluster/user/export 61893/head
Laimis Juzeliūnas [Wed, 19 Feb 2025 09:58:56 +0000 (11:58 +0200)]
mgr/dashboard: update openapi specification for /api/cluster/user/export

This commit updates the openapi specification for /api/cluster/user/export endpoint to reflect the current api behaviour.

Fixes: https://tracker.ceph.com/issues/70043
Signed-off-by: Laimis Juzeliunas <laimis.juzeliunas@oxylabs.io>
4 months agosrc/common/options: Improve descriptions in rgw.yaml.in
Anthony D'Atri [Thu, 20 Feb 2025 21:34:28 +0000 (16:34 -0500)]
src/common/options: Improve descriptions in rgw.yaml.in

Signed-off-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
4 months agodoc/cephadm/services: Re-improve osd.rst 61948/head
Anthony D'Atri [Thu, 20 Feb 2025 21:13:44 +0000 (16:13 -0500)]
doc/cephadm/services: Re-improve osd.rst

Signed-off-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
4 months agoMerge pull request #61870 from afreen23/backward-compatibility
afreen23 [Thu, 20 Feb 2025 17:42:55 +0000 (23:12 +0530)]
Merge pull request #61870 from afreen23/backward-compatibility

mgr/dashboard: Make API backward compatible with size param change

Reviewed-by: Afreen Misbah <afreen@ibm.com>
4 months agoqa/standalone/scrub: retry in TEST_abort_periodic_for_operator() 61941/head
Ronen Friedman [Thu, 20 Feb 2025 16:15:44 +0000 (10:15 -0600)]
qa/standalone/scrub: retry in TEST_abort_periodic_for_operator()

The scenario created in the test requires two PGs that share the same
Primary, and at least one more member of their active sets.
The PR handles the (unlikely) case where the first PG tried does not
have a counterpart that matches the requirements.

A minor related fix in scrub-helpers.sh: using 'printf' to
return a value, instead of an out (ref) parameter.

Fixes: https://tracker.ceph.com/issues/69837
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
4 months agoMerge pull request #61880 from idryomov/wip-70041
Ilya Dryomov [Thu, 20 Feb 2025 15:14:12 +0000 (16:14 +0100)]
Merge pull request #61880 from idryomov/wip-70041

test/rbd_mirror: clear Namespace::s_instance at the end of a test

Reviewed-by: Vinay Bhaskar Varada <vvarada@redhat.com>
4 months agoMerge pull request #61841 from MaxKellermann/librbd__unordered_map
Ilya Dryomov [Thu, 20 Feb 2025 15:08:33 +0000 (16:08 +0100)]
Merge pull request #61841 from MaxKellermann/librbd__unordered_map

include/unordered_{map,set}: remove, use `std` directly instead

Reviewed-by: Ronen Friedman <rfriedma@redhat.com>
Reviewed-by: Adam Emerson <aemerson@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
4 months agoMerge pull request #61315 from rhcs-dashboard/smb-join_auth-usersgroups-form-actions
Pedro Gonzalez Gomez [Thu, 20 Feb 2025 14:08:31 +0000 (15:08 +0100)]
Merge pull request #61315 from rhcs-dashboard/smb-join_auth-usersgroups-form-actions

mgr/dashboard: add actions for smb join-auth and usersgroups resources mgmt also updates smb cluster form

Reviewed-by: Afreen Misbah <afreen@ibm.com>
4 months agoceph-volume: migrate unit tests from 'mock' to 'unittest.mock' 61848/head
Guillaume Abrioux [Mon, 17 Feb 2025 12:43:14 +0000 (12:43 +0000)]
ceph-volume: migrate unit tests from 'mock' to 'unittest.mock'

unit tests in ceph-volume was still using the external 'mock' library
for unit tests, which is unnecessary since 'unittest.mock' is part
of the Python standard library (available since Python 3.3).
This commit updates all imports to use 'unittest.mock' instead,
ensuring better maintainability and removing the need for an extra
dependency.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
4 months agoceph-volume: refactor get_physical_osds()
Guillaume Abrioux [Fri, 14 Feb 2025 12:34:50 +0000 (12:34 +0000)]
ceph-volume: refactor get_physical_osds()

This refactors `get_physical_osds()`.
The calculation of `data_slots` is now more concise. The handling of
`dev_size`, `rel_data_size`, and `abs_size` is standardized.
The initialization of `free_size` is moved outside the loop
for clarity. Redundant checks and assignments are removed to simplify
the code.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
4 months agoceph-volume: support splitting db even on collocated scenario
Guillaume Abrioux [Tue, 11 Feb 2025 16:00:51 +0000 (16:00 +0000)]
ceph-volume: support splitting db even on collocated scenario

This change enables ceph-volume to create OSDs where the DB is
explicitly placed on a separate LVM partition, even in collocated
scenarios (i.e., block and DB on the same device).
This helps mitigate BlueStore fragmentation issues.

Given that ceph-volume can't automatically predict a proper default size for the db device,
the idea is to use the `--block-db-size` parameter:

Passing `--block-db-size` and `--db-devices` makes ceph-volume create db devices
on dedicated devices (current implementation):

```
Total OSDs: 2

  Type            Path                                                    LV Size         % of device
----------------------------------------------------------------------------------------------------
  data            /dev/vdb                                                200.00 GB       100.00%
  block_db        /dev/vdd                                                4.00 GB         2.00%
----------------------------------------------------------------------------------------------------
  data            /dev/vdc                                                200.00 GB       100.00%
  block_db        /dev/vdd                                                4.00 GB         2.00%
```

Passing `--block-db-size` without `--db-devices` makes ceph-volume create a separate
LV for db device on the same device (new behavior):
```
Total OSDs: 2

  Type            Path                                                    LV Size         % of device
----------------------------------------------------------------------------------------------------
  data            /dev/vdb                                                196.00 GB       98.00%
  block_db        /dev/vdb                                                4.00 GB         2.00%
----------------------------------------------------------------------------------------------------
  data            /dev/vdc                                                196.00 GB       98.00%
  block_db        /dev/vdc                                                4.00 GB         2.00%
```

This new behavior is supported with the `--osds-per-device` parameter:

```
Total OSDs: 4

  Type            Path                                                    LV Size         % of device
----------------------------------------------------------------------------------------------------
  data            /dev/vdb                                                96.00 GB        48.00%
  block_db        /dev/vdb                                                4.00 GB         2.00%
----------------------------------------------------------------------------------------------------
  data            /dev/vdb                                                96.00 GB        48.00%
  block_db        /dev/vdb                                                4.00 GB         2.00%
----------------------------------------------------------------------------------------------------
  data            /dev/vdc                                                96.00 GB        48.00%
  block_db        /dev/vdc                                                4.00 GB         2.00%
----------------------------------------------------------------------------------------------------
  data            /dev/vdc                                                96.00 GB        48.00%
  block_db        /dev/vdc                                                4.00 GB         2.00%
```

Fixes: https://tracker.ceph.com/issues/69996
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
4 months agoceph-volume: enhance BlockSysFs
Guillaume Abrioux [Mon, 10 Feb 2025 16:29:04 +0000 (16:29 +0000)]
ceph-volume: enhance BlockSysFs

This refactores `BlockSysFs` to introduce `_get_sysfs_file_content()` for
retrieving sysfs file contents in a cleaner and reusable way.

It renames `self.sys_dev_block` to `self.sys_dev_block_dir` for clarity.
I've added `_get_sysfs_file_content()` to centralize sysfs file reads.

3 new methodes are introduced:
`blocks`, `logical_block_size`, and `size` properties for computing block
device size in a structured manner.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
4 months agoMerge pull request #59615 from xxhdx1985126/wip-63844-67916
Matan Breizman [Thu, 20 Feb 2025 10:20:32 +0000 (12:20 +0200)]
Merge pull request #59615 from xxhdx1985126/wip-63844-67916

crimson/osd/recovery_backend: always set the primary osd's BackfillInterval::version to the last_update before the backfill scan

Reviewed-by: Samuel Just <sjust@redhat.com>
4 months agoMerge pull request #61225 from rhcs-dashboard/rgw-ratelimit-integration1
Nizamudeen A [Thu, 20 Feb 2025 09:10:28 +0000 (14:40 +0530)]
Merge pull request #61225 from rhcs-dashboard/rgw-ratelimit-integration1

mgr/dashboard: Rgw ratelimit feature for user and bucket

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Ankush Behl <cloudbehl@gmail.com>
Reviewed-by: Mark Nelson <mnelson@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Naman Munet <nmunet@redhat.com>
4 months agoqa/standalone/scrub: fix osd-scrub-repair() 60872/head
Ronen Friedman [Mon, 17 Feb 2025 14:58:41 +0000 (08:58 -0600)]
qa/standalone/scrub: fix osd-scrub-repair()

following changes to 'scrub while recovering' logic, the
'what type of scrubs are allowed to run when recovering'
tests were broken, and are now fixed.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
4 months agoqa/standalone/scrub: expand standard_scrub_cluster()
Ronen Friedman [Mon, 17 Feb 2025 14:51:28 +0000 (08:51 -0600)]
qa/standalone/scrub: expand standard_scrub_cluster()

Expand scrub-helpers.sh::standard_scrub_cluster() to cater for
non-standard (i.e. - not "3") pool default size. Also - to
allow clients to specify a "nopool" pool name, preventing the
automatic creation of a pool.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
4 months agoosd/scrub: remove config option osd_repair_during_recovery
Ronen Friedman [Sun, 24 Nov 2024 14:27:38 +0000 (08:27 -0600)]
osd/scrub: remove config option osd_repair_during_recovery

The option was used to allow repair to be explicitly ordered by the
operator, even if the Primary OSD was in the middle of a recovery.
This is no longer necessary, as the code now accepts both repair and
scrub operator requests, even during recovery.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
4 months agomgr/dashboard: add actions to create, edit and delete smb join-auth and usersgroups... 61315/head
Pedro Gonzalez Gomez [Fri, 10 Jan 2025 09:23:37 +0000 (10:23 +0100)]
mgr/dashboard: add actions to create, edit and delete smb join-auth and usersgroups resources

Add join-auth and usersgroups resources management and improve the way to select those from the smb cluster form using a dropdown.
Add option to navigate to join-auth/usersgroups resource create form from smb form
Add some additional fixes left over from previous work, such as adding helper texts or adding missing smb cluster form fields

Fixes: https://tracker.ceph.com/issues/69483
Signed-off-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
4 months agoMerge pull request #61812 from ronen-fr/wip-rf-fstab
Ronen Friedman [Thu, 20 Feb 2025 08:01:44 +0000 (10:01 +0200)]
Merge pull request #61812 from ronen-fr/wip-rf-fstab

qa/standalone: do not use /etc/fstab as an always-there bytes source
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 months agoMerge pull request #61353 from rhcs-dashboard/smb-share-delete
Pedro Gonzalez Gomez [Thu, 20 Feb 2025 07:58:11 +0000 (08:58 +0100)]
Merge pull request #61353 from rhcs-dashboard/smb-share-delete

mgr/dashboard: add smb delete share action

Reviewed-by: Afreen Misbah <afreen@ibm.com>
4 months agomgr/dashboard: disable deleting bucket with objects 61899/head
Naman Munet [Wed, 19 Feb 2025 15:14:26 +0000 (20:44 +0530)]
mgr/dashboard: disable deleting bucket with objects

Fixes: https://tracker.ceph.com/issues/70078
Signed-off-by: Naman Munet <naman.munet@ibm.com>
4 months agoinclude/unordered_{map,set}: remove, use `std` directly instead 61841/head
Max Kellermann [Mon, 17 Feb 2025 07:30:18 +0000 (08:30 +0100)]
include/unordered_{map,set}: remove, use `std` directly instead

This is only an alias for the `std` classes anyway.  This effectively
reverts commit 8e8672047ccc which added these aliases, probably
because C++11 was new and not all compilers supported it properly, but
that was 12 years ago and we're onl C++20 meanwhile.

Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
4 months agoMerge pull request #61906 from nbalacha/wip-nbalacha-70075
nbalacha [Thu, 20 Feb 2025 01:20:21 +0000 (06:50 +0530)]
Merge pull request #61906 from nbalacha/wip-nbalacha-70075

librbd: fix a crash in get_rollback_snap_id

4 months agomgr/dashboard: Make API backward compatible with size param change 61870/head
Afreen Misbah [Tue, 18 Feb 2025 11:24:19 +0000 (16:54 +0530)]
mgr/dashboard: Make API backward compatible with size param change

- We changed the api with size and now its an issue for other folks utilizing the API
- Hence making it compatible to work backwards as well

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

Signed-off-by: Afreen Misbah <afreen@ibm.com>
4 months agomgr/dashboard: add smb share delete action 61353/head
Pedro Gonzalez Gomez [Mon, 13 Jan 2025 19:28:33 +0000 (20:28 +0100)]
mgr/dashboard: add smb share delete action

Fixes: https://tracker.ceph.com/issues/69521
Signed-off-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
4 months agoMerge pull request #60610 from rzarzynski/wip-no-getval-on-osd-stats
Laura Flores [Wed, 19 Feb 2025 19:13:02 +0000 (13:13 -0600)]
Merge pull request #60610 from rzarzynski/wip-no-getval-on-osd-stats

osd: avoid costly md_config_t::get_val<>() when preparing stats

4 months agoMerge pull request #61408 from adk3798/cephadm-nvmeof-more-group-validation
Adam King [Wed, 19 Feb 2025 18:04:42 +0000 (13:04 -0500)]
Merge pull request #61408 from adk3798/cephadm-nvmeof-more-group-validation

mgr/cephadm: validate no duplicate groups and group vs. service id for nvmeof

Reviewed-by: John Mulligan <jmulligan@redhat.com>
4 months agoMerge pull request #61778 from adk3798/cephadm-double-quotes-nfs-recovery-backend
Adam King [Wed, 19 Feb 2025 18:02:44 +0000 (13:02 -0500)]
Merge pull request #61778 from adk3798/cephadm-double-quotes-nfs-recovery-backend

mgr/cephadm: use double quotes for NFSv4 RecoveryBackend in ganesha conf

Reviewed-by: John Mulligan <jmulligan@redhat.com>
4 months agoMerge pull request #61694 from rkachach/fix_issue_69863
Adam King [Wed, 19 Feb 2025 18:00:09 +0000 (13:00 -0500)]
Merge pull request #61694 from rkachach/fix_issue_69863

mgr/cephadm: reconfig rgw and ingress daemons when certificate changes

Reviewed-by: Adam King <adking@redhat.com>
4 months agoMerge pull request #61890 from zhscn/fix-clang-19
Matan Breizman [Wed, 19 Feb 2025 17:55:29 +0000 (19:55 +0200)]
Merge pull request #61890 from zhscn/fix-clang-19

crimson: fix compile errors in clang 19

Reviewed-by: Matan Breizman <mbreizma@redhat.com>
4 months agoMerge pull request #61765 from Kushal-deb/fix_orch_ls_to_display_smb_ports
Adam King [Wed, 19 Feb 2025 17:51:00 +0000 (12:51 -0500)]
Merge pull request #61765 from Kushal-deb/fix_orch_ls_to_display_smb_ports

cephadm: ceph orch ls to Display SMB Service Ports

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: John Mulligan <jmulligan@redhat.com>
4 months agoMerge pull request #61749 from rhcs-dashboard/sqlite-recursive-error-fix
Adam King [Wed, 19 Feb 2025 16:13:26 +0000 (11:13 -0500)]
Merge pull request #61749 from rhcs-dashboard/sqlite-recursive-error-fix

mgr/smb: add threading lock for SqliteStore

Reviewed-by: John Mulligan <jmulligan@redhat.com>
4 months agoMerge pull request #61833 from Kushal-deb/add_v4v6_flag_to_bind_port
Adam King [Wed, 19 Feb 2025 16:10:34 +0000 (11:10 -0500)]
Merge pull request #61833 from Kushal-deb/add_v4v6_flag_to_bind_port

cephadm: ingress- Add v4v6 flag to HAProxy bind directive

Reviewed-by: Adam King <adking@redhat.com>
4 months agolibrbd: fix a crash in get_rollback_snap_id 61906/head
N Balachandran [Wed, 19 Feb 2025 16:10:29 +0000 (21:40 +0530)]
librbd: fix a crash in get_rollback_snap_id

get_rollback_snap_id() did not check if the snapshot it was
accessing was a mirror snapshot, causing it to crash if it wasn't.

Fixes: https://tracker.ceph.com/issues/70075
Signed-off-by: N Balachandran <nithya.balachandran@ibm.com>
4 months agoMerge pull request #61722 from adk3798/stop-orch-on-cleanup
Adam King [Wed, 19 Feb 2025 16:06:48 +0000 (11:06 -0500)]
Merge pull request #61722 from adk3798/stop-orch-on-cleanup

qa/cephadm: stop cephadm mgr module during cleanup

Reviewed-by: Redouane Kachach <rkachach@ibm.com>
4 months agoMerge pull request #61663 from adk3798/vrrp_interfaces_typo
Adam King [Wed, 19 Feb 2025 15:58:06 +0000 (10:58 -0500)]
Merge pull request #61663 from adk3798/vrrp_interfaces_typo

mgr/cephadm: fix typo with vrrp_interfaces in keepalive setup

Reviewed-by: Redouane Kachach <rkachach@ibm.com>
4 months agoMerge pull request #61658 from ShwetaBhosale1/fix_issue_69808_numric_node_id_for_rado...
Adam King [Wed, 19 Feb 2025 15:56:56 +0000 (10:56 -0500)]
Merge pull request #61658 from ShwetaBhosale1/fix_issue_69808_numric_node_id_for_rados_kv_block

mgr/nfs: nodeid should be numeric for RADOS_KV block in ganesha.conf file

Reviewed-by: Adam King <adking@redhat.com>
4 months agoMerge pull request #61587 from Kushal-deb/display_comma_separated_ports_for_RGW_services
Adam King [Wed, 19 Feb 2025 15:55:20 +0000 (10:55 -0500)]
Merge pull request #61587 from Kushal-deb/display_comma_separated_ports_for_RGW_services

mgr/cephadm: Display comma separated ports for RGW services

Reviewed-by: Adam King <adking@redhat.com>
4 months agoMerge pull request #61564 from Sodani/shsodani_profile
Adam King [Wed, 19 Feb 2025 15:53:56 +0000 (10:53 -0500)]
Merge pull request #61564 from Sodani/shsodani_profile

mgr/smb: Add profiling configuration to global definition

Reviewed-by: Anoop C S <anoopcs@samba.org>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: John Mulligan <jmulligan@redhat.com>
4 months agoMerge pull request #61372 from adk3798/cephadm-orch-pause-test-failure
Adam King [Wed, 19 Feb 2025 15:51:20 +0000 (10:51 -0500)]
Merge pull request #61372 from adk3798/cephadm-orch-pause-test-failure

qa/cephadm: wait between starting and restarting osd in test_daemon_restart test

Reviewed-by: John Mulligan <jmulligan@redhat.com>
4 months agoMerge pull request #60606 from Naveenaidu/naveen/telemetry-add-stretch-cluster
Laura Flores [Wed, 19 Feb 2025 15:51:06 +0000 (09:51 -0600)]
Merge pull request #60606 from Naveenaidu/naveen/telemetry-add-stretch-cluster

mgr/telemetry: add stretch cluster data

4 months agoqa/standalone: do not use /etc/fstab as an always-there bytes source 61812/head
Ronen Friedman [Thu, 13 Feb 2025 16:53:53 +0000 (10:53 -0600)]
qa/standalone: do not use /etc/fstab as an always-there bytes source

Multiple tests use /etc/fstab when a small data file is
required as input. After all, as some comments say:
    # something that is always there

Alas - it's not always there. Not in containers.

Replacing with a newly-created temporary file filled with
random bytes.
For completeness - replacing similar references to
/etc/resolv.conf (as a source for random objects) in
the standalone tests, too.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
4 months agoMerge pull request #61853 from ArbitCode/wip-rgw-raja-remove-clientid-oidc-provider
Raja [Wed, 19 Feb 2025 14:52:05 +0000 (20:22 +0530)]
Merge pull request #61853 from ArbitCode/wip-rgw-raja-remove-clientid-oidc-provider

rgw/iam: add RemoveClientIDFromOpenIDConnectProvider

4 months agomgr/dashboard: Rgw ratelimit feature for user and bucket 61225/head
Achintk1491 [Fri, 13 Dec 2024 07:38:33 +0000 (13:08 +0530)]
mgr/dashboard: Rgw ratelimit feature for user and bucket

Fixes: https://tracker.ceph.com/issues/69233
Signed-off-by: Achint Kaur<ackaur@redhat.com>
Signed-off-by: Achintk1491 <achintk1491@gmail.com>
4 months agocrimson: fix -Wmissing-template-arg-list-after-template-kw 61890/head
Matan Breizman [Mon, 17 Feb 2025 10:08:11 +0000 (10:08 +0000)]
crimson: fix -Wmissing-template-arg-list-after-template-kw

See: https://github.com/llvm/llvm-project/commit/f46d1463b835560d90ad3ac02b63c771e4ebe566
```
common/interruptible_future.h:1182:16: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw]
 1182 |     ).template handle_interruption(std::move(efunc));
      |                ^
1 error generated.
```

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
4 months agocrimson/common/operation: fix decltype usage
Matan Breizman [Mon, 17 Feb 2025 10:00:34 +0000 (10:00 +0000)]
crimson/common/operation: fix decltype usage

```
ceph/src/crimson/common/operation.cc
In file included from /home/matan/ceph/src/crimson/common/operation.cc:4:
/home/matan/ceph/src/crimson/common/operation.h:312:31: error: no member named 'events' in 'AggregateBlockingEvent<T>'
  312 |       typename decltype(event.events)::iterator iter;
      |                         ~~~~~ ^
1 error generated.
```

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
4 months agocrimson/tools/perf_crimson_msgr: fix unused-lamda-capture
Matan Breizman [Mon, 17 Feb 2025 10:05:22 +0000 (10:05 +0000)]
crimson/tools/perf_crimson_msgr:  fix unused-lamda-capture

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
4 months agocrimson/osd: move the destructor of OpsExecuter to ops_executer.cc
Zhang Song [Wed, 19 Feb 2025 09:30:15 +0000 (17:30 +0800)]
crimson/osd: move the destructor of OpsExecuter to ops_executer.cc

Signed-off-by: Zhang Song <zhangsong02@qianxin.com>
4 months agoMerge pull request #60286 from salieri11/igolikov-wip-bug-64611
Igor Golikov [Wed, 19 Feb 2025 10:20:31 +0000 (12:20 +0200)]
Merge pull request #60286 from salieri11/igolikov-wip-bug-64611

mds: enforce usage of host error in cephfs, use errorcode32_t in MClientReply message
Fixes: https://tracker.ceph.com/issues/64611
4 months agoMerge pull request #61690 from rhcs-dashboard/bucket-tiering
Aashish Sharma [Wed, 19 Feb 2025 06:39:39 +0000 (12:09 +0530)]
Merge pull request #61690 from rhcs-dashboard/bucket-tiering

mgr/dashboard: bucket lifecycle policy management

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
4 months agoMerge pull request #60205 from Rethan/bluestore-aio-submit-retries
SrinivasaBharathKanta [Wed, 19 Feb 2025 03:14:15 +0000 (08:44 +0530)]
Merge pull request #60205 from Rethan/bluestore-aio-submit-retries

os/bluestore: make retry_max and initial_delay configurable for aio s…

4 months agorgw/iam: add RemoveClientIDFromOpenIDConnectProvider 61853/head
Raja Sharma [Mon, 17 Feb 2025 18:37:20 +0000 (00:07 +0530)]
rgw/iam: add RemoveClientIDFromOpenIDConnectProvider

Signed-off-by: Raja Sharma <raja@ibm.com>
Fixes : https://tracker.ceph.com/issues/70015

4 months agoMerge pull request #61347 from xxhdx1985126/wip-seastore-tree-pointer-abstract
Yingxin Cheng [Wed, 19 Feb 2025 01:28:29 +0000 (09:28 +0800)]
Merge pull request #61347 from xxhdx1985126/wip-seastore-tree-pointer-abstract

crimson/os/seastore: refactor fixed-kv-btree

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
4 months agoMerge pull request #61837 from anthonyeleven/osd-svc
Anthony D'Atri [Wed, 19 Feb 2025 01:21:45 +0000 (20:21 -0500)]
Merge pull request #61837 from anthonyeleven/osd-svc

doc/cephadm/services: Improve osd.rst

4 months agoMerge pull request #61883 from anthonyeleven/rgw-into-intro
Anthony D'Atri [Wed, 19 Feb 2025 00:57:07 +0000 (19:57 -0500)]
Merge pull request #61883 from anthonyeleven/rgw-into-intro

doc/start: Mention RGW in Intro to Ceph

4 months agodoc/cephadm/services: Improve osd.rst 61837/head
Anthony D'Atri [Sun, 16 Feb 2025 21:01:15 +0000 (16:01 -0500)]
doc/cephadm/services: Improve osd.rst

Signed-off-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
4 months agoMerge pull request #61867 from anuradhagadge/doc_ca_cert_with_fsid
Zac Dover [Tue, 18 Feb 2025 23:53:24 +0000 (09:53 +1000)]
Merge pull request #61867 from anuradhagadge/doc_ca_cert_with_fsid

doc/mgr: Add root CA cert instructions to rgw.rst

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
4 months agodoc/start: Mention RGW in Intro to Ceph 61883/head
Anthony D'Atri [Tue, 18 Feb 2025 21:31:47 +0000 (16:31 -0500)]
doc/start: Mention RGW in Intro to Ceph

Signed-off-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
4 months agoMerge pull request #61762 from liu-chunmei/compress_extentmap
Liu-Chunmei [Tue, 18 Feb 2025 18:50:29 +0000 (10:50 -0800)]
Merge pull request #61762 from liu-chunmei/compress_extentmap

os/bluestore: fix do_write_v2 extentmap compress issue

do_write_v2 insert extentmap by aligned offset which is adjusted in writer.do_write, if use original offset will cause extentmap can't do compress.

Reviewed-by: Adam Kupczyk <akupczyk@ibm.com>
4 months agotest/rbd_mirror: clear Namespace::s_instance at the end of a test 61880/head
Ilya Dryomov [Tue, 18 Feb 2025 16:51:47 +0000 (17:51 +0100)]
test/rbd_mirror: clear Namespace::s_instance at the end of a test

TestMockPoolReplayer.Namespaces and NamespacesError tests leave behind
a dangling pointer to a stack-allocated MockNamespace which leads to an
easily reproducible use-after-free and segfault when tests are shuffled.

Fixes: https://tracker.ceph.com/issues/70041
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
4 months agomgr/dashboard: add bucket tiering option to create lifecycle policy 61690/head
Naman Munet [Fri, 7 Feb 2025 06:53:07 +0000 (12:23 +0530)]
mgr/dashboard: add bucket tiering option to create lifecycle policy

Fixes: https://tracker.ceph.com/issues/69649
Signed-off-by: Naman Munet <naman.munet@ibm.com>
4 months agoMerge pull request #61478 from rhcs-dashboard/critical-confirmation-modal-changes
afreen23 [Tue, 18 Feb 2025 16:30:11 +0000 (22:00 +0530)]
Merge pull request #61478 from rhcs-dashboard/critical-confirmation-modal-changes

mgr/dashboard: Add confirmation textbox for resource name on delete action

Reviewed-by: Afreen Misbah <afreen@ibm.com>
4 months agoMerge pull request #61871 from rhcs-dashboard/fix-70019-main
Ernesto Puerta [Tue, 18 Feb 2025 16:25:49 +0000 (17:25 +0100)]
Merge pull request #61871 from rhcs-dashboard/fix-70019-main

mgr/dashboard: fix Python xmlsec build issue

Reviewed-by: @afreen23
Reviewed-by: @aaSharma14
4 months agoMerge pull request #61847 from idryomov/wip-63798
Ilya Dryomov [Tue, 18 Feb 2025 16:19:27 +0000 (17:19 +0100)]
Merge pull request #61847 from idryomov/wip-63798

test/rbd_mirror: flush watch/notify callbacks in TestImageReplayer

Reviewed-by: Vinay Bhaskar Varada <vvarada@redhat.com>
5 months agoMerge pull request #61756 from dang/wip-dang-68336
Daniel Gryniewicz [Tue, 18 Feb 2025 15:00:44 +0000 (10:00 -0500)]
Merge pull request #61756 from dang/wip-dang-68336

RGW - Fix POSIX bucket notify test

5 months agodoc/mgr: edit grammar and formatting of rgw.rst 61867/head
Zac Dover [Tue, 18 Feb 2025 13:44:15 +0000 (23:44 +1000)]
doc/mgr: edit grammar and formatting of rgw.rst

Improve the grammar and correct the formatting of the "Upgrading root ca
certificates" procedure that was added to the documentation in https://github.com/ceph/ceph/pull/61867

Fixes: https://tracker.ceph.com/issues/70014
Signed-off-by: Zac Dover <zac.dover@proton.me>
5 months agoMerge pull request #61214 from aclamk/wip-aclamk-bs-fragmentation-health
Adam Kupczyk [Tue, 18 Feb 2025 14:24:33 +0000 (15:24 +0100)]
Merge pull request #61214 from aclamk/wip-aclamk-bs-fragmentation-health

os/bluestore: Add health warning for bluestore fragmentation

5 months agoMerge pull request #58752 from Matan-B/wip-matanb-replicated-backend-50608
Laura Flores [Tue, 18 Feb 2025 14:20:37 +0000 (08:20 -0600)]
Merge pull request #58752 from Matan-B/wip-matanb-replicated-backend-50608

5 months agodoc/mgr: Add root CA cert instructions to rgw.rst
Anuradha Gadge [Tue, 18 Feb 2025 09:09:31 +0000 (14:39 +0530)]
doc/mgr: Add root CA cert instructions to rgw.rst

Add documentation for adding fs_id in root_ca_cert upgrade path

Fixes: https://tracker.ceph.com/issues/70014
Signed-off-by: Anuradha Gadge <anuradha.gadge@ibm.com>
5 months agomds: use system error codes instead of CEPHFS_EXX codes 60286/head
Igor Golikov [Tue, 18 Feb 2025 12:47:52 +0000 (12:47 +0000)]
mds: use system error codes instead of CEPHFS_EXX codes

Signed-off-by: Igor Golikov <igolikov@ibm.com>
Fixes: https://tracker.ceph.com/issues/64611
5 months agomgr/dashboard: fix Python xmlsec build issue 61871/head
Ernesto Puerta [Tue, 18 Feb 2025 11:51:08 +0000 (12:51 +0100)]
mgr/dashboard: fix Python xmlsec build issue

It disables the specific pinning to a Python xmlsec version.

Fixes: https://tracker.ceph.com/issues/70019
Fixes: 37e633384b7c18893bc0e30a8f3967f6496da00b
Fixes: https://github.com/ceph/ceph/pull/61089
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
5 months agomds,client: change result field handling in the MClientReply message
Igor Golikov [Tue, 18 Feb 2025 11:45:57 +0000 (11:45 +0000)]
mds,client: change result field handling in the MClientReply message

Signed-off-by: Igor Golikov <igolikov@ibm.com>
Fixes: https://tracker.ceph.com/issues/64611
5 months agomds: prepare infra to replace CEPHFS_EXXX codes to system codes
Igor Golikov [Tue, 18 Feb 2025 11:44:17 +0000 (11:44 +0000)]
mds: prepare infra to replace CEPHFS_EXXX codes to system codes

Signed-off-by: Igor Golikov <igolikov@ibm.com>
Fixes: https://tracker.ceph.com/issues/64611
5 months agopybind/cephfs: switch CEPHFS_E error codes to system error codes
Igor Golikov [Tue, 18 Feb 2025 11:38:47 +0000 (11:38 +0000)]
pybind/cephfs: switch CEPHFS_E error codes to system error codes

Signed-off-by: Igor Golikov <igolikov@ibm.com>
Fixes: https://tracker.ceph.com/issues/64611
5 months agoPendingReleaseNotes: add note on client/mds error codes
Igor Golikov [Tue, 18 Feb 2025 11:36:10 +0000 (11:36 +0000)]
PendingReleaseNotes: add note on client/mds error codes

Signed-off-by: Igor Golikov <igolikov@ibm.com>
Fixes: https://tracker.ceph.com/issues/64611
5 months agomgr/dashboard: remaning critical-confirmation-modal to delete-confirmation-modal... 61478/head
Naman Munet [Mon, 10 Feb 2025 03:34:19 +0000 (09:04 +0530)]
mgr/dashboard: remaning critical-confirmation-modal to delete-confirmation-modal and keeping default demetion impact as medium

Fixes: https://tracker.ceph.com/issues/69628
Signed-off-by: Naman Munet <naman.munet@ibm.com>
5 months agomgr/dashboard: Add confirmation textbox for resource name on delete action
Naman Munet [Wed, 22 Jan 2025 10:59:20 +0000 (16:29 +0530)]
mgr/dashboard: Add confirmation textbox for resource name on delete action

Before:
=====
User was able to delete a single or multiple critical resources like (  images, snapshots, subvolumes, subvolume-groups, pools, hosts , OSDs, buckets, file system, services ) by just clicking on a checkbox.

After:
=====
User now has to type the resource name that they are deleting in the textbox on the delete modal, and then only they will be able to delete the critical resource.
Also from now onwards multiple selection for deletions of critical resources is not possible. Hence, user can delete only single resource at a time. On the other side, non-critical resources can be deleted in one go.

fixes: https://tracker.ceph.com/issues/69628

Signed-off-by: Naman Munet <naman.munet@ibm.com>
5 months agoMerge pull request #61836 from myoungwon/fix-crimson-osd-invalid-argument-print
Matan Breizman [Tue, 18 Feb 2025 10:21:12 +0000 (12:21 +0200)]
Merge pull request #61836 from myoungwon/fix-crimson-osd-invalid-argument-print

crimson/osd: remove invalid an argument when printing log

Reviewed-by: Matan Breizman <mbreizma@redhat.com>
5 months agoosd/ReplicatedBackend: assert non-trivial obc existence 58752/head
Matan Breizman [Tue, 23 Jul 2024 13:12:50 +0000 (13:12 +0000)]
osd/ReplicatedBackend: assert non-trivial obc existence

Added to help debug: https://tracker.ceph.com/issues/50608

More information: https://gist.github.com/Matan-B/24b49e9b734259f06edf17fdfea5d24d

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
5 months agoMerge pull request #61469 from ronen-fr/wip-rf-assert-perf
Ronen Friedman [Tue, 18 Feb 2025 10:02:04 +0000 (12:02 +0200)]
Merge pull request #61469 from ronen-fr/wip-rf-assert-perf

common/perf-counters: replace 'assert' with 'ceph_assert'

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 months agoMerge pull request #61606 from rhcs-dashboard/create-storage-class
afreen23 [Tue, 18 Feb 2025 09:55:57 +0000 (15:25 +0530)]
Merge pull request #61606 from rhcs-dashboard/create-storage-class

mgr/dashboard: RGW - Create Storage Class

Reviewed-by: Afreen Misbah <afreen@ibm.com>
5 months agoMerge pull request #61793 from MaxKellermann/rados__includes
Ilya Dryomov [Tue, 18 Feb 2025 08:34:50 +0000 (09:34 +0100)]
Merge pull request #61793 from MaxKellermann/rados__includes

Add missing librbd includes

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
5 months agoMerge pull request #61814 from gbregman/main
Gil Bregman [Tue, 18 Feb 2025 06:41:57 +0000 (08:41 +0200)]
Merge pull request #61814 from gbregman/main

mgr/cephadm/nvmeof: Add QOS timeslice field to NVMeOF configuration

5 months agoMerge pull request #47189 from pdvian/wip-crush-df
Radoslaw Zarzynski [Mon, 17 Feb 2025 22:37:15 +0000 (23:37 +0100)]
Merge pull request #47189 from pdvian/wip-crush-df

crush/CrushWrapper: Merge weights if rule contains multiple take

Reviewed-by: Kamoltat Sirivadhna <ksirivad@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 months agoMerge pull request #61752 from afreen23/wip-nvme-ns
afreen23 [Mon, 17 Feb 2025 20:21:55 +0000 (01:51 +0530)]
Merge pull request #61752 from afreen23/wip-nvme-ns

Add namespace counter in nvmeof namepsaces

Reviewed-by: Afreen Misbah <afreen@ibm.com>
5 months agoMerge PR #60983 into main
Patrick Donnelly [Mon, 17 Feb 2025 19:21:03 +0000 (14:21 -0500)]
Merge PR #60983 into main

* refs/pull/60983/head:
script: ceph-backport no longer launches firefox

Reviewed-by: Patrick Donnelly <pdonnell@ibm.com>
Reviewed-by: John Mulligan <jmulligan@redhat.com>
5 months agoMerge PR #61552 into main
Patrick Donnelly [Mon, 17 Feb 2025 19:02:52 +0000 (14:02 -0500)]
Merge PR #61552 into main

* refs/pull/61552/head:
script/ceph-debug-docker.sh: fix manifest unknown error

Reviewed-by: Patrick Donnelly <pdonnell@ibm.com>