Ask Your Question

Revision history [back]

openstack image list: The resource could not be found. (HTTP 404)

I am new on openstack and currently trying to configuring it. As of now I have installed only the identity and glance service. So if I run "openstack user list" or "openstack service list" it's run fine But when I'll run "openstack image list" I get the error "The resource could not be found. (HTTP 404) (Request-ID: req-bb96b52d-0fc0-4f1c-8e2f-8450ed134451)".

Following is the --debug output for better understanding this issue.

root@controller:~# openstack --debug image list START with options: ['--debug', 'image', 'list'] options: Namespace(access_token_endpoint='', auth_type='', auth_url='', cacert='', client_id='', client_secret='', cloud='', debug=True, default_domain='default', deferred_help=False, domain_id='', domain_name='', endpoint='', identity_provider='', identity_provider_url='', insecure=None, interface='', log_file=None, os_compute_api_version='', os_identity_api_version='3', os_image_api_version='', os_network_api_version='', os_object_api_version='', os_project_id=None, os_project_name=None, os_volume_api_version='', password='', project_domain_id='', project_domain_name='', project_id='', project_name='', protocol='', region_name='', scope='', service_provider_endpoint='', timing=False, token='password1', trust_id='', url='http://controller:35357/v3', user_domain_id='', user_domain_name='', user_id='', username='', verbose_level=3, verify=None) defaults: {'auth_type': 'token_endpoint', 'compute_api_version': '2', 'database_api_version': '1.0', 'api_timeout': None, 'baremetal_api_version': '1', 'cacert': None, 'image_api_use_tasks': False, 'floating_ip_source': 'neutron', 'key': None, 'interface': None, 'network_api_version': '2', 'image_format': 'qcow2', 'object_api_version': '1', 'image_api_version': '1', 'verify': True, 'identity_api_version': '2', 'volume_api_version': '1', 'cert': None, 'secgroup_source': 'neutron', 'dns_api_version': '2', 'disable_vendor_agent': {}} cloud cfg: {'auth_type': 'token_endpoint', 'compute_api_version': '2', 'database_api_version': '1.0', 'interface': None, 'network_api_version': '2', 'image_format': 'qcow2', 'object_api_version': '1', 'image_api_version': '1', 'verify': True, 'timing': False, 'dns_api_version': '2', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, 'baremetal_api_version': '1', 'auth': {'url': 'http://controller:35357/v3', 'token': 'password1'}, 'default_domain': 'default', 'image_api_use_tasks': False, 'floating_ip_source': 'neutron', 'key': None, 'cacert': None, 'deferred_help': False, 'identity_api_version': '3', 'volume_api_version': '1', 'cert': None, 'secgroup_source': 'neutron', 'debug': True, 'disable_vendor_agent': {}} compute API version 2, cmd group openstack.compute.v2 network API version 2, cmd group openstack.network.v2 image API version 1, cmd group openstack.image.v1 volume API version 1, cmd group openstack.volume.v1 identity API version 3, cmd group openstack.identity.v3 object_store API version 1, cmd group openstack.object_store.v1 command: image list -> openstackclient.image.v1.image.ListImage Auth plugin token_endpoint selected auth_type: token_endpoint Using auth plugin: token_endpoint Using parameters {'url': 'http://controller:35357/v3', 'token': 'password1'} Get auth_ref take_action(Namespace(columns=[], formatter='table', long=False, max_width=0, page_size=None, private=False, property=None, public=False, quote_mode='nonnumeric', shared=False, sort=None)) Instantiating image client: <class 'glanceclient.v1.client.client'=""> Auth plugin token_endpoint selected auth_type: token_endpoint Using auth plugin: token_endpoint Using parameters {'url': 'http://controller:35357/v3', 'token': 'password1'} Get auth_ref Instantiating image api: <class 'openstackclient.api.image_v1.apiv1'=""> Auth plugin token_endpoint selected auth_type: token_endpoint Using auth plugin: token_endpoint Using parameters {'url': 'http://controller:35357/v3', 'token': 'password1'} Get auth_ref REQ: curl -g -i -X GET http://controller:35357/v3/v1/images -H "User-Agent: python-openstackclient" -H "X-Auth-Token: {SHA1}e38ad214943daad1d64c102faec29de4afe9da3d" Starting new HTTP connection (1): controller "GET /v3/v1/images HTTP/1.1" 404 93 RESP: [404] Content-Length: 93 Vary: X-Auth-Token Keep-Alive: timeout=5, max=100 Server: Apache/2.4.7 (Ubuntu) Connection: Keep-Alive Date: Sun, 14 Oct 2018 23:24:52 GMT x-openstack-request-id: req-03fc8ad2-c2fc-48f7-9da7-b52f04e7494d Content-Type: application/json X-Distribution: Ubuntu RESP BODY: {"error": {"message": "The resource could not be found.", "code": 404, "title": "Not Found"}}

