Skip to content

Commit

Permalink
Merge pull request #2002 from ceph/node-cleanup-false-pos
Browse files Browse the repository at this point in the history
  • Loading branch information
zmc authored Oct 21, 2024
2 parents e2eb3a9 + 75289d5 commit 1d957a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions teuthology/lock/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ def node_active_job(name: str, status: Union[dict, None] = None) -> Union[str, N
# This should never happen with a normal node
return "node had no status"
description = status['description']
if '/' not in description:
# technically not an "active job", but someone locked the node
# for a different purpose and is likely still using it.
return description
(run_name, job_id) = description.split('/')[-2:]
if not run_name or job_id == '':
# We thought this node might have a stale job, but no.
Expand Down

0 comments on commit 1d957a3

Please sign in to comment.