Skip to content

Commit 5df9c81

Browse files
committed
Merge branch 'cherrypick-472-24.05' into 'slurm-24.05'
Cherry-pick !472 into slurm-24.05 See merge request SchedMD/dev/slurm!474
2 parents d6a7e62 + c3f6028 commit 5df9c81

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

testsuite/python/lib/atf.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,13 @@ def stop_slurm(fatal=True, quiet=False):
808808
lambda: pids_from_exe(f"{properties['slurm-sbin-dir']}/slurmctld"),
809809
lambda pids: len(pids) == 0,
810810
):
811-
failures.append("Slurmctld is still running")
811+
pids = pids_from_exe(f"{properties['slurm-sbin-dir']}/slurmctld")
812+
failures.append(f"Slurmctld is still running ({pids})")
813+
logging.warning("Getting the bt of the still running slurmctld")
814+
for pid in pids:
815+
run_command(
816+
f'sudo gdb -p {pid} -ex "set debuginfod enabled on" -ex "set pagination off" -ex "set confirm off" -ex "thread apply all bt" -ex "quit"'
817+
)
812818

813819
# Build list of slurmds
814820
slurmd_list = []
@@ -835,8 +841,12 @@ def stop_slurm(fatal=True, quiet=False):
835841
lambda pids: len(pids) == 0,
836842
):
837843
pids = pids_from_exe(f"{properties['slurm-sbin-dir']}/slurmd")
838-
run_command(f"pgrep -f {properties['slurm-sbin-dir']}/slurmd -a", quiet=quiet)
839844
failures.append(f"Some slurmds are still running ({pids})")
845+
for pid in pids:
846+
run_command(
847+
f'sudo gdb -p {pid} -ex "set debuginfod enabled on" -ex "set pagination off" -ex "set confirm off" -ex "thread apply all bt" -ex "quit"'
848+
)
849+
run_command(f"pgrep -f {properties['slurm-sbin-dir']}/slurmd -a", quiet=quiet)
840850

841851
# Stop slurmrestd if was started
842852
if properties["slurmrestd-started"]:

0 commit comments

Comments
 (0)