Ask Your Question

nova image list "resource not found" [closed]

asked 2014-04-01 04:40:00 -0600

somesh gravatar image

updated 2014-04-01 05:07:48 -0600

Anand TS gravatar image

Getting Error, "Resource not found" for nova image list, but glance image list working fine. Unable to get hold of, why this error is happening. Below is the screen shot of the commands which I am executing. is the virtual ip

glance image-list works but nova image list fails. Below is the steps which I am doing.

glance --os-username=admin --os-password=pramati123 --os-tenant-name=admin --os-auth-url= image-list
| ID | Name | Disk Format | Container Format | Size | Status |
| e05f1b25-fa00-498e-b78b-4244c50b33a6 | CirrOS 0.3.1 | qcow2 | bare | 13147648 | active |

Getting "Resource not found error" for nova image-list:

nova --debug --os-username=admin --os-password=pramati123 --os-tenant-name=admin --os-auth-url= image-list

INFO (connectionpool:202) Starting new HTTP connection (1):
DEBUG (connectionpool:296) "GET /v2/323bbce2ceae41f8994333d51c6731a0/images/detail HTTP/1.1" 404 78
RESP: [404] CaseInsensitiveDict({'date': 'Tue, 01 Apr 2014 05:42:58 GMT', 'content-length': '78', 'content-type': 'application/json; charset=UTF-8', 'x-compute-request-id': 'req-78cf77a6-57c7-4f71-9188-780d7767711d'})
RESP BODY: {"itemNotFound": {"message": "The resource could not be found.", "code": 404}}

DEBUG (shell:740) The resource could not be found. (HTTP 404) (Request-ID: req-78cf77a6-57c7-4f71-9188-780d7767711d)
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/novaclient/", line 737, in main
OpenStackComputeShell().main(map(strutils.safe_decode, sys.argv[1:]))
File "/usr/lib/python2.7/dist-packages/novaclient/", line 673, in main
args.func(self.cs, args)
File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/", line 915, in do_image_list
image_list = cs.images.list(limit=limit)
File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/", line 54, in list
return self._list('/images%s%s' % (detail, query), 'images')
File "/usr/lib/python2.7/dist-packages/novaclient/", line 61, in _list
_resp, body = self.api.client.get(url)
File "/usr/lib/python2.7/dist-packages/novaclient/", line 229, in get
return self._cs_request(url, 'GET', **kwargs)
File "/usr/lib/python2.7/dist-packages/novaclient/", line 213, in _cs_request
File "/usr/lib/python2.7/dist-packages/novaclient/", line 195, in _time_request
resp, body = self.request(url, method, **kwargs)
File "/usr/lib/python2.7/dist-packages/novaclient/", line 189, in request
raise exceptions.from_response(resp, body, url, method)
NotFound: The resource could not be found. (HTTP 404) (Request-ID: req-78cf77a6-57c7-4f71-9188-780d7767711d)
ERROR: The resource could not be found. (HTTP 404) (Request-ID: req-78cf77a6-57c7-4f71-9188-780d7767711d)

Unable to get hold of, why this error is happening. Any help will be really appreciated.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by koolhead17
close date 2014-08-10 17:09:35.304397


What version of nova CLI are you using? Besides, I guess, there is something wrong with the nova-api endpoint. The endpoint (internalURL for nova) is v2 ; however the tenant-id parameter is being sent (which is 1.1 specific and not required for compute v2 API) hence the 404 error.

unmesh-gurjar gravatar imageunmesh-gurjar ( 2014-04-01 05:51:21 -0600 )edit

nova version is 2.15.0

As per the suggestion by Anand, after adding the glance server port, this error is gone. So I don't think it was the issue because of that

somesh gravatar imagesomesh ( 2014-04-01 22:47:26 -0600 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2014-04-01 05:31:19 -0600

Anand TS gravatar image


Can you confirm in your /etc/nova/nova.conf , glance host has been specified like this


edit flag offensive delete link more


Thanks a lot, it works !!

somesh gravatar imagesomesh ( 2014-04-01 07:18:54 -0600 )edit

Earlier I had only one controller node, Everything worked fine, But when I added another control node, even glance image list started returning error. Following is the command I executed from control01

glance --os-username=admin --os-password=pramati123 --os-tenant-name=admin --os-auth-url= image-list

Request returned failure status. Invalid OpenStack Identity credentials.

both control node have similar nova conf file. rabbitmq cluster is also created and running successfully. Any idea why this is happening ?

somesh gravatar imagesomesh ( 2014-04-02 01:11:29 -0600 )edit

hello somesh,

Check this link, it might help you.

Anand TS gravatar imageAnand TS ( 2014-04-02 04:26:12 -0600 )edit

All those values are proper

somesh gravatar imagesomesh ( 2014-04-02 07:28:16 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-04-01 04:40:00 -0600

Seen: 3,357 times

Last updated: Apr 01 '14