]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
2 years agoqa/workunits/cephadm: update script use use cephadm _orch deploy 51738/head
John Mulligan [Tue, 20 Jun 2023 20:58:07 +0000 (16:58 -0400)]
qa/workunits/cephadm: update script use use cephadm _orch deploy

cephadm _orch deploy will eventually be the only deploy method so
we need to update the test script.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2 years agocephadm: dont set ctx.image if json deploy image is unset
John Mulligan [Mon, 19 Jun 2023 16:54:24 +0000 (12:54 -0400)]
cephadm: dont set ctx.image if json deploy image is unset

If no image has been provided in the "deploy from" json do not set
ctx.image to it (empty-string or None) as we may have had a valid
value passed on the --image CLI option.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2 years agocephadm: remove call to get_parm from fetch_configs
John Mulligan [Thu, 15 Jun 2023 19:54:09 +0000 (15:54 -0400)]
cephadm: remove call to get_parm from fetch_configs

Stop using get_parm in fetch_configs. Doing so makes clear that
the two if-branches in fetch_configs are symmetric, in the
handling of custom_config_files and symmetric with the behavior
of fetch_custom_config_files.
It also reveals that get_parm only has one remaining caller making it
simpler to remove get_parm in the future.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2 years agocephadm: convert test case to call command_deploy_from
John Mulligan [Sat, 20 May 2023 17:45:10 +0000 (13:45 -0400)]
cephadm: convert test case to call command_deploy_from

The test was previously using command_deploy but that is being
deprecated so call command_deploy_from instead.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2 years agocephadm: combine deploy functions some more
John Mulligan [Tue, 30 May 2023 20:23:13 +0000 (16:23 -0400)]
cephadm: combine deploy functions some more

During review it was pointed out that much of command_deploy and
command_deploy_from were still common. Combine the bulk of
command_deploy and command_deploy_from into a new _common_deploy.
The old _common_deploy is renamed to _dispatch_deploy but kept
as a separate function.

The reason for keeping _dispatch_deploy as a function is that
it limits the scope of variables. It helps knowing exactly what
is needed and what is not needed from _common_deploy.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2 years agocephadm: drop deploy_arguments key from deploy config JSON
John Mulligan [Thu, 1 Jun 2023 17:27:37 +0000 (13:27 -0400)]
cephadm: drop deploy_arguments key from deploy config JSON

Drop the now unnecessary deploy_arguments subsection from the JSON
object that the new `_orch deploy` takes. The intermediate code that
used it in the ceph mgr module has been replaced with `params`.

We still want to share some code with the old deploy, especially the
default values for various things that get attached to `ctx`. In
some cases this is particularly important as not all code checks
that `ctx` has an attribute first. Create an `ArgumentFacade` type
to reuse the `add_argument` calls for deploy, and instead store the
default key-value pairs for `ctx`.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2 years agocephadm: add a test for the apply_deploy_config_to_ctx function
John Mulligan [Thu, 1 Jun 2023 17:27:27 +0000 (13:27 -0400)]
cephadm: add a test for the apply_deploy_config_to_ctx function

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2 years agocephadm: split command_deploy_from into mockable parts
John Mulligan [Sat, 20 May 2023 17:42:02 +0000 (13:42 -0400)]
cephadm: split command_deploy_from into mockable parts

Split up command_deploy_from so that the part that reads the JSON
from an input source is moved into read_configuration_source and
the part that applied the configuration data to the ctx is moved
into apply_deploy_config_to_ctx. This will make these sections
reusable and, more importantly, make it easier to mock/monkeypatch
these functions in tests.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2 years agocephadm: make the old command_deploy deprecated with decorator
John Mulligan [Thu, 18 May 2023 20:14:24 +0000 (16:14 -0400)]
cephadm: make the old command_deploy deprecated with decorator

Add a deprecated command decorator. Decorate the old command_deploy with
it. By default it just logs if a deprecated command was used, but
custom builds of cephadm can set the NO_DEPRECATED var to True
and fail if a deprecated command is used.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2 years agomgr/cephadm: add exchange types and use them for deploy
John Mulligan [Thu, 18 May 2023 19:10:16 +0000 (15:10 -0400)]
mgr/cephadm: add exchange types and use them for deploy

Add an exchange module for defining the "exchange protocol" that the
mgr module uses for communicating with the cephadm binary.  The
exchange module classes use data descriptors to define supported
fields in the resulting data and will be serialized to JSON for
communicating with cephadm.

The cephadm binary does not use these types because it currently
doesn't import anything outside of the standard library. A suggested
future change would be to move 'exhange.py' to python-common somewhere
and have the module be imported by both the mgr and cephadm and used
for both serialization and deserialization.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2 years agomgr/cephadm: convert test_services.py for new deploy
John Mulligan [Tue, 16 May 2023 23:44:51 +0000 (19:44 -0400)]
mgr/cephadm: convert test_services.py for new deploy

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2 years agomgr/cephadm: convert test_cephadm.py for new deploy
John Mulligan [Tue, 16 May 2023 23:44:34 +0000 (19:44 -0400)]
mgr/cephadm: convert test_cephadm.py for new deploy

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2 years agomgr/cephadm: block future use of extra_args
John Mulligan [Tue, 16 May 2023 17:49:28 +0000 (13:49 -0400)]
mgr/cephadm: block future use of extra_args

Convert `extra_args` into a read-only property so that
current code continues to work but anything that tries
to set any `extra_args` now or in the future will be
intentionally broken.

This is mainly to find issues when running unit and teuthology tests.
This patch could be dropped before the final merge if desired.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2 years agomgr/cephadm: convert extra_args to daemon_params dict
John Mulligan [Tue, 16 May 2023 17:48:58 +0000 (13:48 -0400)]
mgr/cephadm: convert extra_args to daemon_params dict

In serve.py we were creating various command line arguments
(and their values) to pass to cephadm. Now that we support
a single unified JSON-based input we can stop passing
these as CLI parameters and just pass it as a singular
JSONified dict.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2 years agomgr/cephadm: deploy using deploy-from command
John Mulligan [Thu, 11 May 2023 15:07:53 +0000 (11:07 -0400)]
mgr/cephadm: deploy using deploy-from command

The new `deploy-from` command aims to be a cleaner, clearer way to pass
input to cephadm for service deployment. Make a minimal set of change to
use that new command.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2 years agomgr/cephadm: allow passing a list as a compound command to _run_cephadm
John Mulligan [Wed, 24 May 2023 18:11:52 +0000 (14:11 -0400)]
mgr/cephadm: allow passing a list as a compound command to _run_cephadm

As we're adding "namespaces" to the cephadm command it's easier to work
with a compound list of terms as the command. This also avoids an issue
where the function call injects args between the command and the "args"
passed to _run_cephadm.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2 years agocephadm: update code to use fetch_custom_config_files
John Mulligan [Thu, 15 Jun 2023 19:34:15 +0000 (15:34 -0400)]
cephadm: update code to use fetch_custom_config_files

Update the code to use fetch_custom_config_files rather than
get_custom_config_files.  Like other fetch_ functions recently added
to cephadm we don't LBYL for checking values on ctx, but rather
call the fetch function on ctx and then check if the result contains
actionable data.
get_custom_config_files gets removed as no remaining callers exist.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2 years agocephadm: add fetch_custom_config_files function
John Mulligan [Thu, 15 Jun 2023 19:34:09 +0000 (15:34 -0400)]
cephadm: add fetch_custom_config_files function

This function works similarly to get_custom_config_files but doesn't
require the use of "ctx.config_json" and will prefer sourcing the
data from `config_blobs`.
This function also returns the list of dicts rather than return a dict
with exactly one key which maps to said list of dicts. There appeared
to be no benefit to that when the call sites of get_custom_config_files
was examined.

This function is `fetch_configs` evil twin.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2 years agocephadm: update code to use the fetch_tcp_ports function
John Mulligan [Fri, 26 May 2023 19:13:03 +0000 (15:13 -0400)]
cephadm: update code to use the fetch_tcp_ports function

Replace a bunch of locations that were "parsing" the tcp ports to use
the recently added fetch_tcp_ports function.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2 years agocephadm: add fetch_tcp_ports function for getting processed ports
John Mulligan [Fri, 26 May 2023 19:06:40 +0000 (15:06 -0400)]
cephadm: add fetch_tcp_ports function for getting processed ports

The cephadm cli can pass ports as either a string containing space
separated port numbers or, in the newer method, a (JSON) list of ints.
The fetch_tcp_ports function abstracts away the handling of
these input forms.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2 years agocephadm: add deploy-from command
John Mulligan [Thu, 11 May 2023 15:05:07 +0000 (11:05 -0400)]
cephadm: add deploy-from command

Add the `deploy-from` command. This command is like `deploy` in
functionality but instead of sourcing input from a mixture of various
CLI arguments, CLI arguments that take JSON strings, and JSON data
provided on stdin - this command aims to take configuration from a
single unified JSON object provided on the commands stdin.

This change strives to be as reasonably backwards compatible with
`deploy` as possible and this leads to some awkward hoop-jumping,
including: needing to nest CLI arguments inside the JSON, because
that is what the manager constructs; duplicate sources of the fsid
(CLI and JSON); the strange behavior of CephadmContext when setting
values; and a few others I'm probably forgetting.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2 years agocephadm: move the definition of most deploy args into a function
John Mulligan [Thu, 11 May 2023 14:55:14 +0000 (10:55 -0400)]
cephadm: move the definition of most deploy args into a function

