Bug 1913674 - IP from e1000 interface on rhel6.10 guest is lost after restart
Summary: IP from e1000 interface on rhel6.10 guest is lost after restart
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Networking
Version: 2.6.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 4.9.0
Assignee: oshoval
QA Contact: Meni Yakove
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-01-07 10:54 UTC by Petr Horáček
Modified: 2023-09-15 00:57 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-09-15 07:53:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Petr Horáček 2021-01-07 10:54:50 UTC
Description of problem:
IP from e1000 interface on rhel6.10 guest is lost after restart.

Version-Release number of selected component (if applicable):


How reproducible:



Steps to Reproduce:

Create a rhel6.10 guest with e1000 interface and sata disk from dv, start it:
# oc get vmi
NAME                 AGE     PHASE     IP             NODENAME
asb-vm-dv-nfs-rhel   2m43s   Running   10.128.3.105   intel-e52650-16-3.englab.nay.redhat.com

# ping 10.128.3.105
PING 10.128.3.105 (10.128.3.105) 56(84) bytes of data.
64 bytes from 10.128.3.105: icmp_seq=1 ttl=64 time=0.602 ms
64 bytes from 10.128.3.105: icmp_seq=2 ttl=64 time=0.043 ms

# ifconfig
eth0      Link encap:Ethernet  HWaddr 02:00:00:12:E7:0F  
          inet addr:10.0.2.2  Bcast:10.0.2.255  Mask:255.255.255.0
          inet6 addr: fe80::ff:fe12:e70f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1450  Metric:1
          RX packets:3 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1042 (1.0 KiB)  TX bytes:1502 (1.4 KiB)

sh-4.4# virsh dumpxml openshift-cnv_asb-vm-dv-nfs-rhel| grep interface -A 8
    <interface type='ethernet'>
      <mac address='02:00:00:12:e7:0f'/>
      <target dev='tap0' managed='no'/>
      <model type='e1000'/>
      <mtu size='1450'/>
      <boot order='2'/>
      <alias name='ua-default'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x0'/>
    </interface>

Restart the VM:
# oc get vmi
NAME                 AGE   PHASE     IP             NODENAME
asb-vm-dv-nfs-rhel   9s    Running   10.128.3.106   intel-e52650-16-3.englab.nay.redhat.com

# ping 10.128.3.106
PING 10.128.3.106 (10.128.3.106) 56(84) bytes of data.
64 bytes from 10.128.3.106: icmp_seq=1 ttl=64 time=0.613 ms
64 bytes from 10.128.3.106: icmp_seq=2 ttl=64 time=0.039 ms

[root@localhost ~]# lspci|grep Ethernet
02:01.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 03)
[root@localhost ~]# ifconfig -a
eth1      Link encap:Ethernet  HWaddr 02:00:00:84:D5:BF  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

sh-4.4# virsh dumpxml openshift-cnv_asb-vm-dv-nfs-rhel|grep interface -A 8
    <interface type='ethernet'>
      <mac address='02:00:00:84:d5:bf'/>
      <target dev='tap0' managed='no'/>
      <model type='e1000'/>
      <mtu size='1450'/>
      <boot order='2'/>
      <alias name='ua-default'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x0'/>
    </interface>




Actual results:
After restart the VM, the mac address changed, ip address changed, and the interface has no ip address in VM.

Expected results:
IP stays the same.

Additional info:
Split from https://bugzilla.redhat.com/show_bug.cgi?id=1907988

Comment 1 Petr Horáček 2021-01-07 10:57:25 UTC
Could you please provide the version of CNV where this happened to you? And could you confirm this is reproducible 100 % of the time? Thanks.

Comment 2 chhu 2021-01-14 05:01:19 UTC
Hi Petr

I tested on CNV2.6.0, it's 100% reproducible.


Regards,
Chenli Hu

Comment 6 oshoval 2021-09-02 10:36:39 UTC
It doesn't happen with RHEL6, e1000 and latest U/S kubevirt version
(used rhel-610.qcow2)
IP + Mac are kept the same after VM reboot.

This what i used to deploy
https://gist.github.com/oshoval/76d9ce725497f2e336177fd793f932e1
(changed e1000e to e1000 in the VM interface type)

Chenli can you please retry and update if it still happens, and on which setup if so ?
Thanks

Comment 7 chhu 2021-09-15 01:35:35 UTC
Tested on CNV4.8.1, I can't reproduce this bug now.

Test steps:
1. Start rhel6.10 VM with e1000 interface and sata disk from dv
# oc create -f asb-pv-dv-nfs-rhel.yaml
# oc create -f asb-vm-dv-nfs-rhel6.yaml
# oc get vmi
NAME                 AGE    PHASE     IP            NODENAME
asb-vm-dv-nfs-rhel   4m7s   Running   10.129.1.57   dell-per***.lab.eng.pek2.redhat.com

# virtctl console asb-vm-dv-nfs-rhel
.....
[root@asb-vm-dv-nfs-rhel ~]# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 02:8C:E8:00:00:09  
          inet addr:10.0.2.2  Bcast:10.0.2.255  Mask:255.255.255.0
          inet6 addr: fe80::8c:e8ff:fe00:9/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1450  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1900 (1.8 KiB)  TX bytes:1812 (1.7 KiB)

2. Restart VM
# virtctl restart asb-vm-dv-nfs-rhel

3. Check the VM network
# oc get vmi
NAME                 AGE     PHASE     IP            NODENAME
asb-vm-dv-nfs-rhel   8m51s   Running   10.129.1.58   dell-per***.lab.eng.pek2.redhat.com
# virtctl console asb-vm-dv-nfs-rhel
.....
# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 02:8C:E8:00:00:09  
          inet addr:10.0.2.2  Bcast:10.0.2.255  Mask:255.255.255.0
          inet6 addr: fe80::8c:e8ff:fe00:9/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1450  Metric:1
          RX packets:7 errors:0 dropped:0 overruns:0 frame:0
          TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1431 (1.3 KiB)  TX bytes:1390 (1.3 KiB)

sh-4.4# virsh dumpxml openshift-cnv_asb-vm-dv-nfs-rhel|grep interface -A 8
    <interface type='ethernet'>
      <mac address='02:8c:e8:00:00:09'/>
      <target dev='tap0' managed='no'/>
      <model type='e1000'/>
      <mtu size='1450'/>
      <alias name='ua-default'/>
      <rom enabled='no'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x0'/>
    </interface>

Comment 10 Petr Horáček 2021-09-15 07:53:05 UTC
Thanks a lot Chenli for confirming this.

Comment 11 Red Hat Bugzilla 2023-09-15 00:57:50 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days


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