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

Nutanix: CSI deployments/daemonsets should have the required pod template annotation

    XMLWordPrintable

Details

    • No
    • False
    • Hide

      None

      Show
      None

    Description

      Description of problem:

      There is the requirement for all the deployments/daemonsets in the "openshift-" prefixed namespaces in an OCP cluster to have the pod template annotation: 
      target.workload.openshift.io/management: '{"effect": "PreferredDuringScheduling"}'. See https://github.com/openshift/enhancements/blob/master/enhancements/workload-partitioning/management-workload-partitioning.md#workload-annotation.
      
      And currently the Nutanix CSI package for OpenShift does not include this pod template annotation in its deployments/daemonsets manifests.
      
      This caused the recent e2e-nutanix test runs failed with the below errors:
      { fail [github.com/openshift/origin/test/extended/cpu_partitioning/pods.go:113]: Expected
      <[]error | len:2, cap:2>: [
      <*errors.errorString | 0xc001ed79f0>{
      s: "deployment (nutanix-csi-controller) in openshift namespace (openshift-cluster-csi-drivers) must have pod templates annotated with map[target.workload.openshift.io/management:{\"effect\": \"PreferredDuringScheduling\"}]",
      },
      <*errors.errorString | 0xc001ed7a70>{
      s: "deployment (nutanix-csi-operator-controller-manager) in openshift namespace (openshift-cluster-csi-drivers) must have pod templates annotated with map[target.workload.openshift.io/management:{\"effect\": \"PreferredDuringScheduling\"}]",
      },
      
      we need to add the annotation target.workload.openshift.io/management:{\“effect\“: \“PreferredDuringScheduling\“} to Deployments: nutanix-csi-controller, nutanix-csi-operator-controller-manager and DaemonSet nutanix-csi-node, in the Nutanix CSI package for OpenShift.

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

       

      How reproducible:

      Always

      Steps to Reproduce:

      1. Create a OCP 4.14 Nutanix cluster. 
      2. Install the Nutanix CSI operator/driver.
      3. Check the deployments/daemonsets in the namespace "openshift-cluster-csi-drivers", whether they have the pod template annotation: target.workload.openshift.io/management: '{"effect": "PreferredDuringScheduling"}'

      Actual results:

      The deployments/daemonsets in the namespace "openshift-cluster-csi-drivers" do not have the pod template annotation: target.workload.openshift.io/management: '{"effect": "PreferredDuringScheduling"}'.

      Expected results:

      The deployments/daemonsets in the namespace "openshift-cluster-csi-drivers" should all have the pod template annotation: target.workload.openshift.io/management: '{"effect": "PreferredDuringScheduling"}'.

      Additional info:

       

      Attachments

        Activity

          People

            yanhli@redhat.com Yanhua Li
            yanhli@redhat.com Yanhua Li
            Huali Liu Huali Liu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: