Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 1907161 Details for
Bug 2120730
[IBM Z] Restoring snapshot fails with size constraint when the parent pvc is expanded
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh90 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
Testlog
test_expansion_snapshot_clone_thin-thin.log (text/plain), 8.43 KB, created by
Sravika
on 2022-08-23 16:03:35 UTC
(
hide
)
Description:
Testlog
Filename:
MIME Type:
Creator:
Sravika
Created:
2022-08-23 16:03:35 UTC
Size:
8.43 KB
patch
obsolete
># vi pvc1.yaml >apiVersion: v1 >kind: PersistentVolumeClaim >metadata: > name: pvc-test-a69ce00ebdd8455ea0824b0e601fe6c > namespace: namespace-test-cbcfb6179881453f86b9b66e7 >spec: > accessModes: > - ReadWriteOnce > resources: > requests: > storage: 2Gi > storageClassName: ocs-storagecluster-cephfs > ># oc create -f pvc1.yaml >persistentvolumeclaim/pvc-test-a69ce00ebdd8455ea0824b0e601fe6c created > ># vi pvc2.yaml >apiVersion: v1 >kind: PersistentVolumeClaim >metadata: > name: pvc-test-001db8b438eb459e9c7dfd5213392b5 > namespace: namespace-test-cbcfb6179881453f86b9b66e7 >spec: > accessModes: > - ReadWriteOnce > resources: > requests: > storage: 2Gi > storageClassName: ocs-storagecluster-cephfs > ># oc create -f pvc2.yaml >persistentvolumeclaim/pvc-test-001db8b438eb459e9c7dfd5213392b5 created > ># oc -n namespace-test-cbcfb6179881453f86b9b66e7 patch PersistentVolumeClaim pvc-test-001db8b438eb459e9c7dfd5213392b5 -n >namespace-test-cbcfb6179881453f86b9b66e7 -p '{"spec": {"resources": {"requests": {"storage": "4Gi"}}}}' >persistentvolumeclaim/pvc-test-001db8b438eb459e9c7dfd5213392b5 patched ># oc -n namespace-test-cbcfb6179881453f86b9b66e7 patch PersistentVolumeClaim pvc-test-a69ce00ebdd8455ea0824b0e601fe6c -n >namespace-test-cbcfb6179881453f86b9b66e7 -p '{"spec": {"resources": {"requests": {"storage": "4Gi"}}}}' >persistentvolumeclaim/pvc-test-a69ce00ebdd8455ea0824b0e601fe6c patched > ># oc -n namespace-test-cbcfb6179881453f86b9b66e7 get pvc >NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE >pvc-test-001db8b438eb459e9c7dfd5213392b5 Bound pvc-90b49129-96c8-4884-921f-6ebf261d8ac2 4Gi RWO ocs-storagecluster-cephfs 14m >pvc-test-a69ce00ebdd8455ea0824b0e601fe6c Bound pvc-ebc124d2-2915-45d3-8ff0-2cab954c10dd 4Gi RWO ocs-storagecluster-cephfs 14m ># > ># vi volsnap1.yaml >apiVersion: snapshot.storage.k8s.io/v1 >kind: VolumeSnapshot >metadata: > name: pvc-test-001db8b438eb459e9c7dfd5213392b5-snapshot-540198fce54c4f23a5a199f5c75e2c89 > namespace: namespace-test-cbcfb6179881453f86b9b66e7 >spec: > source: > persistentVolumeClaimName: pvc-test-001db8b438eb459e9c7dfd5213392b5 > volumeSnapshotClassName: ocs-storagecluster-cephfsplugin-snapclass > ># vi volsnap2.yaml >apiVersion: snapshot.storage.k8s.io/v1 >kind: VolumeSnapshot >metadata: > name: pvc-test-a69ce00ebdd8455ea0824b0e601fe6c-snapshot-f7be937fbbdb4af0b891761bd6aabf93 > namespace: namespace-test-cbcfb6179881453f86b9b66e7 >spec: > source: > persistentVolumeClaimName: pvc-test-a69ce00ebdd8455ea0824b0e601fe6c > volumeSnapshotClassName: ocs-storagecluster-cephfsplugin-snapclass > ># oc create -f volsnap1.yaml >volumesnapshot.snapshot.storage.k8s.io/pvc-test-001db8b438eb459e9c7dfd5213392b5-snapshot-540198fce54c4f23a5a199f5c75e2c89 created > ># oc create -f volsnap2.yaml >volumesnapshot.snapshot.storage.k8s.io/pvc-test-a69ce00ebdd8455ea0824b0e601fe6c-snapshot-f7be937fbbdb4af0b891761bd6aabf93 created > ># oc -n namespace-test-cbcfb6179881453f86b9b66e7 get VolumeSnapshot >NAME READYTOUSE SOURCEPVC SOURCESNAPSHOTCONTENT RESTORESIZE > SNAPSHOTCLASS SNAPSHOTCONTENT CREATIONTIME AGE >pvc-test-001db8b438eb459e9c7dfd5213392b5-snapshot-540198fce54c4f23a5a199f5c75e2c89 true pvc-test-001db8b438eb459e9c7dfd5213392b5 4Gi > ocs-storagecluster-cephfsplugin-snapclass snapcontent-79945cbe-73d9-43e1-94f7-1ec444f1ff5c 14s 14s >pvc-test-a69ce00ebdd8455ea0824b0e601fe6c-snapshot-f7be937fbbdb4af0b891761bd6aabf93 true pvc-test-a69ce00ebdd8455ea0824b0e601fe6c 4Gi > ocs-storagecluster-cephfsplugin-snapclass snapcontent-e502a561-cdc1-41a1-812a-6b01b8afcc30 11s 11s > > > > >Expand pvcs to 6GiB > > ># oc -n namespace-test-cbcfb6179881453f86b9b66e7 patch PersistentVolumeClaim pvc-test-001db8b438eb459e9c7dfd5213392b5 -n namespace-test-cbcfb6179881453f86b9b66e7 -p '{"spec": {"resources": {"requests": {"storage": "6Gi"}}}}' >persistentvolumeclaim/pvc-test-001db8b438eb459e9c7dfd5213392b5 patched ># oc -n namespace-test-cbcfb6179881453f86b9b66e7 patch PersistentVolumeClaim pvc-test-a69ce00ebdd8455ea0824b0e601fe6c -n namespace-test-cbcfb6179881453f86b9b66e7 -p '{"spec": {"resources": {"requests": {"storage": "6Gi"}}}}' >persistentvolumeclaim/pvc-test-a69ce00ebdd8455ea0824b0e601fe6c patched ># oc -n namespace-test-cbcfb6179881453f86b9b66e7 get pvc >NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE >pvc-test-001db8b438eb459e9c7dfd5213392b5 Bound pvc-90b49129-96c8-4884-921f-6ebf261d8ac2 6Gi RWO ocs-storagecluster-cephfs 16m >pvc-test-a69ce00ebdd8455ea0824b0e601fe6c Bound pvc-ebc124d2-2915-45d3-8ff0-2cab954c10dd 6Gi RWO ocs-storagecluster-cephfs 16m ># > ># vi restore-pvc1.yaml >apiVersion: v1 >kind: PersistentVolumeClaim >metadata: > name: restore-pvc-test-001db8b438eb45-e47a5b93 > namespace: namespace-test-cbcfb6179881453f86b9b66e7 >spec: > accessModes: > - ReadWriteOnce > dataSource: > apiGroup: snapshot.storage.k8s.io > kind: VolumeSnapshot > name: pvc-test-001db8b438eb459e9c7dfd5213392b5-snapshot-540198fce54c4f23a5a199f5c75e2c89 > resources: > requests: > storage: 4Gi > storageClassName: ocs-storagecluster-cephfs > ># oc create -f restore-pvc1.yaml >persistentvolumeclaim/restore-pvc-test-001db8b438eb45-e47a5b93 created > ># oc get pvc -n namespace-test-cbcfb6179881453f86b9b66e7 >NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS > AGE >clone-pvc-test-001db8b438eb45-5f4c2a47b4 Bound pvc-524beede-4562-45cb-9059-fdc9a2ac7f47 6Gi RWO ocs-storagecluster-cephfs > 21m >clone-pvc-test-a69ce00ebdd845-df0d0b2c78 Bound pvc-86801f87-25c2-436c-9200-125424beb915 6Gi RWO ocs-storagecluster-cephfs > 21m >pvc-test-001db8b438eb459e9c7dfd5213392b5 Bound pvc-90b49129-96c8-4884-921f-6ebf261d8ac2 6Gi RWO ocs-storagecluster-cephfs > 40m >pvc-test-a69ce00ebdd8455ea0824b0e601fe6c Bound pvc-ebc124d2-2915-45d3-8ff0-2cab954c10dd 6Gi RWO ocs-storagecluster-cephfs > 40m >restore-pvc-test-001db8b438eb45-e47a5b93 Pending ocs-storagecluster-cephfs > 19m ># > > ># oc -n namespace-test-cbcfb6179881453f86b9b66e7 describe pvc restore-pvc-test-001db8b438eb45-e47a5b93 >Name: restore-pvc-test-001db8b438eb45-e47a5b93 >Namespace: namespace-test-cbcfb6179881453f86b9b66e7 >StorageClass: ocs-storagecluster-cephfs >Status: Pending >Volume: >Labels: <none> >Annotations: volume.beta.kubernetes.io/storage-provisioner: openshift-storage.cephfs.csi.ceph.com > volume.kubernetes.io/storage-provisioner: openshift-storage.cephfs.csi.ceph.com >Finalizers: [kubernetes.io/pvc-protection] >Capacity: >Access Modes: >VolumeMode: Filesystem >DataSource: > APIGroup: snapshot.storage.k8s.io > Kind: VolumeSnapshot > Name: pvc-test-001db8b438eb459e9c7dfd5213392b5-snapshot-540198fce54c4f23a5a199f5c75e2c89 >Used By: <none> >Events: > Type Reason Age From > Message > ---- ------ ---- ---- > ------- > Normal ExternalProvisioning 8s (x3 over 34s) persistentvolume-controller > waiting for a volume to be created, either by external provisioner "openshift-storage.cephfs.csi.ceph.com" or manually created by system admi >nistrator > Normal Provisioning 2s (x7 over 34s) openshift-storage.cephfs.csi.ceph.com_csi-cephfsplugin-provisioner-767f4b7584-zvxpr_62f81ad9-e73f-4fd3-b36 >4-65ae3e858533 External provisioner is provisioning volume for claim "namespace-test-cbcfb6179881453f86b9b66e7/restore-pvc-test-001db8b438eb45-e47a5b93" > Warning ProvisioningFailed 2s (x7 over 34s) openshift-storage.cephfs.csi.ceph.com_csi-cephfsplugin-provisioner-767f4b7584-zvxpr_62f81ad9-e73f-4fd3-b36 >4-65ae3e858533 failed to provision volume with StorageClass "ocs-storagecluster-cephfs": rpc error: code = InvalidArgument desc = cannot restore from snapsh >ot 0001-0011-openshift-storage-0000000000000001-2e74dff5-22f0-11ed-ab35-0a580a800214: volume size 6442450944 is smaller than source volume size 4294967296
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 2120730
: 1907161