Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-50914

UI crash when viewing VM network details if the VM self add network interfaces

XMLWordPrintable

    • 0.42
    • False
    • Hide

      None

      Show
      None
    • False
    • CNV v4.18.0.rhel9-367, CNV v4.17.3.rhel9-28
    • ---
    • ---
    • None

      Description of problem:

      The UI will crash and show a stack trace when view the VM nics details, if we add a new interface to the running VM.

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

       

      How reproducible:

       

      Steps to Reproduce:

      1. Create a VM
      2. login into VM via console
      3. Add new interface with commands below
      4. Go to the VM network tab
      5. crash (can take a bit time, until the agent update the status)
      sudo ip link add br0 type bridge
      sudo ip link set br0 up
      sudo ip addr add 10.11.12.13/14 dev br0

      Actual results:

      When accessing the UI to inspect the VM network, the UI will crash

      Expected results:

      1. The VM view should not crash
      2. (optionally) show the new interfaces as read-only ephemeral interfaces.

      Additional info:

      The VMI yaml status will include the new interface detail, which don't have any refs in the VM CR yaml.
      
      
        interfaces:
          - infoSource: 'domain, guest-agent'
            interfaceName: eth0
            ipAddress: 10.130.3.36
            ipAddresses:
              - 10.130.3.36
            mac: '02:26:19:00:02:4a'
            name: default
            queueCount: 1
          - infoSource: 'domain, guest-agent, multus-status'
            interfaceName: eth1
            ipAddress: 10.11.10.254
            ipAddresses:
              - 10.11.10.254
              - 'fe80::99e7:4879:181:cd71'
            mac: '02:26:19:00:02:4b'
            name: nic-brown-alligator-28
            queueCount: 1
          - infoSource: guest-agent
            interfaceName: br0
            ipAddress: 10.11.12.13
            ipAddresses:
              - 10.11.12.13
              - 'fe80::c0cb:7fff:fe4f:6e76'
            mac: 'c2:cb:7f:4f:6e:76'
      

              mschatzm@redhat.com Matan Schatzman
              ryasharz@redhat.com Rabin Yasharzadehe
              Leon Kladnitsky Leon Kladnitsky
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: