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(a)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(a)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...)
> Documentation followed:
https://www.ovirt.org/documentation/installing_ovirt_as_a_self-hosted_eng...
> 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(a)ovirt.org
> To unsubscribe send an email to users-leave(a)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/QO2Z6OJTERA...