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

SR-IOV operator overwrites existing NetworkAttachmentDefinitions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.13
    • Networking / SR-IOV
    • None
    • No
    • 2
    • NHE Sprint 241, NHE Sprint 242, NHE Sprint 243, NHE Sprint 245
    • 4
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      Creating SriovNetwork overwrites NetworkAttachmentDefinitions of other types.
      
      If I create a NetworkAttachmentDefinition of type "bridge" named "storage-network", and then I attempt to create another NetworkAttachmentDefinition of type "ptp" named "storage-network", the API server returns "AlreadyExists". Furthermore, I could also list all NetworkAttachmentDefinitions and see that "storage-network" already exists.
      
      This is not the case with SriovNetwork. If I create a NetworkAttachmentDefinition of type "bridge" named "storage-network" and then I create an SriovNetwork named "storage-network", the operation will succeed. The SR-IOV operator would then overwrite my previously created NetworkAttachmentDefinition of type "bridge" and cripple all the Pods that were using it. There is no "AlreadyExists" response and a user who does not understand the internal working of the SR-IOV operator cannot know what SriovNetwork does to NetworkAttachmentDefinition.

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

      OCP 4.13

      How reproducible:

      Always

      Steps to Reproduce:

      1. Create a NetworkAttachmentDefinition of type "bridge" named "network"
      2. Create an SriovNetwork named "network"
      

      Actual results:

      The NetworkAttachmentDefinition of type "bridge" is replaced

      Expected results:

      SriovNetwork would be marked as degraded if the NetworkAttachmentDefinition it tries to write to already exists and is not of type "sriov"

      Additional info:

      This OCPBUG is based on https://bugzilla.redhat.com/show_bug.cgi?id=2214457

            vpunj@redhat.com Vrinda Punj
            phoracek@redhat.com Petr Horacek
            Zhanqi Zhao Zhanqi Zhao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: