Ask Your Question
2

nova image-list returns HTTP 500

asked 2015-05-12 19:37:51 -0500

Nik gravatar image

I've just setup a new OpenStack Kilo install and have installed Keystone, Glance and Nova. I'm following the Kilo instructions for the yum trunk, and am at the point of verifying the Nova install.

When I run 'nova image-list' I get a 'ERROR (ClientException): The server has either erred or is incapable of performing the requested operation. (HTTP 500)'

I can successfully get an output from 'glance image-list'.

This is the log output from the nova-api.log:

2015-05-13 12:31:05.942 25382 INFO nova.api.openstack [req-9208d45f-b83c-4760-91ef-1e1acdfcbac5 f4e3ed4cc560466abe340b04dcb989b1 15888f03c6c94a3092accd3f3d0d1775 - - -] http://cont1:8774/v2/15888f03c6c94a3092accd3f3d0d1775/images/detail (http://cont1:8774/v2/15888f03c6c94a30...) returned with HTTP 500 2015-05-13 12:31:05.944 25382 INFO nova.osapi_compute.wsgi.server [req-9208d45f-b83c-4760-91ef-1e1acdfcbac5 f4e3ed4cc560466abe340b04dcb989b1 15888f03c6c94a3092accd3f3d0d1775 - - -] 10.0.0.11 "GET /v2/15888f03c6c94a3092accd3f3d0d1775/images/detail HTTP/1.1" status: 500 len: 359 time: 0.2966590 2015-05-13 12:32:39.449 25382 ERROR nova.api.openstack [req-6d072df3-273c-449e-bd04-f7e4b7abefc1 f4e3ed4cc560466abe340b04dcb989b1 15888f03c6c94a3092accd3f3d0d1775 - - -] Caught error: Error finding address for http://cont1:80/v1/images/detail?is_public=none&limit=20 (http://cont1:80/v1/images/detail?is_p...): ('Connection aborted.', error(111, 'ECONNREFUSED')) 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack Traceback (most recent call last): 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/nova/api/openstack/__init__.py", line 125, in __call__ 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack return req.get_response(self.application) 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/webob/request.py", line 1296, in send 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack application, catch_exc_info=False) 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/webob/request.py", line 1260, in call_application 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack app_iter = application(self.environ, start_response) 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/webob/dec.py", line 144, in __call__ 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack return resp(environ, start_response) 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 634, in __call__ 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack return self._call_app(env, start_response) 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 554, in _call_app 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack return self._app(env, _fake_start_response) 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/webob/dec.py", line 144, in __call__ 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack return resp(environ, start_response) 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/webob/dec.py", line 144, in __call__ 2015-05-13 12:32:39.449 25382 TRACE nova.api.openstack return resp(environ, start_response ... (more)

edit retag flag offensive close merge delete

Comments

I have the same issue. Did you end up figuring this out?

mbfrahry gravatar imagembfrahry ( 2015-05-18 16:26:09 -0500 )edit

Hi,

I am having a similar issue, but I am not getting the "Connection Refused" error. Should I post a new question?

dbblackdiamond gravatar imagedbblackdiamond ( 2015-06-03 11:46:41 -0500 )edit

10 answers

Sort by ยป oldest newest most voted
6

answered 2015-05-20 11:25:15 -0500

Guillaume gravatar image

updated 2015-05-20 11:26:39 -0500

I had the same issue with Kilo and HAProxy setup. glance image-list worked fine but nova image-list gave me the same error as yours.

I solved the problem by setting registry_host value to point to my virtual IP in glance-api.conf :

/etc/glance/glance-api.conf

[DEFAULT]

registry_host = vip-int

Thanks to this post : https://ask.openstack.org/en/question...

edit flag offensive delete link more
0

answered 2015-09-30 10:20:36 -0500

Kalyan gravatar image

Updating registry_host is not the exact solution if you are running glance,nova and identity on the same machine.

The exact solution for the problem is either we have applied wrong configuration settings in glance-registry.conf file or typo errors.

Fix would be :

Systemctl stop openstack-glance-api.service openstack-glance-registry.service

Edit the /etc/glance/glance-registry.conf file and check MySQL connection setting.

Keystone_authentication section.

Paste_policy section.

These configuration options should reflect as per the documentation.

Remove any other configuration options within these sections as they are not required or deprecated in kilo.

After making the necessary changes, source the admin-rc.sh file and issue the command "openstack token issue".

Restart the glance services.

Note: the file permissions on the api and registry files should at least be root:glance for the services to start.

If the above solution did not work, check the glance database table and the records populated in them.

You need to run the command "su /bin/sh -c glance-manage db_sync" to populate the database records.

edit flag offensive delete link more

Comments

I have same issue, followed your steps as above, it didn't fix the issue. You mentioned "If the above solution did not work, check the glance database table and the records populated in them.", how to do it? What is expected to be seen?

Allen Liu gravatar imageAllen Liu ( 2015-10-19 18:15:45 -0500 )edit

Edit /etc/glance/glance-registry.conf file and check the keystone_authtoken section. project_domain_id = default user_domain_id=default project_name=service username=glance password=GLANCE_PASS # which you have assigned for glance user.

we are making mistake here mostly, restart services once done.

Kalyan gravatar imageKalyan ( 2015-11-26 17:58:25 -0500 )edit
0

answered 2016-05-13 09:08:26 -0500

Sk1f gravatar image

I have the same issue

edit flag offensive delete link more
0

answered 2016-06-28 12:59:53 -0500

6543217890meh gravatar image

updated 2016-06-28 13:00:26 -0500

I have had the same issue and updating my config file did not seem to fix the issue (Liberty). I have had good luck with updating nova and glance. Even though I just install them, if I run apt-get upgrade on all of the installed items for glance and nova, they all found items to update. After I did this, my system started working correctly.

edit flag offensive delete link more
0

answered 2015-06-03 12:00:23 -0500

dbblackdiamond gravatar image

This is just a shot in the dark, but a request is not made properly. Here is what I am seeing from your log: - first, nova makes a proper connection to get the image details: http://cont1:8774/v2/15888f03c6c94a3092accd3f3d0d1775/images/detail (http://cont1:8774/v2/15888f03c6c94a30...) - but then for some reason, it switches to the wrong port here: http://cont1:80/v1/images/detail?is_public=none&limit=20 (http://cont1:80/v1/images/detail?is_p...) .

This to me, seems like you have a configuration issue somewhere in the stack to explain the switch between the 2 or I might totally be out to lunch on this.

edit flag offensive delete link more
0

answered 2015-11-04 21:46:35 -0500

JJJ gravatar image

I have the same issue.

edit flag offensive delete link more
0

answered 2015-05-18 22:52:31 -0500

xinwenzeng gravatar image
  1. Try "nova endpoints" to confirm the nova whether is connetcted to keystone.
  2. Try"systemctl status openstack-keystone" to confirm keystone is ok.
  3. Try"netstat -tunlp".Find if 35357 is used by phython?
edit flag offensive delete link more
0

answered 2015-06-04 07:17:55 -0500

Aaron Wong gravatar image

I set a wrong IP for the registry_host and got the same exception, resolved after correction

edit flag offensive delete link more
-1

answered 2015-08-05 00:47:50 -0500

deluz gravatar image

I have the same issue. when I use "glance image-list",glance-api.log print "2015-08-05 11:49:10.456 58895 INFO eventlet.wsgi.server [req-35a7f9c0-719d-4015-aeea-77cef8bf6bf2 44770f81136e48c1b6bf18503c8dff1d af224df67c594c1784fd6d55047fe07c - - -] 192.168.11.133 - - [05/Aug/2015 11:49:10] "GET /v2/schemas/image HTTP/1.1" 200 4086 0.080053",

And for "nova image-list" it is "2015-08-05 11:36:50.365 58895 INFO eventlet.wsgi.server [req-41ece15c-bb25-475c-8572-58254816b9c7 44770f81136e48c1b6bf18503c8dff1d af224df67c594c1784fd6d55047fe07c - - -] 192.168.11.133 - - [05/Aug/2015 11:36:50] "GET /v1/images/detail?sort_key=name&sort_dir=asc&limit=20 HTTP/1.1" 500 139 1.245416".

"glance image-list" uses v2 api but "nova image-list" uses v1. And I found this,https://bugs.launchpad.net/glance/+bug/1420008. Anyone know how to set the version of glance api?

edit flag offensive delete link more

Comments

this is not an answer. If you have a different issue, delete this post and ask a new question. Learn how to use this site https://ask.openstack.org/faq

smaffulli gravatar imagesmaffulli ( 2015-08-05 11:22:32 -0500 )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

2 followers

Stats

Asked: 2015-05-12 19:37:51 -0500

Seen: 5,305 times

Last updated: Jun 28 '16