openstack image list fires Not Found

Bug #1589762 reported by Jeffrey Guan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Invalid
Undecided
Unassigned

Bug Description

Hi All,

"openstack image list" not work well.

root@orch-ubuntu:~/101412/Installation# openstack image list
Not Found (HTTP 404) (Request-ID: req-req-4affecb4-8180-41e3-8af7-772b0805478f)

root@orch-ubuntu:~/101412/Installation# openstack --debug image list
START with options: ['--debug', 'image', 'list']
options: Namespace(access_token_endpoint='', auth_type='', auth_url='http://135.111.100.5:5000/v2.0', cacert='', cert='', client_id='', client_secret='***', cloud='', debug=True, default_domain='default', deferred_help=False, domain_id='', domain_name='', enable_beta_commands=False, endpoint='', identity_provider='', insecure=None, interface='', key='', log_file=None, os_compute_api_version='', os_identity_api_version='', os_image_api_version='', os_network_api_version='', os_object_api_version='', os_orchestration_api_version='1', os_project_id=None, os_project_name=None, os_volume_api_version='', password='***', project_domain_id='', project_domain_name='', project_id='baefeeea38b64b2e9a14a141c57267a3', project_name='110-CTS', protocol='', region_name='RegionOne', scope='', timing=False, token='***', trust_id='', url='', user_domain_id='', user_domain_name='', user_id='', username='110-CTS-user1', verbose_level=3, verify=None)
defaults: {u'auth_type': 'password', u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', 'api_timeout': None, u'baremetal_api_version': u'1', u'image_api_version': u'2', 'cacert': None, u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': u'1', u'interface': None, u'network_api_version': u'2', u'image_format': u'qcow2', u'key_manager_api_version': u'v1', u'metering_api_version': u'2', 'verify': True, u'identity_api_version': u'2.0', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', u'container_api_version': u'1', u'dns_api_version': u'2', u'object_store_api_version': u'1', u'disable_vendor_agent': {}}
cloud cfg: {'auth_type': 'password', u'compute_api_version': u'2', u'orchestration_api_version': '1', u'database_api_version': u'1.0', 'timing': False, u'network_api_version': u'2', u'image_format': u'qcow2', 'networks': [], u'image_api_version': u'2', 'verify': True, u'secgroup_source': u'neutron', u'dns_api_version': u'2', u'object_store_api_version': u'1', 'verbose_level': 3, 'region_name': 'RegionOne', 'api_timeout': None, u'baremetal_api_version': u'1', 'auth': {'username': '110-CTS-user1', 'project_id': 'baefeeea38b64b2e9a14a141c57267a3', 'project_name': '110-CTS', 'password': '***', 'auth_url': 'http://135.111.100.5:5000/v2.0'}, 'default_domain': 'default', u'container_api_version': u'1', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', 'key': None, u'interface': None, 'cacert': None, u'key_manager_api_version': u'v1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': u'2.0', u'volume_api_version': u'2', 'cert': None, 'enable_beta_commands': False, 'debug': True, u'disable_vendor_agent': {}}
compute API version 2, cmd group openstack.compute.v2
network API version 2, cmd group openstack.network.v2
image API version 2, cmd group openstack.image.v2
volume API version 2, cmd group openstack.volume.v2
identity API version 2.0, cmd group openstack.identity.v2
object_store API version 1, cmd group openstack.object_store.v1
orchestration API version 1, cmd group openstack.orchestration.v1
command: image list -> openstackclient.image.v2.image.ListImage
Auth plugin password selected
auth_type: password
Using auth plugin: password
Using parameters {'username': '110-CTS-user1', 'password': '***', 'project_name': '110-CTS', 'project_id': 'baefeeea38b64b2e9a14a141c57267a3', 'auth_url': 'http://135.111.100.5:5000/v2.0'}
Get auth_ref
REQ: curl -g -i -X GET http://135.111.100.5:5000/v2.0 -H "Accept: application/json" -H "User-Agent: python-openstackclient keystoneauth1/2.7.0 python-requests/2.10.0 CPython/2.7.3"
Starting new HTTP connection (1): global.proxy.alcatel-lucent.com
"GET http://135.111.100.5:5000/v2.0 HTTP/1.1" 200 339
RESP: [200] Vary: X-Auth-Token Content-Type: application/json Content-Length: 339 X-Openstack-Request-Id: req-3b67e302-b102-454a-8a51-c625ab91709a Date: Tue, 07 Jun 2016 02:07:21 GMT Connection: Keep-Alive
RESP BODY: {"version": {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}], "id": "v2.0", "links": [{"href": "http://135.111.100.5:5000/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}}

Making authentication request to http://135.111.100.5:5000/v2.0/tokens
"POST http://135.111.100.5:5000/v2.0/tokens HTTP/1.1" 200 4684
run(Namespace(columns=[], formatter='table', limit=None, long=False, marker=None, max_width=0, noindent=False, page_size=None, private=False, property=None, public=False, quote_mode='nonnumeric', shared=False, sort=None))
Instantiating image client: <class 'glanceclient.v2.client.Client'>
Making authentication request to http://135.111.100.5:5000/v2.0/tokens
"POST http://135.111.100.5:5000/v2.0/tokens HTTP/1.1" 200 4684
Instantiating image api: <class 'openstackclient.api.image_v2.APIv2'>
REQ: curl -g -i -X GET http://135.111.100.5:9292/v1/v2/images -H "User-Agent: python-openstackclient keystoneauth1/2.7.0 python-requests/2.10.0 CPython/2.7.3" -H "X-Auth-Token: {SHA1}c5516ea85115da2d12cf10f21147be11853be659"
"GET http://135.111.100.5:9292/v1/v2/images HTTP/1.1" 404 154
RESP: [404] Content-Length: 154 Content-Type: text/html; charset=UTF-8 X-Openstack-Request-Id: req-req-a00904ba-3ca6-4a8d-b116-8ede6f22dd30 Date: Tue, 07 Jun 2016 02:07:21 GMT Connection: Keep-Alive
RESP BODY: <html>
 <head>
  <title>404 Not Found</title>
 </head>
 <body>
  <h1>404 Not Found</h1>
  The resource could not be found.<br /><br />

 </body>
</html>

Request returned failure status: 404
Not Found (HTTP 404) (Request-ID: req-req-a00904ba-3ca6-4a8d-b116-8ede6f22dd30)
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/cliff/app.py", line 346, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/local/lib/python2.7/dist-packages/openstackclient/common/command.py", line 38, in run
    return super(Command, self).run(parsed_args)
  File "/usr/local/lib/python2.7/dist-packages/cliff/display.py", line 79, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/local/lib/python2.7/dist-packages/openstackclient/image/v2/image.py", line 500, in take_action
    data = image_client.api.image_list(**kwargs)
  File "/usr/local/lib/python2.7/dist-packages/openstackclient/api/image_v2.py", line 74, in image_list
    return self.list(url, **filter)['images']
  File "/usr/local/lib/python2.7/dist-packages/openstackclient/api/api.py", line 197, in list
    params=params,
  File "/usr/local/lib/python2.7/dist-packages/openstackclient/api/api.py", line 83, in _request
    return session.request(url, method, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/openstackclient/common/session.py", line 40, in request
    resp = super(TimingSession, self).request(url, method, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/positional/__init__.py", line 101, in inner
    return wrapped(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py", line 487, in request
    raise exceptions.from_response(resp, method, url)
NotFound: Not Found (HTTP 404) (Request-ID: req-req-a00904ba-3ca6-4a8d-b116-8ede6f22dd30)
clean_up ListImage: Not Found (HTTP 404) (Request-ID: req-req-a00904ba-3ca6-4a8d-b116-8ede6f22dd30)
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/openstackclient/shell.py", line 119, in run
    ret_val = super(OpenStackShell, self).run(argv)
  File "/usr/local/lib/python2.7/dist-packages/cliff/app.py", line 226, in run
    result = self.run_subcommand(remainder)
  File "/usr/local/lib/python2.7/dist-packages/openstackclient/shell.py", line 164, in run_subcommand
    ret_value = super(OpenStackShell, self).run_subcommand(argv)
  File "/usr/local/lib/python2.7/dist-packages/cliff/app.py", line 346, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/local/lib/python2.7/dist-packages/openstackclient/common/command.py", line 38, in run
    return super(Command, self).run(parsed_args)
  File "/usr/local/lib/python2.7/dist-packages/cliff/display.py", line 79, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/local/lib/python2.7/dist-packages/openstackclient/image/v2/image.py", line 500, in take_action
    data = image_client.api.image_list(**kwargs)
  File "/usr/local/lib/python2.7/dist-packages/openstackclient/api/image_v2.py", line 74, in image_list
    return self.list(url, **filter)['images']
  File "/usr/local/lib/python2.7/dist-packages/openstackclient/api/api.py", line 197, in list
    params=params,
  File "/usr/local/lib/python2.7/dist-packages/openstackclient/api/api.py", line 83, in _request
    return session.request(url, method, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/openstackclient/common/session.py", line 40, in request
    resp = super(TimingSession, self).request(url, method, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/positional/__init__.py", line 101, in inner
    return wrapped(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py", line 487, in request
    raise exceptions.from_response(resp, method, url)
NotFound: Not Found (HTTP 404) (Request-ID: req-req-a00904ba-3ca6-4a8d-b116-8ede6f22dd30)

END return value: 1

Revision history for this message
QiangTang (qtang) wrote :

Does this issue still alive now or more details can be supplied?

The image list works fine on my ENV.

Revision history for this message
Jeffrey Guan (double12gzh) wrote :

I have no environment to test this command now.

Revision history for this message
Steve Martinelli (stevemar) wrote :

Looks like your image list request is going to:

  GET http://135.111.100.5:9292/v1/v2/images

which results in a 404; what do your image endpoints look like?

Changed in python-openstackclient:
status: New → Incomplete
Dean Troyer (dtroyer)
Changed in python-openstackclient:
status: Incomplete → Invalid
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.