Bug 1868359 - SR-IOV : Changes in VM's IP on SR-IOV NIC are not reflected in VMI status
Summary: SR-IOV : Changes in VM's IP on SR-IOV NIC are not reflected in VMI status
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Networking
Version: 2.4.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.8.0
Assignee: oshoval
QA Contact: Geetika Kapoor
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-08-12 11:42 UTC by Geetika Kapoor
Modified: 2021-07-27 14:21 UTC (History)
5 users (show)

Fixed In Version: virt-launcher-container-v4.8.0-36
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-07-27 14:20:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2021:2920 0 None None None 2021-07-27 14:21:52 UTC

Description Geetika Kapoor 2020-08-12 11:42:43 UTC
Description of problem:

if we swap/change ip of SR-IOV NIC it doesn't get reflected in VMI status.

interfaces:
  - interfaceName: eth0
    ipAddress: 10.128.3.24
    ipAddresses:
    - 10.128.3.24
    mac: 02:57:92:00:00:87
    name: default
  - interfaceName: eth1
    ipAddress: 10.200.0.2/24
    ipAddresses:
    - 10.200.0.2/24
    - fe80::57:92ff:fe00:89/64
    mac: 02:57:92:00:00:89
  - interfaceName: eth2
    ipAddress: 10.200.1.2/24
    ipAddresses:
    - 10.200.1.2/24
    - fe80::57:92ff:fe00:88/64
    mac: 02:57:92:00:00:88
=================================

Inside VM:

3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    altname enp2s1
    altname ens1
    inet 10.200.1.2/24 scope global eth1
       valid_lft forever preferred_lft forever
4: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    altname enp2s2
    altname ens2
    inet 10.200.0.2/24 scope global eth2
       valid_lft forever preferred_lft forever


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


# oc get csv -n openshift-cnv | awk ' { print $4 } ' | tail -n1
2.4.1

How reproducible:

always 

Steps to Reproduce:
1. Run the vm and try to change the ip in it.
2.
3.

Actual results:

VMI status is not getting updated for SR-IOV nic's.


Expected results:

VMI status should get updated with correct ip information 

Additional info:

Comment 3 Petr Horáček 2021-01-06 11:14:36 UTC
Re-targeting to 2.7 since this is not a blocker.

Comment 4 oshoval 2021-04-04 08:33:35 UTC
https://github.com/kubevirt/kubevirt/pull/5381
Fixes it, But the report would be still be flaky due to https://bugzilla.redhat.com/show_bug.cgi?id=1907707
Which will be handled on following PRs.

Comment 5 Geetika Kapoor 2021-04-28 13:58:35 UTC
Test Case 1: Change ipv4 address for sriov1 nic and make sure vmi status reflect the right status.
==================================================================================================

Before test :

$ oc get vmi sriov-vm1-1619605206-7889736 -n sriov-test-sriov -o yaml

  guestOSInfo:
.....
  - interfaceName: sriov1
    ipAddress: 10.200.1.1
    ipAddresses:
    - 10.200.1.4
    - 2620:52:0:2e29:0:b5ff:feb5:b501
    - fe80::b5ff:feb5:b501
    mac: 02:00:b5:b5:b5:01
    name: sriov-test-network


Login into the vm : virtctl console sriov-vm1-1619605206-7889736 -n sriov-test-sriov

Change the ip of the nic: sudo ifconfig sriov1 10.200.1.4 

Check vmi again after sometime:

  guestOSInfo:
...
  - interfaceName: sriov1
    ipAddress: 10.200.1.4
    ipAddresses:
    - 10.200.1.4
    - 2620:52:0:2e29:0:b5ff:feb5:b501
    - fe80::b5ff:feb5:b501
    mac: 02:00:b5:b5:b5:01
    name: sriov-test-network


Test Case 2: Apply same changes for ipv6 
========================================

Before test :

  - interfaceName: sriov1
    ipAddress: 10.200.1.4
    ipAddresses:
    - 10.200.1.4
    - 2620:52:0:2e29:0:b5ff:feb5:b501
    - fe80::b5ff:feb5:b501
    mac: 02:00:b5:b5:b5:01

Apply changes:  sudo ifconfig sriov1 inet6 add 2001:0db8:0:f101::1/64

After changes : 

  - interfaceName: sriov1
    ipAddress: 10.200.1.4
    ipAddresses:
    - 10.200.1.4
    - 2001:db8:0:f101::1
    - 2620:52:0:2e29:0:b5ff:feb5:b501
    - fe80::b5ff:feb5:b501

Comment 8 errata-xmlrpc 2021-07-27 14:20:49 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Virtualization 4.8.0 Images), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:2920


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