Ask Your Question
0

Nova image-list: 404 Not Found

asked 2015-03-27 08:53:01 -0500

Openstackuser2013 gravatar image

I have this problem on Icehouse installed on Ubuntu 14.04. Nova is unable to find any images. When I try to use nova image-listI get error: ERROR: The resource could not be found. (HTTP 404)

When using --debug option I get this:

REQ: curl -i 'http://controller:8774/v2/24de9442e5194fbea8e32dd994dcd5c6/images/detail' -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: longid"
New session created for: (http://controller:8774)
INFO (connectionpool:259) Starting new HTTP connection (1): controller
DEBUG (connectionpool:390) Setting read timeout to 600.0
DEBUG (connectionpool:430) "GET /v2/24de9442e5194fbea8e32dd994dcd5c6/images/detail HTTP/1.1" 404 78
RESP: [404] CaseInsensitiveDict({'date': 'Fri, 27 Mar 2015 12:57:20 GMT', 'content-length': '78', 'content-type':  application/json; charset=UTF-8', 'x-compute-request-id': 'req-931114b4-e06f-4242-b06c-674798056070'})
RESP BODY: {"itemNotFound": {"message": "The resource could not be found.", "code": 404}}

DEBUG (shell:777) The resource could not be found. (HTTP 404) (Request-ID: req-931114b4-e06f-4242-b06c-674798056070)
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 774, in main
OpenStackComputeShell().main(map(strutils.safe_decode, sys.argv[1:]))
File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 710, in main
args.func(self.cs, args)
File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py", line 905, in do_image_list
image_list = cs.images.list(limit=limit)
File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/images.py", line 69, in list
return self._list('/images%s%s' % (detail, query), 'images')
File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 64, in _list
_resp, body = self.api.client.get(url)
File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 283, in get
return self._cs_request(url, 'GET', **kwargs)
File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 260, in _cs_request
**kwargs)
File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 242, in _time_request
resp, body = self.request(url, method, **kwargs)
File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 236, in request
raise exceptions.from_response(resp, body, url, method)
NotFound: The resource could not be found. (HTTP 404) (Request-ID: req-931114b4-e06f-4242-b06c-674798056070)
ERROR: The resource could not be found. (HTTP 404) (Request-ID: req-931114b4-e06f-4242-b06c-674798056070)

Other Nova-commands work as expected. Glance image-list works as well.

Nova-api log logs these error after trying Nova image-list:

2015-03-27 13:31:21.464 4967 INFO urllib3.connectionpool [-] Starting new HTTP connection (1): controller
2015-03-27 13:31:21.587 4967 INFO urllib3.connectionpool [-] Starting new HTTP connection (1): controller
2015-03-27 13:31:22.114 4967 ERROR glanceclient.common.http [-] Request returned failure status.
2015-03-27 13:31:22.115 4967 ERROR nova.api.openstack [req-5690d8a2-a744-42a7-8e28-e226219be33b cdf45e66185b415d94bfa8c4849a4813 24de9442e5194fbea8e32dd994dcd5c6] Caught error: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /v1/images/detail was not found on this server.</p>
<hr>
<address>Apache/2.4.7 (Ubuntu) Server at controller Port 80</address>
</body></html>
 (HTTP 404)
2015-03-27 13:31:22.115 4967 TRACE nova.api.openstack Traceback (most recent call ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2015-03-27 09:47:02 -0500

If Glance is working just fine, the problem may be Nova configuration.

Check in your /etc/nova/nova.conf, your glance host should be specified like this:

glance_api_servers=<yourglanceserverip>:9292
edit flag offensive delete link more

Comments

That helped a little. Now I nova image-listworks. But trying to create VM fails with instances ending up in ERROR state. In nova-compute log I see the following error: date time 1998 ERROR nova.compute.manager [req-id] Error: Image [id] could not be found.

Openstackuser2013 gravatar imageOpenstackuser2013 ( 2015-03-30 01:58:04 -0500 )edit

OK, so my guess would be something went wrong during the original Glance install that means other services don't know about Glance properly. The change I suggested above probably needs to be made in many places. Maybe run 'sudo grep -ir glance_api_servers /etc/' and see how many entries are valid?

tedlit gravatar imagetedlit ( 2015-03-30 11:27:28 -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

1 follower

Stats

Asked: 2015-03-27 08:53:01 -0500

Seen: 3,456 times

Last updated: Mar 27 '15