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

Unable to create volumeGroupSnapshot with matchExpression as label selector

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • 4.18
    • Storage
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

          Creation of VolumeGroupSnapshot fails with error: 
      ```'failed to create group snapshot content with error snapshot controller failed to update openshift-storage/group-snapshot on API server: Volume CSI driver (ebs.csi.aws.com) mismatch with VolumeGroupSnapshotClass (openshift-storage.rbd.csi.ceph.com) openshift-storage/group-snapshot: pvc-3f4073c2-d28c-45b1-85f5-8cd8eca3d3fa'```
      
      This is because we use matchexpression as label selector while snapshotter-controller only supports matchLabels selector.
      
      ```
      spec:
        source:
          selector:
            matchExpressions:
            - key: app
              operator: In
              values:
              - noobaa
      ```

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

          

      How reproducible:

          

      Steps to Reproduce:

          1.create pvc with label
          2. create vlumegroupsnapshot with matchExpression as selector
          3. verify volumegroupsnahot is created
          

      Actual results:

          failed to create volumegroupsnapshot

      Expected results:

          volumegroupsnapshot should be created successfully.

      Additional info:

          

              rhn-support-dfajmon Daniel Fajmon
              ypadia@redhat.com Yati Padia
              None
              None
              Wei Duan Wei Duan
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: