Ask Your Question
0

glance image-create return fail:500 Internal Server Error

asked 2016-09-23 04:09:20 -0600

Richard Hong gravatar image

HI Expert: Wher I create a glance image, I get the following error messages: [root@control1 images]# glance -d image-create --name cirros-demo-01 --disk-format raw --container-format bare --size 1 --file cirros-0.3.4-x86_64-disk.raw --is-public True --progress curl -i -X POST -H 'Accept-Encoding: gzip, deflate' -H 'x-image-meta-container_format: bare' -H 'Accept: /' -H 'X-Auth-Token: {SHA1}5557aad8e0a757847ecafce7d73b9f3a6b1a0f43' -H 'x-image-meta-size: 1' -H 'Connection: keep-alive' -H 'x-image-meta-is_public: True' -H 'User-Agent: python-glanceclient' -H 'Content-Type: application/octet-stream' -H 'x-image-meta-disk_format: raw' -H 'x-image-meta-name: cirros-demo-01' http://10.251.144.55:9292/v1/images [=============================>] 100% Request returned failure status 500. Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/glanceclient/shell.py", line 637, in main args.func(client, args) File "/usr/lib/python2.7/site-packages/glanceclient/v1/shell.py", line 232, in do_image_create image = gc.images.create(*fields) File "/usr/lib/python2.7/site-packages/glanceclient/v1/images.py", line 288, in create data=image_data) File "/usr/lib/python2.7/site-packages/glanceclient/common/http.py", line 262, in post return self._request('POST', url, *kwargs) File "/usr/lib/python2.7/site-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>

500 Internal Server Error

Failed to upload image d30d73ae-3c42-48c0-85ff-6a1b21689058

</body> </html> (HTTP 500) <html> <head> <title>500 Internal Server Error</title> </head> <body>

500 Internal Server Error

Failed to upload image d30d73ae-3c42-48c0-85ff-6a1b21689058

</body> </html> (HTTP 500)

And in the log file /var/log/glance/api.log, I got the error log: 2016-09-23 16:28:24.908 21227 ERROR glance.api.v1.upload_utils [-] Failed to upload image 4ab96a9e-476d-499b-8dbf-bfb3b15979af 2016-09-23 16:28:24.908 21227 TRACE glance.api.v1.upload_utils Traceback (most recent call last): 2016-09-23 16:28:24.908 21227 TRACE glance.api.v1.upload_utils File "/usr/lib/python2.7/site-packages/glance/api/v1/upload_utils.py", line 113, in upload_data_to_store 2016-09-23 16:28:24.908 21227 TRACE glance.api.v1.upload_utils context=req.context) 2016-09-23 16:28:24.908 21227 TRACE glance.api.v1.upload_utils File "/usr/lib/python2.7/site-packages/glance_store/backend.py", line 331, in store_add_to_backend 2016-09-23 16:28:24.908 21227 TRACE glance.api.v1.upload_utils context=context) 2016-09-23 16:28:24.908 21227 TRACE glance.api.v1.upload_utils File "/usr/lib/python2.7/site-packages/glance_store/_drivers/rbd.py", line 381, in add 2016-09-23 16:28:24.908 21227 TRACE glance.api.v1.upload_utils self._delete_image(loc.image, loc.snapshot) 2016-09-23 16:28:24.908 21227 TRACE glance.api.v1.upload_utils File "/usr/lib/python2.7/site-packages/glance_store/_drivers/rbd.py", line 287, in _delete_image 2016-09-23 16:28:24.908 21227 TRACE glance.api.v1.upload_utils with conn.open_ioctx(target_pool) as ioctx: 2016-09-23 16:28:24.908 21227 TRACE glance.api.v1.upload_utils File "/usr/lib/python2.7/site-packages/rados.py", line 591, in open_ioctx 2016-09-23 16:28:24.908 21227 TRACE glance.api.v1.upload_utils raise make_ex(ret, "error opening ioctx '%s'" % ioctx_name) 2016-09-23 16:28:24.908 21227 TRACE glance.api.v1.upload_utils ObjectNotFound: error opening ioctx '4ab96a9e-476d-499b-8dbf-bfb3b15979af' 2016-09-23 ...





(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-09-26 01:50:58 -0600

rishikapoor gravatar image

It seems that you may be using CEPH as a backend for Glance...There are some basic requirements for this, make sure that you have set proper permissions in the CEPH keyring. please validate your settings using the below articles:-

http://docs.openstack.org/developer/glance/configuring.html#configuring-the-rbd-storage-backend (http://docs.openstack.org/developer/g...)

https://ask.openstack.org/en/question/78583/setup-ceph-as-a-backend-for-glance/ (https://ask.openstack.org/en/question...)

edit flag offensive delete link more

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: 2016-09-23 04:09:20 -0600

Seen: 800 times

Last updated: Sep 26 '16