Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-41904

NAD created for ovn-k8s-cni-overlay via console form is unusable

XMLWordPrintable

    • Important
    • None
    • False
    • Hide

      None

      Show
      None
    • Release Note Not Required

      Description of problem:

          Creating a ovn-k8s-cni-overlay generates incorrect YAML

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

         4.16.9

      How reproducible:

          100%

      Steps to Reproduce:

          1. Console
          2.Networking
          3. NAD
          4. Create
          5.Network type = OVN localnet
          

      Actual results:

      apiVersion: k8s.cni.cncf.io/v1
      kind: NetworkAttachmentDefinition
      metadata:
        annotations:
          k8s.v1.cni.cncf.io/resourceName: openshift.io/     <--------- wrong
        creationTimestamp: "2024-09-13T04:58:15Z"
        generation: 1
        name: network-aware-ermine
        namespace: default
        resourceVersion: "43545754"
        uid: 543537e3-6981-4d43-a2cb-4f77b9b70824
      spec:
        config: '{"name":"asdasdsa","type":"ovn-k8s-cni-overlay","cniVersion":"0.4.0","topology":"localnet","vlanID":3000,"mtu":1500,"netAttachDefName":"default/network-aware-ermine"}'

      Expected results:

      Without that annotation

      apiVersion: k8s.cni.cncf.io/v1
      kind: NetworkAttachmentDefinition
      metadata:
        creationTimestamp: "2024-09-13T04:58:15Z"
        generation: 1
        name: network-aware-ermine
        namespace: default
        resourceVersion: "43545754"
        uid: 543537e3-6981-4d43-a2cb-4f77b9b70824
      spec:
        config: '{"name":"asdasdsa","type":"ovn-k8s-cni-overlay","cniVersion":"0.4.0","topology":"localnet","vlanID":3000,"mtu":1500,"netAttachDefName":"default/network-aware-ermine"}'

      Additional info:

          This makes pods and virtual machines using the NAD fail to start with "`Invalid value: openshift.io/: name part must be non-empty`"

            upalatuc@redhat.com Ugo Palatucci
            rhn-support-gveitmic Germano Veit Michel
            YaDan Pei YaDan Pei
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: