On Fri, Mar 1, 2019 at 1:55 PM <shanep@lifestylepanel.com> wrote:
Trying to install oVirt hosted engine on a dedicated host in Data Centre. But it keeps failing at what looks to be the point where it is trying to get an IP if virbr0, which has been created successfully during setup, but does not appear to have an ip address.

Any idea what could be going worng?

System is running Centos 7.6.1810
Interface: em1 (public ip)
Interface: em2 management network.

This is the error in the log

[ INFO  ] TASK [ovirt.hosted_engine_setup : Fetch IPv4 CIDR for virbr0]
[ ERROR ] fatal: [localhost]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'ipv4'\n\nThe error appears to have been in '/usr/share/ansible/roles/ovirt.hosted_engine_setup/tasks/bootstrap_local_vm/01_prepare_routing_rules.yml': line 57, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n    tags: ['skip_ansible_lint']\n  - name: Fetch IPv4 CIDR for {{ virbr_default }}\n    ^ here\nWe could be wrong, but this one looks like it might be an issue with\nmissing quotes.  Always quote template expression brackets when they\nstart a value. For instance:\n\n    with_items:\n      - {{ foo }}\n\nShould be written as:\n\n    with_items:\n      - \"{{ foo }}\"\n"}
[ ERROR ] Failed to execute stage 'Closing up': Failed executing ansible-playbook

It seams that default libvirt network has no IPv4 address.
This could happen due to leftovers on hosts where in the past, voluntary or not, you tries to deploy with IPv6.

https://github.com/oVirt/ovirt-ansible-hosted-engine-setup/commit/f434bb0044834053e0a1b5a035ede90241496c6f
is going to address that but it will come with the next release.

In the meanwhile, can you please try to manually restore /usr/share/libvirt/networks/default.xml over /etc/libvirt/qemu/networks/default.xml before trying again in order to get back an IPv4 subnet on the default libvirt network?
 
_______________________________________________
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-leave@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/
List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/B33HGH75TP4UB2NOL4KQBNRBFMT5TGNW/