Glance creates image with zero size if location is wrong
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mirantis OpenStack |
Fix Released
|
Medium
|
Kairat Kushaev | ||
7.0.x |
Won't Fix
|
Medium
|
Kairat Kushaev | ||
8.0.x |
Fix Released
|
Medium
|
Kairat Kushaev |
Bug Description
I tried to upload images from location by way like using SCP:
# glance image-create --name LINUX-64 --is-public True --disk-format iso --container-format bare --progress --location http://<fuel_ip>
Glance client accepted wrong location and as result i got images in Glance with Active status and 0 size.
Same behavior noticed with aki and ari images.
Expected that Glance client will prevent creation of image from malformed source.
Environment:
VERSION:
feature_groups:
- mirantis
production: "docker"
release: "7.0"
openstack_
api: "1.0"
build_number: "139"
build_id: "2015-08-
nailgun_sha: "c842770d56680d
python-
fuel-agent_sha: "1fe47720ba5548
fuel-
astute_sha: "e1d3a435e5df5b
fuel-library_sha: "347d51f391a6f2
fuel-ostf_sha: "5cb828f6200e5a
fuelmain_sha: "858a4ee8336789
Ubuntu, Neutron VLAN, Cinder LVM
1 Controller + Ironic
1 Cinder
1 Compute
Changed in mos: | |
importance: | Undecided → Medium |
Changed in mos: | |
status: | New → Confirmed |
Changed in mos: | |
assignee: | MOS Glance (mos-glance) → Kairat Kushaev (kkushaev) |
Changed in mos: | |
milestone: | 7.0 → 7.0-updates |
So the case in the issue is divided into 2 parts:
1) When we uploaded an image from location the image created successfully (although it is not in real life)
2) When we uploaded an image with copy-from the image was not uploaded successfully and was not created. Because of glance implementation we didn't show an error here to user.
I am proceeding analysis of this bug and will get back with more detailed results.