Moving the bulk of the arguments specific to the `deploy` command will
allow future reuse of these arguments.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2 years agocephadm: be more explicit with a Dict's type specification
John Mulligan [Thu, 11 May 2023 14:36:50 +0000 (10:36 -0400)]
cephadm: be more explicit with a Dict's type specification

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2 years agocephadm: update code to use fetch_configs function
John Mulligan [Thu, 11 May 2023 14:36:13 +0000 (10:36 -0400)]
cephadm: update code to use fetch_configs function

Use the fetch_configs function wherever we were previously reading
configs via `get_parm(ctx.config_json)`.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2 years agocephadm: add fetch_configs function for reading configuration items from ctx
John Mulligan [Thu, 11 May 2023 14:30:51 +0000 (10:30 -0400)]
cephadm: add fetch_configs function for reading configuration items from ctx

The CephadmContext holds much of cephadm's state, including values
from cli options and (soon) configuration file input. Add a
`fetch_configs` function that reads processed configuration items from `config_blobs`
(a dict mapping config name to arbitrary configuration content) or
falls back to using the `get_parm` function on `ctx.config_json`.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2 years agocephadm: update code to use fetch_meta function
John Mulligan [Sat, 20 May 2023 14:55:16 +0000 (10:55 -0400)]
cephadm: update code to use fetch_meta function

Use the fetch_meta function wherever we require the metadata
properties dict.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2 years agocephadm: add fetch_meta function for reading metadata properties from ctx
John Mulligan [Thu, 11 May 2023 14:30:12 +0000 (10:30 -0400)]
cephadm: add fetch_meta function for reading metadata properties from ctx

The CephadmContext holds much of cephadm's state, including values from
cli options and (soon) configuration file input. Add a `fetch_meta`
function that reads processed metadata from `meta_properties` or parses
JSON stored on `meta_json`. Parsed JSON is saved to `meta_properties`.
Future code should always use fetch_meta for reading, and only ever
set `meta_properties` as a python dict, not round trip JSON through
meta_json.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2 years agocephadm: split default_image decorator into two functions
John Mulligan [Thu, 11 May 2023 14:25:38 +0000 (10:25 -0400)]
cephadm: split default_image decorator into two functions

Keep default_image as a decorator for functions that will only
ever need to update an image passed by the CLI. For other future
functions that want to execute code prior to assigning an image
from CLI parameters add `update_default_image` which takes a
CephadmContext and updates it and can be used by the caller
at an arbitrary point in the code flow.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2 years agocephadm: change tests to assert using mock call not func.args
John Mulligan [Thu, 1 Jun 2023 15:16:13 +0000 (11:16 -0400)]
cephadm: change tests to assert using mock call not func.args

The Python docs [1] note that:
  Changed in version 3.8: Added args and kwargs properties.

In order to run tests on python 3.6 (example: `tox -e py36`) we
change the tests to do the asserts using the older call(...)
comparison style, with mock.ANY used for args we don't care about.

[1] - https://docs.python.org/3/library/unittest.mock.html#unittest.mock.Mock.call_args

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2 years agocephadm: remove unused import from tests
John Mulligan [Thu, 1 Jun 2023 15:15:48 +0000 (11:15 -0400)]
cephadm: remove unused import from tests

This import breaks running tox with `-e py36` and adds no value. Just
remove it.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2 years agoMerge pull request #52064 from ajarr/wip-61688
Ilya Dryomov [Thu, 15 Jun 2023 20:22:09 +0000 (22:22 +0200)]
Merge pull request #52064 from ajarr/wip-61688

mgr/rbd_support: add user-friendly stderr message when module is not ready

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
2 years agoMerge pull request #51962 from vedanshbhartia/coverity_1511072
Yuval Lifshitz [Thu, 15 Jun 2023 16:13:44 +0000 (19:13 +0300)]
Merge pull request #51962 from vedanshbhartia/coverity_1511072

rgw: pass boost intrusive_ptr to DataLogBackends flat_map

2 years agoMerge pull request #51676 from vedanshbhartia/coverity_move
Yuval Lifshitz [Thu, 15 Jun 2023 16:13:09 +0000 (19:13 +0300)]
Merge pull request #51676 from vedanshbhartia/coverity_move

rgw: Do not forward functor objects in rgw_iam_policy.h

2 years agoMerge pull request #51965 from vedanshbhartia/coverity_1510687
Yuval Lifshitz [Thu, 15 Jun 2023 16:11:22 +0000 (19:11 +0300)]
Merge pull request #51965 from vedanshbhartia/coverity_1510687

rgw: Fix use after move in cls_fifo_legacy.cc

2 years agoMerge pull request #50330 from mohamedawnallah/fix-RGWEnv.get()-nullptr-default-value...
Yuval Lifshitz [Thu, 15 Jun 2023 16:10:31 +0000 (19:10 +0300)]
Merge pull request #50330 from mohamedawnallah/fix-RGWEnv.get()-nullptr-default-value-to-the-default-returned-value

src/rgw/rgw_env.cc: Fix potential null pointer dereference in RGWEnv::get()

2 years agomgr/rbd_support: log number of images 52064/head
Ramana Raja [Wed, 14 Jun 2023 21:41:48 +0000 (17:41 -0400)]
mgr/rbd_support: log number of images

... that have one snapshot request pending when the
mirror_snapshot_schedule handler is shutting down.

Signed-off-by: Ramana Raja <rraja@redhat.com>
2 years agoMerge pull request #52058 from guits/tracker_61673
Guillaume Abrioux [Thu, 15 Jun 2023 11:44:00 +0000 (13:44 +0200)]
Merge pull request #52058 from guits/tracker_61673

ceph-volume: set lvm membership for mpath type devices

2 years agoMerge PR #52029 into main
Venky Shankar [Thu, 15 Jun 2023 07:31:39 +0000 (13:01 +0530)]
Merge PR #52029 into main

* refs/pull/52029/head:
debian: install cephfs-mirror systemd unit files and man page

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
2 years agoMerge pull request #52039 from zdover23/wip-doc-2023-06-14-operations-crush-map-2...
zdover23 [Thu, 15 Jun 2023 05:28:30 +0000 (15:28 +1000)]
Merge pull request #52039 from zdover23/wip-doc-2023-06-14-operations-crush-map-2-of-x

doc/rados: edit crush-map.rst (2 of x)

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
2 years agodebian: install cephfs-mirror systemd unit files and man page 52029/head
Jos Collin [Tue, 13 Jun 2023 11:54:34 +0000 (17:24 +0530)]
debian: install cephfs-mirror systemd unit files and man page

Fixes: https://tracker.ceph.com/issues/59682
Signed-off-by: Jos Collin <jcollin@redhat.com>
2 years agoMerge PR #50862 into main
Venky Shankar [Thu, 15 Jun 2023 03:53:40 +0000 (09:23 +0530)]
Merge PR #50862 into main

* refs/pull/50862/head:
mon/MDSMonitor: batch last_metadata update with pending
mon/MDSMonitor: add debugging for update_metadata

Reviewed-by: Venky Shankar <vshankar@redhat.com>
2 years agodoc/rados: edit crush-map.rst (2 of x) 52039/head
Zac Dover [Tue, 13 Jun 2023 15:41:09 +0000 (01:41 +1000)]
doc/rados: edit crush-map.rst (2 of x)

Edit doc/rados/operations/crush-map.rst.

https://tracker.ceph.com/issues/58485

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
2 years agoMerge pull request #52040 from zdover23/wip-doc-2023-06-14-operations-crush-map-order...
zdover23 [Thu, 15 Jun 2023 01:22:06 +0000 (11:22 +1000)]
Merge pull request #52040 from zdover23/wip-doc-2023-06-14-operations-crush-map-ordered-list-fix

doc/rados: fix list in crush-map.rst

2 years agomgr/rbd_support: add user-friendly stderr message
Ramana Raja [Wed, 14 Jun 2023 20:17:09 +0000 (16:17 -0400)]
mgr/rbd_support: add user-friendly stderr message

... when the rbd_support module is not ready.

Fixes: https://tracker.ceph.com/issues/61688
Signed-off-by: Ramana Raja <rraja@redhat.com>
2 years agoMerge pull request #51946 from phlogistonjohn/jjm-cephadm-write-new
Adam King [Wed, 14 Jun 2023 18:27:16 +0000 (14:27 -0400)]
Merge pull request #51946 from phlogistonjohn/jjm-cephadm-write-new

cephadm: add write_new function for robust file writes

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Redouane Kachach <rkachach@redhat.com>
2 years agoMerge pull request #51924 from adk3798/limit-policy-log-level
Adam King [Wed, 14 Jun 2023 18:25:56 +0000 (14:25 -0400)]
Merge pull request #51924 from adk3798/limit-policy-log-level

python-common/drive_selection: lower log level of limit policy message

Reviewed-by: Redouane Kachach <rkachach@redhat.com>
2 years agoMerge pull request #51861 from adk3798/spec-no-spec-validate
Adam King [Wed, 14 Jun 2023 18:24:51 +0000 (14:24 -0400)]
Merge pull request #51861 from adk3798/spec-no-spec-validate

python-common/drive_group: handle fields outside of 'spec' even when 'spec' is provided

Reviewed-by: John Mulligan <jmulligan@redhat.com>
2 years agoMerge pull request #51267 from phlogistonjohn/jjm-cephadm-versioning
Adam King [Wed, 14 Jun 2023 18:23:27 +0000 (14:23 -0400)]
Merge pull request #51267 from phlogistonjohn/jjm-cephadm-versioning

Support cephadm "binary" versioning

Reviewed-by: Adam King <adking@redhat.com>
2 years agoMerge pull request #51832 from rkachach/fix_issue_61499
Adam King [Wed, 14 Jun 2023 16:51:14 +0000 (12:51 -0400)]
Merge pull request #51832 from rkachach/fix_issue_61499

