glance image-create --location fails to create image in default_store

Bug #1215682 reported by Andrew Woodward
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Invalid
Undecided
Unassigned
Glance Client
Invalid
Undecided
Unassigned

Bug Description

glance image-create --name cirros-5 --container-format bare --disk-format qcow2 --is-public yes --location https://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-disk.img

returns very quickly with
+------------------+--------------------------------------+
| Property | Value |
+------------------+--------------------------------------+
| checksum | 50bdc35edb03a38d91b1b071afb20a3c |
| container_format | bare |
| created_at | 2013-08-23T00:23:32 |
| deleted | False |
| deleted_at | None |
| disk_format | qcow2 |
| id | 2abe4fd2-4d6a-42c0-b041-9fb073fc41af |
| is_public | True |
| min_disk | 0 |
| min_ram | 0 |
| name | cirros-5 |
| owner | baa3187b7df94d9ea5a8a14008fa62f5 |
| protected | False |
| size | 9761280 |
| status | active |
| updated_at | 2013-08-23T00:23:37 |
+------------------+--------------------------------------+

glance log http://pastebin.com/rn7LRtj9

dropping --location and using a local copy of the file creates the file

rbd images ls shows no new uuid

irc log http://pastebin.com/vzp3yGUf

Revision history for this message
Andrew Woodward (xarses) wrote :
Revision history for this message
Andrew Woodward (xarses) wrote :

# rpm -qa | grep -e glance -e ceph
ceph-release-1-0.el6.noarch
ceph-deploy-1.0-0.noarch
python-glanceclient-0.9.0.fuel3.1-mira.2.noarch
libcephfs1-0.61.8-0.el6.x86_64
ceph-0.61.8-0.el6.x86_64
python-glance-2013.1.2.fuel3.1-mira.2.noarch
python-ceph-0.61.8-0.el6.x86_64
openstack-glance-2013.1.2.fuel3.1-mira.2.noarch

Revision history for this message
Andrew Woodward (xarses) wrote :
Revision history for this message
Andrew Woodward (xarses) wrote :

http://pastebin.com/ZwfuGckH --glance-api.log from glance image-create from stdin
http://pastebin.com/YwEEz0xG --glance-api.log from glance image-create with --location

Adding assert to glance/store/rbd.py Store.add() is never touched when passing --location

Revision history for this message
Andrew Woodward (xarses) wrote :

I've confirmed that this is an issue for me with 'switft' and 'file' as the default_store

summary: - glance image-create with rbd --location fails to create image in rdb
+ glance image-create --location fails to create image in default_store
Revision history for this message
Andrew Woodward (xarses) wrote :

location url works using horizon, just not cli

Revision history for this message
Andrew Woodward (xarses) wrote :

Interesting http://paste.openstack.org/show/45501/
Using the same curl as in glance -v -d, there is a 400 error returned complaining about the sizes.

Josh Durgin (jdurgin)
tags: added: ceph rbd
Revision history for this message
Erno Kuvaja (jokke) wrote :

No activity on this bug for over half a year. Would need new verification and/or closure.

tags: added: backend propose-close
removed: ceph rbd
Revision history for this message
Andrew Woodward (xarses) wrote :

confirmed not an issue in ice-house

Changed in glance:
status: New → Invalid
Changed in python-glanceclient:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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