Glance cannot determine the size of a "fake" image when the image is being uploaded to the Swift
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mirantis OpenStack |
Fix Released
|
High
|
Sergii Rizvan | ||
9.x |
Fix Released
|
High
|
Sergii Rizvan |
Bug Description
Detailed bug description:
When glance uploads a new fake image to Swift, it cannot correctly determine its size. As a result glance uploads this image as a segmented object into Swift.
Steps to reproduce:
1. deploy MOS 9 with one controller and one compute. Swift is to be used as a backend for Glance.
2. Switch on "debug" option in /etc/glance/
3. Create a pseudo-image file and try uploading this file as an image:
dd if=/dev/zero of=newimage.raw bs=1k count=20000
glance image-create --file image.raw --name fake --progress --container-format bare --disk-format qcow2
4. In the log file /var/log/
2016-08-27 10:15:53.635 10887 DEBUG glance_
Expected results:
Swift has to correctly determine an image size according to the size of a file or it has to report an error message that the substituted file does not have correct format and cannot be uploaded to Glance.
Actual result:
Image is uploaded to Swift as a segmented object
Reproducibility:
MOS 9
Workaround:
Use only correct images
summary: |
- Glance incorrectly determines a size of an image when it is uploaded to - the Swift + Glance cannot determine the size of a "fake" image when the image is + being uploaded to the Swift |
Changed in mos: | |
milestone: | none → 9.1 |
importance: | Undecided → Medium |
Changed in mos: | |
status: | New → Confirmed |
assignee: | nobody → MOS Glance (mos-glance) |
tags: | added: area-glance |
tags: | added: on-verification |
sla1 for 9.0-updates