Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: chunfuwen <[email protected]>
  • Loading branch information
chunfuwen committed Oct 17, 2024
1 parent 2d8f60b commit 29cc575
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion provider/bootc_image_builder/bootc_image_build_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,12 @@ def create_qemu_vm(params, env, test):
vm = env.get_vm(vm_name)
if vm.is_dead():
LOG.debug("VM is dead, starting")
vm.start()
# workaround VM can not start in the first time on rhel10
try:
vm.start()
except Exception as ex:
LOG.debug("start vm in retries")
vm.start()
ip_address = vm.wait_for_get_address(nic_index=0)
params.update({"ip_address": ip_address.strip()})
remote_vm_obj = verify_ssh_login_vm(params)
Expand Down

0 comments on commit 29cc575

Please sign in to comment.