Skip to content

Commit

Permalink
Handle timeout during cleanup reboot, mark node dirty when fails to r…
Browse files Browse the repository at this point in the history
…eboot
  • Loading branch information
mcgov committed Sep 19, 2024
1 parent bac8da7 commit 5468cae
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion microsoft/testsuites/dpdk/dpdkutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,11 @@ def _parallel_cleanup(node: Node) -> None:
if not interface.is_enabled_sriov():
interface.switch_sriov(enable=True, wait=False, reset_connections=True)
# cleanup temporary hugepage and driver changes
node.reboot()
try:
node.reboot(time_out=60)
except LisaException:
node.log.debug("Timeout during cleanup reboot. Marking node for deletion.")
node.mark_dirty()

run_in_parallel(
[partial(_parallel_cleanup, node) for node in environment.nodes.list()]
Expand Down

0 comments on commit 5468cae

Please sign in to comment.