library users can't upload image
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Invalid
|
Undecided
|
Unassigned | ||
Glance Client |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I meet this problem in my devstack in ubuntu 14.04 and ubuntu 15.10.
But, I can't reproduce this problem in Fedora 23.
Environment info:
glance (deployed in 2016-03-11)
glanceclient (clone from git in 2016-03-16)
reproduce step:
1. create a image, but not upload a file
glance image-create --name caoshu.img --disk-format ari --container-format ari
+------
| Property | Value |
+------
| checksum | None |
| container_format | ari |
| created_at | 2016-03-
| disk_format | ari |
| id | 732a8198-
| min_disk | 0 |
| min_ram | 0 |
| name | caoshu.img |
| owner | a97cd3064761458
| protected | False |
| size | None |
| status | queued |
| tags | [] |
| updated_at | 2016-03-
| virtual_size | None |
| visibility | private |
+------
2. use library to upload the image
>>> from glanceclient import Client
>>> glance = Client('2', endpoint='http://
>>> f = open('/
>>> glance.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/
self.
File "/usr/local/
return self._request(
File "/usr/local/
raise exc.Communicati
glanceclient.
Something may be helpful:
A. This bug can't be reproduced with HttpSessionClient, like this:
http://
B. If I use the glance client to do some *other* request to the server-side before the upload request, this can't be reproduced too.This is quite strange but may be the key to solve this problem : (
http://
Thanks in advance for anyone that help me with this issue.
description: | updated |
description: | updated |
Changed in cinder: | |
status: | New → Invalid |
In cinder, when I run this command:
"cinder upload-to-image abc abc-image"
It gets such error[1] message in cinder-volume's log.
[1]: http:// paste.openstack .org/show/ 495266/