From 829875b6ff866a99cd4e642869addb19077c8337 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Tue, 2 May 2017 11:24:15 -0600 Subject: [PATCH] DaemonGroup: Don't use systemd with valgrind Signed-off-by: Zack Cerza --- teuthology/orchestra/daemon/group.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/teuthology/orchestra/daemon/group.py b/teuthology/orchestra/daemon/group.py index befc9417b7..d2979b68bf 100644 --- a/teuthology/orchestra/daemon/group.py +++ b/teuthology/orchestra/daemon/group.py @@ -55,7 +55,10 @@ class DaemonGroup(object): self.daemons[role][id_] = None klass = DaemonState if remote.init_system == 'systemd': - klass = SystemDState + # We currently cannot use systemd and valgrind together because + # it would require rewriting the unit files + if not any(map(lambda i: i == 'valgrind', args)): + klass = SystemDState self.daemons[role][id_] = klass( remote, role, id_, *args, **kwargs) -- 2.39.5