-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
4.13
-
None
-
No
-
2
-
NHE Sprint 241, NHE Sprint 242, NHE Sprint 243, NHE Sprint 245
-
4
-
False
-
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