Ask Your Question
2

devstack terminal glance failed to upload image with swift backend

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

mickey gravatar image

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

Hi,

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:

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

 </body>
</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' http://148.251.139.207:9292/v1/images
Request returned failure status 500.
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/glanceclient/shell.py", line 637, in main
    args.func(client, args)
  File "/usr/local/lib/python2.7/dist-packages/glanceclient/v1/shell.py", line 232, in do_image_create
    image = gc.images.create(**fields)
  File "/usr/local/lib/python2.7/dist-packages/glanceclient/v1/images.py", line 288, in create
    data=image_data)
  File "/usr/local/lib/python2.7/dist-packages/glanceclient/common/http.py", line 262, in post
    return self._request('POST', url, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/glanceclient/common/http.py", line 227, in _request
    raise exc.from_response(resp, resp.content)
HTTPInternalServerError: <html>
 <head>
  <title>500 Internal Server Error</title>
 </head>
 <body>
  <h1>500 Internal Server Error</h1>
  Failed to upload image 52c1c675-d6da-4e4d-81f0-4166f9587f1b<br /><br />
edit retag flag offensive close merge delete

Comments

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 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

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

mickey gravatar image

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

image descriptiong.api.log

i just discovered the screens from devstack ^^

EDIT:: FIXED!!

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:

./unstack.sh ./clean.sh ./stack.sh again

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

edit flag offensive delete link more

Comments

Good to know... duly noted. :)

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 2,419 times

Last updated: Feb 26 '15