Skip to content

Commit

Permalink
VM error log file
Browse files Browse the repository at this point in the history
  • Loading branch information
ebattat committed Oct 27, 2024
1 parent 59b8840 commit 7cc9cf0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions benchmark_runner/workloads/bootstorm_vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ def _verify_single_vm(self, vm_name, retries=5, delay=10):

if virtctl_status != "True":
logger.info(f"All attempts failed for VM {vm_name}. Final SSH status: {self._data_dict['virtctl_status']}")
error_log_path = f"{self._run_artifacts_path}/{vm_name}_error.log"
with open(error_log_path, "w") as error_log_file:
error_log_file.write(self._data_dict['virtctl_status'])

self._finalize_vm()
return virtctl_status
Expand Down

0 comments on commit 7cc9cf0

Please sign in to comment.