Skip to content

Commit

Permalink
node_cleanup: Log owner when query fails
Browse files Browse the repository at this point in the history
Signed-off-by: Zack Cerza <[email protected]>
  • Loading branch information
Zack Cerza committed Feb 3, 2025
1 parent 0902a99 commit bb40519
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/node_cleanup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ def main():
if args.verbose:
teuthology.log.setLevel(logging.DEBUG)
log = logging.getLogger(__name__)
stale = query.find_stale_locks(args.owner)
try:
stale = query.find_stale_locks(args.owner)
except Exception:
log.exception(f"Error while check for stale locks held by {args.owner}")
return
if not stale:
return
by_owner = {}
Expand Down

0 comments on commit bb40519

Please sign in to comment.