v2 upload returns '500' when quota exceeded on local filesystem storage
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Medium
|
David Koo |
Bug Description
Steps to reproduce:
1) Configure glance to use local filesystem backend, make sure the quota is explicitly configured.
2) glance --os-auth-token "$(cat ~/user-token)" \
--os-image-url http://
--os-
image-create --container-format bare \
3) Upload image data. Make sure the image data size > quota
glance --os-auth-token "$(cat ~/user-token)" \
--os-image-url http://
--os-
image-upload --file $HOME/testImg.qcow2 $img_id
Request returned failure status.
HTTPInternalSer
Same thing happens if you use curl:
1) Configure glance to use local filesystem backend
2) glance --os-auth-token "$(cat ~/user-token)" \
--os-image-url http://
--os-
image-create --container-format bare \
3) curl -i -X PUT -H 'Transfer-Encoding: chunked' \
-H 'X-Auth-Token: $(cat ~/user-token)' \
-H 'Content-Type: application/
-H 'User-Agent: python-
--data-binary @$HOME/
HTTP/1.1 100 Continue
HTTP/1.1 500 Internal Server Error
Content-Type: text/plain
Content-Length: 0
Date: Thu, 02 Jan 2014 07:27:26 GMT
Connection: close
Changed in glance: | |
assignee: | nobody → David Koo (kpublicmail) |
status: | New → In Progress |
description: | updated |
description: | updated |
Changed in glance: | |
importance: | Undecided → Medium |
Changed in glance: | |
milestone: | none → icehouse-2 |
status: | Fix Committed → Fix Released |
Changed in glance: | |
milestone: | icehouse-2 → 2014.1 |
Fix proposed to branch: master /review. openstack. org/64840
Review: https:/