]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
3 years ago.github: ensure object_format.py is labeled the same as mgr_util.py 46360/head
John Mulligan [Tue, 10 May 2022 14:31:34 +0000 (10:31 -0400)]
.github: ensure object_format.py is labeled the same as mgr_util.py

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 4904b02f9f042aa83ea4fd60ee112d2e06a487a5)

3 years agopybind/mgr: include object_format.py in CMakeLists.txt for build
John Mulligan [Tue, 10 May 2022 14:30:32 +0000 (10:30 -0400)]
pybind/mgr: include object_format.py in CMakeLists.txt for build

Because ceph uses CMake for building python packages too.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 1ecbffbea5d6af96be4b360cd30332779e793efc)

3 years agopybind/mgr: add short guide to the object_format.py docstring
John Mulligan [Wed, 13 Apr 2022 14:47:53 +0000 (10:47 -0400)]
pybind/mgr: add short guide to the object_format.py docstring

Add a short-ish guide to the use of the object_format module's Responder
and other types.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit d6c31681cf086546a803990e58785b9285fc2587)

3 years agopybind/mgr: add test cases for ErrorResponse exception type
John Mulligan [Mon, 11 Apr 2022 19:33:01 +0000 (15:33 -0400)]
pybind/mgr: add test cases for ErrorResponse exception type

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 55ee8a31631ac04629ffa2905d9a8ace9593599a)

3 years agopybind/mgr: add a wrapper exception for use with Responder
John Mulligan [Mon, 11 Apr 2022 19:32:42 +0000 (15:32 -0400)]
pybind/mgr: add a wrapper exception for use with Responder

In order to best get a "real" exception converted to something
that can be cleanly sent to the mgr response, this new exception
type can be invoked directly, or with the wrap method to automatically
pull as many properties as possibly from the original exception.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 777814d59429bc28eeee0b13201b60b672226753)

3 years agopybind/mgr: add tests to verify Responder decorator behavior
John Mulligan [Mon, 11 Apr 2022 19:16:48 +0000 (15:16 -0400)]
pybind/mgr: add tests to verify Responder decorator behavior

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 1800f30f04fcb24b3c02afb7122d7e1993c05cb3)

3 years agopybind/mgr: add format arg to Responder's extra args
John Mulligan [Mon, 11 Apr 2022 19:16:34 +0000 (15:16 -0400)]
pybind/mgr: add format arg to Responder's extra args

To ensure that the Responder can make use of a user provided `--format=`
parameter even if the programmer doesn't explicitly add one to the
args of an endpoint function we set the `extra_args` attribute on
our wrapper function so that CLICommand can later extract it.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit efee0d7ebc5d990338eb6d256fe23717bafe128d)

3 years agopybind/mgr: enhance CLICommand to fetch extra args from wrapped funcs
John Mulligan [Mon, 11 Apr 2022 19:03:12 +0000 (15:03 -0400)]
pybind/mgr: enhance CLICommand to fetch extra args from wrapped funcs

Previously, the CLICommand decorator "assumed" that the decorator was
applied directly to a mgr module api endpoint function. Now that we plan
on adding the Responder decorator into the mix we need a way of
properly fetching the arguments of the endpoint function. In addition,
the decorator itself needs to provide extra arguments to the mgr
(in cases where the endpoint function doesn't explicitly ask for it).
Thus we add a helper function to find the endpoint function when
wrapped as well as extract extra arguments when "walking" the stack
of __wrapped__ functions.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 2b22297f5664a2c778f6591dd1e1f3822fc5a3c1)

3 years agopybind/mgr: change to private _load_func_metadata classmethod
John Mulligan [Mon, 11 Apr 2022 18:46:37 +0000 (14:46 -0400)]
pybind/mgr: change to private _load_func_metadata classmethod

The load_func_metadata had exactly one use in the codebase, the
store_func_metadata method. It was also a staticmethod that referred to
a property of it's class.

This change makes the function "private" by renaming it to
_load_func_metadata, removing it from the public "surface area" of the
type. It changes it to a classmethod so that it would work correctly
if used from a subclass of CLICommand.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 8c7876146bb7d579cd000049611ae999a8bc1963)

3 years agopybind/mgr: add test cases for Responder type
John Mulligan [Mon, 11 Apr 2022 18:38:52 +0000 (14:38 -0400)]
pybind/mgr: add test cases for Responder type

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 76492408dcf18197162bf9220300c2f70701528b)

3 years agopybind/mgr: add a Responder decorator type
John Mulligan [Sat, 9 Apr 2022 19:19:37 +0000 (15:19 -0400)]
pybind/mgr: add a Responder decorator type

The Responder is the decorator that future endpoint functions in the mgr can
use to automatically handle conversions of returned types to serilaized
data (JSON, YAML, etc) as well as automatically convert exceptions into
error responses.

The Responder makes use of format and return-value adapter types,
previously added to the module, to convert a returned value into a mgr
response. This change adds some exception types to return error
responses to the clients.

Simple customizations can be done by passing an alternate format adapter
type when the Responder is being constructed. Additional customization
can be done by subclassing the Responder.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 6e234b190841204d076e1b622db543674d0c4b57)

3 years agopybind/mgr: add CommonFormatter type and valid_formats method
John Mulligan [Sat, 9 Apr 2022 19:13:41 +0000 (15:13 -0400)]
pybind/mgr: add CommonFormatter type and valid_formats method

A type that has a valid_formats method, and thus meets the
CommonFormatter protocol, supports distinguishing between formats
that are known but unsupported for a given API vs. unknown (possibly a typo).

To make working with the format names easier this also makes the Format
enum inherit from str.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 77573637cd78e50d1336680a23fd1044d626f855)

3 years agopybind/mgr: add a test case for the ReturnValueAdapter
John Mulligan [Sat, 9 Apr 2022 18:47:01 +0000 (14:47 -0400)]
pybind/mgr: add a test case for the ReturnValueAdapter

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 29d8be428c7aa0125ab5c6636cd4b8712e60f71b)

3 years agopybind/mgr: add a ReturnValueAdapter type to object_format.py
John Mulligan [Sat, 9 Apr 2022 18:46:50 +0000 (14:46 -0400)]
pybind/mgr: add a ReturnValueAdapter type to object_format.py

The ReturnValueAdapter type fulfills a similar role to the
ObjectFormatAdapter but instead of serializing data for the
body of a mgr response, extracts an return value (error code)
to reply with.

Most of the time it is totally unnecessary to provide an explicit
return value because if you have are returning a valid object (as
opposed to raising an exception) the return value will be zero
(success). However, in the off chance an type need to directly
communicate a return value for the mgr response it can provide
the `mgr_return_value` method and the adapater will discover
and use it.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 27787a9905d4d2e1062f7f4977377530d7aa8c23)

3 years agopybind/mgr: add test cases for ObjectFormatAdapter
John Mulligan [Sat, 9 Apr 2022 18:29:50 +0000 (14:29 -0400)]
pybind/mgr: add test cases for ObjectFormatAdapter

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit f2e10b7f504a6aa63a72422320d38d2b6334295b)

3 years agopybind/mgr: add ObjectFormatAdapter type to object_format.py
John Mulligan [Sat, 9 Apr 2022 18:29:25 +0000 (14:29 -0400)]
pybind/mgr: add ObjectFormatAdapter type to object_format.py

The ObjectFormatAdapter fills the role for bridging between types
that can return a simplified representation of themselves and
actually formatting objects as JSON and YAML.

Note that we do not want generally want types that serialize themselves
to JSON/YAML strings. That approach makes it harder to standardize on
the final output formatting (indentation, multiple yaml docs, etc).
Additionally, we do not want the types to need to specialize between
JSON and YAML. So, by default, we try to use a method `to_simplified`
which is not specific to any serialization format.  However, for
backwards compatibility with types that already have methods *that
return dicts/lists/etc* under the names `to_json` or `to_yaml` we
support using the `compatible` flag to enable the use of those methods.
If the adaptor fails to find a conversion method on the object,
serialization of the object itself is attempted - this way return values
of simple lists, dicts, etc also works.

An earlier version of this patch tried to share the JSON/YAML
serialization logic found in src/pybind/mgr/orchestrator/module.py.
However, this approach was deemed too complicated and we also preferred
to use yaml safe dumping whenever possible.  This does lead to a level
of code duplication. Dealing with this duplication is a task left for
the future.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 5a3f2ae916146a13290695e141c789722dbd9ad9)

3 years agopybind/mgr: reformat quoting in format enum
John Mulligan [Fri, 8 Apr 2022 15:15:55 +0000 (11:15 -0400)]
pybind/mgr: reformat quoting in format enum

Whenever possible I use 'black' to reformat the python code.
It's strict and its formatting is superset of what ceph's
formatting tools require. This change updates the code that was
moved into this file so that future uses of 'black' don't
reformat this section too.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 05b76159b6a262b6bbdab3c0b41a80a85bf705e0)

3 years agopybind/mgr: start a new object_format.py for general formatting
John Mulligan [Mon, 14 Mar 2022 15:29:50 +0000 (11:29 -0400)]
pybind/mgr: start a new object_format.py for general formatting

Currently, there's some auto-formatting logic in the orchestrator
module and a lot of ad-hoc formatting scattered around the mgr modules.
This new module aims to bring some of that together in a central
location.
Start by moving the Format enum from the orchestrator.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 006c33895f4b7559219821bcfafbe82e789e9e41)

3 years agodoc/cephadm: staggered upgrade docs
Adam King [Tue, 19 Apr 2022 17:20:45 +0000 (13:20 -0400)]
doc/cephadm: staggered upgrade docs

Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 6a68def64eb720ef0eeace7c0d19c48cb1f6e5bb)

3 years agomgr/cephadm: unit test for staggered upgrade param validation
Adam King [Wed, 13 Apr 2022 04:36:02 +0000 (00:36 -0400)]
mgr/cephadm: unit test for staggered upgrade param validation

Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 0a46fcb423133e662254ec1aad3704bcaf5e101b)

3 years agoqa/suites/orch/cephadm: staggered upgrade test
Adam King [Tue, 12 Apr 2022 16:39:26 +0000 (12:39 -0400)]
qa/suites/orch/cephadm: staggered upgrade test

Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 791e1d20b363c5960e11263312293383e2748a9d)

3 years agomgr/cephadm: autopep8 changes
Adam King [Tue, 5 Apr 2022 21:38:20 +0000 (17:38 -0400)]
mgr/cephadm: autopep8 changes

Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 62a06c464770c0253a6aebd94f8040dd58614c77)

3 years agomgr/cephadm: make use of new upgrade control parameters
Adam King [Fri, 1 Apr 2022 13:41:01 +0000 (09:41 -0400)]
mgr/cephadm: make use of new upgrade control parameters

Fixes: https://tracker.ceph.com/issues/54135
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit c1f3497b43bff6f7640161807dce01dc089ce405)

