]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: fix tuned profiles getting removed if name has dashes 47936/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 12:52:10 +0000 (08:52 -0400)
commit69abd358c42cff2b804ba7dd901e6a150c5d50c4
tree298a4dba23fa7ef123422565f72316cc0008491a
parent46200c207165058b98a14c59c1af2d2e2d8903c6
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>
src/pybind/mgr/cephadm/tuned_profiles.py