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

[IBM][4.12][Snapshot] restore size in snapshot is not the same size of pvc request size

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Undefined
    • 4.12.z
    • 4.12
    • Storage
    • None
    • False
    • Hide

      None

      Show
      None
    • N/A
    • Release Note Not Required

    Description

      Description of problem:

      Restore size in snapshot output is not the same size of pvc request size 

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

       

      How reproducible:

      Always

      Steps to Reproduce:

      1. Create IBM cluster. 
          Flexy template: aos-4_12/ipi-on-ibmcloud/versioned-installer-  
                          private_cluster-ovn-fips-ci
          Payload: 4.12.0-0.nightly-2022-11-29-131548 
      2. Create sc, pvc, dep
      3. Create volumesnapshot from default volumesnapshotclass. 
      4. Check the volumesnapshot output restore size 

      sc_pvc_dep.yaml
      apiVersion: storage.k8s.io/v1
      kind: StorageClass
      metadata:
      name: mysc
      parameters:
      profile: 10iops-tier
      provisioner: vpc.block.csi.ibm.io
      reclaimPolicy: Delete
      volumeBindingMode: WaitForFirstConsumer

      apiVersion: v1
      kind: PersistentVolumeClaim
      metadata:
      name: mypvc-csi
      namespace: testropatil
      spec:
      accessModes:

      • ReadWriteOnce
        resources:
        requests:
        storage: 26Gi
        storageClassName: mysc
        volumeMode: Filesystem

        apiVersion: apps/v1
        kind: Deployment
        metadata:
        name: mydep
        namespace: testropatil
        spec:
        replicas: 1
        selector:
        matchLabels:
        app: myapp-54mtso67
        template:
        metadata:
        labels:
        app: myapp-54mtso67
        spec:
        containers:
      • image: quay.io/openshifttest/hello-openshift@sha256:56c354e7885051b6bb4263f9faa58b2c292d44790599b7dde0e49e7c466cf339
        name: mydep
        ports:
      • containerPort: 80
        volumeMounts:
      • mountPath: "/mnt/storage"
        name: local
        volumes:
      • name: local
        persistentVolumeClaim:
        claimName: mypvc-csi
         
        vss.yaml
        apiVersion: snapshot.storage.k8s.io/v1
        kind: VolumeSnapshot
        metadata:
        name: my-snapshot-new
        namespace: testropatil
        spec:
        source:
        persistentVolumeClaimName: mypvc-csi
        volumeSnapshotClassName: vpc-block-snapshot
        rohitpatil@ropatil-mac Downloads % oc get sc                           NAME                                   PROVISIONER            RECLAIMPOLICY   VOLUMEBINDINGMODE      ALLOWVOLUMEEXPANSION   AGEmysc                                   vpc.block.csi.ibm.io   Delete          WaitForFirstConsumer   true                   2m37s
        rohitpatil@ropatil-mac Downloads % oc get pvc,pod -n testropatilNAME                              STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS   AGEpersistentvolumeclaim/mypvc-csi   Bound    pvc-1a014601-8176-4c55-93cf-d408460b9359   26Gi       RWO            mysc           27s
        NAME                         READY   STATUS    RESTARTS   AGEpod/mydep-5477fd946b-w77sw   1/1     Running   0          27s 
        rohitpatil@ropatil-mac Downloads % oc get volumesnapshot -n testropatilNAME              READYTOUSE   SOURCEPVC   SOURCESNAPSHOTCONTENT   RESTORESIZE   SNAPSHOTCLASS        SNAPSHOTCONTENT                                    CREATIONTIME   AGEmy-snapshot-new   true         mypvc-csi                           1Gi           vpc-block-snapshot   snapcontent-a40f3a17-8697-4215-8a2f-77d3d5592c60   29s            32s 

        Actual results:

        volumesnapshot RESTORESIZE is 1Gi which is not the same to pvc request size(26Gi)

        Expected results:

        volumesnapshot should be the same size of pvc request size

        Additional info:

         

      Attachments

        Issue Links

          Activity

            People

              rbednar@redhat.com Roman Bednar
              ropatil@redhat.com Rohit Patil
              Rohit Patil Rohit Patil
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: