From 51a4dd04da61ae32f47c6542ed6cc7cda48ede5b Mon Sep 17 00:00:00 2001 From: Gil Bregman Date: Wed, 20 Aug 2025 12:48:54 +0300 Subject: [PATCH] cephadm/cephadmlib: Eliminate false warnings about old sysctl conf files. Fixes: https://tracker.ceph.com/issues/72657 Signed-off-by: Gil Bregman --- src/cephadm/cephadmlib/sysctl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cephadm/cephadmlib/sysctl.py b/src/cephadm/cephadmlib/sysctl.py index 4551ec20d379..d62f36046c9f 100644 --- a/src/cephadm/cephadmlib/sysctl.py +++ b/src/cephadm/cephadmlib/sysctl.py @@ -40,7 +40,7 @@ def install_sysctl( conf = Path(ctx.sysctl_dir).joinpath(f'90-ceph-{fsid}-{daemon_type}.conf') for conf_file in Path(ctx.sysctl_dir).glob('90-ceph-*.conf'): - if conf_file.name == f'90-ceph-{fsid}-{daemon_type}.conf': + if conf_file.name.startswith(f'90-ceph-{fsid}-'): continue logger.warning( f'Found a sysctl config file for a cluster with a different FSID ' -- 2.47.3