Public bug reported: 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://127.0.0.1:9292 \ --os-image-api-version 2 \ image-create --container-format bare \ --disk-format qcow2 --name localfs-image 3) Upload image data. Make sure the image data size > quota glance --os-auth-token "$(cat ~/user-token)" \ --os-image-url http://127.0.0.1:9292 \ --os-image-api-version 2 \ image-upload --file $HOME/testImg.qcow2 $img_id Request returned failure status. HTTPInternalServerError (HTTP 500) 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://127.0.0.1:9292 \ --os-image-api-version 2 \ image-create --container-format bare \ --disk-format qcow2 --name localfs-image 3) curl -i -X PUT -H 'Transfer-Encoding: chunked' \ -H 'X-Auth-Token: $(cat ~/user-token)' \ -H 'Content-Type: application/octet-stream' \ -H 'User-Agent: python-glanceclient' \ --data-binary @$HOME/testImg.qcow2 http://127.0.0.1:9292/v2/images/$img_id/file 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 ** Affects: glance Importance: Undecided Assignee: David Koo (kpublicmail) Status: In Progress ** Changed in: glance Assignee: (unassigned) => David Koo (kpublicmail) ** Changed in: glance Status: New => In Progress ** Description changed: Steps to reproduce: - 1) Configure glance to use local filesystem backend + 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://127.0.0.1:9292 \ - --os-image-api-version 2 \ - image-create --container-format bare \ - --disk-format qcow2 --name localfs-image + --os-image-url http://127.0.0.1:9292 \ + --os-image-api-version 2 \ + image-create --container-format bare \ + --disk-format qcow2 --name localfs-image - 3) glance --os-auth-token "$(cat ~/user-token)" \ - --os-image-url http://127.0.0.1:9292 \ - --os-image-api-version 2 \ - image-upload --file $HOME/testImg.qcow2 $img_id + 3) Upload image data. Make sure the image data size > quota + + glance --os-auth-token "$(cat ~/user-token)" \ + --os-image-url http://127.0.0.1:9292 \ + --os-image-api-version 2 \ + image-upload --file $HOME/testImg.qcow2 $img_id Request returned failure status. HTTPInternalServerError (HTTP 500) - 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://127.0.0.1:9292 \ - --os-image-api-version 2 \ - image-create --container-format bare \ - --disk-format qcow2 --name localfs-image + --os-image-url http://127.0.0.1:9292 \ + --os-image-api-version 2 \ + image-create --container-format bare \ + --disk-format qcow2 --name localfs-image 3) curl -i -X PUT -H 'Transfer-Encoding: chunked' \ - -H 'X-Auth-Token: $(cat ~/user-token)' \ - -H 'Content-Type: application/octet-stream' \ - -H 'User-Agent: python-glanceclient' \ - --data-binary @$HOME/testImg.qcow2 http://127.0.0.1:9292/v2/images/$img_id/file + -H 'X-Auth-Token: $(cat ~/user-token)' \ + -H 'Content-Type: application/octet-stream' \ + -H 'User-Agent: python-glanceclient' \ + --data-binary @$HOME/testImg.qcow2 http://127.0.0.1:9292/v2/images/$img_id/file 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 ** Description changed: Steps to reproduce: - 1) Configure glance to use local filesystem backend, make sure the quota is explicitly configured + 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://127.0.0.1:9292 \ --os-image-api-version 2 \ image-create --container-format bare \ --disk-format qcow2 --name localfs-image 3) Upload image data. Make sure the image data size > quota - glance --os-auth-token "$(cat ~/user-token)" \ + glance --os-auth-token "$(cat ~/user-token)" \ --os-image-url http://127.0.0.1:9292 \ --os-image-api-version 2 \ image-upload --file $HOME/testImg.qcow2 $img_id Request returned failure status. HTTPInternalServerError (HTTP 500) 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://127.0.0.1:9292 \ --os-image-api-version 2 \ image-create --container-format bare \ --disk-format qcow2 --name localfs-image 3) curl -i -X PUT -H 'Transfer-Encoding: chunked' \ -H 'X-Auth-Token: $(cat ~/user-token)' \ -H 'Content-Type: application/octet-stream' \ -H 'User-Agent: python-glanceclient' \ --data-binary @$HOME/testImg.qcow2 http://127.0.0.1:9292/v2/images/$img_id/file 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 -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance. https://bugs.launchpad.net/bugs/1265446 Title: v2 upload returns '500' when quota exceeded on local filesystem storage Status in OpenStack Image Registry and Delivery Service (Glance): In Progress 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://127.0.0.1:9292 \ --os-image-api-version 2 \ image-create --container-format bare \ --disk-format qcow2 --name localfs-image 3) Upload image data. Make sure the image data size > quota glance --os-auth-token "$(cat ~/user-token)" \ --os-image-url http://127.0.0.1:9292 \ --os-image-api-version 2 \ image-upload --file $HOME/testImg.qcow2 $img_id Request returned failure status. HTTPInternalServerError (HTTP 500) 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://127.0.0.1:9292 \ --os-image-api-version 2 \ image-create --container-format bare \ --disk-format qcow2 --name localfs-image 3) curl -i -X PUT -H 'Transfer-Encoding: chunked' \ -H 'X-Auth-Token: $(cat ~/user-token)' \ -H 'Content-Type: application/octet-stream' \ -H 'User-Agent: python-glanceclient' \ --data-binary @$HOME/testImg.qcow2 http://127.0.0.1:9292/v2/images/$img_id/file 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 To manage notifications about this bug go to: https://bugs.launchpad.net/glance/+bug/1265446/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp