Bug 1855709

Summary: [RFE] cinder backup needs to restore thin volumes (new volumes only)
Product: Red Hat OpenStack Reporter: ggrimaux
Component: openstack-cinderAssignee: Pete Zaitcev <zaitcev>
Status: CLOSED MIGRATED QA Contact: Evelina Shames <eshames>
Severity: medium Docs Contact: RHOS Documentation Team <rhos-docs>
Priority: medium    
Version: 13.0 (Queens)CC: eharney, gcharot, gfidente, pratik.bandarkar, zaitcev
Target Milestone: AlphaKeywords: FutureFeature, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-11-24 18:27:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description ggrimaux 2020-07-10 09:38:39 UTC
Description of problem:
The current default behavior during a cinder-backup/cinder-restore procedure is that thin volumes are restored as thick. Taking much more space than necessary and creating problems during migration.

It would be good if the original volume size is kept during backup/restore procedure.

Version-Release number of selected component (if applicable):
rhosp13/openstack-cinder-api:124

How reproducible:
100%

Steps to Reproduce:
1.Create empty volume (10GB size but 0B used)
2.Cinder-backup to export the volume
3.Cinder-restore to import the volume
4.Volume now  uses 10GB of disk space

Actual results:
Thin volume become thick

Expected results:
Thin volume stay thin

Additional info:

Comment 1 Gregory Charot 2022-01-03 16:40:09 UTC
This RFE will be reviewed during the Z PTG and planned accordingly if higher OSP18 priorities are progressing as expected.

Comment 2 Gregory Charot 2022-04-21 16:48:31 UTC
This feature was reviewed during the PTG. For now we are only going to implement restoring thin backups to new volumes. Restoring to existing volumes (like the original one) requires more investigation and the implementation is much more complex.

This RFE now only covers restoring backup as thin for new volumes.