Bug 2013455

Summary: Guest agent reports unreliable status when mac address is changed
Product: Container Native Virtualization (CNV) Reporter: Geetika Kapoor <gkapoor>
Component: NetworkingAssignee: oshoval
Status: CLOSED ERRATA QA Contact: Adi Zavalkovsky <azavalko>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.9.0CC: azavalko, cnv-qe-bugs, oshoval, phoracek
Target Milestone: ---   
Target Release: 4.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: virt-handler v4.10.0-197 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-03-16 15:56:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Comment 3 oshoval 2021-11-15 16:18:38 UTC
As we discussed, the solution will be to include a new infoSource field.
This way, the vmi.status will be easier to understand when mac change occurs

https://github.com/kubevirt/kubevirt/pull/6793
https://github.com/kubevirt/user-guide/pull/504

Comment 4 Adi Zavalkovsky 2022-01-23 16:22:49 UTC
Verified. OCP version - 4.10. virt-handler version - 4.10.0-197

Deployed vmi with nad.

Before change - 

[cnv-qe-jenkins@n-adiz410-6v626-executor ~]$ oc get vmi -n adi-mac test-vm -o yaml
...
  interfaces:
  - infoSource: domain, guest-agent
    interfaceName: eth0
    ipAddress: 10.128.2.67
    ipAddresses:
    - 10.128.2.67
    mac: 02:dd:42:00:00:03
    name: default
  - infoSource: domain, guest-agent
    interfaceName: eth1
    mac: 02:dd:42:00:00:04

After mac change - 

[cnv-qe-jenkins@n-adiz410-6v626-executor ~]$ oc get vmi -n adi-mac test-vm -o yaml
  interfaces:
  - infoSource: domain, guest-agent
    interfaceName: eth0
    ipAddress: 10.128.2.67
    ipAddresses:
    - 10.128.2.67
    mac: 02:dd:42:00:00:03
    name: default
  - infoSource: guest-agent
    interfaceName: eth1
    mac: 02:00:b5:b5:b5:c9

Comment 9 errata-xmlrpc 2022-03-16 15:56:11 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.10.0 Images security and bug fix update), 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-2022:0947