-
Notifications
You must be signed in to change notification settings - Fork 290
Description
Since we switched to IrSO for the E2E tests, we have also had dnsmasq run together with Ironic. Previously we only used the dnsmasq instance that libvirt provides.
We tried removing the libvirt dhcp config also when switching to IrSO but the tests kept failing when we did that, so we left it. I think I have now figured out what was happening.
The dnsmasq instance that comes with Ironic does not work in our E2E tests. We are still using only the libvirt dnsmasq. This is what the logs show in the container next to Ironic:
dnsmasq: started, version 2.85 DNS disabled
dnsmasq: compile time options: IPv6 GNU-getopt DBus no-UBus no-i18n IDN2 DHCP DHCPv6 no-Lua TFTP no-conntrack ipset auth cryptohash DNSSEC loop-detect inotify dumpfile
dnsmasq-dhcp: DHCP, IP range 192.168.222.100 -- 192.168.222.200, lease time 2m
dnsmasq-dhcp: DHCP, sockets bound exclusively to interface eth0
dnsmasq-tftp: TFTP root is /shared/tftpboot
dnsmasq-dhcp: no address range available for DHCP request via eth0
dnsmasq-dhcp: no address range available for DHCP request via eth0
...
We have not configured any address range. Keepalived just adds a /32 address on the interface, so dnsmasq has no range available.
I think we should fix this so that dnsmasq actually works and remove the dhcp config from the libvirt network. We could of course disable it instead and just be happy with what libvirt provides but it would definitely be nicer to do it "properly" and test also this part of IrSO/Ironic.