Bug 2055304

Summary: [4.10.z] nmstate interprets interface names as float64 and subsequently crashes on state update
Product: Container Native Virtualization (CNV) Reporter: Radim Hrazdil <rhrazdil>
Component: NetworkingAssignee: Radim Hrazdil <rhrazdil>
Status: CLOSED ERRATA QA Contact: Adi Zavalkovsky <azavalko>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.8.4CC: azavalko, bzvonar, cnv-qe-bugs, diflores, djuran, phoracek, rhrazdil, rnetser
Target Milestone: ---   
Target Release: 4.10.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: kubernetes-nmstate-handler v4.10.1-2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2051461 Environment:
Last Closed: 2022-05-18 20:27:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2051461, 2055786    
Bug Blocks: 2053491    

Comment 1 Adi Zavalkovsky 2022-03-31 12:19:17 UTC
Verified.

OCP Version - 4.10.6. kubernetes-nmstate-handler v4.10.1-2.

Created veth device on node:
[core@n-adiz-410-8d2hr-worker-0-ff9wp ~]$ sudo ip link add 0e12345 type dummy
[core@n-adiz-410-8d2hr-worker-0-ff9wp ~]$ sudo ip link set 0e12345 up

NNS Succesfully updated without nmstate-handler pod crashing:
[cnv-qe-jenkins@n-adiz-410-8d2hr-executor ~]$ oc get nns n-adiz-410-8d2hr-worker-0-ff9wp -o yaml 
...
    interfaces:
    - ipv4:
        address: []
        enabled: false
      ipv6:
        address:
        - ip: fe80::2ccb:44ff:fe72:b1f4
          prefix-length: 64
        enabled: true
      mac-address: 2E:CB:44:72:B1:F4
      mtu: 1500
      name: "0e12345"
      state: up
      type: dummy
...
    routes:
      running:
      - destination: fe80::/64
        metric: 256
        next-hop-address: '::'
        next-hop-interface: "0e12345"
        table-id: 254

Comment 7 errata-xmlrpc 2022-05-18 20:27:03 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.1 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:4668