Red Hat Bugzilla – Bug 1294099
[Docs] [Glance] When importing an big image in glance with --copy-from, image corruption happens
Last modified: 2016-11-04 02:06:27 EDT
Description of problem:
When importing an big image in glance with --copy-from, image corruption happens when it's bigger than swift_storage_large_object_size (in glance-api.conf) or max_file_size (in swift.conf). By default , this size appears to be 5GB so if a Windows image is imported, it will almost always be corrupted
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. import image with --copy-from that is bigger than max_file_size
2. download it
3. checksum it
We have a workaround here:
Change: swift_storage_large_object_size in glance-api.conf to 20gb
and change: max_file_size in swift.conf to 20gb. T
In Glance's newest API versions, the `copy-from` functionality doesn't exist anymore. Therefore, I think this should be documented as the version 1 of the API is under support mode only.
The upstream team is working hard on moving away from v1. If there are no objections, I'll proceed to move this bug under docs.
Support case is already closed, let's move that BZ to docs.
Assigning to Deepti for review.
Deepti - looks like we need to add some guidance around the version of the API to which this command belongs, and possibly look into how this is handled in later versions of the API.
Finished docs QE, looks good to me.
Changing to VERIFIED as per comment 18.
Updated guides are now available on the Customer portal:
CLI Ref - Includes a note to indicate that '--copy-from' option is deprecated for glance v2 API for OSP8 and v1 as well for future releases:
Config Ref - Updated a command that used the '--copy-from' option to use the '--os-image-api-version 1' option:
Changing status to CLOSED-CURRENT RELEASE