cephadm: adding support for ipv6 when deploying ceph-exporter

Reviewed-by: Adam King <adking@redhat.com>
2 years agoMerge pull request #51817 from rkachach/fix_issue_61494
Adam King [Wed, 14 Jun 2023 16:49:58 +0000 (12:49 -0400)]
Merge pull request #51817 from rkachach/fix_issue_61494

mgr/cephadm: validate host label before removing

Reviewed-by: Adam King <adking@redhat.com>
2 years agoMerge pull request #51070 from adk3798/reconfig-firewall-ports
Adam King [Wed, 14 Jun 2023 16:48:04 +0000 (12:48 -0400)]
Merge pull request #51070 from adk3798/reconfig-firewall-ports

cephadm: allow ports to be opened in firewall during adoption, reconfig, redeploy

Reviewed-by: Michael Fritch <mfritch@suse.com>
Reviewed-by: Redouane Kachach <rkachach@redhat.com>
2 years agoceph-volume: set lvm membership for mpath type devices 52058/head
Guillaume Abrioux [Wed, 14 Jun 2023 14:08:07 +0000 (14:08 +0000)]
ceph-volume: set lvm membership for mpath type devices

If any lvs is present, self.lvs should be set accordingly for mpath
type devices as well.
Otherwise, when re-running a command like following:

```
ceph-volume lvm batch --bluestore --no-auto  /dev/mapper/mpatha /dev/mapper/mpathb
```

fails with error : "Device /dev/mapper/mpatha has a filesystem."

where the expected behavior is:

```
--> passed data devices: 2 physical, 0 LVM
--> relative data size: 1.0
--> All data devices are unavailable

Total OSDs: 0

  Type            Path                                                    LV Size         % of device
```

Fixes: https://tracker.ceph.com/issues/61673
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
2 years agoMerge pull request #52044 from vedanshbhartia/coverity_fix_tags
Yuval Lifshitz [Wed, 14 Jun 2023 09:01:32 +0000 (12:01 +0300)]
Merge pull request #52044 from vedanshbhartia/coverity_fix_tags

rgw: user correct tags for coverity annotations and add the SUPPRESS keyword

2 years agorgw: user correct tags for coverity annotations and add the SUPPRESS 52044/head
Vedansh Bhartia [Tue, 13 Jun 2023 18:17:48 +0000 (23:47 +0530)]
rgw: user correct tags for coverity annotations and add the SUPPRESS
keyword

Signed-off-by: Vedansh Bhartia <vedanshbhartia@gmail.com>
2 years agoMerge pull request #52012 from cbodley/wip-61428
Casey Bodley [Tue, 13 Jun 2023 17:42:05 +0000 (13:42 -0400)]
Merge pull request #52012 from cbodley/wip-61428

qa: suppress SyscallParam error during startup on jammy

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Ali Maredia <amaredia@redhat.com>
2 years agodoc/rados: fix list in crush-map.rst 52040/head
Zac Dover [Tue, 13 Jun 2023 16:11:53 +0000 (02:11 +1000)]
doc/rados: fix list in crush-map.rst

Correct the numbering and formatting of an ordered list in
doc/rados/operations/crush-map.rst.

Signed-off-by: Zac Dover <zac.dover@proton.me>
2 years agoMerge pull request #52014 from cbodley/wip-test-cls-refcount-rename
Casey Bodley [Tue, 13 Jun 2023 15:54:43 +0000 (11:54 -0400)]
Merge pull request #52014 from cbodley/wip-test-cls-refcount-rename

test/cls: rename cls_refcount tests

Reviewed-by: Ali Maredia <amaredia@redhat.com>
2 years agoMerge pull request #52009 from zdover23/wip-doc-2023-06-12-rados-operations-placement...
zdover23 [Tue, 13 Jun 2023 15:08:47 +0000 (01:08 +1000)]
Merge pull request #52009 from zdover23/wip-doc-2023-06-12-rados-operations-placement-groups-math-markup

doc/rados: add math markup to placement-groups.rst

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
2 years agoMerge pull request #52011 from samarahu/d4n-warning-cleanup
Yuval Lifshitz [Tue, 13 Jun 2023 14:25:48 +0000 (17:25 +0300)]
Merge pull request #52011 from samarahu/d4n-warning-cleanup

RGW: Cleanup D4N unit test warning

2 years agoMerge pull request #52028 from zdover23/wip-doc-2023-06-13-dev-deploying-dev-cluster...
zdover23 [Tue, 13 Jun 2023 14:14:43 +0000 (00:14 +1000)]
Merge pull request #52028 from zdover23/wip-doc-2023-06-13-dev-deploying-dev-cluster-link

doc/dev: fix "deploying dev cluster" link

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
2 years agoMerge pull request #51989 from samarahu/remove-trace-comment
Daniel Gryniewicz [Tue, 13 Jun 2023 13:29:00 +0000 (09:29 -0400)]
Merge pull request #51989 from samarahu/remove-trace-comment

