During Deploy of hosted-engine 4.5.7 under Almalinux 10.1 x86_64_v2:
hosted-engine --deploy --4 --restore-from-file=260204-backup.tar.gz
--config-append=260204-answers-deploy.conf
above other issue there is this "freeze" under Wait for the local VM.
root@ovirt-node4:/var/log/ovirt-hosted-engine-setup# rpm -qa | grep
ovirt-hosted-engine-setup
ovirt-hosted-engine-setup-2.7.3-0.0.master.20251020093656.gitb8855de.el10.noarch
I patched a module:
diff -c
/usr/share/ansible/collections/ansible_collections/ovirt/ovirt/roles/hosted_engine_setup/tasks/bootstrap_local_vm/03_engine_initial_tasks.yml{.orig,}
***
/usr/share/ansible/collections/ansible_collections/ovirt/ovirt/roles/hosted_engine_setup/tasks/bootstrap_local_vm/03_engine_initial_tasks.yml.orig
2026-01-06 01:00:00.000000000 +0100
---
/usr/share/ansible/collections/ansible_collections/ovirt/ovirt/roles/hosted_engine_setup/tasks/bootstrap_local_vm/03_engine_initial_tasks.yml
2026-02-04 16:43:23.966315249 +0100
***************
*** 3,10 ****
block:
- name: Wait for the local VM
ansible.builtin.wait_for_connection:
! delay: 5
! timeout: 3600
- name: Add an entry for this host on /etc/hosts on the local VM
ansible.builtin.lineinfile:
dest: /etc/hosts
--- 3,20 ----
block:
- name: Wait for the local VM
ansible.builtin.wait_for_connection:
! delay: 30
! timeout: 600
! - name: DEBUG - Test manual SSH connection
! ansible.builtin.shell: |
! ssh -v root@{{
hostvars[he_ansible_host_name]['local_vm_ip']['stdout_lines'][0] }} 'echo
Connected'
! delegate_to: localhost
! ignore_errors: yes
!
! - name: DEBUG - Print connection variables
! ansible.builtin.debug:
! msg: "Target host: {{
hostvars[he_ansible_host_name]['local_vm_ip']['stdout_lines'][0] }} | FQDN: {{
he_fqdn }} Ansible connection: {{ ansible_connection | default('ssh') }}"
!
- name: Add an entry for this host on /etc/hosts on the local VM
ansible.builtin.lineinfile:
dest: /etc/hosts
And after timeout there is the answer (in my case) - while with 5 sec and 3600
seconds the module freezed -:
[ INFO ] TASK [ovirt.ovirt.hosted_engine_setup : Register the engine FQDN as a
host]
[ INFO ] changed: [localhost]
[ INFO ] TASK [ovirt.ovirt.hosted_engine_setup : Wait for the local VM]
[ ERROR ] fatal: [localhost -> 192.168.222.5]: FAILED! => {"changed": false,
"elapsed": 630, "msg": "timed out waiting for ping module test: to use the
'ssh' connection type with passwords or pkcs11_provider, you must install the
sshpass program"}
[ INFO ] TASK [ovirt.ovirt.hosted_engine_setup : Sync on engine machine]
[ ERROR ] fatal: [localhost]: FAILED! => {"msg": "to use the 'ssh' connection
type with passwords or pkcs11_provider, you must install the sshpass program"}
[ ERROR ] Failed to execute stage 'Closing up': Failed executing
ansible-playbook
[ INFO ] Stage: Clean up
[ INFO ] Cleaning temporary resources
There was the lack of "sshpass" which you enable with:
dnf install sshpass
**** please add ovirt-setup-engine dependacy *****
_______________________________________________
Users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct:
https://www.ovirt.org/community/about/community-guidelines/
List Archives:
https://lists.ovirt.org/archives/list/[email protected]/message/BFTZSZ626UUSMDKFCDHSVTXLJHHYGCWT/