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

openshift-tests does not file Azure Disk zone topology

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • 4.13
    • Storage / Kubernetes
    • None
    • Moderate
    • No
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      When running in-tree Azure Disk tests with in-line or pre-provisioned volumes, the test creates a Pod / PV only with region label.

      https://prow.ci.openshift.org/view/gs/origin-ci-test/pr-logs/pull/openshift_cloud-provider-azure/33/pull-ci-openshift-cloud-provider-azure-master-openshift-e2e-azure-ovn-ccm-install/1625866778196316160

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

      4.13

      Steps to Reproduce:

      1. Install a 4.13 cluster in useast2 region and with TechPreviewNoUpgrade enabled during installation and https://github.com/openshift/cloud-provider-azure/pull/33 compiled in. If you enable TechPreviewNoUpgrade later, it will work.
      2. Run an e2e test with a pre-provisioned Azure Disk PV:
      ./openshift-tests run-test "[sig-storage] In-tree Volumes [Driver: azure-disk] [Testpattern: Pre-provisioned PV (ext4)] volumes should store data [Suite:openshift/conformance/parallel] [Suite:k8s] 
      1. In a separate window, monitor created PVs:
      oc get pv -o yaml -w 

      Actual results:

      PV is created with:

        nodeAffinity:
          required:
            nodeSelectorTerms:
            - matchExpressions:
              - key: topology.kubernetes.io/region
                operator: In
                values:
                - westus
      

      Expected results:

      PV with both region and zone affinity.

      Similarly, Pods with in-line volumes should have their nodeAffinity (or nodeSelector) towards nodes in the right zone.

            hekumar@redhat.com Hemant Kumar
            rhn-engineering-jsafrane Jan Safranek
            Wei Duan Wei Duan
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: