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

The Multiarch Tuning Operator shouldn't gate pods having the nodeName set at creation time

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • None
    • 4.16.0
    • None
    • No
    • Multi-Arch Sprint 253
    • 1
    • Proposed
    • False
    • Hide

      None

      Show
      None
    • 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:

          

              tzivkovi@redhat.com Tori Zivkovic
              rhn-support-adistefa Alessandro Di Stefano
              Lin Wang Lin Wang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: