Skip to content

Commit 7cc9cf0

Browse files
committed
VM error log file
1 parent 59b8840 commit 7cc9cf0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

benchmark_runner/workloads/bootstorm_vm.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,9 @@ def _verify_single_vm(self, vm_name, retries=5, delay=10):
188188

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

192195
self._finalize_vm()
193196
return virtctl_status

0 commit comments

Comments
 (0)