Request returned failure status: 404 The resource could not be found. (HTTP 404) (Request-ID: req-03fc8ad2-c2fc-48f7-9da7-b52f04e7494d) Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 374, in run_subcommand result = cmd.run(parsed_args) File "/usr/lib/python2.7/dist-packages/cliff/display.py", line 92, in run column_names, data = self.take_action(parsed_args) File "/usr/lib/python2.7/dist-packages/openstackclient/image/v1/image.py", line 391, in take_action page = image_client.api.image_list(marker=marker, *kwargs) File "/usr/lib/python2.7/dist-packages/openstackclient/api/image_v1.py", line 66, in image_list image_list = self.list(url, *filter)['images'] File "/usr/lib/python2.7/dist-packages/openstackclient/api/api.py", line 196, in list params=params, File "/usr/lib/python2.7/dist-packages/openstackclient/api/api.py", line 82, in _request return session.request(url, method, *kwargs) File "/usr/lib/python2.7/dist-packages/openstackclient/common/session.py", line 40, in request resp = super(TimingSession, self).request(url, method, *kwargs) File "/usr/lib/python2.7/dist-packages/keystoneclient/utils.py", line 337, in inner return func(args, *kwargs) File "/usr/lib/python2.7/dist-packages/keystoneclient/session.py", line 401, in request raise exceptions.from_response(resp, method, url) NotFound: The resource could not be found. (HTTP 404) (Request-ID: req-03fc8ad2-c2fc-48f7-9da7-b52f04e7494d) clean_up ListImage: The resource could not be found. (HTTP 404) (Request-ID: req-03fc8ad2-c2fc-48f7-9da7-b52f04e7494d) Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/openstackclient/shell.py", line 108, in run ret_val = super(OpenStackShell, self).run(argv) File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 255, in run result = self.run_subcommand(remainder) File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 374, in run_subcommand result = cmd.run(parsed_args) File "/usr/lib/python2.7/dist-packages/cliff/display.py", line 92, in run column_names, data = self.take_action(parsed_args) File "/usr/lib/python2.7/dist-packages/openstackclient/image/v1/image.py", line 391, in take_action page = image_client.api.image_list(marker=marker, *kwargs) File "/usr/lib/python2.7/dist-packages/openstackclient/api/image_v1.py", line 66, in image_list image_list = self.list(url, *filter)['images'] File "/usr/lib/python2.7/dist-packages/openstackclient/api/api.py", line 196, in list params=params, File "/usr/lib/python2.7/dist-packages/openstackclient/api/api.py", line 82, in _request return session.request(url, method, *kwargs) File "/usr/lib/python2.7/dist-packages/openstackclient/common/session.py", line 40, in request resp = super(TimingSession, self).request(url, method, *kwargs) File "/usr/lib/python2.7/dist-packages/keystoneclient/utils.py", line 337, in inner return func(args, *kwargs) File "/usr/lib/python2.7/dist-packages/keystoneclient/session.py", line 401, in request raise exceptions.from_response(resp, method, url) NotFound: The resource could not be found. (HTTP 404) (Request-ID: req-03fc8ad2-c2fc-48f7-9da7-b52f04e7494d)

END return value: 1 root@controller:~#