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:
Re-targeting to 2.7 since this is not a blocker.
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.
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
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