Skip to content

Commit

Permalink
Test for Graceful node shutdown (#8233)
Browse files Browse the repository at this point in the history
Signed-off-by: Avdhoot <[email protected]>
  • Loading branch information
avd-sagare authored Jul 24, 2024
1 parent 17fc18d commit ba411e7
Show file tree
Hide file tree
Showing 2 changed files with 496 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ocs_ci/ocs/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -2611,9 +2611,11 @@ def check_for_zombie_process_on_node(node_name=None):
for node_obj in node_obj_list:
debug_cmd = (
f"debug nodes/{node_obj.name} --to-namespace={config.ENV_DATA['cluster_namespace']} "
'-- chroot /host /bin/bash -c "ps -A -ostat,pid,ppid | grep -e "[zZ]""'
'-- chroot /host /bin/bash -c "ps -A -ostat,pid,ppid | grep -e [zZ]"'
)
out = node_obj.ocp.exec_oc_cmd(
command=debug_cmd, ignore_error=True, out_yaml_format=False
)
out = node_obj.ocp.exec_oc_cmd(command=debug_cmd, out_yaml_format=False)
if not out:
log.info(f"No Zombie process found on the node: {node_obj.name}")
else:
Expand Down
Loading

0 comments on commit ba411e7

Please sign in to comment.