Bug 2055786

Summary: [4.9.4] nmstate interprets interface names as float64 and subsequently crashes on state update
Product: Container Native Virtualization (CNV) Reporter: Radim Hrazdil <rhrazdil>
Component: NetworkingAssignee: Petr Horáček <phoracek>
Status: CLOSED ERRATA QA Contact: Adi Zavalkovsky <azavalko>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.8.4CC: azavalko, bzvonar, cnv-qe-bugs, cstabler, diflores, djuran, peasters, phoracek, rhrazdil, rnetser
Target Milestone: ---Flags: cstabler: needinfo-
diflores: needinfo-
Target Release: 4.9.4   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: kubernetes-nmstate-handler v4.9.4-6 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2051461 Environment:
Last Closed: 2022-04-26 16:54:31 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    
Bug Blocks: 2053491, 2055304    

Comment 3 Petr Horáček 2022-03-17 12:16:39 UTC
This can be moved to QA once 4.9 errata contains nmstate v0.52.14

Comment 9 Adi Zavalkovsky 2022-04-07 15:03:58 UTC
Verified.

OCP Version - 4.9.28. kubernetes-nmstate-handler v4.9.4-7.

Created veth device on node:
[core@n-adiz49-8s5rp-worker-0-bzxdz ~]$  sudo ip link add 0e12345 type dummy
[core@n-adiz49-8s5rp-worker-0-bzxdz ~]$  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::7c5e:20ff:fe0f:46c
          prefix-length: 64
        enabled: true
      mac-address: 7E:5E:20:0F:04:6C
      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 15 errata-xmlrpc 2022-04-26 16:54:31 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 (OpenShift Virtualization 4.9.4 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/RHEA-2022:1596