From 45dbc6fcbbf6cda6a237a4eff2acdb7a0987b80b Mon Sep 17 00:00:00 2001 From: sunilkumarn417 Date: Sun, 5 Apr 2020 06:56:11 -0400 Subject: [PATCH] code changes to retrieve correct daemon pid Signed-off-by: sunilkumarn417 --- teuthology/orchestra/daemon/systemd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teuthology/orchestra/daemon/systemd.py b/teuthology/orchestra/daemon/systemd.py index afb37be92..7651808a2 100644 --- a/teuthology/orchestra/daemon/systemd.py +++ b/teuthology/orchestra/daemon/systemd.py @@ -100,7 +100,7 @@ class SystemDState(DaemonState): @property def pid(self): proc_name = 'ceph-%s' % self.type_ - proc_regex = '"%s.*--id %s"' % (proc_name, self.id_) + proc_regex = '"%s.*--id %s "' % (proc_name, self.id_) args = ['ps', '-ef', run.Raw('|'), 'grep', -- 2.47.3