Image corrupts when upload

Bug #1537729 reported by Andrey Shestakov
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Fix Released
Critical
Kairat Kushaev
8.0.x
Fix Released
Critical
Kairat Kushaev
9.x
Fix Released
Critical
Kairat Kushaev

Bug Description

Upstream bug https://bugs.launchpad.net/glance/+bug/1537721

After this commit https://github.com/openstack/glance_store/commit/a0572ef672512a8ed7ef203816ec256eafd5f9de
image uploads works incorrect.

glance image-create --disk-format raw --container-format bare --file virtual_ubuntu_trasty_ext4_demo --progress --name ubuntu_upload_with_fix

glance image-download 5b955bce-61ab-4c55-afd9-8bd6012cf1ab --file ubuntu_download_with_fix --progress
[=============================>] 100%[Errno 32] Corrupt image download. Checksum was 9253e738cabf6a3c0beace1a3b07e623 expected fa9ec35d64d43aefd6356150d361ec24

Tags: area-glance
tags: added: area-glance
Revision history for this message
Kairat Kushaev (kkushaev) wrote :

Fix proposed to glance upstream: https://review.openstack.org/272127

Revision history for this message
Kairat Kushaev (kkushaev) wrote :

Fix merged to upstream, so it will be included into next Mitaka release(so it will be available in 9.0 after next sync).
Fix proposed to Liberty: https://review.openstack.org/#/c/272991

Revision history for this message
Roman Podoliaka (rpodolyaka) wrote :
tags: added: on-verification
Revision history for this message
Alexander Zatserklyany (zatserklyany) wrote :

VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "8.0"
  api: "1.0"
  build_number: "507"
----
root@node-1:~# glance image-create --disk-format raw --container-format bare --file trusty-server-cloudimg-amd64-disk1.img --progress --name trusty-server-cloudimg-amd64
[=============================>] 100%
+------------------+--------------------------------------+
| Property | Value |
+------------------+--------------------------------------+
| checksum | 77987bde53c54dc436e299af51d7b03f |
| container_format | bare |
| created_at | 2016-02-01T14:15:03Z |
| disk_format | raw |
| id | fb6b1c25-2945-480d-ab56-de9030d5e14b |
| min_disk | 0 |
| min_ram | 0 |
| name | trusty-server-cloudimg-amd64 |
| owner | 2fa7379974a1493d8e531bfb77fbb93c |
| protected | False |
| size | 258474496 |
| status | active |
| tags | [] |
| updated_at | 2016-02-01T14:15:23Z |
| virtual_size | None |
| visibility | private |
+------------------+--------------------------------------+
root@node-1:~# mv trusty-server-cloudimg-amd64-disk1.img trusty-server-cloudimg-amd64-disk1_orig.img
root@node-1:~# glance image-download fb6b1c25-2945-480d-ab56-de9030d5e14b --file trusty-server-cloudimg-amd64 --progress
[=============================>] 100%
root@node-1:~# md5sum trusty-server-cloudimg-amd64
77987bde53c54dc436e299af51d7b03f trusty-server-cloudimg-amd64

tags: removed: on-verification
Revision history for this message
Sofiia Andriichenko (sandriichenko) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.