From: Vallari Agrawal Date: Fri, 28 Jun 2024 08:57:30 +0000 (+0530) Subject: orchestra/daemon/cephadmunit.py: fix method kill_cmd() X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=91863bd9c69728026705fe8f486664f11b2ba55e;p=teuthology.git orchestra/daemon/cephadmunit.py: fix method kill_cmd() This commit changes the method to systemctl from docker. This is because services are managed systemd, not docker. Also fixes a typo in service name. Fixes: https://tracker.ceph.com/issues/66742 Signed-off-by: Vallari Agrawal --- 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):