RGW: Replace trace with d4n in yaml long desc

2 years agoMerge pull request #52018 from zdover23/wip-doc-2023-06-13-operations-crush-map-1...
zdover23 [Tue, 13 Jun 2023 11:59:25 +0000 (21:59 +1000)]
Merge pull request #52018 from zdover23/wip-doc-2023-06-13-operations-crush-map-1-of-x

doc/rados: edit crush-map.rst (1 of x)

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
2 years agodoc/dev: fix "deploying dev cluster" link 52028/head
Zac Dover [Tue, 13 Jun 2023 11:51:26 +0000 (21:51 +1000)]
doc/dev: fix "deploying dev cluster" link

Fix a link to "Deploying a Development Cluster" that had been broken
since the transition from master to main.

This is the first part of an initiative to improve the vstart
documentation.

Signed-off-by: Zac Dover <zac.dover@proton.me>
2 years agodoc/rados: edit crush-map.rst (1 of x) 52018/head
Zac Dover [Mon, 12 Jun 2023 20:02:59 +0000 (06:02 +1000)]
doc/rados: edit crush-map.rst (1 of x)

Edit doc/rados/operations/crush-map.rst.

https://tracker.ceph.com/issues/58485

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
2 years agoMerge pull request #51966 from rhcs-dashboard/grafana-url-deprecated
Nizamudeen A [Tue, 13 Jun 2023 08:40:58 +0000 (14:10 +0530)]
Merge pull request #51966 from rhcs-dashboard/grafana-url-deprecated

mgr/dashboard: change deprecated grafana URL in daemon logs

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
2 years agoMerge pull request #51953 from rhcs-dashboard/dashboard-status-popover
Nizamudeen A [Tue, 13 Jun 2023 08:32:28 +0000 (14:02 +0530)]
Merge pull request #51953 from rhcs-dashboard/dashboard-status-popover

mgr/dashboard: add popover to cluster status card

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
2 years agoMerge pull request #51945 from rzarzynski/wip-bug-61504
Matan [Tue, 13 Jun 2023 07:26:32 +0000 (09:26 +0200)]
Merge pull request #51945 from rzarzynski/wip-bug-61504

crimson/osd: fix Notify life-time mismanagement in Watch::notify_ack

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Matan Breizman <mbreizma@redhat.com>
2 years agoMerge pull request #51973 from Matan-B/wip-matan-lsan-supp
Matan [Tue, 13 Jun 2023 07:11:14 +0000 (09:11 +0200)]
Merge pull request #51973 from Matan-B/wip-matan-lsan-supp

qa/lsan.supp: update heap_profiler suppression and ASAN_OPTIONS

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2 years agoMerge pull request #51703 from lxbsz/wip-59683
Xiubo Li [Tue, 13 Jun 2023 01:44:24 +0000 (09:44 +0800)]
Merge pull request #51703 from lxbsz/wip-59683

xfstests_dev: install extra packages from powertools repo for xfsprogs

2 years agoMerge pull request #50728 from lxbsz/wip-59195
Xiubo Li [Mon, 12 Jun 2023 23:39:00 +0000 (07:39 +0800)]
Merge pull request #50728 from lxbsz/wip-59195

qa: switch to use the merge fragment for fscrypt

2 years agoqa: suppress SyscallParam error during startup on jammy 52012/head
Casey Bodley [Mon, 12 Jun 2023 17:38:03 +0000 (13:38 -0400)]
qa: suppress SyscallParam error during startup on jammy

Fixes: https://tracker.ceph.com/issues/61428
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agoMerge pull request #51972 from vedanshbhartia/coverity_resource_leak
Yuval Lifshitz [Mon, 12 Jun 2023 18:37:07 +0000 (21:37 +0300)]
Merge pull request #51972 from vedanshbhartia/coverity_resource_leak

rgw: Add coverity annotations for resource leak false positives

2 years agotest/cls: rename cls_refcount tests 52014/head
Casey Bodley [Mon, 12 Jun 2023 18:15:28 +0000 (14:15 -0400)]
test/cls: rename cls_refcount tests

test cases were copy/pasted from test_cls_rgw.cc without renaming

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agoRGW: Cleanup D4N unit test warning 52011/head
Samarah [Mon, 12 Jun 2023 14:49:09 +0000 (10:49 -0400)]
RGW: Cleanup D4N unit test warning

Signed-off-by: Samarah <samarah.uriarte@ibm.com>
2 years agodoc/rados: add math markup to placement-groups.rst 52009/head
Zac Dover [Mon, 12 Jun 2023 11:32:14 +0000 (21:32 +1000)]
doc/rados: add math markup to placement-groups.rst

Add some math markup to some of the mathematical expressions in
doc/rados/operations/placement-groups.rst.

