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

Need to retry when get "otherwise, please restart your installation" message #3730

Open
khaidox opened this issue Jul 31, 2023 · 0 comments
Open

Comments

@khaidox
Copy link

khaidox commented Jul 31, 2023

I am running 28 VM on one system. The sometimes I get this issue.

2023-07-26 11:44:31,721 avocado.utils.process INFO | Running '/usr/bin/virt-install --connect=qemu:///system --hvm --accelerate --name 'VM_18' --machine virt --memory=28000 --vcpu=22 --import --vnc --os-variant fedora36 --serial pty --memballoon model=virtio --disk path=/home/VMs/avocado/data/avocado-vt/images/f36-aarch64_VM_18.qcow2,bus=virtio,size=20,format=qcow2 --network=bridge=virbr0,model=virtio,mac=52:54:00:1c:6e:43 --mac=52:54:00:1c:6e:43 --noautoconsole'
2023-07-26 11:44:33,361 avocado.virttest.ip_sniffing DEBUG| Updated HWADDR (52:54:00:1c:6e:39)<->(192.168.122.99) IP pair into address cache
2023-07-26 11:44:35,161 avocado.utils.process DEBUG| [stderr] ERROR    internal error: qemu unexpectedly closed the monitor: 2023-07-26T04:44:34.589597Z qemu-system-aarch64: Failed to retrieve host CPU features
2023-07-26 11:44:35,213 avocado.utils.process DEBUG| [stderr] Domain installation does not appear to have been successful.
2023-07-26 11:44:35,213 avocado.utils.process DEBUG| [stderr] If it was, you can restart your domain by running:
2023-07-26 11:44:35,213 avocado.utils.process DEBUG| [stderr]   virsh --connect qemu:///system start VM_18
2023-07-26 11:44:35,213 avocado.utils.process DEBUG| [stderr] otherwise, please restart your installation.
2023-07-26 11:44:35,214 avocado.utils.process DEBUG| [stdout] 
2023-07-26 11:44:35,264 avocado.utils.process DEBUG| [stdout] Starting install...
2023-07-26 11:44:35,419 avocado.utils.process INFO | Command '/usr/bin/virt-install --connect=qemu:///system --hvm --accelerate --name 'VM_18' --machine virt --memory=28000 --vcpu=22 --import --vnc --os-variant fedora36 --serial pty --memballoon model=virtio --disk path=/home/VMs/avocado/data/avocado-vt/images/f36-aarch64_VM_18.qcow2,bus=virtio,size=20,format=qcow2 --network=bridge=virbr0,model=virtio,mac=52:54:00:1c:6e:43 --mac=52:54:00:1c:6e:43 --noautoconsole' finished with 1 after 3.866387557s
2023-07-26 11:44:35,419 avocado.test ERROR| 
2023-07-26 11:44:35,419 avocado.test ERROR| Reproduced traceback from: /home/.pyenv/versions/3.10.10/envs/env-avocado/lib/python3.10/site-packages/avocado_vt/test.py:274
2023-07-26 11:44:35,471 avocado.test ERROR| Traceback (most recent call last):
2023-07-26 11:44:35,472 avocado.test ERROR|   File "/home/.pyenv/versions/3.10.10/envs/env-avocado/lib/python3.10/site-packages/virttest/error_context.py", line 135, in new_fn
2023-07-26 11:44:35,472 avocado.test ERROR|     return fn(*args, **kwargs)
2023-07-26 11:44:35,472 avocado.test ERROR|   File "/home/.pyenv/versions/3.10.10/envs/env-avocado/lib/python3.10/site-packages/virttest/env_process.py", line 1394, in preprocess
2023-07-26 11:44:35,472 avocado.test ERROR|     process(test, params, env, preprocess_image, preprocess_vm,
2023-07-26 11:44:35,523 avocado.test ERROR|   File "/home/.pyenv/versions/3.10.10/envs/env-avocado/lib/python3.10/site-packages/virttest/env_process.py", line 891, in process
2023-07-26 11:44:35,524 avocado.test ERROR|     _call_vm_func()
2023-07-26 11:44:35,524 avocado.test ERROR|   File "/home/.pyenv/versions/3.10.10/envs/env-avocado/lib/python3.10/site-packages/virttest/env_process.py", line 803, in _call_vm_func
2023-07-26 11:44:35,524 avocado.test ERROR|     vm_func(test, vm_params, env, vm_name)
2023-07-26 11:44:35,524 avocado.test ERROR|   File "/home/.pyenv/versions/3.10.10/envs/env-avocado/lib/python3.10/site-packages/virttest/env_process.py", line 237, in preprocess_vm
2023-07-26 11:44:35,575 avocado.test ERROR|     vm.create(params=params)
2023-07-26 11:44:35,575 avocado.test ERROR|   File "/home/.pyenv/versions/3.10.10/envs/env-avocado/lib/python3.10/site-packages/virttest/error_context.py", line 135, in new_fn
2023-07-26 11:44:35,576 avocado.test ERROR|     return fn(*args, **kwargs)
2023-07-26 11:44:35,576 avocado.test ERROR|   File "/home/.pyenv/versions/3.10.10/envs/env-avocado/lib/python3.10/site-packages/virttest/libvirt_vm.py", line 2062, in create
2023-07-26 11:44:35,576 avocado.test ERROR|     process.run(install_command, verbose=True, shell=True)
2023-07-26 11:44:35,627 avocado.test ERROR|   File "/home/.pyenv/versions/3.10.10/envs/env-avocado/lib/python3.10/site-packages/avocado/utils/process.py", line 1009, in run
2023-07-26 11:44:35,627 avocado.test ERROR|     raise CmdError(cmd, sp.result)
2023-07-26 11:44:35,627 avocado.test ERROR| avocado.utils.process.CmdError: Command '/usr/bin/virt-install --connect=qemu:///system --hvm --accelerate --name 'VM_18' --machine virt --memory=28000 --vcpu=22 --import --vnc --os-variant fedora36 --serial pty --memballoon model=virtio --disk path=/home/VMs/avocado/data/avocado-vt/images/f36-aarch64_VM_18.qcow2,bus=virtio,size=20,format=qcow2 --network=bridge=virbr0,model=virtio,mac=52:54:00:1c:6e:43 --mac=52:54:00:1c:6e:43 --noautoconsole' failed.
2023-07-26 11:44:35,628 avocado.test ERROR| stdout: b'\nStarting install...\n'
2023-07-26 11:44:35,628 avocado.test ERROR| stderr: b'ERROR    internal error: qemu unexpectedly closed the monitor: 2023-07-26T04:44:34.589597Z qemu-system-aarch64: Failed to retrieve host CPU features\nDomain installation does not appear to have been successful.\nIf it was, you can restart your domain by running:\n  virsh --connect qemu:///system start VM_18\notherwise, please restart your installation.\n'
2023-07-26 11:44:35,679 avocado.test ERROR| additional_info: None
2023-07-26 11:44:35,679 avocado.test ERROR| 

install_command = self.make_create_command()

I think that we need to try again when we see "otherwise, please restart your installation" message instead of "rasie"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant