Keystone endpoint-list return not valid URL without version

Bug #1561630 reported by Mykola Stolyarenko
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-mesos
New
Undecided
Unassigned

Bug Description

keystone --debug endpoint-list

Actual behaviour

1) DEBUG:keystoneclient.auth.identity.v2:Making authentication request to http://keystone-api-keystone-openstack-demo.marathon.demo.local:35357/v2.0/tokens

 DEBUG:requests.packages.urllib3.connectionpool:"POST /v2.0/tokens HTTP/1.1" 200 2275

2) REQ: curl -g -i -X GET http://keystone-api-keystone-openstack-demo.marathon.demo.local:35357/endpoints -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}51e2d4a46af9a02ed4df08d6172e1c516ed5a639"

REQ: curl -g -i -X GET http://keystone-api-keystone-openstack-demo.marathon.demo.local:35357 (no v2.0 in URL) !!!

Expected behaviour

REQ: curl -g -i -X GET http://keystone-api-keystone-openstack-demo.marathon.demo.local:35357/v2.0/

root@729011-comp-disk-261:~# keystone --debug endpoint-list
/usr/local/lib/python2.7/dist-packages/keystoneclient/shell.py:64: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.
  'python-keystoneclient.', DeprecationWarning)
/usr/local/lib/python2.7/dist-packages/keystoneclient/v2_0/client.py:145: DeprecationWarning: Constructing an instance of the keystoneclient.v2_0.client.Client class without a session is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 release.
  'the 2.0.0 release.', DeprecationWarning)
/usr/local/lib/python2.7/dist-packages/keystoneclient/v2_0/client.py:147: DeprecationWarning: Using the 'tenant_name' argument is deprecated in version '1.7.0' and will be removed in version '2.0.0', please use the 'project_name' argument instead
  super(Client, self).__init__(**kwargs)
/usr/local/lib/python2.7/dist-packages/debtcollector/renames.py:45: DeprecationWarning: Using the 'tenant_id' argument is deprecated in version '1.7.0' and will be removed in version '2.0.0', please use the 'project_id' argument instead
  return f(*args, **kwargs)
/usr/local/lib/python2.7/dist-packages/keystoneclient/httpclient.py:371: DeprecationWarning: Constructing an HTTPClient instance without using a session is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 release.
  'the 2.0.0 release.', DeprecationWarning)
/usr/local/lib/python2.7/dist-packages/keystoneclient/session.py:140: DeprecationWarning: keystoneclient.session.Session is deprecated as of the 2.1.0 release in favor of keystoneauth1.session.Session. It will be removed in future releases.
  DeprecationWarning)
/usr/local/lib/python2.7/dist-packages/keystoneclient/auth/identity/base.py:56: DeprecationWarning: keystoneclient auth plugins are deprecated as of the 2.1.0 release in favor of keystoneauth1 plugins. They will be removed in future releases.
  'in future releases.', DeprecationWarning)
DEBUG:keystoneclient.auth.identity.v2:Making authentication request to http://keystone-api-keystone-openstack-demo.marathon.demo.local:35357/v2.0/tokens
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): keystone-api-keystone-openstack-demo.marathon.demo.local
DEBUG:requests.packages.urllib3.connectionpool:"POST /v2.0/tokens HTTP/1.1" 200 2275
DEBUG:keystoneclient.session:REQ: curl -g -i -X GET http://keystone-api-keystone-openstack-demo.marathon.demo.local:35357/endpoints -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}51e2d4a46af9a02ed4df08d6172e1c516ed5a639"
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): keystone-api-keystone-openstack-demo.marathon.demo.local
DEBUG:requests.packages.urllib3.connectionpool:"GET /endpoints HTTP/1.1" 404 93
DEBUG:keystoneclient.session: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: Thu, 24 Mar 2016 16:27:07 GMT Content-Type: application/json
RESP BODY: {"error": {"message": "The resource could not be found.", "code": 404, "title": "Not Found"}}

DEBUG:keystoneclient.session:Request returned failure status: 404
The resource could not be found. (HTTP 404)

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.