Image fails to upload via dashboard, works via command-line client
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
When trying to upload an image via the dashboard, I get this backtrace in glance's api log:
2013-01-14 14:10:22 1035 ERROR glance.
File "/usr/lib/
image_
File "/usr/lib/
data = image_file.
AttributeError: 'CooperativeReader' object has no attribute 'read'
This looks very similar to bug #1039212, except I'm using the rbd store from what I can tell (I deployed this using a charm):
/etc/glance/
I'm using glance 2012.2-
*** 2012.2-
500 http://
This was deployed using the charm lp:~charmers/charms/precise/glance/trunk
I can upload the same image via the command line tool (note: I used the wrong --name, but the upload worked):
$ time glance image-create --name precise-
4-x86_64-disk.img --disk-format qcow2 --is-public True
+------
| Property | Value |
+------
| checksum | c32b60592301c1c
| container_format | bare |
| created_at | 2013-01-14T15:28:34 |
| deleted | False |
| deleted_at | None |
| disk_format | qcow2 |
| id | 9a940793-
| is_public | True |
| min_disk | 0 |
| min_ram | 0 |
| name | precise-
| owner | None |
| protected | False |
| size | 13118976 |
| status | active |
| updated_at | 2013-01-14T15:28:35 |
+------
real 0m1.237s
(...)
$ glance image-list
+------
| ID | Name | Disk Format | Container Format | Size | Status |
+------
| 5b147254-
| 9a940793-
+------
I believe this is fixed in stable/folsom by commit 91aaa487. Can you verify this?