3 years agomgr/cephadm: make UpgradeState from_json a bit safer
Adam King [Fri, 1 Apr 2022 12:20:28 +0000 (08:20 -0400)]
mgr/cephadm: make UpgradeState from_json a bit safer

This way, for downgrades to whatever versions
this lands in onward, having added new parameters to
UpgradeState shouldn't break anything. Can't do much
about downgrades to older versions from this one
but this should help in the future.

Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit aeaa0b5fd87068a31bfa61dd088c49affce42419)

3 years agomgr/cephadm: add new args and validation for staggered upgrade
Adam King [Wed, 30 Mar 2022 13:49:56 +0000 (09:49 -0400)]
mgr/cephadm: add new args and validation for staggered upgrade

Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit e6b0fe0e4859f83ca69d14d89f9e47f0ea74e770)

3 years agomgr/cephadm: split _do_upgrade into sub functions
Adam King [Mon, 28 Mar 2022 16:10:15 +0000 (12:10 -0400)]
mgr/cephadm: split _do_upgrade into sub functions

This function was around 500 lines and difficult to work
with. Splitting it into sub functions should hopefully make
it a bit easier to understand and make changes to.

Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 7b83c51fe63ae006b15dcf509c08a722f104788e)

3 years agomgr, mgr/prometheus: Fix regression with prometheus metrics
Prashant D [Thu, 17 Mar 2022 14:29:40 +0000 (14:29 +0000)]
mgr, mgr/prometheus: Fix regression with prometheus metrics

The ceph dameons on host are inheriting ceph version from the host.
This introduces a wrong interpretation in prometheus metrics as well
as in dump_server. Each ceph daemon should represent it's own
ceph version based on the ceph binary is use for that daemon.

Consider a situation where partial upgrade is done on host, some daemons
which are restarted should have ceph version tag as upgraded version
and rest should have older ceph version but presently all inherites
host version. In containerized environment, all daemons are
using ceph version of last daemon registered as a service on the host.

Fixes: https://tracker.ceph.com/issues/54611
Signed-off-by: Prashant D <pdhange@redhat.com>
(cherry picked from commit aeca2e41ef560cf51c1ad935cfb6470e782aa8d5)

3 years agomgr/cephadm: Adding prometheus service discovery endpoints
Redouane Kachach [Tue, 15 Mar 2022 16:02:41 +0000 (17:02 +0100)]
mgr/cephadm: Adding prometheus service discovery endpoints

Signed-off-by: Redouane Kachach <rkachach@redhat.com>
Fixes: https://tracker.ceph.com/issues/54309
(cherry picked from commit 0e0135a1b640dc06e9c2295f3fe172b0914bae2c)

3 years agomgr/cephadm: adding support to copy ceph conf to per fsid config location
Redouane Kachach [Tue, 17 May 2022 09:40:15 +0000 (11:40 +0200)]
mgr/cephadm: adding support to copy ceph conf to per fsid config location
Fixes: https://tracker.ceph.com/issues/55685
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
(cherry picked from commit c5e4aa6085dab3a8ce6087efa0fc1caf904ba4ae)

3 years agomgr/cephadm: fix unit.stop for ceph daemons
Redouane Kachach [Mon, 25 Apr 2022 15:43:57 +0000 (17:43 +0200)]
mgr/cephadm: fix unit.stop for ceph daemons
Fixes: https://tracker.ceph.com/issues/55466
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
(cherry picked from commit be9b7819d7bde47c4fa5e7919a8d2973e222c055)

3 years agomgr/cephadm: Adding an early ssh connectivity check during bootsrap
Redouane Kachach [Fri, 29 Apr 2022 06:26:27 +0000 (08:26 +0200)]
mgr/cephadm: Adding an early ssh connectivity check during bootsrap
Fixes: https://tracker.ceph.com/issues/55493
Fixes: https://tracker.ceph.com/issues/51665
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
(cherry picked from commit dda803b38d7125673af4c61e7ad53def29408991)

3 years agomgr/cephadm: unit test for re-adding host and receiving loopback address
Adam King [Tue, 30 Nov 2021 13:45:47 +0000 (08:45 -0500)]
mgr/cephadm: unit test for re-adding host and receiving loopback address

Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit abfbbd383cadfa3e2862d939444e0e9218b3cb3b)

3 years agomgr/cephadm: re-use old ip when re-adding hosts if necessary
Adam King [Thu, 18 Nov 2021 20:22:39 +0000 (15:22 -0500)]
mgr/cephadm: re-use old ip when re-adding hosts if necessary

When a host is re-added without an explicit ip we can default to the old
ip we had stored for the host rather than either keeping the loopback
address or throwing an exception. We only want to actually error when
the only options left are error or use a resolved loopback address

Fixes: https://tracker.ceph.com/issues/53438
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 7e8d8317bef1b35cddd99950e503f57710002e80)

3 years agomgr/cephadm: stripping out / from the end of the url
Redouane Kachach [Tue, 17 May 2022 15:26:39 +0000 (17:26 +0200)]
mgr/cephadm: stripping out / from the end of the url
Fixes: https://tracker.ceph.com/issues/55638
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
(cherry picked from commit 17032f6be22e9efc3e199d7e35091025bfaae965)

3 years agomgr/cephadm: force fail over when we want to remove active mgr
Adam King [Tue, 17 May 2022 00:44:11 +0000 (20:44 -0400)]
mgr/cephadm: force fail over when we want to remove active mgr

Fixes: https://tracker.ceph.com/issues/55679
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 63d13df4eb469fb6f5d85ee06184e7df670aa193)

3 years agomgr/cephadm: do not use sudo for root user
Redouane Kachach [Tue, 17 May 2022 10:32:50 +0000 (12:32 +0200)]
mgr/cephadm: do not use sudo for root user
Fixes: https://tracker.ceph.com/issues/55641
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
(cherry picked from commit 7cfcc7ef089cb3458040b9b592a7d0bafbf4c2c2)

3 years agomgr/cephadm: fixing ipv6 handling during bootstrap
Redouane Kachach [Thu, 5 May 2022 13:53:49 +0000 (15:53 +0200)]
mgr/cephadm: fixing ipv6 handling during bootstrap
Fixes: https://tracker.ceph.com/issues/55556
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
(cherry picked from commit ae0cbacd1d8d78f41a06fd3b5cd3c0fd693e4c0f)

3 years agomgr/cephadm: fixing ipv6/128 and ipv4/32 subnets handling
Redouane Kachach [Thu, 5 May 2022 14:08:12 +0000 (16:08 +0200)]
mgr/cephadm: fixing ipv6/128 and ipv4/32 subnets handling
Fixes: https://tracker.ceph.com/issues/51257
Fixes: https://tracker.ceph.com/issues/53496
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
(cherry picked from commit 75945ad74cf614b3516abd3a50de56cbaab58346)

3 years agomgr/cephadm: fixing yaml parsing during bootstrap
Redouane Kachach [Mon, 9 May 2022 15:17:30 +0000 (17:17 +0200)]
mgr/cephadm: fixing yaml parsing during bootstrap
Fixes: https://tracker.ceph.com/issues/55555
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
(cherry picked from commit 4af8a884416509daa65898335de3d8a355890675)

3 years agomgr/cephadm: don't use cached conns for hosts not in cluster
Adam King [Tue, 10 May 2022 17:27:44 +0000 (13:27 -0400)]
mgr/cephadm: don't use cached conns for hosts not in cluster

Fixes: https://tracker.ceph.com/issues/55596
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit acf17ed4572a86fa40fee4e43024aa5a389cd741)

3 years agocephadm: Revert "mgr/cephadm: fixing call method timeout handling"
Adam King [Thu, 12 May 2022 14:09:43 +0000 (10:09 -0400)]
cephadm: Revert "mgr/cephadm: fixing call method timeout handling"

This reverts commit 55d42d0c31a5414cb2beac9273faa7123efb8709.

Fixes: https://tracker.ceph.com/issues/55623
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit c6e63de4fc51ca54ca2f60ef800222a1b3cfde87)

3 years agocephadm: fix adoption of osds from custom name clusters
Adam King [Fri, 13 May 2022 16:53:09 +0000 (12:53 -0400)]
cephadm: fix adoption of osds from custom name clusters

Fixes: https://tracker.ceph.com/issues/55654
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 361c71c7321929898a9cc381b05f4cd65aba36f7)

3 years agomgr/cephadm: Disable external snapshots in grafana
Aashish Sharma [Thu, 5 May 2022 08:22:33 +0000 (13:52 +0530)]
mgr/cephadm: Disable external snapshots in grafana

This PR intends to disable the external snapshots in grafana to reduce security threats

Signed-off-by: Aashish Sharma <aasharma@redhat.com>
(cherry picked from commit 334f4e141c8176df09d1820a1396d434e87781ae)

3 years agomgr/nfs: add test for access type validation func
John Mulligan [Thu, 21 Apr 2022 19:34:25 +0000 (15:34 -0400)]
mgr/nfs: add test for access type validation func

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit bb2b45d7036cd6fe03c45f349c86302d7fbfbbf1)

3 years agomgr/nfs: add test for squash validation func
John Mulligan [Thu, 21 Apr 2022 19:32:33 +0000 (15:32 -0400)]
mgr/nfs: add test for squash validation func

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 2bcd911e3146ed6429a84cccf87f447525c124bc)

3 years agomgr/nfs: lift validate access type method to file level function
John Mulligan [Thu, 21 Apr 2022 19:27:40 +0000 (15:27 -0400)]
mgr/nfs: lift validate access type method to file level function

More reusable across the entire file and made private, shrinking
the public surface area of the type.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 3d17b9ee74b01a0dec3d4f2b50ab242a91259faf)

3 years agomgr/nfs: lift validate squash method to file level function
John Mulligan [Thu, 21 Apr 2022 19:17:40 +0000 (15:17 -0400)]
mgr/nfs: lift validate squash method to file level function

More reusable across the entire file and made private, shrinking
the public surface area of the type.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 2587c29c8a8fe496b9b8fd705aeee6fb6333a71f)

3 years agomgr/nfs: move write_block func to file level format_block
John Mulligan [Fri, 4 Mar 2022 20:04:56 +0000 (15:04 -0500)]
mgr/nfs: move write_block func to file level format_block

The method was an unnecessary use of staticmethod as well as a
confusingly named function. Move the file and rename it for clarity.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 42e0a9ad9f813f64978f60dda25984ec2760d066)

3 years agomgr/nfs: lift _format_val function to file level
John Mulligan [Fri, 4 Mar 2022 19:53:38 +0000 (14:53 -0500)]
mgr/nfs: lift _format_val function to file level

There's no advantage to having this function as a closure and it makes
reading the code (and testing it) more challenging.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 1a7b7e35b261c9e227f0540ae5310e68a7e8bfe4)

3 years agomgr/nfs: simplify implementation of _indentation function
John Mulligan [Thu, 21 Apr 2022 19:05:13 +0000 (15:05 -0400)]
mgr/nfs: simplify implementation of _indentation function

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 6b33cec65724db7c0894d4aa2bdf320448eb2dc4)

3 years agomgr/nfs: lift generic indentation function to file level
John Mulligan [Fri, 4 Mar 2022 19:40:33 +0000 (14:40 -0500)]
mgr/nfs: lift generic indentation function to file level

Tucking a private method away as a staticmethod makes it harder to reuse
and less obvious that it can be resused.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit d791d5c2291970b750ec73aa8862dd9369b92da0)

3 years agomgr/nfs: rename export_utils.py to ganesha_conf.py
John Mulligan [Fri, 4 Mar 2022 19:28:43 +0000 (14:28 -0500)]
mgr/nfs: rename export_utils.py to ganesha_conf.py

This new name is clearer about what topic the code in the file covers.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit bc895b6a7f3955d59ebbf5ca55a3cb6d2b56f439)

3 years agocephfs/test_nfs: Add test for dynamic update export
Ramana Raja [Fri, 11 Mar 2022 19:49:42 +0000 (14:49 -0500)]
cephfs/test_nfs: Add test for dynamic update export

Add test to verify that the NFS servers don't restart when the
access type of a CephFS NFS export is updated.

And check the NFS servers are restarted when the pseudo path of
a CephFS NFS export is updated.

Signed-off-by: Ramana Raja <rraja@redhat.com>
(cherry picked from commit d7904e78d13c24b305b4e83f15ee2b86ab2085e5)

3 years agocephfs/test_nfs: fix _write_to_read_only_export()
Ramana Raja [Fri, 11 Mar 2022 21:36:44 +0000 (16:36 -0500)]
cephfs/test_nfs: fix _write_to_read_only_export()

... to fail the test if write to read only export succeeded.

Signed-off-by: Ramana Raja <rraja@redhat.com>
(cherry picked from commit 3c22f6eb716b4b4f2817566a5b14350f7dd3310e)

3 years agomgr/nfs: Don't notify ganesha rados object
Ramana Raja [Wed, 26 Jan 2022 04:30:26 +0000 (23:30 -0500)]
mgr/nfs: Don't notify ganesha rados object

... to update export if the ganesha server is going to be
restarted. The ganesha server restart will reload the exports.

Signed-off-by: Ramana Raja <rraja@redhat.com>
(cherry picked from commit 4df294b7fafc308611b75c4656a40c42d1d95361)

3 years agomgr/nfs: allow dynamic update of cephfs nfs export
Ramana Raja [Tue, 25 Jan 2022 01:06:11 +0000 (20:06 -0500)]
mgr/nfs: allow dynamic update of cephfs nfs export

mgr/nfs module's apply_export() method is used to update an existing
CephFS NFS export. The method always restarted the ganesha service (
ganesha server cluster) after updating the export object and notifying
the ganesha servers to reload their exports. The restart temporarily
affected the clients connections of all the exports served by the
ganesha servers.

It is not always necessary to restart the ganesha servers. Only
updating the export ID, path, or FSAL block of a CephFS NFS export
requires a restart. So modify apply_export() to only restart the
ganesha servers for such export updates.

The mgr/nfs module creates a FSAL ceph user with read-only or
read-write path restricted MDS caps for each export. To change the
access type of the CephFS NFS export, the MDS caps of the export's FSAL
ceph user must also be changed. Ganesha can dynamically enforce an
export's access type changes, but Ceph server daemons can't dynamically
enforce changes in caps of the Ceph clients. To allow dynamic updates
of CephFS NFS exports, always create a FSAL Ceph user with read-write
path restricted MDS caps per export. Rely on the ganesha servers to
enforce the export access type changes for the NFS clients.

Fixes: https://tracker.ceph.com/issues/54025
Signed-off-by: Ramana Raja <rraja@redhat.com>
(cherry picked from commit 2415e03217b4afe9e430863da0b4503be254c425)

3 years agomgr/cephadm: adding logic to close ports when removing a daemon
Redouane Kachach [Tue, 26 Apr 2022 10:30:38 +0000 (12:30 +0200)]
mgr/cephadm: adding logic to close ports when removing a daemon
Fixes: https://tracker.ceph.com/issues/52906
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
(cherry picked from commit 4deb546ffd67ac8f05d2788150764a26b5671b87)

3 years agodoc/cephadm/services: Add missing ceph command to orch apply
bluikko [Thu, 28 Apr 2022 06:42:31 +0000 (13:42 +0700)]
doc/cephadm/services: Add missing ceph command to orch apply

In cephadm service management documentation several of the
ceph orch commands are missing the ceph part, mostly in
ceph orch apply commands but not all of them.

Add ceph in the front of the command to make them consistent
with all other commands.

Signed-off-by: Ville Ojamo <14869000+bluikko@users.noreply.github.com>
(cherry picked from commit 4d96410826f31ea9c3bf5f3322a9391e257ffb76)

3 years agoMerge pull request #46311 from b-ranto/wip-alerts-quincy
Boris Ranto [Thu, 19 May 2022 11:27:11 +0000 (13:27 +0200)]
Merge pull request #46311 from b-ranto/wip-alerts-quincy

[quincy] mgr/alerts: Add Message-Id and Date header to sent emails

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
3 years agoMerge pull request #46325 from zdover23/wip-pr-46315-backport-to-quincy
zdover23 [Wed, 18 May 2022 23:21:48 +0000 (09:21 +1000)]
Merge pull request #46325 from zdover23/wip-pr-46315-backport-to-quincy

quincy: doc/start: s/3/three/ in intro.rst

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
3 years agodoc/start: s/3/three/ in intro.rst 46325/head
Zac Dover [Wed, 18 May 2022 10:36:53 +0000 (20:36 +1000)]
doc/start: s/3/three/ in intro.rst

I'm changing "3" to "three" for two reasons:

1. It's correct.
2. This allows me to test backports into Octopus, Pacific, and Quincy.
   I am particularly interested to see what happens when I attempt
   the backport into Octopus, because backports into Octopus have
   failed. This will provide me with another unit of data.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
(cherry picked from commit 28efcec2d65e85ff2fa54e62b5b134e63ace853b)

3 years agoMerge pull request #46212 from idryomov/wip-use-system-libpmem-on-c9s-quincy
Yuri Weinstein [Wed, 18 May 2022 15:13:59 +0000 (08:13 -0700)]
Merge pull request #46212 from idryomov/wip-use-system-libpmem-on-c9s-quincy

quincy: rpm: use system libpmem on Centos 9 Stream

Reviewed-by: Deepika Upadhyay <dupadhya@redhat.com>
3 years agoMerge pull request #46094 from idryomov/wip-55389-quincy
Yuri Weinstein [Wed, 18 May 2022 15:13:01 +0000 (08:13 -0700)]
Merge pull request #46094 from idryomov/wip-55389-quincy

quincy: librbd/cache/pwl: fix bit field endianness issue

Reviewed-by: Deepika Upadhyay <dupadhya@redhat.com>
3 years agomgr/alerts: Add Date header to mails sent by alerts module 46311/head
Lorenz Bausch [Tue, 8 Mar 2022 13:45:03 +0000 (14:45 +0100)]
mgr/alerts: Add Date header to mails sent by alerts module

Signed-off-by: Lorenz Bausch <info@lorenzbausch.de>
(cherry picked from commit 4031917739c1e17d909a3fd53fb74fd0fc86030a)

3 years agomgr/alerts: Generate Message-Id for mails sent by alerts module
Lorenz Bausch [Tue, 8 Mar 2022 13:36:20 +0000 (14:36 +0100)]
mgr/alerts: Generate Message-Id for mails sent by alerts module

Signed-off-by: Lorenz Bausch <info@lorenzbausch.de>
(cherry picked from commit ef5975e701cfeb58f2dd8fb9f0410d08692fa757)

3 years agoMerge pull request #46113 from Matan-B/wip-55513-quincy
Yuri Weinstein [Tue, 17 May 2022 22:58:13 +0000 (15:58 -0700)]
Merge pull request #46113 from Matan-B/wip-55513-quincy

quincy: mount/conf: Fix IPv6 parsing

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
3 years agoMerge pull request #45871 from idryomov/wip-stretch-last-force-resend-quincy
Yuri Weinstein [Tue, 17 May 2022 22:56:33 +0000 (15:56 -0700)]
Merge pull request #45871 from idryomov/wip-stretch-last-force-resend-quincy

quincy: mon/OSDMonitor: properly set last_force_op_resend in stretch mode

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
3 years agoMerge pull request #46287 from zdover23/wip-doc-tracker-55676-backport-quincy
zdover23 [Tue, 17 May 2022 15:07:31 +0000 (01:07 +1000)]
Merge pull request #46287 from zdover23/wip-doc-tracker-55676-backport-quincy

quincy: doc/dev: update basic-workflow.rst

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
3 years agodoc/dev: update basic-workflow.rst 46287/head
Zac Dover [Wed, 13 Apr 2022 14:09:38 +0000 (00:09 +1000)]
doc/dev: update basic-workflow.rst

This PR updates the basic-workflow.rst file
to serve the needs of people in 2022 who were not
present at jump street.

The text has been refined up to the section called
"Integration Tests" (non-inclusive).

Signed-off-by: Zac Dover <zac.dover@gmail.com>
(cherry picked from commit a227e4007a5ce66b63e42facf97f89655edf2169)

3 years agoMerge pull request #45814 from p-se/wip-55222-quincy
Ernesto Puerta [Fri, 13 May 2022 09:09:24 +0000 (11:09 +0200)]
Merge pull request #45814 from p-se/wip-55222-quincy

quincy: mgr/dashboard: Compare values of MTU alert by device

Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
3 years agoMerge pull request #46220 from rhcs-dashboard/wip-55600-quincy
Ernesto Puerta [Fri, 13 May 2022 09:04:48 +0000 (11:04 +0200)]
Merge pull request #46220 from rhcs-dashboard/wip-55600-quincy

quincy: mgr/dashboard: introduce memory and cpu usage for daemons

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: rkachach <NOT@FOUND>
3 years agoMerge pull request #46229 from rhcs-dashboard/wip-55416-quincy
Ernesto Puerta [Thu, 12 May 2022 19:59:28 +0000 (21:59 +0200)]
Merge pull request #46229 from rhcs-dashboard/wip-55416-quincy

quincy: mgr/dashboard: fix wrong pg status processing

Reviewed-by: Nizamudeen A <nia@redhat.com>
3 years agomgr/dashboard: fix wrong pg status processing 46229/head
Ernesto Puerta [Fri, 11 Mar 2022 16:29:07 +0000 (17:29 +0100)]
mgr/dashboard: fix wrong pg status processing

Fixes: https://tracker.ceph.com/issues/54481
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
(cherry picked from commit 206dd9d4a71a70c46972597a838fda05ceec03da)

3 years agomgr/dashboard: fix linting errors and add test 46220/head
Aashish Sharma [Fri, 8 Apr 2022 05:19:04 +0000 (10:49 +0530)]
mgr/dashboard: fix linting errors and add test

Fixes: https://tracker.ceph.com/issues/55218
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
(cherry picked from commit b496f5837803a915daac98b0fad56eac3174db85)

 Conflicts:
src/pybind/mgr/dashboard/frontend/cypress/integration/cluster/services.po.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/service-daemon-list/service-daemon-list.component.html
     - Neglecting e2e changes as they aren't adopted fully to master yet- no regression. Adopting daemon-list html with master.

3 years agomgr/dashboard: introduce memory and cpu usage for daemons
Avan Thakkar [Thu, 7 Apr 2022 11:01:20 +0000 (16:31 +0530)]
mgr/dashboard: introduce memory and cpu usage for daemons

Fixes: https://tracker.ceph.com/issues/55218
Signed-off-by: Avan Thakkar <athakkar@redhat.com>
Co-authored-by: Aashish Sharma <aasharma@redhat.com>
Introducing 2 new columns in Cluster->Host->Daemons table for Memory and CPU usage.

(cherry picked from commit 263940502bdd9858c97923f394cd3d918e86e921)

3 years agoMerge pull request #46156 from nmshelke/wip-55413-quincy
Yuri Weinstein [Tue, 10 May 2022 14:47:02 +0000 (07:47 -0700)]
Merge pull request #46156 from nmshelke/wip-55413-quincy

quincy: mds: add a perf counter to record slow replies

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #46147 from neesingh-rh/wip-55540-quincy
Yuri Weinstein [Tue, 10 May 2022 14:45:21 +0000 (07:45 -0700)]
Merge pull request #46147 from neesingh-rh/wip-55540-quincy

quincy: cephfs-top: Multiple filesystem support

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Nikhilkumar Shelke <nshelke@redhat.com>
3 years agoMerge pull request #45994 from nmshelke/wip-55376-quincy
Yuri Weinstein [Tue, 10 May 2022 14:43:42 +0000 (07:43 -0700)]
Merge pull request #45994 from nmshelke/wip-55376-quincy

quincy: mgr/volumes: set, get, list and remove metadata of subvolume

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #45939 from nmshelke/wip-55039-quincy
Yuri Weinstein [Tue, 10 May 2022 14:43:09 +0000 (07:43 -0700)]
Merge pull request #45939 from nmshelke/wip-55039-quincy

quincy: ceph-fuse: ignore fuse mount failure if path is already mounted

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agorpm: use system libpmem on Centos 9 Stream 46212/head
Ilya Dryomov [Thu, 10 Mar 2022 17:32:30 +0000 (18:32 +0100)]
rpm: use system libpmem on Centos 9 Stream

We need libpmem 1.10 and Centos 9 Stream has it.  On top of sticking
to distro-provided packages being generally a good thing, this fixes
a build failure: libpmem 1.10 doesn't build with LTO which is enabled
by default in Centos 9 Stream.  The distro package works around it.

libpmem 1.10 is also there in Fedora 34 and Fedora 35.

Fixes: https://tracker.ceph.com/issues/54473
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 09440364731b35d5b47922a196df173d306e11dc)

3 years agoMerge pull request #46144 from cbodley/wip-55545
Yuri Weinstein [Mon, 9 May 2022 21:59:12 +0000 (14:59 -0700)]
Merge pull request #46144 from cbodley/wip-55545

quincy: cmake/rgw: add missing dependency on Arrow::Arrow

Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
3 years agoMerge pull request #46041 from cbodley/wip-55458
Yuri Weinstein [Mon, 9 May 2022 20:34:11 +0000 (13:34 -0700)]
Merge pull request #46041 from cbodley/wip-55458

quincy: rgw: RGWCoroutine::set_sleeping() checks for null stack

Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #46038 from cbodley/wip-55455
Yuri Weinstein [Mon, 9 May 2022 20:33:21 +0000 (13:33 -0700)]
Merge pull request #46038 from cbodley/wip-55455

quincy: rgw: OpsLogFile::stop() signals under mutex

Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #45679 from rhcs-dashboard/wip-54587-quincy
Ernesto Puerta [Fri, 6 May 2022 08:23:08 +0000 (10:23 +0200)]
Merge pull request #45679 from rhcs-dashboard/wip-54587-quincy

quincy: mgr/dashboard: highlight the search text in cluster logs

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
3 years agoMerge pull request #45957 from votdev/wip-55379-quincy
Ernesto Puerta [Fri, 6 May 2022 08:16:12 +0000 (10:16 +0200)]
Merge pull request #45957 from votdev/wip-55379-quincy

quincy: mgr/dashboard: Imrove error message of '/api/grafana/validation' API endpoint

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
3 years agoMerge pull request #45862 from rhcs-dashboard/wip-55274-quincy
Ernesto Puerta [Fri, 6 May 2022 08:15:26 +0000 (10:15 +0200)]
Merge pull request #45862 from rhcs-dashboard/wip-55274-quincy

quincy: mgr/dashboard: datatable in Cluster Host page hides wrong column on selection

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
3 years agoMerge pull request #45867 from votdev/wip-55275-quincy
Ernesto Puerta [Fri, 6 May 2022 08:14:29 +0000 (10:14 +0200)]
Merge pull request #45867 from votdev/wip-55275-quincy

quincy: mgr/dashboard: RGW users and buckets tables are empty if the selected gateway is down

Reviewed-by: Sarthak0702 <NOT@FOUND>
Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
3 years agoMerge pull request #45619 from votdev/wip-55007-quincy
Ernesto Puerta [Fri, 6 May 2022 08:13:58 +0000 (10:13 +0200)]
Merge pull request #45619 from votdev/wip-55007-quincy

quincy: mgr/dashboard: Language dropdown box is partly hidden on login page

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
3 years agoMerge pull request #46055 from adk3798/quincy-backport-april
Adam King [Thu, 5 May 2022 19:04:27 +0000 (15:04 -0400)]
Merge pull request #46055 from adk3798/quincy-backport-april

quincy: Cephadm Batch Backport April

Reviewed-by: Michael Fritch <mfritch@suse.com>
3 years agoMerge pull request #46061 from ljflores/wip-55439-quincy
Yuri Weinstein [Thu, 5 May 2022 15:22:17 +0000 (08:22 -0700)]
Merge pull request #46061 from ljflores/wip-55439-quincy

quincy: osd: return appropriate error if the object is not manifest

Reviewed-by: Myoungwon Oh <omwmw@sk.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
3 years agoMerge pull request #45624 from ljflores/wip-55047-quincy
Yuri Weinstein [Thu, 5 May 2022 15:20:13 +0000 (08:20 -0700)]
Merge pull request #45624 from ljflores/wip-55047-quincy

quincy: test: fix TierFlushDuringFlush to wait until dedup_tier is set on base pool

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Myoungwon Oh <omwmw@sk.com>
3 years agomds: add a perf counter to record slow replies 46156/head
haoyixing [Fri, 25 Mar 2022 03:02:13 +0000 (03:02 +0000)]
mds: add a perf counter to record slow replies

Though we have MDS_HEALTH_SLOW_METADATA_IO and MDS_HEALTH_SLOW_REQUEST health alert, but those are not
precise nor accumulated. With slow reply counter compared to reply counter, we can find out the ratio
of slow requests through perf dump.

Fixes: https://tracker.ceph.com/issues/55126
Signed-off-by: haoyixing <haoyixing@kuaishou.com>
(cherry picked from commit e8e3b307c87dc9eec2d087b396c0e7a0248b4f1d)

3 years agoMerge pull request #46116 from zdover23/wip-doc-pr-46109-backport-to-quincy
Laura Flores [Wed, 4 May 2022 16:06:58 +0000 (11:06 -0500)]
Merge pull request #46116 from zdover23/wip-doc-pr-46109-backport-to-quincy

Wip doc pr 46109 backport to quincy

3 years agoqa: test for verification of client metrics and metadata. 46147/head
Neeraj Pratap Singh [Mon, 21 Mar 2022 15:44:57 +0000 (21:14 +0530)]
qa: test for verification of client metrics and metadata.

Signed-off-by: Neeraj Pratap Singh <neesingh@redhat.com>
(cherry picked from commit 9855e15de2af20be49079271af23f7bfe24d56c4)

3 years agomgr/stats: fetches client_metadata for multiple filesystems.
Neeraj Pratap Singh [Thu, 17 Mar 2022 04:33:58 +0000 (10:03 +0530)]
mgr/stats: fetches client_metadata for multiple filesystems.

Signed-off-by: Neeraj Pratap Singh <neesingh@redhat.com>
(cherry picked from commit 5a1c4875c1b95248c050fb1f6aff48af4553156d)

3 years agocmake/rgw: add missing dependency on Arrow::Arrow 46144/head
Casey Bodley [Thu, 28 Apr 2022 15:43:15 +0000 (11:43 -0400)]
cmake/rgw: add missing dependency on Arrow::Arrow

when WITH_SYSTEM_ARROW is disabled, BuildArrow.cmake creates an
Arrow::Parquet target that depends on Arrow::Arrow:

  target_link_libraries(Arrow::Parquet INTERFACE Arrow::Arrow)

but when WITH_SYSTEM_ARROW is enabled, the targets we get from
find_package() do not carry this dependency. so rgw's cmake needs to
depend on both targets

Fixes: https://tracker.ceph.com/issues/55420
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 3f12d21418963f2a33b124185a2842a9c39e9cfa)

3 years agoMerge pull request #45700 from tserong/wip-55100-quincy
Deepika Upadhyay [Wed, 4 May 2022 12:23:26 +0000 (17:53 +0530)]
Merge pull request #45700 from tserong/wip-55100-quincy

quincy: ceph.spec.in: Use libthrift-devel on SUSE distros

Reviewed-by: Kefu Chai <tchaikov@gmail.com>
Reviewed-by: Deepika Upadhyay <dupadhya@redhat.com>
3 years agoMerge pull request #46075 from bluikko/patch-5
Anthony D'Atri [Wed, 4 May 2022 06:41:25 +0000 (23:41 -0700)]
Merge pull request #46075 from bluikko/patch-5

doc/mgr/dashboard: Fix typo and double slash missing from URL

3 years agomgr/cephadm: retry mgr fail over in case of transient failure 46055/head
Adam King [Mon, 11 Apr 2022 20:57:51 +0000 (16:57 -0400)]
mgr/cephadm: retry mgr fail over in case of transient failure

Fixes: https://tracker.ceph.com/issues/55279
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 3fe2d7d553d475f1fe3840c98ee31d71f6188a1a)

3 years agoApply sysctl.d migration from /usr/lib to /etc
windgmbh [Fri, 12 Nov 2021 15:51:03 +0000 (16:51 +0100)]
Apply sysctl.d migration from /usr/lib to /etc
A fix regarding the SYSCTL_DIR location (#53130) requires to migrate
sysctl.d/*.conf files from /usr/lib to /etc.
Signed-off-by: Lukas Mayer <lmayer@wind.gmbh>
(cherry picked from commit a167a27f30536958e0f2c513d351642e81ba06d5)