]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
18 months agocephadm: convert init containers script to use a template
John Mulligan [Mon, 11 Dec 2023 19:45:46 +0000 (14:45 -0500)]
cephadm: convert init containers script to use a template

Convert the init containers run script to be based on a template, like
the sidecar run scripts are. The new script is loosely based on the
sidecars run script but only does actions in batches - logically
iterating over each init container configured.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: move init container script generation to a function
John Mulligan [Tue, 5 Dec 2023 21:20:57 +0000 (16:20 -0500)]
cephadm: move init container script generation to a function

Move the generation of the init container run script to a small function
fixing a missing `set -e` along the way. This isolates the logic of
generating this run script.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: call functions instead of executing rm in rm_cluster
John Mulligan [Sun, 19 Nov 2023 21:35:06 +0000 (16:35 -0500)]
cephadm: call functions instead of executing rm in rm_cluster

Convert a bunch of invocations of rm via a subprocess to function calls.
This should make it easier (or possible?) to test the function
in the unit test framework as well as possibly saving a few resources.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: remove a non-functional line in _rm_cluster
John Mulligan [Sun, 19 Nov 2023 21:06:38 +0000 (16:06 -0500)]
cephadm: remove a non-functional line in _rm_cluster

Remove a line from _rm_cluster that has no effect. The line uses
call_throws to execute an `rm -rf` command. The argument contains
asterisk chars that indicate that the file(s)/dir(s) to be created are
expected to match the given pattern. However, globs do not work in this
context in contemporary versions of cephadm.

To double check I added the following temporary unit test:
```
def test_does_it_glob(tmp_path):
    from cephadmlib.call_wrappers import call_throws

    d1 = (tmp_path / 'dir1')
    d1.mkdir()
    fns = ['f1.txt', 'f2.txt', 'f3.txt', 'f4']
    for fn in fns:
        with open(d1/fn, "w") as fh:
            fh.write("xxx")
    assert d1.exists()
    for fn in fns:
        assert (d1 / fn).exists()

    ctx = FakeContext()
    call_throws(ctx, ['rm', '-rf', f'{d1}/*.txt'])
    print('files:', os.listdir(d1))
    assert d1.exists()
    for fn in fns:
        if fn.endswith('.txt'):
            assert not (d1 / fn).exists()
        else:
            assert (d1 / fn).exists()
```

If globs worked in this context this test would have passed. It does
not. I confirmed that the current implementation of call/call_wrapper
does not execute the command in a shell context.

I wondered if it was possible that an earlier version of cephadm did
execute this command in a shell context and some changes along the way
changed the behavior. I tracked the origin of the line back to
16ebc620349f6e7c9afa6b992c85900f56fcfca3 the first change to implement
rm-cluster. In this commit the code uses subprocess.check_output
directly. I am familiar with check_output and unless `shell=True` is
passed this function doesn't execute the args in a shell context.  The
`shell=True` argument is not passed to check_output. This means that the
very first implementation of this line suffered from the same issue
- it would have no effect on any files except one named with actual
  asterisk (`*`) characters.

While I'm sure there was a good intention behind this line, the fact
that it persisted in the code so long in a non-functional state and no
one noticed in both production and qa testing makes me feel that it can
be safely removed with no negative effect. Removing the line simplifies
the code and avoids needing to spend effort unit-testing or manually
checking a fix.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: add a unit test to check sidecar removal
John Mulligan [Sun, 19 Nov 2023 20:39:52 +0000 (15:39 -0500)]
cephadm: add a unit test to check sidecar removal

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: update rm cluster to remove sidecar/init-ctr services
John Mulligan [Sun, 19 Nov 2023 12:56:46 +0000 (07:56 -0500)]
cephadm: update rm cluster to remove sidecar/init-ctr services

A previous patch updated the rm-daemon functionality to remove sidecar
and init-container systemd services. This patch does the same for the
rm-cluster codepath.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: update _rm_cluster to call terminate_service
John Mulligan [Sun, 19 Nov 2023 00:09:29 +0000 (19:09 -0500)]
cephadm: update _rm_cluster to call terminate_service

The terminate_service function was added to encapsulate the act of
terminating a systemd service. The rm-deamon handler was updated to use
this function previously; this commit updates rm-cluster function(s)
to do the same. This needed a bunch of test updates do to how the tests
were mocking commands.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: add support to remove sidecar/init-ctr systemd units
John Mulligan [Sat, 18 Nov 2023 19:03:34 +0000 (14:03 -0500)]
cephadm: add support to remove sidecar/init-ctr systemd units

Add support to the command_rm_daemon function to remove systemd services
and corresponding unit files for any sidecars or init-containers
associated with a primary daemon.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: replace some calls to rm with fs function calls
John Mulligan [Sat, 18 Nov 2023 18:07:57 +0000 (13:07 -0500)]
cephadm: replace some calls to rm with fs function calls

This should be a little cleaner, perhaps a tiny performance improvement,
and most importantly work better with the virtual-fs provided for the
unit tests and make this function more testable in the future.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: minor reorgs to command_rm_daemon
John Mulligan [Sat, 18 Nov 2023 16:50:29 +0000 (11:50 -0500)]
cephadm: minor reorgs to command_rm_daemon

Make a few small chanes to command_rm_daemon to clean it up in
preparation for future changes. Move the construction of a
DaemonIdentity earlier and use the service name derived directly from it
if possible. I didn't remove the old approach of looking up a service
name in the listing because I don't know if doing so would break
old/adopted services and there's no unit test coverage for that.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: add a terminate_service systemd function
John Mulligan [Sun, 19 Nov 2023 00:00:38 +0000 (19:00 -0500)]
cephadm: add a terminate_service systemd function

Add a function that encapsulates the common 3-step process found in
cephadm of stopping, resetting errors, and disabling a service.
This will be used to handle new services to stop as well as cleaning
up some places where the three steps are performed inline.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: add sidecars_from_dropin function
John Mulligan [Sat, 18 Nov 2023 18:59:19 +0000 (13:59 -0500)]
cephadm: add sidecars_from_dropin function

Add a sidecars_from_dropin function that takes a minimal PathInfo object
and returns a PathInfo populated with sidecars information based on
reading the content of the dropin file. This will be useful when we need
information on configured sidecars but are not on the deploy path.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: add method for parsing a sub identity from a service name
John Mulligan [Sat, 18 Nov 2023 18:58:33 +0000 (13:58 -0500)]
cephadm: add method for parsing a sub identity from a service name

This will become handy later when we need DaemonSubIdentity objects and
are not on the deploy path.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: add unlink_file function
John Mulligan [Sat, 18 Nov 2023 18:57:48 +0000 (13:57 -0500)]
cephadm: add unlink_file function

Add the unlink_file function to file_utils. This fills in a gap between
python 3.6 and features provided in pathlib.Path in later versions of
python. Adds an option to ignore all errors for good measure.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: rename {get,lookup}_unit_name_by_daemon_name
John Mulligan [Sat, 18 Nov 2023 16:35:36 +0000 (11:35 -0500)]
cephadm: rename {get,lookup}_unit_name_by_daemon_name

Rename get_unit_name_by_daemon_name to lookup__unit_name_by_daemon_name
to emphasize that the function does a full lookup (via the daemon list)
to determine the systemd service name for the given values and that
there's a potential performance implication to doing that.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: avoid errors when calling sub-ident method
John Mulligan [Fri, 17 Nov 2023 19:43:06 +0000 (14:43 -0500)]
cephadm: avoid errors when calling sub-ident method

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: convert iscsi daemon form to use sidecars
John Mulligan [Fri, 17 Nov 2023 20:41:17 +0000 (15:41 -0500)]
cephadm: convert iscsi daemon form to use sidecars

Convert the iscsi container daemon form class to produce a sidecar
container for the tcmu runner and reduce the amount of special casing
for iscsi.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocepahdm: add support for sidecars to container daemon forms
John Mulligan [Sun, 15 Oct 2023 16:57:42 +0000 (12:57 -0400)]
cepahdm: add support for sidecars to container daemon forms

Add support for producing sidecar containers to the container daemon
form type and pass the sidecars through to the unit/script management
function.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: add function for writing sidecar script
John Mulligan [Fri, 17 Nov 2023 20:31:03 +0000 (15:31 -0500)]
cephadm: add function for writing sidecar script

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: add template for sidecar run script
John Mulligan [Fri, 17 Nov 2023 20:20:29 +0000 (15:20 -0500)]
cephadm: add template for sidecar run script

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: switch to new style init containers
John Mulligan [Fri, 17 Nov 2023 20:08:24 +0000 (15:08 -0500)]
cephadm: switch to new style init containers

Convert the call that writes out files for a daemon to use the new
dedicated systemd-unit support for init containers.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: black format systemd_unit.py
John Mulligan [Fri, 17 Nov 2023 19:34:52 +0000 (14:34 -0500)]
cephadm: black format systemd_unit.py

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: add support for systemd unit files for init/sidecar ctrs
John Mulligan [Fri, 17 Nov 2023 19:34:24 +0000 (14:34 -0500)]
cephadm: add support for systemd unit files for init/sidecar ctrs

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: add templates for new systemd unit files
John Mulligan [Fri, 17 Nov 2023 19:33:32 +0000 (14:33 -0500)]
cephadm: add templates for new systemd unit files

Add templates that will be used for advanced systemd services: sidecars,
init containers, and drop-in files to glue them all together.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocepahdm: avoid subclass related issues for data_dir
John Mulligan [Fri, 17 Nov 2023 20:45:55 +0000 (15:45 -0500)]
cepahdm: avoid subclass related issues for data_dir

