Ask Your Question

devstack terminal glance failed to upload image with swift backend

asked 2015-02-25 03:24:21 -0500

mickey gravatar image

updated 2015-02-26 04:04:09 -0500


i try to upload a vmdk file manually that i previously uploaded via SCP.

now its save in the images directory in devstack. but now i try to run "glance image-create". after i enter this i get the following error:

  <title>500 Internal Server Error</title>
  <h1>500 Internal Server Error</h1>
  Failed to upload image c8369743-ff8e-4ba4-8ef8-6befb623710f<br /><br />

</html> (HTTP 500)

somebody got an idea why it fails?

steps: 1. source openrc admin admin 2. glance image-create --name "files/images/Windows\ 8.1-disk1.vmdk" --is-public true --disk-format vmdk --container-format bare --file files/images/Windows\ 8.1-disk1.vmdk

edit: i ran the command with --debug and the output:

curl -i -X POST -H 'Accept-Encoding: gzip, deflate, compress' -H 'x-image-meta-container_format: bare' -H 'Accept: */*' -H 'X-Auth-Token: {SHA1}a1adccfcdd544293352089679d9bcafcf222f883' -H 'x-image-meta-size: 15430844416' -H 'x-image-meta-is_public: True' -H 'User-Agent: python-glanceclient' -H 'Content-Type: application/octet-stream' -H 'x-image-meta-disk_format: vmdk' -H 'x-image-meta-name: Windows-8.1-disk1.vmdk'
Request returned failure status 500.
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/glanceclient/", line 637, in main
    args.func(client, args)
  File "/usr/local/lib/python2.7/dist-packages/glanceclient/v1/", line 232, in do_image_create
    image = gc.images.create(**fields)
  File "/usr/local/lib/python2.7/dist-packages/glanceclient/v1/", line 288, in create
  File "/usr/local/lib/python2.7/dist-packages/glanceclient/common/", line 262, in post
    return self._request('POST', url, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/glanceclient/common/", line 227, in _request
    raise exc.from_response(resp, resp.content)
HTTPInternalServerError: <html>
  <title>500 Internal Server Error</title>
  <h1>500 Internal Server Error</h1>
  Failed to upload image 52c1c675-d6da-4e4d-81f0-4166f9587f1b<br /><br />
edit retag flag offensive close merge delete


Check in the api.log on your Glance server. Hopefully it'll give a much better idea of what the actual error is. "Internal Server Error" isn't terribly helpful. :)

tedlit gravatar imagetedlit ( 2015-02-25 13:23:48 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2015-02-26 03:14:06 -0500

mickey gravatar image

updated 2015-02-26 07:17:10 -0500

image descriptiong.api.log

i just discovered the screens from devstack ^^


i just fixed my own issue. i just realized that the size of my 15gb vmdk file is to big for the default loopback disk from swift.

step 1: (if you enabled tempest on devstack) go to your devstack directory, in my case /devstack inside this directory [cd lib] step 2: nano swift

search file for [tempest]

the default loopback disk size is (6GB) change the size to your needs.

(mine was 60gb)

step 3:

./ ./ ./ again

now you should be able to upload your image without any issue :)

edit flag offensive delete link more


Good to know... duly noted. :)

tedlit gravatar imagetedlit ( 2015-02-26 11:32:01 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-02-25 03:24:21 -0500

Seen: 2,472 times

Last updated: Feb 26 '15