Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VM error log file #922

Merged
merged 1 commit into from
Oct 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion benchmark_runner/workloads/bootstorm_vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,15 @@ 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']}")
logger.info(
f"All attempts failed for VM {vm_name}. Final SSH status: {self._data_dict.get('virtctl_status', 'No status available')}")
error_log_path = f"{self._run_artifacts_path}/{vm_name}_error.log"

# Retrieve the status or use a default message
status_message = self._data_dict.get('virtctl_status') or "No status available"

with open(error_log_path, "w") as error_log_file:
error_log_file.write(str(status_message)) # Convert to string just in case

self._finalize_vm()
return virtctl_status
Expand Down