Do not have data dir depend on the daemon_name property. This property
is overriden by the subclass(es) but we want DaemonIdentities and
DaemonSubIdentities to share the same data_dir.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: add a daemon identity method for getting sidecar script path
John Mulligan [Fri, 17 Nov 2023 19:33:11 +0000 (14:33 -0500)]
cephadm: add a daemon identity method for getting sidecar script path

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: add a utilty method for type checking DaemonSubIdentity types
John Mulligan [Sun, 1 Oct 2023 16:49:59 +0000 (12:49 -0400)]
cephadm: add a utilty method for type checking DaemonSubIdentity types

Add a `must` method that ensures a DaemonIdentity is a DaemonSubIdentity
in a single call.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: add SidecarContainer type
John Mulligan [Sat, 30 Sep 2023 14:10:37 +0000 (10:10 -0400)]
cephadm: add SidecarContainer type

Add a new type representing sidecar containers.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: add a container copying method
John Mulligan [Fri, 29 Sep 2023 19:34:28 +0000 (15:34 -0400)]
cephadm: add a container copying method

Add a method for duplicating the container properties into a new object.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: add daemon identity methods for upcoming sidecars/init services
John Mulligan [Fri, 29 Sep 2023 18:47:10 +0000 (14:47 -0400)]
cephadm: add daemon identity methods for upcoming sidecars/init services

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: use service_name method of daemon identity
John Mulligan [Fri, 17 Nov 2023 16:23:47 +0000 (11:23 -0500)]
cephadm: use service_name method of daemon identity

Use the new service_name method of the DaemonIdentity type in some basic
cases where string concatenation was being used.
I also converted the name of the agent's helper method to match and made
it private to avoid future confusion.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: add systemd name generation to daemon identity
John Mulligan [Fri, 29 Sep 2023 18:47:10 +0000 (14:47 -0400)]
cephadm: add systemd name generation to daemon identity

There are a bunch of places in the code that wants the full systemd
service name but the code generally is just doing string concatenation.
Add a method to avoid stringing it all the time. This will help as there
will be more systemd work in the future.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agoMerge pull request #55043 from zdover23/wip-doc-2024-01-02-rados-troubleshooting...
Anthony D'Atri [Tue, 2 Jan 2024 14:27:19 +0000 (09:27 -0500)]
Merge pull request #55043 from zdover23/wip-doc-2024-01-02-rados-troubleshooting-log-and-debug-title

doc/rados: improve subsection title in log-and-debug.rst

18 months agodoc/rados: improve subsection title in log-and-debug.rst 55043/head
Zac Dover [Tue, 2 Jan 2024 12:21:08 +0000 (22:21 +1000)]
doc/rados: improve subsection title in log-and-debug.rst

Change the title of "Logging Settings" to "Logging and Debugging
Settings" in doc/rados/troubleshooting/log-and-debug.rst.

Signed-off-by: Zac Dover <zac.dover@proton.me>
18 months agoMerge pull request #54876 from ifed01/wip-ifed-fix-63795
Igor Fedotov [Tue, 2 Jan 2024 09:25:17 +0000 (12:25 +0300)]
Merge pull request #54876 from ifed01/wip-ifed-fix-63795

test/store_test: fix deferred writing test cases

Reviewed-by: Adam Kupczyk <akupczyk@ibm.com>
Reviewed-by: Pere Diaz Bou <pere-altea@hotmail.com>
18 months agoMerge pull request #55038 from dparmar18/minor-doc-update-disaster-recovery-experts
Anthony D'Atri [Mon, 1 Jan 2024 15:11:16 +0000 (10:11 -0500)]
Merge pull request #55038 from dparmar18/minor-doc-update-disaster-recovery-experts

doc/cephfs: Update disaster-recovery-experts.rst to mention Slack

18 months agodoc/cephfs: Update disaster-recovery-experts.rst to mention Slack 55038/head
Dhairya Parmar [Mon, 1 Jan 2024 11:43:12 +0000 (17:13 +0530)]
doc/cephfs: Update disaster-recovery-experts.rst to mention Slack

Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
18 months agoMerge pull request #55031 from zdover23/wip-doc-2024-01-01-mgr-nfs-mounting-windows
Anthony D'Atri [Mon, 1 Jan 2024 00:30:47 +0000 (19:30 -0500)]
Merge pull request #55031 from zdover23/wip-doc-2024-01-01-mgr-nfs-mounting-windows

doc/mgr: document lack of MSWin NFS 4.x support

18 months agodoc/mgr: document lack of MSWin NFS 4.x support 55031/head
Zac Dover [Mon, 1 Jan 2024 00:10:42 +0000 (10:10 +1000)]
doc/mgr: document lack of MSWin NFS 4.x support

