From 2c6d64a222b4d38d4782ed407e045a86df0a6524 Mon Sep 17 00:00:00 2001 From: Vallari Agrawal Date: Fri, 28 Jun 2024 14:27:30 +0530 Subject: [PATCH] orchestra/daemon/cephadmunit.py: fix method kill_cmd() This commit changes kill command from docker to systemctl. This is because services are managed by systemd, not docker. Also fixes a typo in service name. Fixes: https://tracker.ceph.com/issues/66742 Signed-off-by: Vallari Agrawal --- teuthology/orchestra/daemon/cephadmunit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/teuthology/orchestra/daemon/cephadmunit.py b/teuthology/orchestra/daemon/cephadmunit.py index f4959b173..87c380d0d 100644 --- a/teuthology/orchestra/daemon/cephadmunit.py +++ b/teuthology/orchestra/daemon/cephadmunit.py @@ -35,9 +35,9 @@ class CephadmUnit(DaemonState): def kill_cmd(self, sig): return ' '.join([ - 'sudo', 'docker', 'kill', + 'sudo', 'systemctl', 'kill', '-s', str(int(sig)), - 'ceph-%s-%s.%s' % (self.fsid, self.type_, self.id_), + 'ceph-%s@%s.%s' % (self.fsid, self.type_, self.id_), ]) def _start_logger(self): -- 2.47.3