Bug 1738423 - [rhel8.1] vdsm override ovirtmgmt with static IPv4 instead of the origin dhcpv4 NIC during host deploy in RHV
Summary: [rhel8.1] vdsm override ovirtmgmt with static IPv4 instead of the origin dhcp...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: vdsm
Classification: oVirt
Component: General
Version: 4.40.0
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ovirt-4.4.0
: ---
Assignee: Ales Musil
QA Contact: Michael Burman
URL:
Whiteboard:
Depends On: 1765057
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-08-07 06:58 UTC by Michael Burman
Modified: 2020-05-20 20:01 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-05-20 20:01:20 UTC
oVirt Team: Network
Embargoed:
sbonazzo: ovirt-4.4?


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 102572 0 'None' MERGED net: Add dhclient as default dhcp for NM controlled nics 2020-03-17 13:53:20 UTC

Description Michael Burman 2019-08-07 06:58:37 UTC
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

Comment 2 Dominik Holler 2019-08-07 07:57:40 UTC
The underlying problem is that getCapabilities does report dhcpv4: false, even if nmstate reports dhcp: true

Comment 3 Dominik Holler 2019-08-07 07:58:16 UTC
(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

Comment 4 Michael Burman 2019-08-07 08:12:01 UTC
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

Comment 5 Dominik Holler 2019-08-12 13:32:57 UTC
Ales, I think this bug is about initscripts, not using nmstate. Can you please verify if your change addresses this bug?

Comment 6 Ales Musil 2019-08-13 05:55:49 UTC
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.

Comment 7 Dominik Holler 2019-08-13 06:19:13 UTC
(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.

Comment 8 Michael Burman 2019-12-15 13:58:42 UTC
Verified on - vdsm-4.40.0-164.git38a19bb.el8ev.x86_64 with rhvm-4.4.0-0.9.master.el7.noarch

Comment 9 Sandro Bonazzola 2020-05-20 20:01:20 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.