-
Bug
-
Resolution: Done
-
Undefined
-
None
-
4.16
-
None
-
Quality / Stability / Reliability
-
False
-
-
None
-
Important
-
None
-
None
-
None
-
None
-
In Progress
-
Release Note Not Required
-
None
-
None
-
None
-
None
-
None
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`"
- clones
-
OCPBUGS-41904 NAD created for ovn-k8s-cni-overlay via console form is unusable
-
- Closed
-
- is depended on by
-
OCPBUGS-41904 NAD created for ovn-k8s-cni-overlay via console form is unusable
-
- Closed
-