Description of problem: [rhel8.1] vdsm override ovirtmgmt with static IPv4 instead of the origin dhcpv4 NIC during host deploy in RHV When adding a rhel8.1 host with 4.4 vdsm to 4.4 RHV, vdsm set static IPV4 instead dhcpv4 that was on the active NIC. before deploy to RHV: cat /etc/sysconfig/network-scripts/ifcfg-ens1f0 # Generated by dracut initrd NAME="ens1f0" HWADDR="xx:xx:xx:xx:00:00" DEVICE="ens1f0" ONBOOT=yes NETBOOT=yes UUID="6491338c-e68e-4fcb-9859-28e3d0f0b44d" IPV6INIT=yes BOOTPROTO=dhcp TYPE=Ethernet after add host to RHV cat /etc/sysconfig/network-scripts/ifcfg-ens1f0 # Generated by VDSM version 4.40.0.720.git619700644 DEVICE=ens1f0 BRIDGE=ovirtmgmt ONBOOT=yes MTU=1500 DEFROUTE=no NM_CONTROLLED=no IPV6INIT=no [root@cinteg25 yum.repos.d]# cat /etc/sysconfig/network-scripts/ifcfg-ovirtmgmt # Generated by VDSM version 4.40.0.720.git619700644 DEVICE=ovirtmgmt TYPE=Bridge DELAY=0 STP=off ONBOOT=yes IPADDR=10.y.x.z NETMASK=255.255.252.0 GATEWAY=10.y.x.z BOOTPROTO=none MTU=1500 DEFROUTE=yes NM_CONTROLLED=no IPV6INIT=yes IPV6_AUTOCONF=yes DNS1=10.x.x.x Version-Release number of selected component (if applicable): RHV 4.4.0-0.1.master.el7 vdsm-4.40.0-720.git619700644.el8ev.x86_64 Red Hat Enterprise Linux release 8.1 Beta (Ootpa) How reproducible: 100% Steps to Reproduce: 1. Add rhel8.1 host with 4.4 vdsm to a RHV 4.4 d/s, the NIC set with dhcp Actual results: ovirtmgmt has static IPV4 Expected results: ovirtmgmt has dhcpv4 IP
The underlying problem is that getCapabilities does report dhcpv4: false, even if nmstate reports dhcp: true
(In reply to Dominik Holler from comment #2) > The underlying problem is that getCapabilities does report dhcpv4: false, > even if nmstate reports dhcp: true sorry, this is irrelevant, because there is no nmstate
The interesting thing here is that vdsm-client Host getCapabilities reports static IPv4 before the deploy also, but ifcfg shows dhcpv4 "nics": { "eno1": { "addr": "10.y.z.x", "dhcpv4": false, "dhcpv6": false, "gateway": "10.y.z.x", "hwaddr": "d4:00:00:xx:xx:xx", "ipv4addrs": [ "10.y.z.x/24" ], "ipv4defaultroute": true, cat /etc/sysconfig/network-scripts/ifcfg-eno1 # Generated by dracut initrd NAME="eno1" DEVICE="eno1" ONBOOT=yes NETBOOT=yes UUID="ff01e959-bbb3-4ef2-9bbe-28a09b3c633a" IPV6INIT=yes BOOTPROTO=dhcp TYPE=Ethernet
Ales, I think this bug is about initscripts, not using nmstate. Can you please verify if your change addresses this bug?
I have actually tested this change without nmstate installed on the host. It's because RHEL8 uses NetworkManager as default for managing networks so it's in charge before host deploy.
(In reply to Ales Musil from comment #6) > I have actually tested this change without nmstate installed on the host. > It's because RHEL8 uses NetworkManager as default for managing networks so > it's in charge before host deploy. Okay, thanks.
Verified on - vdsm-4.40.0-164.git38a19bb.el8ev.x86_64 with rhvm-4.4.0-0.9.master.el7.noarch
This bugzilla is included in oVirt 4.4.0 release, published on May 20th 2020. Since the problem described in this bug report should be resolved in oVirt 4.4.0 release, it has been closed with a resolution of CURRENT RELEASE. If the solution does not work for you, please open a new bug report.