]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
17 months agotools: add 'osd-size-aware' mode to osdmaptool 55198/head
Laura Flores [Tue, 30 Jan 2024 22:06:03 +0000 (22:06 +0000)]
tools: add 'osd-size-aware' mode to osdmaptool

Sample command:
`osdmaptool om --read out.txt --read-pool cephfs.a.data --osd-size-aware`

Signed-off-by: Laura Flores <lflores@ibm.com>
17 months agomgr/balancer: add new keys to balancer mgr module
Laura Flores [Tue, 30 Jan 2024 20:38:40 +0000 (20:38 +0000)]
mgr/balancer: add new keys to balancer mgr module

Signed-off-by: Laura Flores <lflores@ibm.com>
17 months agoosd: unit tests for read balance osd size aware score
Josh Salomon [Wed, 24 Jan 2024 12:46:07 +0000 (14:46 +0200)]
osd: unit tests for read balance osd size aware score

Signed-off-by: Josh Salomon <41079547+JoshSalomon@users.noreply.github.com>
17 months agoosd: Add score for read balance osd size aware policy
Josh Salomon [Wed, 24 Jan 2024 12:40:53 +0000 (14:40 +0200)]
osd: Add score for read balance osd size aware policy

This score works for pools in which the read_ratio
value is set.
Current limitations:
- This mechanism ignores osd read affinty
  - There is a plan adding support for read affinity 0
    in the next version.
- This mechanism works only when all PGs are full
- If read_ration is not set - the existing mechanism (named
  fair score) is used.

Signed-off-by: Josh Salomon <41079547+JoshSalomon@users.noreply.github.com>
Signed-off-by: Josh Salomon <41079547+JoshSalomon@users.noreply.github.com>
17 months agoosd: Unit tests for read balancer on OSDs with different sizes
Josh Salomon [Tue, 16 Jan 2024 18:45:32 +0000 (20:45 +0200)]
osd: Unit tests for read balancer on OSDs with different sizes

Test cases for the read balancer which takes osd sizes into account.
Some balancing code refactoring and reorg for code that is used in
multiple tests

Signed-off-by: Josh Salomon <41079547+JoshSalomon@users.noreply.github.com>
17 months agoosd: Read balancer for OSDs with different sizes
Josh Salomon [Tue, 16 Jan 2024 18:33:47 +0000 (20:33 +0200)]
osd: Read balancer for OSDs with different sizes

This commit adds calculation for desired primary distribution which
takes into account the osd size. This way smaller OSDs can take more
read operations (by adding more primaries) and the larger OSDs take less
primaries and the load of the cluater can increase. (This feature offset
a bit the weakest link in the chain effect under some conditions). In
order to calculate the loads correctly there is a need to know the
read/write ratio for the pool, and this commit assumes the read_ratio
parameter is available for the pool.

Signed-off-by: Josh Salomon <41079547+JoshSalomon@users.noreply.github.com>
17 months agoosd: Add 'read_ratio' pool parameterr
Josh Salomon [Tue, 26 Dec 2023 08:41:18 +0000 (10:41 +0200)]
osd: Add 'read_ratio' pool parameterr

This parameter is used for better read balancing with non identical
devices.
- This parameter is controlled using the commands 'ceph osd pool set/get'
- This parameter is applicable only for replicated pools
- Valid values are integers in the range [0..100] and represent the
  percentage of read IOs out of all IOs in the pool
  - Value of 0 unsets this parameter and the value will be the default
    value (this is the generic behavior of the command 'ceph osd pool
    set'
  - default value can be set by config parameter
    `osd_pool_default_read_ratio`

Signed-off-by: Josh Salomon <41079547+JoshSalomon@users.noreply.github.com>
17 months agoMerge pull request #55364 from ljflores/wip-pr-triage
Laura Flores [Tue, 30 Jan 2024 17:13:30 +0000 (11:13 -0600)]
Merge pull request #55364 from ljflores/wip-pr-triage

.github/workflows: disable sync-labels in pr-triage

17 months agoMerge pull request #53610 from Patty8122/documentation-update-fsck-flagdeep
Adam Kupczyk [Tue, 30 Jan 2024 14:43:49 +0000 (15:43 +0100)]
Merge pull request #53610 from Patty8122/documentation-update-fsck-flagdeep

doc/man/8: Add valid options in ceph-bluestore-tool.rst

17 months agoMerge PR #54515 into main
Venky Shankar [Tue, 30 Jan 2024 14:10:35 +0000 (19:40 +0530)]
Merge PR #54515 into main

* refs/pull/54515/head:
qa: get_global_id() returns a string (global_id)
qa: correct usage of DEBUGFS_META_DIR in dedent

Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
17 months agoMerge pull request #55313 from rkachach/fix_issue_64183
Redouane Kachach [Tue, 30 Jan 2024 13:30:56 +0000 (14:30 +0100)]
Merge pull request #55313 from rkachach/fix_issue_64183

mgr/rook: adding metrics monitoring e2e testing

17 months agoMerge pull request #55284 from rhcs-dashboard/cephfs-clone-create
Ivo Almeida [Tue, 30 Jan 2024 11:30:51 +0000 (08:30 -0300)]
Merge pull request #55284 from rhcs-dashboard/cephfs-clone-create

mgr/dashboard: create cephfs snapshot clone

17 months agoMerge pull request #55351 from rosinL/wip-fix-64122
Rongqi Sun [Tue, 30 Jan 2024 09:31:52 +0000 (17:31 +0800)]
Merge pull request #55351 from rosinL/wip-fix-64122

script/run-make: install lvm2 for make check cephadm test

17 months agoMerge pull request #55228 from rhcs-dashboard/fix-64081-main
Nizamudeen A [Tue, 30 Jan 2024 09:09:02 +0000 (14:39 +0530)]
Merge pull request #55228 from rhcs-dashboard/fix-64081-main

mgr/dashboard: Export rgw multisite status via the API

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
17 months agoMerge PR #52652 into main
Venky Shankar [Tue, 30 Jan 2024 07:40:19 +0000 (13:10 +0530)]
Merge PR #52652 into main

* refs/pull/52652/head:
PendingReleaseNotes: add note about new mdlog trimming configurations
mds: drive mdlog trimming via a separate thread
mds: allow runtime modification of mdlog trimming configuration
mds: remove a bunch of heuristics from MDLog::trim()
mds: add mdlog trimming threshold and decay counter

Reviewed-by: Leonid Usov <leonid.usov@ibm.com>
17 months agoMerge PR #55184 into main
Venky Shankar [Tue, 30 Jan 2024 07:28:48 +0000 (12:58 +0530)]
Merge PR #55184 into main

* refs/pull/55184/head:
qa: remove redundant test test_volumes.TestRenameCmd.test_rename_when_fs_is_online

Reviewed-by: Christopher Hoffman <choffman@redhat.com>
Reviewed-by: Rishabh Dave <ridave@redhat.com>
17 months agoMerge PR #55346 into main
Venky Shankar [Tue, 30 Jan 2024 06:56:32 +0000 (12:26 +0530)]
Merge PR #55346 into main

* refs/pull/55346/head:
qa: remove error string checks and check w/ return value

Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
Reviewed-by: Rishabh Dave <ridave@redhat.com>
17 months agoMerge pull request #55349 from afreen23/fix-64112
Nizamudeen A [Tue, 30 Jan 2024 05:48:39 +0000 (11:18 +0530)]
Merge pull request #55349 from afreen23/fix-64112

mgr/dashboard: Create subvol of same name in different group

Reviewed-by: Ankush Behl <cloudbehl@gmail.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
17 months agoPendingReleaseNotes: add note about new mdlog trimming configurations 52652/head
Venky Shankar [Tue, 26 Sep 2023 12:22:03 +0000 (08:22 -0400)]
PendingReleaseNotes: add note about new mdlog trimming configurations

Signed-off-by: Venky Shankar <vshankar@redhat.com>
17 months agomds: drive mdlog trimming via a separate thread
Venky Shankar [Tue, 8 Aug 2023 05:48:45 +0000 (01:48 -0400)]
mds: drive mdlog trimming via a separate thread

Signed-off-by: Venky Shankar <vshankar@redhat.com>
17 months agomds: allow runtime modification of mdlog trimming configuration
Venky Shankar [Mon, 24 Jul 2023 04:34:47 +0000 (00:34 -0400)]
mds: allow runtime modification of mdlog trimming configuration

Signed-off-by: Venky Shankar <vshankar@redhat.com>
17 months agomds: remove a bunch of heuristics from MDLog::trim()
Venky Shankar [Mon, 31 Jul 2023 05:59:24 +0000 (01:59 -0400)]
mds: remove a bunch of heuristics from MDLog::trim()

These were probbaly introduced to workaround some sort of
resource overusage by the MDS during trimming, but now it
looks like they are not really neeeded, especially if we
introduce a dedicated thread for log trimming.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
17 months agomds: add mdlog trimming threshold and decay counter
Venky Shankar [Mon, 24 Jul 2023 04:33:47 +0000 (00:33 -0400)]
mds: add mdlog trimming threshold and decay counter

Fixes: http://tracker.ceph.com/issues/61908
Signed-off-by: Venky Shankar <vshankar@redhat.com>
17 months agoqa: remove error string checks and check w/ return value 55346/head
Venky Shankar [Thu, 25 Jan 2024 09:32:33 +0000 (15:02 +0530)]
qa: remove error string checks and check w/ return value

I ran into this failure once #54972 was merged. The test is validating
the error string returned due to the failed mount. There aren't any
return value checks - which is a _more_ important check. Generic error
string checks will fail once a (error) string is changed (typo, etc..).

Signed-off-by: Venky Shankar <vshankar@redhat.com>
17 months agoMerge PR #54808 into main
Venky Shankar [Tue, 30 Jan 2024 04:33:57 +0000 (10:03 +0530)]
Merge PR #54808 into main

* refs/pull/54808/head:
client: fix copying bufferlist to iovec structures in Client::_read
src/test: test sync call providing nullptr as ctx to async api

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Milind Changire <mchangir@redhat.com>
Reviewed-by: Frank S. Filz <ffilzlnx@mindspring.com>
17 months agoMerge PR #54031 into main
Venky Shankar [Tue, 30 Jan 2024 04:29:57 +0000 (09:59 +0530)]
Merge PR #54031 into main

* refs/pull/54031/head:
qa: add test to mangle lost+found directory object and ensure safety
qa: run scrub before mounting client and validations

Reviewed-by: Kotresh Hiremath Ravishankar <khiremat@redhat.com>
17 months agoMerge pull request #55241 from rhcs-dashboard/remove-bucket-policy
Nizamudeen A [Tue, 30 Jan 2024 04:12:19 +0000 (09:42 +0530)]
Merge pull request #55241 from rhcs-dashboard/remove-bucket-policy

mgr/dashboard: Remove bucket policy

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ankush Behl <cloudbehl@gmail.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
17 months agomgr/dashboard: Export rgw multisite status via the API 55228/head
Aashish Sharma [Thu, 18 Jan 2024 07:58:46 +0000 (13:28 +0530)]
mgr/dashboard: Export rgw multisite status via the API

Fixes: https://tracker.ceph.com/issues/64081
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
17 months ago.github/workflows: disable sync-labels in pr-triage 55364/head
Laura Flores [Mon, 29 Jan 2024 23:40:13 +0000 (17:40 -0600)]
.github/workflows: disable sync-labels in pr-triage

`sync-labels` is defined as "Whether or not to remove labels
when matching files are reverted or no longer changed by the PR".

We should disable this in case someone manually adds a label,
so the label doesn't get removed.

Signed-off-by: Laura Flores <lflores@ibm.com>
17 months agoMerge pull request #55326 from ceph/dependabot-github_actions-actions-labeler-5.0.0
Laura Flores [Mon, 29 Jan 2024 18:50:47 +0000 (12:50 -0600)]
Merge pull request #55326 from ceph/dependabot-github_actions-actions-labeler-5.0.0

.github: Bump actions/labeler from 4.0.2 to 5.0.0

17 months agomgr/dashboard: remove bucket policy 55241/head
Pedro Gonzalez Gomez [Fri, 19 Jan 2024 05:40:05 +0000 (06:40 +0100)]
mgr/dashboard: remove bucket policy
add a button on the bucket form to clear the bucket policy

Fixes: https://tracker.ceph.com/issues/64096
Signed-off-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
17 months agoMerge pull request #55062 from rhcs-dashboard/set-bucket-policy
Pedro Gonzalez Gomez [Mon, 29 Jan 2024 17:39:45 +0000 (18:39 +0100)]
Merge pull request #55062 from rhcs-dashboard/set-bucket-policy

mgr/dashboard: set bucket policies

Reviewed-by: Ankush Behl <cloudbehl@gmail.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
17 months agoMerge pull request #54853 from ivoalmeida/snapshot-schedule-module
Nizamudeen A [Mon, 29 Jan 2024 17:30:36 +0000 (23:00 +0530)]
Merge pull request #54853 from ivoalmeida/snapshot-schedule-module

mgr/dashboard: snap schedule module detect/enable

Reviewed-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
Reviewed-by: Ankush Behl <cloudbehl@gmail.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
17 months agoMerge pull request #55255 from phlogistonjohn/jjm-mypy-updates
Adam King [Mon, 29 Jan 2024 16:27:34 +0000 (11:27 -0500)]
Merge pull request #55255 from phlogistonjohn/jjm-mypy-updates

Various mypy related updates

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
Reviewed-by: Redouane Kachach <rkachach@redhat.com>
17 months agoMerge pull request #55329 from cbodley/wip-64189
Casey Bodley [Mon, 29 Jan 2024 16:11:52 +0000 (16:11 +0000)]
Merge pull request #55329 from cbodley/wip-64189

rgw/rest: fix url decode of post params for iam/sts/sns

Reviewed-by: Pritha Srivastava <prsrivas@redhat.com>
17 months agomgr/dashboard: set bucket policies 55062/head
Pedro Gonzalez Gomez [Thu, 4 Jan 2024 22:16:10 +0000 (23:16 +0100)]
mgr/dashboard: set bucket policies

- Adds support to set bucket policies through the Dashboard.
- Rename rgw bucket policy from 'policy' to 'bucket policy' and tab 'Permissions' to 'Policies'
- Fix: hide Tags when none are present on bucket list details and sets bucket form dirty after deleting a tag
- Added service to manage the formatting of a textArea that works with json

Signed-off-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
Fixes: https://tracker.ceph.com/issues/63942
17 months agoMerge PR #54446 into main
Venky Shankar [Mon, 29 Jan 2024 13:24:44 +0000 (18:54 +0530)]
Merge PR #54446 into main

* refs/pull/54446/head:
qa: bump up scrub status command timeout

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
17 months agoMerge PR #54683 into main
Venky Shankar [Mon, 29 Jan 2024 13:22:16 +0000 (18:52 +0530)]
Merge PR #54683 into main

* refs/pull/54683/head:
qa/tasks/cephfs/test_misc: switch duration to timeout
qa/tasks/cephfs/test_misc: fix the incorrect comments

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
17 months agoMerge PR #53578 into main
Venky Shankar [Mon, 29 Jan 2024 13:15:58 +0000 (18:45 +0530)]
Merge PR #53578 into main

* refs/pull/53578/head:
mds: adhere to mds_health_summarize_threshold config when reporting laggy clients

Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
17 months agoMerge PR #53177 into main
Venky Shankar [Mon, 29 Jan 2024 13:14:28 +0000 (18:44 +0530)]
Merge PR #53177 into main

* refs/pull/53177/head:
qa: test nfs export apply -i failure returns pseudo path in output JSON
mgr/nfs: include pseudo in JSON output when nfs export apply -i fails

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: John Mulligan <jmulligan@redhat.com>
17 months agoMerge PR #53734 into main
Venky Shankar [Mon, 29 Jan 2024 13:12:36 +0000 (18:42 +0530)]
Merge PR #53734 into main

* refs/pull/53734/head:
qa: refactor client upgrade yamls and other minor touchups
qa/upgrade/nofs: upgrade pacific->reef
qa/upgrade/upgraded_client: upgrade nautilus->pacific and pacific->reef

Reviewed-by: Venky Shankar <vshankar@redhat.com>
17 months agoMerge PR #55309 into main
Venky Shankar [Mon, 29 Jan 2024 13:11:23 +0000 (18:41 +0530)]
Merge PR #55309 into main

* refs/pull/55309/head:
qa: `fs volume rename` requires `fs fail` and `refuse_client_session` set

Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
17 months agomgr/rook: adding metrics monitoring e2e testing 55313/head
Redouane Kachach [Thu, 25 Jan 2024 12:57:09 +0000 (13:57 +0100)]
mgr/rook: adding metrics monitoring e2e testing
Fixes: https://tracker.ceph.com/issues/64183
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
17 months agoMerge PR #54451 into main
Venky Shankar [Mon, 29 Jan 2024 12:50:35 +0000 (18:20 +0530)]
Merge PR #54451 into main

* refs/pull/54451/head:
common/admin_socket: improvements to the RaiseHook

Reviewed-by: Venky Shankar <vshankar@redhat.com>
17 months agoscript/run-make: install lvm2 for make check cephadm test 55351/head
luo rixin [Mon, 29 Jan 2024 11:25:00 +0000 (19:25 +0800)]
script/run-make: install lvm2 for make check cephadm test

The make check test `run-tox-cephdam` reports error:
```
        if errors:
>           raise Error('\nERROR: '.join(errors))
E           cephadmlib.exceptions.Error: lvcreate binary does not appear to be installed

cephadm.py:4434: Error
```
So let's installing lvm2 for make check cephadm test.

Fixes: https://tracker.ceph.com/issues/64122
Signed-off-by: luo rixin <luorixin@huawei.com>
17 months agomgr/dashboard: snap schedule module detect/eneable 54853/head
Ivo Almeida [Sun, 10 Dec 2023 17:44:33 +0000 (17:44 +0000)]
mgr/dashboard: snap schedule module detect/eneable

Fixes: https://tracker.ceph.com/issues/63768
Signed-off-by: Ivo Almeida <ialmeida@redhat.com>
17 months agoMerge pull request #55131 from ronen-fr/wip-rf-reserver
Ronen Friedman [Mon, 29 Jan 2024 10:43:09 +0000 (12:43 +0200)]
Merge pull request #55131 from ronen-fr/wip-rf-reserver

osd/scrub: partial implementation of scrub reserver
Reviewed-by: Samuel Just <sjust@redhat.com>-
17 months agomgr/dashboard: Create subvol of same name in different group 55349/head
Afreen [Mon, 29 Jan 2024 10:12:10 +0000 (15:42 +0530)]
mgr/dashboard: Create subvol of same name in different group

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

Issue:
Currently, we are unable to create subvolume of same name in different
subvolume group

Fix:
We are validating only the filesystem name of subvolume
which is stopping the creation a subvolume of same name.
Added more granularity , by adding the subvolumegroup name.

Signed-off-by: Afreen <afreen23.git@gmail.com>
17 months agoMerge pull request #55296 from Matan-B/wip-matanb-crimson-pg-map-logs
Matan Breizman [Mon, 29 Jan 2024 09:45:28 +0000 (11:45 +0200)]
Merge pull request #55296 from Matan-B/wip-matanb-crimson-pg-map-logs

crimson/osd/pg_map: Refactor

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
17 months agoMerge pull request #55304 from afreen23/fix-64150
Pedro Gonzalez Gomez [Mon, 29 Jan 2024 07:56:55 +0000 (08:56 +0100)]
Merge pull request #55304 from afreen23/fix-64150

mgr/dashboard: Fix issue with Object's Overview page

Reviewed-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
17 months agoMerge pull request #54103 from ceph/dependabot-npm_and_yarn-src-pybind-mgr-dashboard...
Nizamudeen A [Mon, 29 Jan 2024 07:06:38 +0000 (12:36 +0530)]
Merge pull request #54103 from ceph/dependabot-npm_and_yarn-src-pybind-mgr-dashboard-frontend-babel-traverse-7.23.2

mgr/dashboard: bump @babel/traverse from 7.23.0 to 7.23.2 in /src/pybind/mgr/dashboard/frontend

Reviewed-by: Nizamudeen A <nia@redhat.com>
17 months agoMerge pull request #53988 from ljflores/wip-read-balancer-mgr-module
Laura Flores [Mon, 29 Jan 2024 05:40:01 +0000 (23:40 -0600)]
Merge pull request #53988 from ljflores/wip-read-balancer-mgr-module

17 months agoMerge pull request #55312 from afreen23/fix-55270
Nizamudeen A [Mon, 29 Jan 2024 04:44:27 +0000 (10:14 +0530)]
Merge pull request #55312 from afreen23/fix-55270

mgr/dashboard:  Code refactor rgw migrate component for using correctly the MIGRATE action verb

Reviewed-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
17 months agoMerge pull request #55341 from zdover23/wip-doc-2024-01-29-architecture-rados
zdover23 [Mon, 29 Jan 2024 03:33:57 +0000 (13:33 +1000)]
Merge pull request #55341 from zdover23/wip-doc-2024-01-29-architecture-rados

doc/architecture.rst: improve rados definition

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
17 months agoMerge pull request #55342 from ljflores/wip-tox-mgr
Laura Flores [Mon, 29 Jan 2024 03:18:30 +0000 (21:18 -0600)]
Merge pull request #55342 from ljflores/wip-tox-mgr

17 months agomgr: pin pytest to version 7.4.4 55342/head
Laura Flores [Mon, 29 Jan 2024 00:58:25 +0000 (00:58 +0000)]
mgr: pin pytest to version 7.4.4

On 2024-01-27, pytest updated to 8.0.0,
which broke run-tox-mgr.

https://docs.pytest.org/en/stable/changelog.html

==================================== ERRORS ====================================
_____________________ ERROR collecting alerts/__init__.py ______________________
alerts/__init__.py:2: in <module>
    from .module import Alerts
alerts/module.py:6: in <module>
    from mgr_module import CLIReadCommand, HandleCommandResult, MgrModule, Option
mgr_module.py:1: in <module>
    import ceph_module  # noqa
E   ModuleNotFoundError: No module named 'ceph_module'
______________________ ERROR collecting alerts/module.py _______________________
alerts/module.py:6: in <module>
    from mgr_module import CLIReadCommand, HandleCommandResult, MgrModule, Option
mgr_module.py:1: in <module>
    import ceph_module  # noqa
E   ModuleNotFoundError: No module named 'ceph_module'
____________________ ERROR collecting balancer/__init__.py _____________________
balancer/__init__.py:2: in <module>
    from .module import Module
balancer/module.py:12: in <module>
    from mgr_module import CLIReadCommand, CLICommand, CommandResult, MgrModule, Option, OSDMap, CephReleases
mgr_module.py:1: in <module>
    import ceph_module  # noqa
E   ModuleNotFoundError: No module named 'ceph_module'
_____________________ ERROR collecting balancer/module.py ______________________
balancer/module.py:12: in <module>
    from mgr_module import CLIReadCommand, CLICommand, CommandResult, MgrModule, Option, OSDMap, CephReleases
mgr_module.py:1: in <module>
    import ceph_module  # noqa
E   ModuleNotFoundError: No module named 'ceph_module'

Fixes: https://tracker.ceph.com/issues/64200
Signed-off-by: Laura Flores <lflores@ibm.com>
17 months agodoc/architecture.rst: improve rados definition 55341/head
Zac Dover [Sun, 28 Jan 2024 19:33:58 +0000 (05:33 +1000)]
doc/architecture.rst: improve rados definition

Improve the definition of RADOS, and link to information about RADOS.

Signed-off-by: Zac Dover <zac.dover@proton.me>
17 months agoosd: clear out unneeded pending pg-upmap-primary mappings 53988/head
Laura Flores [Fri, 26 Jan 2024 17:32:43 +0000 (17:32 +0000)]
osd: clear out unneeded pending pg-upmap-primary mappings

If the score did not improve, we should clear out any
pending pg-upmap-primary mappings so they don't execute
in situations where the same incremental is used to balance
multiple pools (i.e. in the balancer mgr module).

Signed-off-by: Laura Flores <lflores@ibm.com>
17 months agoqa/suites/rados/thrash/d-balancer: add read and upmap-read modes to balancer testing
Laura Flores [Wed, 3 Jan 2024 20:52:00 +0000 (20:52 +0000)]
qa/suites/rados/thrash/d-balancer: add read and upmap-read modes to balancer testing

Here, we turn the balancer mgr module to read and upmap read mode
during various thrashing scenarios.

Signed-off-by: Laura Flores <lflores@ibm.com>
17 months agomgr/balancer: add pg_upmap_primaries to `balancer status detail`
Laura Flores [Tue, 2 Jan 2024 21:28:03 +0000 (21:28 +0000)]
mgr/balancer: add pg_upmap_primaries to `balancer status detail`

Followup to https://github.com/ceph/ceph/pull/54801/commits/8a5553597ca6a428cb8ffc9fc5bebde048fbd068.
Streamlines some of the logic so pg upmap activity is properly
initalized, and updated in offline mode as well as online.

Signed-off-by: Laura Flores <lflores@ibm.com>
17 months agoPendingReleaseNotes: add note about read balancer mgr module integration
Laura Flores [Fri, 22 Dec 2023 19:23:41 +0000 (19:23 +0000)]
PendingReleaseNotes: add note about read balancer mgr module integration

Signed-off-by: Laura Flores <lflores@ibm.com>
17 months agomgr: add read balancer support inside the balancer module
Laura Flores [Thu, 18 Jan 2024 18:57:24 +0000 (18:57 +0000)]
mgr: add read balancer support inside the balancer module

Read balancing may now be managed automatically via the balancer
manager module. Users may choose between two new modes: ``upmap-read``, which
offers upmap and read optimization simultaneously, or ``read``, which may be used
to only optimize reads. Existing balancer commands have also been added to
contain more information about read balancing.

Run the following commands to test the new automatic behavior:
`ceph balancer on` (on by default)
`ceph balancer mode <read|upmap-read>`
`ceph balancer status`

Run the following commands to test the new supervised behavior:
`ceph balancer off`
`ceph balancer mode <read|upmap-read>`
`ceph balancer eval` | `ceph balancer eval <pool-name>`
`ceph balancer eval-verbose` | `ceph balancer eval-verbose <pool-name>`
`ceph balancer optimize <plan-name>`
`ceph balancer show <plan-name>`
`ceph balancer eval <plan-name>`
`ceph balancer execute <plan-name>`

In the balancer module, there is also a new "self_test" function which tests
the module's basic functionality. This test can be triggered with the following
commands:
`ceph mgr module enable selftest`
`ceph mgr self-test module balancer`

Related Trello: https://trello.com/c/sWoKctzL/859-add-read-balancer-support-inside-the-balancer-module
Signed-off-by: Laura Flores <lflores@ibm.com>
17 months agoosd/scrub: add required sub-states to handle queued reservation requests 55131/head
Ronen Friedman [Sun, 7 Jan 2024 14:20:46 +0000 (08:20 -0600)]
osd/scrub: add required sub-states to handle queued reservation requests

The scrub async reserver is not yet used. All requests are treated as
'legacy' requests, i.e. requests that expect an immediate grant/deny
reply.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
17 months agoosd/scrub: add "queue my request" flag to replica reservation messages
Ronen Friedman [Fri, 5 Jan 2024 15:07:19 +0000 (09:07 -0600)]
osd/scrub: add "queue my request" flag to replica reservation messages

Up-to-date primaries will set this flag when sending a reservation
request. The replica OSD, if too busy to handle the request immediately, will queue
it until such time that the number of concurrent reservations is below the
configured limit. The queued requests are honored in FIFO order.

Old primaries will not set this flag, and will receive the expected
grant or deny reply immediately.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
17 months agoosd/scrub: add synchronous request to AsyncReserver API
Ronen Friedman [Thu, 4 Jan 2024 16:18:44 +0000 (10:18 -0600)]
osd/scrub: add synchronous request to AsyncReserver API

To be used when handling replica reservation requests from "old"
primaries, that expect an immediate grant/deny reply.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
17 months agoMerge pull request #55281 from Matan-B/wip-matanb-crimson-cyanstore-rmcoll
Matan Breizman [Sun, 28 Jan 2024 09:22:39 +0000 (11:22 +0200)]
Merge pull request #55281 from Matan-B/wip-matanb-crimson-cyanstore-rmcoll

crimson/os/cyanstore: support OP_RMCOLL

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: chunmei-liu <chunmei.liu@intel.com>
17 months agoMerge pull request #55333 from zdover23/wip-doc-2024-01-27-radosgw-index-verb-disagre...
zdover23 [Sun, 28 Jan 2024 08:17:52 +0000 (18:17 +1000)]
Merge pull request #55333 from zdover23/wip-doc-2024-01-27-radosgw-index-verb-disagreement

doc/radosgw: fix verb disagreement - index.html

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
17 months agodoc/radosgw: fix verb disagreement - index.html 55333/head
Zac Dover [Sat, 27 Jan 2024 08:40:20 +0000 (18:40 +1000)]
doc/radosgw: fix verb disagreement - index.html

Fix a tricky verb disagreement and rewrite a few sentences for what I
hope is greater clarity.

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
17 months agoMerge pull request #54423 from guits/dmcrypt-optim
Guillaume Abrioux [Sat, 27 Jan 2024 11:27:42 +0000 (12:27 +0100)]
Merge pull request #54423 from guits/dmcrypt-optim

ceph-volume: use 'no workqueue' options with dmcrypt

17 months agoceph-volume: fix partitions support in disk.get_devices() 54423/head
Guillaume Abrioux [Fri, 26 Jan 2024 20:35:18 +0000 (21:35 +0100)]
ceph-volume: fix partitions support in disk.get_devices()

The following:
```
is_part = get_file_contents(os.path.join(_sys_dev_block_path, item, 'partition')) == "1"
```
assumes any `/sys/dev/block/x:y/partition` contains '1' which is wrong.
This file actually contains the corresponding partition number.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
17 months agoMerge pull request #55323 from ceph/dependabot-github_actions-gregsdennis-dependencie...
Laura Flores [Fri, 26 Jan 2024 22:46:36 +0000 (16:46 -0600)]
Merge pull request #55323 from ceph/dependabot-github_actions-gregsdennis-dependencies-action-1.3.2

.github: Bump gregsdennis/dependencies-action from 1.2.3 to 1.3.2

17 months agomgr: add CephReleases class to sustainably compare releases
Laura Flores [Thu, 18 Jan 2024 18:55:28 +0000 (18:55 +0000)]
mgr: add CephReleases class to sustainably compare releases

Changes how the upmap balancer compares min_mon_release
to account for release names eventually wrapping around the alphabet.

Signed-off-by: Laura Flores <lflores@ibm.com>
17 months agoMerge pull request #55331 from ceph/revert-55096-sjust/for-review/wip-crush-msr
Laura Flores [Fri, 26 Jan 2024 22:15:46 +0000 (16:15 -0600)]
Merge pull request #55331 from ceph/revert-55096-sjust/for-review/wip-crush-msr

Revert "crush: add multistep retry rules"

17 months agoceph-volume: use 'no workqueue' options with dmcrypt
Guillaume Abrioux [Wed, 8 Nov 2023 16:43:46 +0000 (16:43 +0000)]
ceph-volume: use 'no workqueue' options with dmcrypt

CloudFlare engineers made some testing and realized that using
workqueues with encryption on flash devices has a bad effect.

See [1] for details.

With this patch it will make ceph-volume call crypsetup with
`--perf-no_read_workqueue` and `--perf-no_write_workqueue` options
when the device is not a rotational.

[1] https://blog.cloudflare.com/speeding-up-linux-disk-encryption/

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
Co-Authored-by: Stefan Kooman <stefan@kooman.org>
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
17 months agoRevert "crush: add multistep retry rules" 55331/head
Samuel Just [Fri, 26 Jan 2024 20:23:03 +0000 (12:23 -0800)]
Revert "crush: add multistep retry rules"

This PR was merged by accident before it was ready.
Let's revert for now and open a new PR.

Signed-off-by: Samuel Just <sjust@redhat.com>
17 months agoMerge pull request #55096 from athanatos/sjust/for-review/wip-crush-msr
Yuri Weinstein [Fri, 26 Jan 2024 19:57:53 +0000 (11:57 -0800)]
Merge pull request #55096 from athanatos/sjust/for-review/wip-crush-msr

crush: add multistep retry rules

Reviewed-by: Laura Flores <lflores@redhat.com>
17 months ago.github/workflows: update comment to reflect version change 55326/head
Laura Flores [Fri, 26 Jan 2024 15:59:18 +0000 (09:59 -0600)]
.github/workflows: update comment to reflect version change

Signed-off-by: Laura Flores <lflores@ibm.com>
17 months agorgw/rest: fix url decode of post params for iam/sts/sns 55329/head
Casey Bodley [Fri, 26 Jan 2024 14:53:30 +0000 (09:53 -0500)]
rgw/rest: fix url decode of post params for iam/sts/sns

add the `in_query=true` argument to `url_decode()` to replace '+' with ' '

Fixes: https://tracker.ceph.com/issues/64189
Signed-off-by: Casey Bodley <cbodley@redhat.com>
17 months agoMerge pull request #55303 from cbodley/wip-63130-debug
Casey Bodley [Fri, 26 Jan 2024 14:18:48 +0000 (14:18 +0000)]
Merge pull request #55303 from cbodley/wip-63130-debug

cmake/arrow: don't treat warnings as errors

Reviewed-by: Leonid Usov <leonid.usov@ibm.com>
17 months agoMerge pull request #55234 from ajarr/wip-64063
Ilya Dryomov [Fri, 26 Jan 2024 11:37:52 +0000 (12:37 +0100)]
Merge pull request #55234 from ajarr/wip-64063

rbd-nbd: use netlink interface by default

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
17 months agoMerge pull request #55121 from zhscn/fix-ambiguous-error
Kefu Chai [Fri, 26 Jan 2024 06:42:06 +0000 (14:42 +0800)]
Merge pull request #55121 from zhscn/fix-ambiguous-error

common: fix ambiguous error when using gcc 13

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Kefu Chai <tchaikov@gmail.com>
17 months agoMerge pull request #54896 from cyx1231st/wip-crimson-save-conn-foreign-copy
Yingxin [Fri, 26 Jan 2024 05:47:37 +0000 (13:47 +0800)]
Merge pull request #54896 from cyx1231st/wip-crimson-save-conn-foreign-copy

crimson/osd: drop a foreign-copy to shard-0 for every pg operation

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Chunmei Liu <chunmei.liu@intel.com>
Reviewed-by: Matan Breizman <mbreizma@redhat.com>
17 months agoMerge pull request #52496 from adamemerson/wip-rgw-surface-neorados
Casey Bodley [Fri, 26 Jan 2024 02:43:44 +0000 (02:43 +0000)]
Merge pull request #52496 from adamemerson/wip-rgw-surface-neorados

rgw: Surface neorados

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
17 months ago.github: Bump actions/labeler from 4.0.2 to 5.0.0
dependabot[bot] [Thu, 25 Jan 2024 23:57:22 +0000 (23:57 +0000)]
.github: Bump actions/labeler from 4.0.2 to 5.0.0

Bumps [actions/labeler](https://github.com/actions/labeler) from 4.0.2 to 5.0.0.
- [Release notes](https://github.com/actions/labeler/releases)
- [Commits](https://github.com/actions/labeler/compare/5c7539237e04b714afd8ad9b4aed733815b9fab4...8558fd74291d67161a8a78ce36a881fa63b766a9)

---
updated-dependencies:
- dependency-name: actions/labeler
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
17 months ago.github: Bump gregsdennis/dependencies-action from 1.2.3 to 1.3.2 55323/head
dependabot[bot] [Thu, 25 Jan 2024 23:57:13 +0000 (23:57 +0000)]
.github: Bump gregsdennis/dependencies-action from 1.2.3 to 1.3.2

Bumps [gregsdennis/dependencies-action](https://github.com/gregsdennis/dependencies-action) from 1.2.3 to 1.3.2.
- [Release notes](https://github.com/gregsdennis/dependencies-action/releases)
- [Commits](https://github.com/gregsdennis/dependencies-action/compare/80b5ffec566913b1494d5a8577ab0d60e476271d...f98d55eee1f66e7aaea4a60e71892736ae2548c7)

---
updated-dependencies:
- dependency-name: gregsdennis/dependencies-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
17 months agoMerge pull request #55308 from ljflores/wip-dependabot
Laura Flores [Thu, 25 Jan 2024 23:56:29 +0000 (17:56 -0600)]
Merge pull request #55308 from ljflores/wip-dependabot

17 months agoMerge pull request #55307 from zdover23/wip-doc-2024-01-25-radosgw-admin-usage
zdover23 [Thu, 25 Jan 2024 23:24:13 +0000 (09:24 +1000)]
Merge pull request #55307 from zdover23/wip-doc-2024-01-25-radosgw-admin-usage

doc/radosgw: edit "Usage" admin.rst

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
17 months agodoc/radosgw: edit "Usage" admin.rst 55307/head
Zac Dover [Wed, 24 Jan 2024 19:13:00 +0000 (05:13 +1000)]
doc/radosgw: edit "Usage" admin.rst

Edit "Usage" in doc/radosgw/admin.rst.

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
17 months agoMerge pull request #55315 from cbodley/wip-moncommand-dencoder
Casey Bodley [Thu, 25 Jan 2024 17:12:07 +0000 (17:12 +0000)]
Merge pull request #55315 from cbodley/wip-moncommand-dencoder

mon: zero-initialize MonCommand::flags

Reviewed-by: Kefu Chai <tchaikov@gmail.com>
17 months agorbd-nbd: map using netlink interface by default 55234/head
Ramana Raja [Wed, 17 Jan 2024 18:24:36 +0000 (13:24 -0500)]
rbd-nbd: map using netlink interface by default

Mapping rbd images to nbd devices using ioctl interface is not
robust. It was discovered that the device size or the md5 checksum
of the nbd device was incorrect immediately after mapping using
ioctl method. When using the nbd netlink interface to map RBD images
the issue was not encountered. Switch to using nbd netlink interface
for mapping.

Fixes: https://tracker.ceph.com/issues/64063
Signed-off-by: Ramana Raja <rraja@redhat.com>
17 months agocrimson/os/cyanstore: support OP_RMCOLL 55281/head
Matan Breizman [Tue, 23 Jan 2024 12:18:05 +0000 (12:18 +0000)]
crimson/os/cyanstore: support OP_RMCOLL

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
17 months agomon: zero-initialize MonCommand::flags 55315/head
Casey Bodley [Thu, 25 Jan 2024 14:45:08 +0000 (09:45 -0500)]
mon: zero-initialize MonCommand::flags

causing failures in check-generated.sh:

2 MonCommand
/tmp/typ-qmnDZ1ahR /tmp/typ-lIgJTZiUe differ: byte 100, line 6
**** MonCommand test 1 dump_json check failed ****
   ceph-dencoder type MonCommand select_test 1 dump_json > /tmp/typ-qmnDZ1ahR
   ceph-dencoder type MonCommand select_test 1 encode decode dump_json > /tmp/typ-lIgJTZiUe
6c6
<     "flags": 94661933599904
---
>     "flags": 94342467308704

Signed-off-by: Casey Bodley <cbodley@redhat.com>
17 months agoMerge pull request #55287 from ajarr/wip-64139
Ilya Dryomov [Thu, 25 Jan 2024 12:04:26 +0000 (13:04 +0100)]
Merge pull request #55287 from ajarr/wip-64139

rbd-nbd: fix resize of images mapped using netlink

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
17 months agomgr/dashboard: Code refactor rgw migrate component for using correctly the MIGRATE... 55312/head
Afreen [Thu, 25 Jan 2024 11:21:06 +0000 (16:51 +0530)]
mgr/dashboard:  Code refactor rgw migrate component for using correctly the MIGRATE action verb

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

this.MIGRATE = $localize`Migrate to Multi-Site`;

Just like other action verbs we should set this.Migrate = "MIGRATE" only.
This will require rephrasing in the following places as well:
1. https://github.com/ceph/ceph/blob/d3256c484136a1b32b79a904861f681a9248ba3c/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-details/rgw-multisite-details.component.ts#L223-L228

2. https://github.com/ceph/ceph/blob/d3256c484136a1b32b79a904861f681a9248ba3c/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-migrate/rgw-multisite-migrate.component.ts#L180-L18

Signed-off-by: Afreen <afreen23.git@gmail.com>
17 months agoMerge pull request #55270 from afreen23/fix-cap-inconsistency-multisite
Nizamudeen A [Thu, 25 Jan 2024 10:10:43 +0000 (15:40 +0530)]
Merge pull request #55270 from afreen23/fix-cap-inconsistency-multisite

mgr/dashboard: Fix inconsistency in capitalisation of "Multi-site"

Reviewed-by: Ankush Behl <cloudbehl@gmail.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: rosinL <NOT@FOUND>
17 months agoMerge pull request #55182 from rkachach/fix_issue_64029
Redouane Kachach [Thu, 25 Jan 2024 09:23:43 +0000 (10:23 +0100)]
Merge pull request #55182 from rkachach/fix_issue_64029

mgr/rook: adding some basic rook e2e testing

17 months agomgr/dashboard: create cephfs snapshot clone 55284/head
Nizamudeen A [Tue, 23 Jan 2024 16:47:46 +0000 (22:17 +0530)]
mgr/dashboard: create cephfs snapshot clone

Fixes: https://tracker.ceph.com/issues/64175
Signed-off-by: Nizamudeen A <nia@redhat.com>
17 months agoqa: `fs volume rename` requires `fs fail` and `refuse_client_session` set 55309/head
Venky Shankar [Thu, 25 Jan 2024 06:38:50 +0000 (12:08 +0530)]
qa: `fs volume rename` requires `fs fail` and `refuse_client_session` set

Introduced-by: fe3a4b9683d7b6f72f57f5ed8bc324bdbb24351f
Fixes: http://tracker.ceph.com/issues/64174
Signed-off-by: Venky Shankar <vshankar@redhat.com>
17 months agoMerge pull request #55266 from athanatos/sjust/wip-63996
Samuel Just [Thu, 25 Jan 2024 05:05:09 +0000 (21:05 -0800)]
Merge pull request #55266 from athanatos/sjust/wip-63996

crimson: retain map references in OSDSingletonState::store_maps

Reviewed-by: Xuehan Xu <xuxuehan@qianxin.com>
Reviewed-by: Matan Breizman <mbreizma@redhat.com>
17 months agocrimson/osd/shard_services: retain map references in OSDSingletonState::store_maps 55266/head
Samuel Just [Wed, 10 Jan 2024 17:43:45 +0000 (09:43 -0800)]
crimson/osd/shard_services: retain map references in OSDSingletonState::store_maps

Introduced: 3f11cd94
Fixes: https://tracker.ceph.com/issues/63996
Signed-off-by: Samuel Just <sjust@redhat.com>