Bug 1919160

Summary: [RFE][OSP13] Support for sparse image upload to ceph
Product: Red Hat OpenStack Reporter: ggrimaux
Component: openstack-glanceAssignee: Cyril Roelandt <cyril>
Status: CLOSED WONTFIX QA Contact: Mike Abrams <mabrams>
Severity: high Docs Contact: Chuck Copello <ccopello>
Priority: high    
Version: 13.0 (Queens)CC: akaris, akekane, athomas, cswanson, cyril, eglynn, gcharot, gfidente, knylande, mabrams, nlevinki, rurena, senrique, spower
Target Milestone: AlphaKeywords: FeatureBackport, Triaged, ZStream
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1647041 Environment:
Last Closed: 2021-01-22 12:36:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1647041    
Bug Blocks: 1802774, 1389112, 1433388, 1476900, 1866741    

Description ggrimaux 2021-01-22 09:59:55 UTC
+++ This bug was initially created as a clone of Bug #1647041 +++

Description of problem:
[This is a formal request to have this backported to OSP13 when BZ1647041 land in OSP16.1.]

Images uploaded to ceph via the glance command line utility do not maintain image file sparseness.

Version-Release number of selected component (if applicable):
All current versions.

How reproducible:
Every time.

Steps to Reproduce:
1. Upload sparse raw image to ceph backed glance images via command line. 


Actual results:
Image is uploaded but file sparseness is not maintained.

Expected results:
Image sparseness maintained thus reducing ceph storage overhead.

Additional info:
I suspect this issue is not limited to just ceph backed glance images but all images uploaded with the glance utility. We've found the following two previous bugs requesting this feature.

- https://bugzilla.redhat.com/show_bug.cgi?id=1373643
- http://tracker.ceph.com/issues/17178

Additionally there is a workaround published on the ceph website that shows how to put sparse images into ceph and then add them into glance manually. 

- https://ceph.com/planet/importing-an-existing-ceph-rbd-image-into-glance/

Comment 3 Cyril Roelandt 2021-01-22 12:36:16 UTC
We will not backport this feature to OSP13.