Skip to content

Commit b5e6a0c

Browse files
committed
qa/tasks/nvmeof.py: Do not use 'systemctl start' in thrasher
Instead use 'daemon start' in revive_daemon() to bring up gateways thrashed with 'systemctl stop'. This is because 'systemctl start' method seems to temporary issues. Signed-off-by: Vallari Agrawal <vallari.agrawal@ibm.com>
1 parent 06811a4 commit b5e6a0c

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

qa/tasks/nvmeof.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,8 @@ def kill_daemon(self, daemon):
398398
d_name
399399
], check_status=False)
400400
elif chosen_method == "systemctl_stop":
401-
daemon.stop()
401+
# To bypass is_started logic of CephadmUnit
402+
daemon.remote.sh(daemon.stop_cmd, check_status=False)
402403
elif chosen_method == "daemon_remove":
403404
daemon.remote.run(args=[
404405
"ceph", "orch", "daemon", "rm",
@@ -407,16 +408,20 @@ def kill_daemon(self, daemon):
407408
return chosen_method
408409

409410
def revive_daemon(self, daemon, killed_method):
411+
name = '%s.%s' % (daemon.type_, daemon.id_)
410412
if killed_method == "ceph_daemon_stop":
411-
name = '%s.%s' % (daemon.type_, daemon.id_)
412413
daemon.remote.run(args=[
413414
"ceph", "orch", "daemon", "restart",
414415
name
415416
])
417+
# note: temporarily use 'daemon start' to restart
418+
# daemons instead of 'systemctl start'
416419
elif killed_method == "systemctl_stop":
417-
daemon.restart()
420+
daemon.remote.run(args=[
421+
"ceph", "orch", "daemon", "start",
422+
name
423+
])
418424
else:
419-
name = '%s.%s' % (daemon.type_, daemon.id_)
420425
daemon.remote.run(args=[
421426
"ceph", "orch", "daemon", "start",
422427
name

0 commit comments

Comments
 (0)