Document that no version of Microsoft Windows supports mounting an NFS
v4.x export natively, as of the time of this commit.

This commit has been made in response to an anonymous note left on
https://pad.ceph.com/p/Report_Documentation_Bugs.

Signed-off-by: Zac Dover <zac.dover@proton.me>
18 months agoMerge pull request #55030 from zdover23/wip-doc-2023-12-31-radosgw-admin-remove-user...
Anthony D'Atri [Sun, 31 Dec 2023 14:22:51 +0000 (09:22 -0500)]
Merge pull request #55030 from zdover23/wip-doc-2023-12-31-radosgw-admin-remove-user-subuser-rewrite

doc/radosgw: edit "remove a subuser"

18 months agodoc/radosgw: edit "remove a subuser" 55030/head
Zac Dover [Sun, 31 Dec 2023 06:22:33 +0000 (16:22 +1000)]
doc/radosgw: edit "remove a subuser"

Edit the English language in the section "Remove a Subuser" in
doc/radosgw/admin.rst. This commit is made in response to Matt
Benjamin's request for improvement of this section
(https://github.com/ceph/ceph/pull/55028#discussion_r1438599833).

Signed-off-by: Zac Dover <zac.dover@proton.me>
18 months agoMerge pull request #55023 from zdover23/wip-doc-2023-12-29-radosgw-admin-remove-user...
zdover23 [Sat, 30 Dec 2023 12:23:51 +0000 (22:23 +1000)]
Merge pull request #55023 from zdover23/wip-doc-2023-12-29-radosgw-admin-remove-user-subuser

doc/radosgw: edit sections

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
18 months agodoc/radosgw: edit sections 55023/head
Zac Dover [Fri, 29 Dec 2023 08:32:04 +0000 (18:32 +1000)]
doc/radosgw: edit sections

Edit the following sections in doc/radosgw/admin.rst:

* Remove a User
* Remove a Subuser

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
18 months agoMerge pull request #54982 from ronen-fr/wip-rf-be-error
Ronen Friedman [Thu, 28 Dec 2023 20:48:46 +0000 (22:48 +0200)]
Merge pull request #54982 from ronen-fr/wip-rf-be-error

osd/scrub: unhandled scrub backend errors should cause an abort

Reviewed-by: Matan Breizman <mbreizma@redhat.com>
18 months agoMerge pull request #54907 from ljflores/wip-balancer-incremental
Yuri Weinstein [Thu, 28 Dec 2023 17:08:12 +0000 (09:08 -0800)]
Merge pull request #54907 from ljflores/wip-balancer-incremental

osd: fix Incremental decode for new/old_pg_upmap_primary

Reviewed-by: Josh Salomon <josh.salomon@gmail.com>
18 months agoMerge pull request #54627 from maydaycc/wip-63615
Yuri Weinstein [Thu, 28 Dec 2023 17:06:45 +0000 (09:06 -0800)]
Merge pull request #54627 from maydaycc/wip-63615

mgr: set MMgrBeacon high priority

Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
18 months agoMerge pull request #54194 from ifed01/wip-ifed-refresh-perf-counters
Yuri Weinstein [Thu, 28 Dec 2023 17:05:44 +0000 (09:05 -0800)]
Merge pull request #54194 from ifed01/wip-ifed-refresh-perf-counters

os: introduce ObjectStore::refresh_perf_counters() method

Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
18 months agoMerge pull request #54047 from lxbsz/wip-62081
Yuri Weinstein [Thu, 28 Dec 2023 17:05:10 +0000 (09:05 -0800)]
Merge pull request #54047 from lxbsz/wip-62081

osd: clean up the sparse-read related code

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
18 months agoMerge pull request #54644 from idryomov/wip-63607
Ilya Dryomov [Thu, 28 Dec 2023 17:03:24 +0000 (18:03 +0100)]
Merge pull request #54644 from idryomov/wip-63607

librados: make querying pools for selfmanaged snaps reliable

Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
18 months agoMerge pull request #55011 from zdover23/wip-doc-2023-12-27-radosgw-admin-create-a...
zdover23 [Thu, 28 Dec 2023 00:44:17 +0000 (10:44 +1000)]
Merge pull request #55011 from zdover23/wip-doc-2023-12-27-radosgw-admin-create-a-subuser

doc/radosgw: admin.rst - edit "Create a Subuser"

Reviewed-by: Cole Mitchell <cole.mitchell.ceph@gmail.com>
18 months agoMerge pull request #54998 from ronen-fr/wip-rf-lmap-event
Ronen Friedman [Wed, 27 Dec 2023 19:15:29 +0000 (21:15 +0200)]
Merge pull request #54998 from ronen-fr/wip-rf-lmap-event

osd/scrub: remove unused PGScrubGotLocalMap message

Reviewed-by: Aishwarya Mathuria <amathuri@redhat.com>
18 months agoMerge pull request #55016 from zdover23/wip-doc-2023-12-27-radosgw-user-info-suspend...
zdover23 [Wed, 27 Dec 2023 14:48:20 +0000 (00:48 +1000)]
Merge pull request #55016 from zdover23/wip-doc-2023-12-27-radosgw-user-info-suspend-enable

doc/radosgw: admin.rst - edit sections

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
18 months agodoc/radosgw: admin.rst - edit sections 55016/head
Zac Dover [Wed, 27 Dec 2023 12:14:59 +0000 (22:14 +1000)]
doc/radosgw: admin.rst - edit sections

Edit the following sections in doc/radosgw/admin.rst:

- Get User Info
- Modify User Info
- User Suspend/Enable (I split this into two sections)

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
18 months agoMerge pull request #54835 from rhcs-dashboard/directories-fixes
Nizamudeen A [Wed, 27 Dec 2023 10:30:07 +0000 (16:00 +0530)]
Merge pull request #54835 from rhcs-dashboard/directories-fixes

mgr/dashboard: small fixes to directories view

Reviewed-by: Ankush Behl <cloudbehl@gmail.com>
18 months agodoc/radosgw: admin.rst - edit "Create a Subuser" 55011/head
Zac Dover [Wed, 27 Dec 2023 04:28:51 +0000 (14:28 +1000)]
doc/radosgw: admin.rst - edit "Create a Subuser"

Edit the section "Create a Subuser" in doc/radosgw/admin.rst.

Signed-off-by: Zac Dover <zac.dover@proton.me>
18 months agoMerge pull request #54663 from Matan-B/wip-matanb-cot-pgmeta-attrs
Yuri Weinstein [Tue, 26 Dec 2023 17:54:35 +0000 (09:54 -0800)]
Merge pull request #54663 from Matan-B/wip-matanb-cot-pgmeta-attrs

tools/ceph_objectstore_tool: action_on_all_objects_in_pg to skip pgmeta

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
18 months agoMerge pull request #54597 from sseshasa/wip-mclk-snaptrim-cost
Yuri Weinstein [Tue, 26 Dec 2023 16:27:37 +0000 (08:27 -0800)]
Merge pull request #54597 from sseshasa/wip-mclk-snaptrim-cost

osd: Tune snap trim item cost to reflect a PGs' average object size for mClock scheduler

Reviewed-by: Samuel Just <sjust@redhat.com>
18 months agoMerge pull request #54518 from NitzanMordhai/wip-nitzan-cleanomap-rados-optional
Yuri Weinstein [Tue, 26 Dec 2023 16:27:02 +0000 (08:27 -0800)]
Merge pull request #54518 from NitzanMordhai/wip-nitzan-cleanomap-rados-optional

Tools/rados: Improve Error Messaging for Object Name Resolution

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Matan Breizman <Matan.Brz@gmail.com>
18 months agoMerge pull request #54498 from Matan-B/wip-matanb-send-inc-map-refactor
Yuri Weinstein [Tue, 26 Dec 2023 16:26:03 +0000 (08:26 -0800)]
Merge pull request #54498 from Matan-B/wip-matanb-send-inc-map-refactor

osd/OSD: rewrite send_incremental_map()

Reviewed-by: Samuel Just <sjust@redhat.com>
18 months agoMerge pull request #55003 from zdover23/wip-doc-2023-12-26-radosgw-admin-create-a...
zdover23 [Tue, 26 Dec 2023 08:34:10 +0000 (18:34 +1000)]
Merge pull request #55003 from zdover23/wip-doc-2023-12-26-radosgw-admin-create-a-user

doc/radosgw: admin.rst - edit "Create a User"

Reviewed-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
18 months agodoc/radosgw: admin.rst - edit "Create a User" 55003/head
Zac Dover [Tue, 26 Dec 2023 04:32:35 +0000 (14:32 +1000)]
doc/radosgw: admin.rst - edit "Create a User"

Edit the section "Create a User" in doc/radosgw/admin.rst.

Signed-off-by: Zac Dover <zac.dover@proton.me>
18 months agoMerge pull request #54997 from zdover23/wip-doc-2023-12-24-radosgw-admin-main
zdover23 [Sun, 24 Dec 2023 20:46:30 +0000 (06:46 +1000)]
Merge pull request #54997 from zdover23/wip-doc-2023-12-24-radosgw-admin-main

doc/radosgw: edit admin.rst 1 of x

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
18 months agodoc/radosgw: edit admin.rst 1 of x 54997/head
Zac Dover [Sun, 24 Dec 2023 10:24:26 +0000 (20:24 +1000)]
doc/radosgw: edit admin.rst 1 of x

Edit doc/radosgw/admin.rst to the end of the section "User Management".
Correct grammar (mostly awkward prepositions) and tidy up weird clauses.

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
18 months agoosd/scrub: remove unused PGScrubGotLocalMap message 54998/head
Ronen Friedman [Sat, 23 Dec 2023 18:19:06 +0000 (12:19 -0600)]
osd/scrub: remove unused PGScrubGotLocalMap message

The relevant event (IntLocalMapDone) is processed directly within the
scrubber, instead of being queued to the OSD events queue.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
18 months agoosd/scrub: unhandled scrub backend errors should cause an abort 54982/head
Ronen Friedman [Tue, 28 Nov 2023 15:46:01 +0000 (09:46 -0600)]
osd/scrub: unhandled scrub backend errors should cause an abort

... as we do not have any mechanism to handle them.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
18 months agoMerge pull request #54801 from WangWNico/balancer_project
Laura Flores [Fri, 22 Dec 2023 21:39:20 +0000 (15:39 -0600)]
Merge pull request #54801 from WangWNico/balancer_project

Improve Ceph Balancer Status Output

18 months agoMerge pull request #53191 from rzarzynski/wip-all-kickoff-s-2
Laura Flores [Fri, 22 Dec 2023 20:16:49 +0000 (14:16 -0600)]
Merge pull request #53191 from rzarzynski/wip-all-kickoff-s-2

kickoff v19 squid

18 months agoMerge pull request #54989 from zdover23/wip-doc-2023-12-22-radosgw-compression-suppor...
Anthony D'Atri [Fri, 22 Dec 2023 17:51:43 +0000 (12:51 -0500)]
Merge pull request #54989 from zdover23/wip-doc-2023-12-22-radosgw-compression-supported-plugins

doc/radosgw: list supported plugins-compression.rst

18 months agodoc/radosgw: list supported plugins-compression.rst 54989/head
Zac Dover [Fri, 22 Dec 2023 07:39:20 +0000 (17:39 +1000)]
doc/radosgw: list supported plugins-compression.rst

List supported compression plugins in doc/radosgw/compression.rst.

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
18 months agoMerge pull request #54970 from zdover23/wip-doc-2023-12-20-radosgw-compression-grammar
zdover23 [Thu, 21 Dec 2023 11:06:55 +0000 (21:06 +1000)]
Merge pull request #54970 from zdover23/wip-doc-2023-12-20-radosgw-compression-grammar

doc/radosgw: edit compression.rst

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
18 months agodoc/radosgw: edit compression.rst 54970/head
Zac Dover [Wed, 20 Dec 2023 05:00:38 +0000 (15:00 +1000)]
doc/radosgw: edit compression.rst

Improve the grammar and simplify the sentence structure of
doc/radosgw/compression.rst. This commit is made in anticipation of a
near-future commit that will list the compression algorithms available
to users of Ceph.

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
18 months agoMerge pull request #54918 from tchaikov/cmake-build-rockdb-with-cxxflags
Kefu Chai [Thu, 21 Dec 2023 03:04:44 +0000 (11:04 +0800)]
Merge pull request #54918 from tchaikov/cmake-build-rockdb-with-cxxflags

cmake/modules/BuildRocksDB.cmake: inherit parent's CMAKE_CXX_FLAGS

Reviewed-by: Casey Bodley <cbodley@redhat.com>
18 months agoMerge pull request #54936 from ronen-fr/wip-rf-pcnt3
Ronen Friedman [Wed, 20 Dec 2023 19:57:37 +0000 (21:57 +0200)]
Merge pull request #54936 from ronen-fr/wip-rf-pcnt3

osd/scrub: initial set of performance counters

Reviewed-by: Nitzan Mordechai <nmordech@redhat.com>
18 months agoosd/scrub: collect replica reservations performance counters 54936/head
Ronen Friedman [Sun, 17 Dec 2023 18:14:53 +0000 (12:14 -0600)]
osd/scrub: collect replica reservations performance counters

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
18 months agotest/osd: log scrub performance counters in osd-scrub-test.sh
Ronen Friedman [Sat, 16 Dec 2023 10:10:22 +0000 (04:10 -0600)]
test/osd: log scrub performance counters in osd-scrub-test.sh

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
18 months agoosd/scrub: provide selected counters set to Scrubber & FSM
Ronen Friedman [Sat, 16 Dec 2023 10:02:54 +0000 (04:02 -0600)]
osd/scrub: provide selected counters set to Scrubber & FSM

also - move most time keeping from the Scrubber to the FSM.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
18 months agoosd/scrub: add a basic set of performance counters
Ronen Friedman [Thu, 14 Dec 2023 14:27:13 +0000 (08:27 -0600)]
osd/scrub: add a basic set of performance counters

Add a labeled set of performance counters, with the labels selecting
one of four copies of the counters - one per each scrub level and
pool type combination.

Inside the Scrubber, the relevant set of counters is selected
when the scrub is initialized.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
18 months agoMerge pull request #54828 from ronen-fr/wip-rf-dec-fixes-1
Ronen Friedman [Wed, 20 Dec 2023 16:53:27 +0000 (18:53 +0200)]
Merge pull request #54828 from ronen-fr/wip-rf-dec-fixes-1

osd/scrub: don't block high-priority scrubs on local resources

Reviewed-by: Samuel Just <sjust@redhat.com>-
18 months agoMerge pull request #54023 from Matan-B/wip-matanb-objectstore-tool-superblock
Yuri Weinstein [Wed, 20 Dec 2023 15:24:11 +0000 (07:24 -0800)]
Merge pull request #54023 from Matan-B/wip-matanb-objectstore-tool-superblock

tools/ceph_objectstore_tool: Support get/set/superblock

Reviewed-by: Samuel Just <sjust@redhat.com>
18 months agoMerge pull request #54195 from ifed01/wip-ifed-silent-warns
Igor Fedotov [Wed, 20 Dec 2023 12:18:41 +0000 (15:18 +0300)]
Merge pull request #54195 from ifed01/wip-ifed-silent-warns

core: silent a couple of compiler warnings on uninitialized vars.

Reviewed-by: Adam Kupczyk <akupczyk@ibm.com>
18 months agoMerge pull request #52871 from NitzanMordhai/wip-nitzan-ceph-dencoder-extend-osd...
NitzanMordhai [Wed, 20 Dec 2023 07:43:03 +0000 (09:43 +0200)]
Merge pull request #52871 from NitzanMordhai/wip-nitzan-ceph-dencoder-extend-osd-type-available

ceph-dencoder: OSD - Add missing types

18 months agoceph-dencoder: osd - Add missing types 52871/head
NitzanMordhai [Wed, 28 Jun 2023 09:57:11 +0000 (09:57 +0000)]
ceph-dencoder: osd - Add missing types

Currently, ceph-dencoder lacks certain osd types, preventing us from accurately checking the ceph corpus for encode-decode mismatches.
This pull request aims to address this issue by adding the missing types to ceph-dencoder.

To successfully incorporate these types into ceph-dencoder, we need to introduce the necessary `dump` and `generate_test_instances`
functions that was missing in some types. These functions are essential for proper encode and decode of the added types.

This PR will enhance the functionality of ceph-dencoder by including the missing types, enabling a comprehensive analysis of encode-decode consistency.
With the addition of these types, we can ensure the robustness and correctness of the ceph corpus.

This update will significantly contribute to improving the overall reliability and accuracy of ceph-dencoder.
It allows for a more comprehensive assessment of the encode-decode behavior, leading to enhanced data integrity and stability within the ceph ecosystem.

Fixes: https://tracker.ceph.com/issues/61788
Signed-off-by: Nitzan Mordechai <nmordech@redhat.com>
18 months agoMerge pull request #54916 from tchaikov/cmake-boost-workaround
Kefu Chai [Wed, 20 Dec 2023 02:14:38 +0000 (10:14 +0800)]
Merge pull request #54916 from tchaikov/cmake-boost-workaround

cmake: only apply workaround for boost < 1.84

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
18 months agoMerge pull request #54919 from tchaikov/cmake-boost-1.84
Kefu Chai [Wed, 20 Dec 2023 02:14:17 +0000 (10:14 +0800)]
Merge pull request #54919 from tchaikov/cmake-boost-1.84

cmake: add 1.82 and 1.83 to known versions

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
18 months agoMerge pull request #53591 from EdwardVitor/fix-makecheck-warning
Yuri Weinstein [Tue, 19 Dec 2023 23:00:22 +0000 (15:00 -0800)]
Merge pull request #53591 from EdwardVitor/fix-makecheck-warning

kv: resolve three compilation warnings

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
18 months agoMerge pull request #53524 from sseshasa/wip-fix-osd-op-queue-rndmize-62171
Yuri Weinstein [Tue, 19 Dec 2023 22:59:25 +0000 (14:59 -0800)]
Merge pull request #53524 from sseshasa/wip-fix-osd-op-queue-rndmize-62171

osd: Apply randomly selected scheduler type across all OSD shards

Reviewed-by: Samuel Just <sjust@redhat.com>
18 months agoMerge pull request #53228 from rzarzynski/wip-bug-62645
Yuri Weinstein [Tue, 19 Dec 2023 22:57:48 +0000 (14:57 -0800)]
Merge pull request #53228 from rzarzynski/wip-bug-62645

 common/weighted_shuffle: don't feed std::discrete_distribution with all-zero weights

Reviewed-by: Neha Ojha <nojha@redhat.com>
18 months agoMerge pull request #54953 from ljflores/wip-fix-18.2.1-doc
Ilya Dryomov [Tue, 19 Dec 2023 21:12:15 +0000 (22:12 +0100)]
Merge pull request #54953 from ljflores/wip-fix-18.2.1-doc

doc/releases: specify dashboard improvements

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
18 months agodoc/releases: specify dashboard improvements 54953/head
Laura Flores [Mon, 18 Dec 2023 21:09:43 +0000 (15:09 -0600)]
doc/releases: specify dashboard improvements

...and address other nits

Signed-off-by: Laura Flores <lflores@ibm.com>
19 months agoMerge pull request #54935 from yuvalif/wip-yuval-return-lua-devel
Yuval Lifshitz [Tue, 19 Dec 2023 17:57:47 +0000 (19:57 +0200)]
Merge pull request #54935 from yuvalif/wip-yuval-return-lua-devel

build/rgw/lua: return lua-devel runtime dependency

reviewed-by: cbodley

19 months agoMerge pull request #54710 from kalaspuffar/replace_jwt_with_pure_python
Nizamudeen A [Tue, 19 Dec 2023 13:48:20 +0000 (19:18 +0530)]
Merge pull request #54710 from kalaspuffar/replace_jwt_with_pure_python

mgr/dashboard: Simplify authentication protocol

Reviewed-by: Fabian-Gruenbichler <NOT@FOUND>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
19 months agoMerge pull request #54897 from aclamk/wip-aclamk-bs-fix-esb-multichunk-alloc
Adam Kupczyk [Tue, 19 Dec 2023 13:40:18 +0000 (14:40 +0100)]
Merge pull request #54897 from aclamk/wip-aclamk-bs-fix-esb-multichunk-alloc

os/bluestore: Fix assert() caused by ESB

19 months agoMerge pull request #54609 from xxhdx1985126/wip-crimson-rollback-fixes
Matan Breizman [Tue, 19 Dec 2023 10:12:53 +0000 (12:12 +0200)]
Merge pull request #54609 from xxhdx1985126/wip-crimson-rollback-fixes

crimson/osd/pg_backend: fix rollback on whiteouts

Reviewed-by: Matan Breizman <mbreizma@redhat.com>
19 months agoMerge pull request #54960 from zdover23/wip-doc-2023-12-19-install-clone-source-submo...
zdover23 [Tue, 19 Dec 2023 09:53:04 +0000 (19:53 +1000)]
Merge pull request #54960 from zdover23/wip-doc-2023-12-19-install-clone-source-submodule-update

doc/install: update "update submodules"

Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
19 months agodoc/install: update "update submodules" 54960/head
Zac Dover [Tue, 19 Dec 2023 09:15:57 +0000 (19:15 +1000)]
doc/install: update "update submodules"

Remove misleading material that would give readers the wrong idea about
when stale submodules are present. This commit is made in response to
information given to me by Ilya Dryomov here: https://github.com/ceph/ceph/pull/54929#issuecomment-1859237986.

Signed-off-by: Zac Dover <zac.dover@proton.me>
19 months agomgr/dashboard: small fixes to directories view 54835/head
Nizamudeen A [Thu, 7 Dec 2023 17:28:52 +0000 (22:58 +0530)]
mgr/dashboard: small fixes to directories view

Increased the precedence for Directories
Expand the node by default and select them as well

Fixes: https://tracker.ceph.com/issues/63754
Signed-off-by: Nizamudeen A <nia@redhat.com>
19 months agocrimson/osd/pg_backend: whiteout objects if they will have clones when 54609/head
Xuehan Xu [Wed, 22 Nov 2023 05:16:36 +0000 (13:16 +0800)]
crimson/osd/pg_backend: whiteout objects if they will have clones when
rolling back

Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
19 months agoMerge pull request #54917 from tchaikov/cmake-cephfs-sans-libcephfs
Kefu Chai [Tue, 19 Dec 2023 04:57:41 +0000 (12:57 +0800)]
Merge pull request #54917 from tchaikov/cmake-cephfs-sans-libcephfs

cmake: differentiate WITH_CEPHFS from WITH_LIBCEPHFS

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
19 months agoMerge pull request #54931 from athanatos/sjust/wip-crimson-2023-12-13-fixes
Samuel Just [Tue, 19 Dec 2023 01:37:26 +0000 (17:37 -0800)]
Merge pull request #54931 from athanatos/sjust/wip-crimson-2023-12-13-fixes

crimson: misc fixes

Reviewed-by: Matan Breizman <mbreizma@redhat.com>
19 months agoMerge pull request #54506 from ceph/wip-yuriw-release-18.2.1-main
Laura Flores [Mon, 18 Dec 2023 20:57:53 +0000 (14:57 -0600)]
Merge pull request #54506 from ceph/wip-yuriw-release-18.2.1-main

doc: Add Reef 18.2.1 release notes