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

Only a single interface in the `network-status` can have `default` enabled

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • CNV Network
    • None

      The network-attachment-definition-client library  creates the network-status annotation from the CNI response.

      It currently is reporting all the interfaces created for UDN as `default`, which breaks the de-facto standard, since according to it, only one can have this attribute enabled: 

       

      5.3.5 "default"
      This required key’s value (type boolean) shall indicate that this attachment is the result of the cluster-wide default network. Only one element in the Network Attachment Status Annotation list may have the "default" key set to true.

      Check the following network-status from a primary UDN pod:

       

      [
        {
          "name": "ovn-kubernetes",
          "interface": "eth0",
          "ips": [
            "10.244.1.6",
            "fd00:10:244:2::6"
          ],
          "mac": "0a:58:0a:f4:01:06",
          "default": true,
          "dns": {}
        },
        {
          "name": "ovn-kubernetes",
          "interface": "ovn-udn1",
          "ips": [
            "10.128.0.3"
          ],
          "mac": "0a:58:0a:80:00:03",
          "default": true,
          "dns": {}
        }
      ] 

       

       

              mduarted@redhat.com Miguel Duarte de Mora Barroso
              mduarted@redhat.com Miguel Duarte de Mora Barroso
              Nir Rozen Nir Rozen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: