]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: fix tuned profiles getting removed if name has dashes 48077/head
authorAdam King <adking@redhat.com>
Thu, 1 Sep 2022 17:08:13 +0000 (13:08 -0400)
committerAdam King <adking@redhat.com>
Tue, 13 Sep 2022 19:10:27 +0000 (15:10 -0400)
commite3fd64eefcc8747e84db0af1a8aa4f3d97b37fbc
treeab06c875bd77f126f6b275f441be81cc20ba5482
parenteff0ec65da24b2795c92c8fda7d5b2b71b77b92d
mgr/cephadm: fix tuned profiles getting removed if name has dashes

Previously, due to the way it was just splitting the file name on
dashes to try and get the profile name, any profile name with dashes
was not getting properly matched and would therefore get marked
stray and removed. This new strategy instead tries to match the actual
expected file name.

Fixes: https://tracker.ceph.com/issues/57405
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 69abd358c42cff2b804ba7dd901e6a150c5d50c4)
src/pybind/mgr/cephadm/tuned_profiles.py