Ask Your Question
0

nova cannot get ceph image in liberty

asked 2016-02-10 11:05:28 -0600

oaudry gravatar image

updated 2016-02-25 15:49:38 -0600

hello

I got a setup on ubuntu 14.04 with liberty and ceph cluster. I can upload images on the ceph cluster with glance and I can list them (glance image-list). Cinder is working fine as I can create volumes and see them with nova ( nova volume-list is working). I just discovered that openstack image list is working too ... But nova image-list give me :

ERROR (ClientException): Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'glanceclient.exc.HTTPUnauthorized'> (HTTP 500) (Request-ID: req-47089312-e5e2-4f45-82fc-98d2593b27f5)

and in the nova-api.log :

2016-02-10 18:00:44.714 9454 ERROR nova.api.openstack.extensions [req-47089312-e5e2-4f45-82fc-98d2593b27f5 08981367be724dd2bd0bbbaa80d41d38 d6226b08de1043bdabe3e057a66a6235 - - -] Unexpected exception in API method
2016-02-10 18:00:44.714 9454 ERROR nova.api.openstack.extensions Traceback (most recent call last):
2016-02-10 18:00:44.714 9454 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/extensions.py", line 478, in wrapped
2016-02-10 18:00:44.714 9454 ERROR nova.api.openstack.extensions     return f(*args, **kwargs)
2016-02-10 18:00:44.714 9454 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/images.py", line 145, in detail
2016-02-10 18:00:44.714 9454 ERROR nova.api.openstack.extensions     **page_params)
2016-02-10 18:00:44.714 9454 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/image/api.py", line 68, in get_all
2016-02-10 18:00:44.714 9454 ERROR nova.api.openstack.extensions     return session.detail(context, **kwargs)
2016-02-10 18:00:44.714 9454 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 284, in detail
2016-02-10 18:00:44.714 9454 ERROR nova.api.openstack.extensions     for image in images:
2016-02-10 18:00:44.714 9454 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/glanceclient/v1/images.py", line 254, in list
2016-02-10 18:00:44.714 9454 ERROR nova.api.openstack.extensions     for image in paginate(params, return_request_id):
2016-02-10 18:00:44.714 9454 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/glanceclient/v1/images.py", line 238, in paginate
2016-02-10 18:00:44.714 9454 ERROR nova.api.openstack.extensions     images, resp = self._list(url, "images")
2016-02-10 18:00:44.714 9454 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/glanceclient/v1/images.py", line 63, in _list
2016-02-10 18:00:44.714 9454 ERROR nova.api.openstack.extensions     resp, body = self.client.get(url)
2016-02-10 18:00:44.714 9454 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 280, in get
2016-02-10 18:00:44.714 9454 ERROR nova.api.openstack.extensions     return self._request('GET', url, **kwargs)
2016-02-10 18:00:44.714 9454 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 272, in _request
2016-02-10 18:00:44.714 9454 ERROR nova.api.openstack.extensions     resp ...
(more)
edit retag flag offensive close merge delete

Comments

I'm getting the same error with CentOS 7. glance image-list works but nova image-list fails with the an HTTP 500 error.

Looks like your logs show "<class 'glanceclient.exc.httpunauthorized'="">

While mine shows "<class 'glanceclient.exc.httpinternalservererror'="">"

tgabtg gravatar imagetgabtg ( 2016-02-10 13:55:29 -0600 )edit

I fixed my issue by disabling SELinux

tgabtg gravatar imagetgabtg ( 2016-02-10 14:11:12 -0600 )edit

no selinux here :(

oaudry gravatar imageoaudry ( 2016-02-11 07:57:20 -0600 )edit

i can't see nova configuration related to ceph in the config file. Double check the docs: link text

Regards

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2016-02-25 15:58:01 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-02-25 23:03:57 -0600

Deya gravatar image

Could you provide more info from the glance log ?

What is the output of the command glance image-list ?

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

2 followers

Stats

Asked: 2016-02-10 11:05:28 -0600

Seen: 183 times

Last updated: Feb 25 '16