oVirt Self-hosted Engine Deployment fails

Hi, I am struggling to get an oVirt cluster setup (for a PoC with some workstations) for the past more than one week and am getting nowhere. Following is my environment: Machine: Dell Workstation with i7, 16G RAM, 256G (I have got couple of more of this machine but could not getr beyond the first one) OS: oVirt minimal (https://resources.ovirt.org/pub/ovirt-4.5/iso/ovirt-node-ng-installer/4.5.4-...) Documentation followed: https://www.ovirt.org/documentation/installing_ovirt_as_a_self-hosted_engine... Cluster name chosen: my.cluster First node host name: node1-ovirt.my.cluster Engine VM name: ovirt-engine.my.cluster The documentation states that there should be resolvable DNS entries for both the oVirt hosts *as well as* for the oVirt engine VM. I am a bit confused on this as the VM will get a DHCP address only after running the 'hosted-engine' script. What ip address should I have for the engine VM (say if I have my engine host name as ovirt-engine.my.cluster)? If I have no entry for the engine in the DNS I get the following error: [ ERROR ] Host name is not valid: ovirt-engine.my.cluster did not resolve into an IP address Please provide the FQDN you would like to use for the engine. Note: This will be the FQDN of the engine VM you are now going to launch, it should not point to the base host or to any other existing machine. Engine VM FQDN: So I simply added an entry for 'ovirt-engine.my.cluster' with a dummy value 192.168.0.222 (this is an ip address on the host subnet; but the engine gets a DHCP address from a different subnet from a virtual network from the host; I dont understand this) which moves away from the above problem and goes all the way (after providing the values for a few other questions) to hang at 'Wait for the host to be up' for a while and eventually fail with an error message: [ ERROR ] fatal: [localhost]: FAILED! => {"changed": false, "msg": "Host is not up, please check logs, perhaps also on the engine machine"} At this point a vm is running in the host. I logged on to the VM and searched the logs and found the following line in the /var/log/ovirt-engine/engine.log: ERROR [org.ovirt.engine.core.common.utils.ansible.AnsibleExecutor] (EE-ManagedThreadFactory-engine-Thread-1) [728b2edd-d13a-48c3-a2c1-42a66a5334c5] Exception: Task Install ovs failed to execute. Please check logs for more details: /var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20230425210047-node1-ovirt.my.cluster-728b2edd-d13a-48c3-a2c1-42a66a5334c5.log and in the file /var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20230425210047-node1-ovirt.my.cluster-728b2edd-d13a-48c3-a2c1-42a66a5334c5.log I found the following error: "msg" : "The conditional check 'cluster_switch == \"ovs\" or (ovn_central is defined and ovn_central | ipaddr)' failed. The error was: The ipaddr filter requires python's netaddr be installed on the ansible controller\n\nThe error appears to be in '/usr/share/ovirt-engine/ansible-runner-service-project/project/roles/ovirt-provider-ovn-driver/tasks/configure.yml': line 3, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n- block:\n - name: Install ovs\n ^ here\n" On the host (node1-ovirt.my.cluster) =========================== the result of 'rpm -qa | grep netaddr' is 'python3-netaddr-0.8.0-5.el9.noarch' the ansible version is: ansible [core 2.14.0] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections executable location = /usr/bin/ansible python version = 3.9.14 (main, Sep 21 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] (/usr/bin/python3.9) jinja version = 3.1.2 libyaml = True # rpm -qi ovirt-engine-appliance Name : ovirt-engine-appliance Version : 4.5 Release : 20221206125848.1.el9 On the vm (ovirt-engine.my.cluster) =========================== the result of 'rpm -qa | grep netaddr' is: python3-netaddr-0.7.19-8.1.2.el8.noarch python39-netaddr-0.7.19-8.1.2.el8.noarch ansible version is: ansible [core 2.14.2] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.11/site-packages/ansible ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections executable location = /usr/bin/ansible python version = 3.11.2 (main, Feb 28 2023, 23:00:48) [GCC 8.5.0 20210514 (Red Hat 8.5.0-18)] (/usr/bin/python3.11) jinja version = 3.1.2 libyaml = True At the moment I ran out of ideas. Am I not following something in the document correctly? Please let me know if you need more information in this regard Thanks

Hi, please try downgrading ansible-core, the new ansible-core uses python 3.9 for which the modules are missing. In my installation downgrading ansible-core solves the problem, until this is resolved upstream. Cheers, Alessandro
Il giorno 26 apr 2023, alle ore 00:18, destfinal--- via Users <users@ovirt.org> ha scritto:
Hi,
I am struggling to get an oVirt cluster setup (for a PoC with some workstations) for the past more than one week and am getting nowhere. Following is my environment:
Machine: Dell Workstation with i7, 16G RAM, 256G (I have got couple of more of this machine but could not getr beyond the first one) OS: oVirt minimal (https://resources.ovirt.org/pub/ovirt-4.5/iso/ovirt-node-ng-installer/4.5.4-...) Documentation followed: https://www.ovirt.org/documentation/installing_ovirt_as_a_self-hosted_engine... Cluster name chosen: my.cluster First node host name: node1-ovirt.my.cluster Engine VM name: ovirt-engine.my.cluster
The documentation states that there should be resolvable DNS entries for both the oVirt hosts *as well as* for the oVirt engine VM. I am a bit confused on this as the VM will get a DHCP address only after running the 'hosted-engine' script. What ip address should I have for the engine VM (say if I have my engine host name as ovirt-engine.my.cluster)? If I have no entry for the engine in the DNS I get the following error:
[ ERROR ] Host name is not valid: ovirt-engine.my.cluster did not resolve into an IP address Please provide the FQDN you would like to use for the engine. Note: This will be the FQDN of the engine VM you are now going to launch, it should not point to the base host or to any other existing machine. Engine VM FQDN:
So I simply added an entry for 'ovirt-engine.my.cluster' with a dummy value 192.168.0.222 (this is an ip address on the host subnet; but the engine gets a DHCP address from a different subnet from a virtual network from the host; I dont understand this) which moves away from the above problem and goes all the way (after providing the values for a few other questions) to hang at
'Wait for the host to be up'
for a while and eventually fail with an error message:
[ ERROR ] fatal: [localhost]: FAILED! => {"changed": false, "msg": "Host is not up, please check logs, perhaps also on the engine machine"}
At this point a vm is running in the host. I logged on to the VM and searched the logs and found the following line in the /var/log/ovirt-engine/engine.log:
ERROR [org.ovirt.engine.core.common.utils.ansible.AnsibleExecutor] (EE-ManagedThreadFactory-engine-Thread-1) [728b2edd-d13a-48c3-a2c1-42a66a5334c5] Exception: Task Install ovs failed to execute. Please check logs for more details: /var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20230425210047-node1-ovirt.my.cluster-728b2edd-d13a-48c3-a2c1-42a66a5334c5.log
and in the file /var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20230425210047-node1-ovirt.my.cluster-728b2edd-d13a-48c3-a2c1-42a66a5334c5.log I found the following error:
"msg" : "The conditional check 'cluster_switch == \"ovs\" or (ovn_central is defined and ovn_central | ipaddr)' failed. The error was: The ipaddr filter requires python's netaddr be installed on the ansible controller\n\nThe error appears to be in '/usr/share/ovirt-engine/ansible-runner-service-project/project/roles/ovirt-provider-ovn-driver/tasks/configure.yml': line 3, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n- block:\n - name: Install ovs\n ^ here\n"
On the host (node1-ovirt.my.cluster) =========================== the result of 'rpm -qa | grep netaddr' is 'python3-netaddr-0.8.0-5.el9.noarch'
the ansible version is:
ansible [core 2.14.0] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections executable location = /usr/bin/ansible python version = 3.9.14 (main, Sep 21 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] (/usr/bin/python3.9) jinja version = 3.1.2 libyaml = True
# rpm -qi ovirt-engine-appliance Name : ovirt-engine-appliance Version : 4.5 Release : 20221206125848.1.el9
On the vm (ovirt-engine.my.cluster) =========================== the result of 'rpm -qa | grep netaddr' is: python3-netaddr-0.7.19-8.1.2.el8.noarch python39-netaddr-0.7.19-8.1.2.el8.noarch
ansible version is:
ansible [core 2.14.2] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.11/site-packages/ansible ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections executable location = /usr/bin/ansible python version = 3.11.2 (main, Feb 28 2023, 23:00:48) [GCC 8.5.0 20210514 (Red Hat 8.5.0-18)] (/usr/bin/python3.11) jinja version = 3.1.2 libyaml = True
At the moment I ran out of ideas. Am I not following something in the document correctly?
Please let me know if you need more information in this regard
Thanks _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org 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/users@ovirt.org/message/QO2Z6OJTERAJCC...

Sorry, correction, the new ansible core uses python 3.11, which is the problematic one, 3.9 is ok with the old ansible-core. Cheers, Alessandro
Il giorno 26 apr 2023, alle ore 00:26, Alessandro De Salvo <alessandro.desalvo@roma1.infn.it> ha scritto:
Hi, please try downgrading ansible-core, the new ansible-core uses python 3.9 for which the modules are missing. In my installation downgrading ansible-core solves the problem, until this is resolved upstream. Cheers,
Alessandro
Il giorno 26 apr 2023, alle ore 00:18, destfinal--- via Users <users@ovirt.org> ha scritto:
Hi,
I am struggling to get an oVirt cluster setup (for a PoC with some workstations) for the past more than one week and am getting nowhere. Following is my environment:
Machine: Dell Workstation with i7, 16G RAM, 256G (I have got couple of more of this machine but could not getr beyond the first one) OS: oVirt minimal (https://resources.ovirt.org/pub/ovirt-4.5/iso/ovirt-node-ng-installer/4.5.4-...) Documentation followed: https://www.ovirt.org/documentation/installing_ovirt_as_a_self-hosted_engine... Cluster name chosen: my.cluster First node host name: node1-ovirt.my.cluster Engine VM name: ovirt-engine.my.cluster
The documentation states that there should be resolvable DNS entries for both the oVirt hosts *as well as* for the oVirt engine VM. I am a bit confused on this as the VM will get a DHCP address only after running the 'hosted-engine' script. What ip address should I have for the engine VM (say if I have my engine host name as ovirt-engine.my.cluster)? If I have no entry for the engine in the DNS I get the following error:
[ ERROR ] Host name is not valid: ovirt-engine.my.cluster did not resolve into an IP address Please provide the FQDN you would like to use for the engine. Note: This will be the FQDN of the engine VM you are now going to launch, it should not point to the base host or to any other existing machine. Engine VM FQDN:
So I simply added an entry for 'ovirt-engine.my.cluster' with a dummy value 192.168.0.222 (this is an ip address on the host subnet; but the engine gets a DHCP address from a different subnet from a virtual network from the host; I dont understand this) which moves away from the above problem and goes all the way (after providing the values for a few other questions) to hang at
'Wait for the host to be up'
for a while and eventually fail with an error message:
[ ERROR ] fatal: [localhost]: FAILED! => {"changed": false, "msg": "Host is not up, please check logs, perhaps also on the engine machine"}
At this point a vm is running in the host. I logged on to the VM and searched the logs and found the following line in the /var/log/ovirt-engine/engine.log:
ERROR [org.ovirt.engine.core.common.utils.ansible.AnsibleExecutor] (EE-ManagedThreadFactory-engine-Thread-1) [728b2edd-d13a-48c3-a2c1-42a66a5334c5] Exception: Task Install ovs failed to execute. Please check logs for more details: /var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20230425210047-node1-ovirt.my.cluster-728b2edd-d13a-48c3-a2c1-42a66a5334c5.log
and in the file /var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20230425210047-node1-ovirt.my.cluster-728b2edd-d13a-48c3-a2c1-42a66a5334c5.log I found the following error:
"msg" : "The conditional check 'cluster_switch == \"ovs\" or (ovn_central is defined and ovn_central | ipaddr)' failed. The error was: The ipaddr filter requires python's netaddr be installed on the ansible controller\n\nThe error appears to be in '/usr/share/ovirt-engine/ansible-runner-service-project/project/roles/ovirt-provider-ovn-driver/tasks/configure.yml': line 3, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n- block:\n - name: Install ovs\n ^ here\n"
On the host (node1-ovirt.my.cluster) =========================== the result of 'rpm -qa | grep netaddr' is 'python3-netaddr-0.8.0-5.el9.noarch'
the ansible version is:
ansible [core 2.14.0] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections executable location = /usr/bin/ansible python version = 3.9.14 (main, Sep 21 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] (/usr/bin/python3.9) jinja version = 3.1.2 libyaml = True
# rpm -qi ovirt-engine-appliance Name : ovirt-engine-appliance Version : 4.5 Release : 20221206125848.1.el9
On the vm (ovirt-engine.my.cluster) =========================== the result of 'rpm -qa | grep netaddr' is: python3-netaddr-0.7.19-8.1.2.el8.noarch python39-netaddr-0.7.19-8.1.2.el8.noarch
ansible version is:
ansible [core 2.14.2] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.11/site-packages/ansible ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections executable location = /usr/bin/ansible python version = 3.11.2 (main, Feb 28 2023, 23:00:48) [GCC 8.5.0 20210514 (Red Hat 8.5.0-18)] (/usr/bin/python3.11) jinja version = 3.1.2 libyaml = True
At the moment I ran out of ideas. Am I not following something in the document correctly?
Please let me know if you need more information in this regard
Thanks _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org 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/users@ovirt.org/message/QO2Z6OJTERAJCC...

Thanks very much @Alessandro. Your suggestion helped me progress a bit. For the benefit of any other who may have the same issue, this is what I did: The ansible upgrade takes place during the engine update within the script - /usr/share/ansible/collections/ansible_collections/ovirt/ovirt/roles/engine_setup/tasks/engine_setup.yml, in the task "Update all packages". For now, I have simply excluded ansible-core to be upgraded; the task would look like the following: - name: Update all packages ansible.builtin.yum: name: '*' state: latest conf_file: /tmp/yum.conf exclude: - ansible-core when: not ovirt_engine_setup_offline | bool tags: - "skip_ansible_lint" # ANSIBLE0010 I welcome any suggestion to improve this. However, the setup process failed further down the line (as I have included below in the main thread).

Regarding your first concern: When the hosted engine is in the setup process, the VM is given an IP from a random 192.168.xxx.xxx IP address. This is done in order to provide connectivity between the host and the engine temporarily. The IP which is retrieved after the setup script is going to be what you want to point your DNS entry to, as the temporary IP will get removed and is unresolvable from external hosts. How that gets done is something you'll need to figure out; I suggest creating a DHCP reservation for the MAC address given to the engine VM when it's created. Regarding your second concern: The oVirt-Ansible-Collection seems to be affected by the new Ansible update; a few workarounds are posted in a GitHub issue thread (https://github.com/oVirt/ovirt-ansible-collection/issues/695) which may help.

Thanks @Xavier. "When the hosted engine is in the setup process, the VM is given an IP from a random 192.168.xxx.xxx IP address. This is done in order to provide connectivity between the host and the engine temporarily." - I could not get this (please forgive my ignorance). During the setup process, I choose the VM to have the IP from the DHCP. Why is (should be) there a requirement for a temporary ip for the VM as it will get the IP straight when it is created and completed the boot process? Anyway, I dont bother as long as it does not affect the oVirt cluster in the long run. However, I have another issue with the installation (as specified in the main thread).

Thanks very much @Alessandro and @Xavier. I have now progressed further but hit with the following error: [ ERROR ] Failed to execute stage 'Closing up': 'ansible-playbook_rc' The log file contains the following: 2023-04-26 07:22:38,319+0000 DEBUG otopi.plugins.gr_he_ansiblesetup.core.misc misc._closeup:475 {'otopi_host_net': {'ansible_facts': {'otopi_host_net': ['eno1']}, '_ansible_no_log': None, 'changed': False}, 'otopi_localvm_dir': {'changed': True, 'path': '/var/tmp/localvmhho1t6bu', 'uid': 0, 'gid': 0, 'owner': 'root', 'group': 'root', 'mode': '0700', 'state': 'directory', 'secontext': 'unconfined_u:object_r:user_tmp_t:s0', 'size': 6, 'invocation': {'module_args': {'state': 'directory', 'path': '/var/tmp', 'prefix': 'localvm', 'suffix': ''}}, '_ansible_no_log': None}, 'otopi_appliance_disk_size': {'ansible_facts': {'virtual_size': '53689188352'}, '_ansible_no_log': None, 'changed': False}, 'otopi_he_admin_username': {'ansible_facts': {'he_admin_username': 'admin@internal'}, '_ansible_no_log': None, 'changed': False, '_ansible_delegated_vars': {'ansible_host': '192.168.222.125', 'ansible_port': None, 'ansible_user': 'root', 'ansible_connection': 'smart'}}} 2023-04-26 07:22:38,319+0000 DEBUG otopi.context context._executeMethod:143 method exception Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/otopi/context.py", line 132, in _executeMethod method['method']() File "/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/gr-he-ansiblesetup/core/misc.py", line 508, in _closeup if r['ansible-playbook_rc'] != 0: KeyError: 'ansible-playbook_rc' 2023-04-26 07:22:38,319+0000 ERROR otopi.context context._executeMethod:151 Failed to execute stage 'Closing up': 'ansible-playbook_rc' I could not understand the above error and could not trace back into any script (still trying). If you guys know what this is and if there is any fix/workaround, please help. Thanks

Update: I simply reran the setup script and this time the above error did not show up (I ran it only once). Looks like an one-off issue. Am preparing the storage now and continuing the setup process. Thanks for your help guys. Will keep this thread open and seek for more help, if stuck in the setup process. Thanks again.

Hi, Please see: https://lists.ovirt.org/archives/list/users@ovirt.org/thread/DMCC5QCHL6ECXN6... Sandro/Michal - perhaps we want to add something about this to the front/download pages on the website. Good luck and best regards, On Wed, Apr 26, 2023 at 1:17 AM destfinal--- via Users <users@ovirt.org> wrote:
Hi,
I am struggling to get an oVirt cluster setup (for a PoC with some workstations) for the past more than one week and am getting nowhere. Following is my environment:
Machine: Dell Workstation with i7, 16G RAM, 256G (I have got couple of more of this machine but could not getr beyond the first one) OS: oVirt minimal (https://resources.ovirt.org/pub/ovirt-4.5/iso/ovirt-node-ng-installer/4.5.4-...) Documentation followed: https://www.ovirt.org/documentation/installing_ovirt_as_a_self-hosted_engine... Cluster name chosen: my.cluster First node host name: node1-ovirt.my.cluster Engine VM name: ovirt-engine.my.cluster
The documentation states that there should be resolvable DNS entries for both the oVirt hosts *as well as* for the oVirt engine VM. I am a bit confused on this as the VM will get a DHCP address only after running the 'hosted-engine' script. What ip address should I have for the engine VM (say if I have my engine host name as ovirt-engine.my.cluster)? If I have no entry for the engine in the DNS I get the following error:
[ ERROR ] Host name is not valid: ovirt-engine.my.cluster did not resolve into an IP address Please provide the FQDN you would like to use for the engine. Note: This will be the FQDN of the engine VM you are now going to launch, it should not point to the base host or to any other existing machine. Engine VM FQDN:
So I simply added an entry for 'ovirt-engine.my.cluster' with a dummy value 192.168.0.222 (this is an ip address on the host subnet; but the engine gets a DHCP address from a different subnet from a virtual network from the host; I dont understand this) which moves away from the above problem and goes all the way (after providing the values for a few other questions) to hang at
'Wait for the host to be up'
for a while and eventually fail with an error message:
[ ERROR ] fatal: [localhost]: FAILED! => {"changed": false, "msg": "Host is not up, please check logs, perhaps also on the engine machine"}
At this point a vm is running in the host. I logged on to the VM and searched the logs and found the following line in the /var/log/ovirt-engine/engine.log:
ERROR [org.ovirt.engine.core.common.utils.ansible.AnsibleExecutor] (EE-ManagedThreadFactory-engine-Thread-1) [728b2edd-d13a-48c3-a2c1-42a66a5334c5] Exception: Task Install ovs failed to execute. Please check logs for more details: /var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20230425210047-node1-ovirt.my.cluster-728b2edd-d13a-48c3-a2c1-42a66a5334c5.log
and in the file /var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20230425210047-node1-ovirt.my.cluster-728b2edd-d13a-48c3-a2c1-42a66a5334c5.log I found the following error:
"msg" : "The conditional check 'cluster_switch == \"ovs\" or (ovn_central is defined and ovn_central | ipaddr)' failed. The error was: The ipaddr filter requires python's netaddr be installed on the ansible controller\n\nThe error appears to be in '/usr/share/ovirt-engine/ansible-runner-service-project/project/roles/ovirt-provider-ovn-driver/tasks/configure.yml': line 3, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n- block:\n - name: Install ovs\n ^ here\n"
On the host (node1-ovirt.my.cluster) =========================== the result of 'rpm -qa | grep netaddr' is 'python3-netaddr-0.8.0-5.el9.noarch'
the ansible version is:
ansible [core 2.14.0] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections executable location = /usr/bin/ansible python version = 3.9.14 (main, Sep 21 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] (/usr/bin/python3.9) jinja version = 3.1.2 libyaml = True
# rpm -qi ovirt-engine-appliance Name : ovirt-engine-appliance Version : 4.5 Release : 20221206125848.1.el9
On the vm (ovirt-engine.my.cluster) =========================== the result of 'rpm -qa | grep netaddr' is: python3-netaddr-0.7.19-8.1.2.el8.noarch python39-netaddr-0.7.19-8.1.2.el8.noarch
ansible version is:
ansible [core 2.14.2] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.11/site-packages/ansible ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections executable location = /usr/bin/ansible python version = 3.11.2 (main, Feb 28 2023, 23:00:48) [GCC 8.5.0 20210514 (Red Hat 8.5.0-18)] (/usr/bin/python3.11) jinja version = 3.1.2 libyaml = True
At the moment I ran out of ideas. Am I not following something in the document correctly?
Please let me know if you need more information in this regard
Thanks _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org 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/users@ovirt.org/message/QO2Z6OJTERAJCC...
-- Didi

Il giorno gio 27 apr 2023 alle ore 08:50 Yedidyah Bar David <didi@redhat.com> ha scritto:
Hi,
Please see:
https://lists.ovirt.org/archives/list/users@ovirt.org/thread/DMCC5QCHL6ECXN6...
Sandro/Michal - perhaps we want to add something about this to the front/download pages on the website.
It should be already aligned on all download pages and installation and upgrade guides
Good luck and best regards,
On Wed, Apr 26, 2023 at 1:17 AM destfinal--- via Users <users@ovirt.org> wrote:
Hi,
I am struggling to get an oVirt cluster setup (for a PoC with some
workstations) for the past more than one week and am getting nowhere. Following is my environment:
Machine: Dell Workstation with i7, 16G RAM, 256G (I have got couple of
OS: oVirt minimal ( https://resources.ovirt.org/pub/ovirt-4.5/iso/ovirt-node-ng-installer/4.5.4-... ) Documentation followed: https://www.ovirt.org/documentation/installing_ovirt_as_a_self-hosted_engine... Cluster name chosen: my.cluster First node host name: node1-ovirt.my.cluster Engine VM name: ovirt-engine.my.cluster
The documentation states that there should be resolvable DNS entries for both the oVirt hosts *as well as* for the oVirt engine VM. I am a bit confused on this as the VM will get a DHCP address only after running the 'hosted-engine' script. What ip address should I have for the engine VM (say if I have my engine host name as ovirt-engine.my.cluster)? If I have no entry for the engine in the DNS I get the following error:
[ ERROR ] Host name is not valid: ovirt-engine.my.cluster did not resolve into an IP address Please provide the FQDN you would like to use for the engine. Note: This will be the FQDN of the engine VM you are now going to launch, it should not point to the base host or to any other existing machine. Engine VM FQDN:
So I simply added an entry for 'ovirt-engine.my.cluster' with a dummy value 192.168.0.222 (this is an ip address on the host subnet; but the engine gets a DHCP address from a different subnet from a virtual network from the host; I dont understand this) which moves away from the above
more of this machine but could not getr beyond the first one) problem and goes all the way (after providing the values for a few other questions) to hang at
'Wait for the host to be up'
for a while and eventually fail with an error message:
[ ERROR ] fatal: [localhost]: FAILED! => {"changed": false, "msg": "Host
is not up, please check logs, perhaps also on the engine machine"}
At this point a vm is running in the host. I logged on to the VM and
searched the logs and found the following line in the /var/log/ovirt-engine/engine.log:
ERROR [org.ovirt.engine.core.common.utils.ansible.AnsibleExecutor]
(EE-ManagedThreadFactory-engine-Thread-1) [728b2edd-d13a-48c3-a2c1-42a66a5334c5] Exception: Task Install ovs failed to execute. Please check logs for more details: /var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20230425210047-node1-ovirt.my.cluster-728b2edd-d13a-48c3-a2c1-42a66a5334c5.log
and in the file
/var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20230425210047-node1-ovirt.my.cluster-728b2edd-d13a-48c3-a2c1-42a66a5334c5.log I found the following error:
"msg" : "The conditional check 'cluster_switch == \"ovs\" or
(ovn_central is defined and ovn_central | ipaddr)' failed. The error was: The ipaddr filter requires python's netaddr be installed on the ansible controller\n\nThe error appears to be in '/usr/share/ovirt-engine/ansible-runner-service-project/project/roles/ovirt-provider-ovn-driver/tasks/configure.yml': line 3, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n- block:\n - name: Install ovs\n ^ here\n"
On the host (node1-ovirt.my.cluster) =========================== the result of 'rpm -qa | grep netaddr' is
'python3-netaddr-0.8.0-5.el9.noarch'
the ansible version is:
ansible [core 2.14.0] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules',
'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections executable location = /usr/bin/ansible python version = 3.9.14 (main, Sep 21 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] (/usr/bin/python3.9) jinja version = 3.1.2 libyaml = True
# rpm -qi ovirt-engine-appliance Name : ovirt-engine-appliance Version : 4.5 Release : 20221206125848.1.el9
On the vm (ovirt-engine.my.cluster) =========================== the result of 'rpm -qa | grep netaddr' is: python3-netaddr-0.7.19-8.1.2.el8.noarch python39-netaddr-0.7.19-8.1.2.el8.noarch
ansible version is:
ansible [core 2.14.2] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.11/site-packages/ansible ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections executable location = /usr/bin/ansible python version = 3.11.2 (main, Feb 28 2023, 23:00:48) [GCC 8.5.0 20210514 (Red Hat 8.5.0-18)] (/usr/bin/python3.11) jinja version = 3.1.2 libyaml = True
At the moment I ran out of ideas. Am I not following something in the document correctly?
Please let me know if you need more information in this regard
Thanks _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org 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/users@ovirt.org/message/QO2Z6OJTERAJCC...
-- Didi
-- Sandro Bonazzola MANAGER, SOFTWARE ENGINEERING - Red Hat In-Vehicle Operating System Red Hat EMEA <https://www.redhat.com/> sbonazzo@redhat.com <https://www.redhat.com/> *Red Hat respects your work life balance. Therefore there is no need to answer this email out of your office hours.*

@Yedidyah, I tried to deploy from the nightly build; however, it failed with a 'NoNetwrok' error message whilst 'Waiting for the vm engine to be up'. I just gave up on it and moved on by going back to the existing release and stopping the ansible from upgrading in the VM (just running out of time). Will pick it up on a later date. Thanks for you help. Thanks

I started this thread to resolve the difficulties during installation. I kind of settled with some oVirt cluster and facing other (operational) difficulties which I raise as separate thread(s). If anybody goes through this thread and feel that I may have missed to record any information in this regard, please feel free to raise. Thanks very much for the swift turn around and helping me progress to this level guys. Thanks
participants (5)
-
Alessandro De Salvo
-
destfinal@googlemail.com
-
Sandro Bonazzola
-
Xavier Lauzon
-
Yedidyah Bar David