nova image-list returns 500 error

Bug #1525819 reported by recital
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Elhay Efrat

Bug Description

I am installing liberty release on centos7 with one controller and one compute node. nova service-list and nova endpoints work fine. But, nova image-list returns the following error.

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.HTTPInternalServerError'> (HTTP 500) (Request-ID: ...)

glance image-list works fine.
Pls, help me out.

the nova-api.log is following.

2015-12-14 16:29:56.071 9986 INFO nova.osapi_compute.wsgi.server [req-496b5df0-e28f-486b-8386-96f704433daf 504f2af1b9044a3e97bc69e80daf5809 8de4c51458804564b79932efa364524b - - -] 192.168.219.11 "GET /v2/ HTTP/1.1" status: 200 len: 572 time: 0.0285130
2015-12-14 16:30:01.676 9986 ERROR nova.api.openstack.extensions [req-e65f8242-8d2c-43f1-af66-362f3161b655 504f2af1b9044a3e97bc69e80daf5809 8de4c51458804564b79932efa364524b - - -] Unexpected exception in API method
2015-12-14 16:30:01.676 9986 ERROR nova.api.openstack.extensions Traceback (most recent call last):
2015-12-14 16:30:01.676 9986 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/api/openstack/extensions.py", line 478, in wrapped
2015-12-14 16:30:01.676 9986 ERROR nova.api.openstack.extensions return f(*args, **kwargs)
2015-12-14 16:30:01.676 9986 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/images.py", line 145, in detail
2015-12-14 16:30:01.676 9986 ERROR nova.api.openstack.extensions **page_params)
2015-12-14 16:30:01.676 9986 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/image/api.py", line 68, in get_all
2015-12-14 16:30:01.676 9986 ERROR nova.api.openstack.extensions return session.detail(context, **kwargs)
2015-12-14 16:30:01.676 9986 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 284, in detail
2015-12-14 16:30:01.676 9986 ERROR nova.api.openstack.extensions for image in images:
2015-12-14 16:30:01.676 9986 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/glanceclient/v1/images.py", line 254, in list
2015-12-14 16:30:01.676 9986 ERROR nova.api.openstack.extensions for image in paginate(params, return_request_id):
2015-12-14 16:30:01.676 9986 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/glanceclient/v1/images.py", line 238, in paginate
2015-12-14 16:30:01.676 9986 ERROR nova.api.openstack.extensions images, resp = self._list(url, "images")
2015-12-14 16:30:01.676 9986 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/glanceclient/v1/images.py", line 63, in _list
2015-12-14 16:30:01.676 9986 ERROR nova.api.openstack.extensions resp, body = self.client.get(url)
2015-12-14 16:30:01.676 9986 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/glanceclient/common/http.py", line 280, in get
2015-12-14 16:30:01.676 9986 ERROR nova.api.openstack.extensions return self._request('GET', url, **kwargs)
2015-12-14 16:30:01.676 9986 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/glanceclient/common/http.py", line 272, in _request
2015-12-14 16:30:01.676 9986 ERROR nova.api.openstack.extensions resp, body_iter = self._handle_response(resp)
2015-12-14 16:30:01.676 9986 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/glanceclient/common/http.py", line 93, in _handle_response
2015-12-14 16:30:01.676 9986 ERROR nova.api.openstack.extensions raise exc.from_response(resp, resp.content)
2015-12-14 16:30:01.676 9986 ERROR nova.api.openstack.extensions HTTPInternalServerError: 500 Internal Server Error: The server has either erred or is incapable of performing the requested operation. (HTTP 500)
2015-12-14 16:30:01.676 9986 ERROR nova.api.openstack.extensions
2015-12-14 16:30:01.685 9986 INFO nova.api.openstack.wsgi [req-e65f8242-8d2c-43f1-af66-362f3161b655 504f2af1b9044a3e97bc69e80daf5809 8de4c51458804564b79932efa364524b - - -] HTTP exception thrown: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'glanceclient.exc.HTTPInternalServerError'>
2015-12-14 16:30:01.687 9986 INFO nova.osapi_compute.wsgi.server [req-e65f8242-8d2c-43f1-af66-362f3161b655 504f2af1b9044a3e97bc69e80daf5809 8de4c51458804564b79932efa364524b - - -] 192.168.219.11 "GET /v2/8de4c51458804564b79932efa364524b/images/detail HTTP/1.1" status: 500 len: 445 time: 5.4028652

Revision history for this message
recital (lhs4015) wrote :

nova-api.log file is attached.

Changed in nova:
assignee: nobody → recital (lhs4015)
assignee: recital (lhs4015) → nobody
Revision history for this message
recital (lhs4015) wrote :

glance api.log is attached.

Revision history for this message
recital (lhs4015) wrote :

glance registry.log is attached.

Yaguang Tang (heut2008)
Changed in nova:
status: New → Incomplete
Revision history for this message
Jean-Sébastien Roques (jsroques) wrote :

Hello,

I have the same issue on Ubuntu. I followed the install guide http://docs.openstack.org/liberty/install-guide-ubuntu/

After installing Nova on my compute note, nova image-list return an exception.

glance image-list is working fine :

# glance image-list
+--------------------------------------+--------+
| ID | Name |
+--------------------------------------+--------+
| eace589d-dbcf-49e5-ace0-da82126df691 | cirros |
+--------------------------------------+--------+

Also, #1527925 seems to be the very same issue.

Thank you in anticipation for your help.
JS

Revision history for this message
recital (lhs4015) wrote : Re: [Bug 1525819] Re: nova image-list returns 500 error
Download full text (5.3 KiB)

I solved this issue. pls, refer to the below site.

https://ask.openstack.org/en/question/86111/glance-image-list-is-fine-but-nova-image-list-error/

2015-12-26 1:19 GMT+09:00 Yaguang Tang <email address hidden>:

> ** Changed in: nova
> Status: New => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1525819
>
> Title:
> nova image-list returns 500 error
>
> Status in OpenStack Compute (nova):
> Incomplete
>
> Bug description:
> I am installing liberty release on centos7 with one controller and one
> compute node. nova service-list and nova endpoints work fine. But,
> nova image-list returns the following error.
>
> 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.HTTPInternalServerError'> (HTTP 500)
> (Request-ID: ...)
>
> glance image-list works fine.
> Pls, help me out.
>
> the nova-api.log is following.
>
> 2015-12-14 16:29:56.071 9986 INFO nova.osapi_compute.wsgi.server
> [req-496b5df0-e28f-486b-8386-96f704433daf 504f2af1b9044a3e97bc69e80daf5809
> 8de4c51458804564b79932efa364524b - - -] 192.168.219.11 "GET /v2/ HTTP/1.1"
> status: 200 len: 572 time: 0.0285130
> 2015-12-14 16:30:01.676 9986 ERROR nova.api.openstack.extensions
> [req-e65f8242-8d2c-43f1-af66-362f3161b655 504f2af1b9044a3e97bc69e80daf5809
> 8de4c51458804564b79932efa364524b - - -] Unexpected exception in API method
> 2015-12-14 16:30:01.676 9986 ERROR nova.api.openstack.extensions
> Traceback (most recent call last):
> 2015-12-14 16:30:01.676 9986 ERROR nova.api.openstack.extensions File
> "/usr/lib/python2.7/site-packages/nova/api/openstack/extensions.py", line
> 478, in wrapped
> 2015-12-14 16:30:01.676 9986 ERROR nova.api.openstack.extensions
> return f(*args, **kwargs)
> 2015-12-14 16:30:01.676 9986 ERROR nova.api.openstack.extensions File
> "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/images.py",
> line 145, in detail
> 2015-12-14 16:30:01.676 9986 ERROR nova.api.openstack.extensions
> **page_params)
> 2015-12-14 16:30:01.676 9986 ERROR nova.api.openstack.extensions File
> "/usr/lib/python2.7/site-packages/nova/image/api.py", line 68, in get_all
> 2015-12-14 16:30:01.676 9986 ERROR nova.api.openstack.extensions
> return session.detail(context, **kwargs)
> 2015-12-14 16:30:01.676 9986 ERROR nova.api.openstack.extensions File
> "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 284, in detail
> 2015-12-14 16:30:01.676 9986 ERROR nova.api.openstack.extensions for
> image in images:
> 2015-12-14 16:30:01.676 9986 ERROR nova.api.openstack.extensions File
> "/usr/lib/python2.7/site-packages/glanceclient/v1/images.py", line 254, in
> list
> 2015-12-14 16:30:01.676 9986 ERROR nova.api.openstack.extensions for
> image in paginate(params, return_request_id):
> 2015-12-14 16:30:01.676 9986 ERROR nova.api.openstack.extensions File
> "/usr/lib/python2.7/site-packages/glanceclient/v1/images.py", line 238, in
> paginate
> 2015-12-14 16:30:01.676 9986 ERROR nova.api.openstack.ext...

Read more...

Revision history for this message
recital (lhs4015) wrote :
Download full text (5.9 KiB)

I solved this issue. pls, refer to the below site.

https://ask.openstack.org/en/question/86111/glance-image-list-is-fine-but-nova-image-list-error/

2015-12-26 22:35 GMT+09:00 Jean-Sébastien Roques <<email address hidden>
>:

> Hello,
>
> I have the same issue on Ubuntu. I followed the install guide
> http://docs.openstack.org/liberty/install-guide-ubuntu/
>
> After installing Nova on my compute note, nova image-list return an
> exception.
>
> glance image-list is working fine :
>
> # glance image-list
> +--------------------------------------+--------+
> | ID | Name |
> +--------------------------------------+--------+
> | eace589d-dbcf-49e5-ace0-da82126df691 | cirros |
> +--------------------------------------+--------+
>
> Also, #1527925 seems to be the very same issue.
>
> Thank you in anticipation for your help.
> JS
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1525819
>
> Title:
> nova image-list returns 500 error
>
> Status in OpenStack Compute (nova):
> Incomplete
>
> Bug description:
> I am installing liberty release on centos7 with one controller and one
> compute node. nova service-list and nova endpoints work fine. But,
> nova image-list returns the following error.
>
> 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.HTTPInternalServerError'> (HTTP 500)
> (Request-ID: ...)
>
> glance image-list works fine.
> Pls, help me out.
>
> the nova-api.log is following.
>
> 2015-12-14 16:29:56.071 9986 INFO nova.osapi_compute.wsgi.server
> [req-496b5df0-e28f-486b-8386-96f704433daf 504f2af1b9044a3e97bc69e80daf5809
> 8de4c51458804564b79932efa364524b - - -] 192.168.219.11 "GET /v2/ HTTP/1.1"
> status: 200 len: 572 time: 0.0285130
> 2015-12-14 16:30:01.676 9986 ERROR nova.api.openstack.extensions
> [req-e65f8242-8d2c-43f1-af66-362f3161b655 504f2af1b9044a3e97bc69e80daf5809
> 8de4c51458804564b79932efa364524b - - -] Unexpected exception in API method
> 2015-12-14 16:30:01.676 9986 ERROR nova.api.openstack.extensions
> Traceback (most recent call last):
> 2015-12-14 16:30:01.676 9986 ERROR nova.api.openstack.extensions File
> "/usr/lib/python2.7/site-packages/nova/api/openstack/extensions.py", line
> 478, in wrapped
> 2015-12-14 16:30:01.676 9986 ERROR nova.api.openstack.extensions
> return f(*args, **kwargs)
> 2015-12-14 16:30:01.676 9986 ERROR nova.api.openstack.extensions File
> "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/images.py",
> line 145, in detail
> 2015-12-14 16:30:01.676 9986 ERROR nova.api.openstack.extensions
> **page_params)
> 2015-12-14 16:30:01.676 9986 ERROR nova.api.openstack.extensions File
> "/usr/lib/python2.7/site-packages/nova/image/api.py", line 68, in get_all
> 2015-12-14 16:30:01.676 9986 ERROR nova.api.openstack.extensions
> return session.detail(context, **kwargs)
> 2015-12-14 16:30:01.676 9986 ERROR nova.api.openstack.extensions File
> "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 284, in detail
...

Read more...

Revision history for this message
Jean-Sébastien Roques (jsroques) wrote :

Hello again,

After some more digging... it was a type for the password in glance-registry.conf.

Thanks for the suggestion.
JS

Elhay Efrat (elhayefrat)
Changed in nova:
status: Incomplete → Invalid
assignee: nobody → Elhay Efrat (elhayefrat)
Revision history for this message
Sandor Gonzalez (gsandorx) wrote :

I had the same issue. My problem was that all the configuration that was supposed to be under the "[keystone_authtoken]" section in the glace-registry.conf file, ended up under the "[matchmaker_redis]". I guess I got confused by all the comments in that file. Fixed the config, restarted the glace-registry and glance-api services and then I was able to retrieve the images using the "nova image-list" command.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.