-
Bug
-
Resolution: Done-Errata
-
Major
-
None
-
4.16.0
-
None
-
No
-
Multi-Arch Sprint 253
-
1
-
Proposed
-
False
-
-
Release Note Not Required
-
In Progress
Description of problem:
When pods are created with a node name already set, the pod scheduling web hook should not add the scheduling gate.
Version-Release number of selected component (if applicable):
0.9.0
How reproducible:
Always
Steps to Reproduce:
1. Install the multiarch tuning operator 2. Deploy the PodPlacementConfig CR 3. Create a pod with the node name already set: apiVersion: v1 kind: Pod metadata: name: example labels: app: httpd namespace: mmo-devel-test spec: nodeName: ip-10-29-1-81.us-east-2.compute.internal securityContext: runAsNonRoot: true seccompProfile: type: RuntimeDefault containers: - name: httpd image: 'image-registry.openshift-image-registry.svc:5000/openshift/httpd:latest' ports: - containerPort: 8080 securityContext: allowPrivilegeEscalation: false capabilities: drop: - ALL
Actual results:
>Error creating Pod: Pod "master" is invalid: spec.nodeName: Forbidden: cannot be set until all schedulingGates have been cleared Ginkgo exit error 1: exit with code 1}
Expected results:
The webhook doesn't add the scheduling gate if the field spec.nodeName is not empty
Additional info:
- links to
-
RHEA-2024:0041 OpenShift Container Platform 4.16.z bug fix update