This change has advantages as well as disadvantages. On the one hand,
the mathematical expressions look nicer and are easier to read.  On the
other hand, the rendered mathematical expressions are not searchable as
a part of the text, which makes CTRL+F searches useless in finding them.

This PR is offered as an RFC on the matter of whether mathematical
expressions should be rendered with the :math: extension.

Signed-off-by: Zac Dover <zac.dover@proton.me>
2 years agoMerge pull request #51864 from yuvalif/wip-yuval-fix-61540
Yuval Lifshitz [Mon, 12 Jun 2023 09:04:48 +0000 (12:04 +0300)]
Merge pull request #51864 from yuvalif/wip-yuval-fix-61540

rgw/kafka: make sure that destroy is called after connection is removed

2 years agoxfstests_dev: install extra packages from powertools repo for xfsprogs 51703/head
Xiubo Li [Tue, 23 May 2023 11:08:15 +0000 (19:08 +0800)]
xfstests_dev: install extra packages from powertools repo for xfsprogs

Centos Stream 8 has removed the 'device-mapper-devel', 'libedit-devel'
and 'userspace-rcu-devel' packages from the mirrors and we need to
install it from powertools repo.

Fixes: https://tracker.ceph.com/issues/59683
Signed-off-by: Xiubo Li <xiubli@redhat.com>
2 years agoMerge pull request #51994 from zdover23/wip-doc-2023-06-11-rados-operations-placement...
zdover23 [Sun, 11 Jun 2023 21:46:53 +0000 (07:46 +1000)]
Merge pull request #51994 from zdover23/wip-doc-2023-06-11-rados-operations-placement-groups-3-of-x

doc/rados: edit placement-groups.rst (3 of x)

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
2 years agodoc/rados: edit placement-groups.rst (3 of x) 51994/head
Zac Dover [Sat, 10 Jun 2023 23:00:38 +0000 (09:00 +1000)]
doc/rados: edit placement-groups.rst (3 of x)

Edit doc/rados/operations/placement-groups.rst.

https://tracker.ceph.com/issues/58485

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
2 years agoMerge pull request #51366 from SMIL-Infra/fix-test-build
Yuval Lifshitz [Sun, 11 Jun 2023 18:22:17 +0000 (21:22 +0300)]
Merge pull request #51366 from SMIL-Infra/fix-test-build

rgw: fix tests build w/o AMQP

2 years agoMerge pull request #51468 from vedanshbhartia/coverity_time
Yuval Lifshitz [Sun, 11 Jun 2023 14:36:25 +0000 (17:36 +0300)]
Merge pull request #51468 from vedanshbhartia/coverity_time

rgw: Add coverity annotations to ignore warnings about 32 bit time

2 years agoMerge pull request #51992 from zdover23/wip-doc-2023-06-10-rados-operations-change...
zdover23 [Sun, 11 Jun 2023 08:33:07 +0000 (18:33 +1000)]
Merge pull request #51992 from zdover23/wip-doc-2023-06-10-rados-operations-change-mon-elections

doc/rados: edit change-mon-elections

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
2 years agoMerge pull request #51991 from zdover23/wip-doc-2023-06-09-rados-operations-placement...
zdover23 [Sun, 11 Jun 2023 00:42:18 +0000 (10:42 +1000)]
Merge pull request #51991 from zdover23/wip-doc-2023-06-09-rados-operations-placement-groups-2-of-x

doc/rados: edit placement-groups.rst (2 of x)

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
2 years agodoc/rados: edit placement-groups.rst (2 of x) 51991/head
Zac Dover [Sat, 10 Jun 2023 01:44:33 +0000 (11:44 +1000)]
doc/rados: edit placement-groups.rst (2 of x)

Edit doc/rados/operations/placement-groups.rst.

https://tracker.ceph.com/issues/58485

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
2 years agodoc/rados: edit change-mon-elections 51992/head
Zac Dover [Sat, 10 Jun 2023 02:08:41 +0000 (12:08 +1000)]
doc/rados: edit change-mon-elections

Edit doc/rados/operations/change-mon-elections.rst.

https://tracker.ceph.com/issues/58485

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
2 years agoMerge pull request #51988 from ljflores/wip-release-checklist
Laura Flores [Fri, 9 Jun 2023 17:55:46 +0000 (12:55 -0500)]
Merge pull request #51988 from ljflores/wip-release-checklist

doc/dev: update release checklist

2 years agocrimson/osd: suppress the assertion in Watch::notify_ack 51945/head
Radoslaw Zarzynski [Fri, 9 Jun 2023 17:32:27 +0000 (17:32 +0000)]
crimson/osd: suppress the assertion in Watch::notify_ack

Replaced the assert with an error log entry but ultimately
this commit should be reverted.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2 years agocrimson/osd: fix Notify life-time mismanagement in Watch::notify_ack
Radosław Zarzyński [Tue, 6 Jun 2023 15:43:21 +0000 (17:43 +0200)]
crimson/osd: fix Notify life-time mismanagement in Watch::notify_ack

Fixes: https://tracker.ceph.com/issues/61504
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2 years agoMerge pull request #49316 from BryceCao/wip-add-initialization-for-RGWGC-process...
Casey Bodley [Fri, 9 Jun 2023 17:21:01 +0000 (13:21 -0400)]
Merge pull request #49316 from BryceCao/wip-add-initialization-for-RGWGC-process-call

rgw : fix add initialization for RGWGC::process()

Reviewed-by: Yuval Lifshitz <ylifshit@redhat.com>
2 years agoMerge pull request #51715 from awojno-bloomberg/replication-race-condition-fix
Casey Bodley [Fri, 9 Jun 2023 17:20:29 +0000 (13:20 -0400)]
Merge pull request #51715 from awojno-bloomberg/replication-race-condition-fix

RGW: Pass and check destination zone trace when fetching object

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Mark Kogan <mkogan@redhat.com>
2 years agoRGW: Replace trace with d4n in yaml long desc 51989/head
Samarah [Fri, 9 Jun 2023 16:21:28 +0000 (12:21 -0400)]
RGW: Replace trace with d4n in yaml long desc

Signed-off-by: Samarah <samarah.uriarte@ibm.com>
2 years agodoc/dev: update release checklist 51988/head
Laura Flores [Fri, 9 Jun 2023 15:20:36 +0000 (10:20 -0500)]
doc/dev: update release checklist

Signed-off-by: Laura Flores <lflores@redhat.com>
2 years agoMerge pull request #51975 from zdover23/wip-doc-2023-06-09-rados-operations-placement...
zdover23 [Fri, 9 Jun 2023 13:30:32 +0000 (23:30 +1000)]
Merge pull request #51975 from zdover23/wip-doc-2023-06-09-rados-operations-placement-groups-1-of-x

doc/rados: edit placement-groups.rst (1 of x)

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
2 years agodoc/rados: edit placement-groups.rst (1 of x) 51975/head
Zac Dover [Thu, 8 Jun 2023 18:53:34 +0000 (04:53 +1000)]
doc/rados: edit placement-groups.rst (1 of x)

Edit doc/rados/operations/placement-groups.rst.

https://tracker.ceph.com/issues/58485

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Co-authored-by: Cole Mitchell <cole.mitchell.ceph@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
2 years agoMerge pull request #48879 from samarahu/wip-d4n
Casey Bodley [Thu, 8 Jun 2023 15:44:55 +0000 (11:44 -0400)]
Merge pull request #48879 from samarahu/wip-d4n

RGW: WIP D4N

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
2 years agoqa/lsan.supp: update heap_profiler suppression and ASAN_OPTIONS 51973/head
Matan Breizman [Thu, 8 Jun 2023 14:14:15 +0000 (14:14 +0000)]
qa/lsan.supp: update heap_profiler suppression and ASAN_OPTIONS

In continuation to: 8c099a534044bf7182e04f250e342aab76bc3e54

Regsiter singleton leak seems to be replaced by:
```
-----------------------------------------------------
Suppressions used:
  count      bytes template
      1          8 ^InitModule
-----------------------------------------------------
```

In similarity to Crimson's suppression: 6ed8d839b421442a64410444ca8f88f157ae28b3

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
2 years agoMerge pull request #51967 from Dazul/add-config-missing-custom-container-images
Anthony D'Atri [Thu, 8 Jun 2023 12:23:07 +0000 (08:23 -0400)]
Merge pull request #51967 from Dazul/add-config-missing-custom-container-images

doc: Add missing custom container_image

2 years agoMerge pull request #51958 from zdover23/wip-doc-2023-06-07-rados-operations-pools...
zdover23 [Thu, 8 Jun 2023 12:04:13 +0000 (22:04 +1000)]
Merge pull request #51958 from zdover23/wip-doc-2023-06-07-rados-operations-pools-4-of-x

doc/rados: edit pools.rst (4 of x)

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
Reviewed-by: Cole Mitchell <cole.mitchell.ceph@gmail.com>
2 years agomgr/dashboard: change deprecated grafana URL in daemon logs 51966/head
Nizamudeen A [Thu, 8 Jun 2023 06:43:54 +0000 (12:13 +0530)]
mgr/dashboard: change deprecated grafana URL in daemon logs

See https://github.com/grafana/grafana/issues/51276

I am also increasting the height of the panel

Fixes: https://tracker.ceph.com/issues/61618
Signed-off-by: Nizamudeen A <nia@redhat.com>
2 years agoMerge pull request #51955 from rhcs-dashboard/teuth-e2e-fix
Nizamudeen A [Thu, 8 Jun 2023 08:48:14 +0000 (14:18 +0530)]
Merge pull request #51955 from rhcs-dashboard/teuth-e2e-fix

qa/workunits: fix test_dashboard_e2e.sh: no spec files found

Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>