horizon issue with connection to keystone

Bug #1585983 reported by Vladimir
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
New
Undecided
Unassigned
OpenStack Identity (keystone)
New
Undecided
Unassigned
devstack
New
Undecided
Unassigned

Bug Description

Hello.

I have fresh installation by devstack.
When I try to access the Users or Projects panels I get an error:

Error: Unable to retrieve project list.

I've in local_settings.py:

OPENSTACK_API_VERSIONS={"identity":3}
OPENSTACK_KEYSTONE_URL="http://192.168.100.56/identity/v3"

I tried to change:

OPENSTACK_API_VERSIONS={"identity":2}
OPENSTACK_KEYSTONE_URL="http://192.168.100.56/identity/v2"

or:
OPENSTACK_API_VERSIONS={"identity":3}
OPENSTACK_KEYSTONE_URL = "http://192.168.100.56:35357/v3"

but all time getting same error in horizon.log:

2016-05-26 10:10:10.271844 DEBUG:keystoneauth.session:REQ: curl -g -i -X GET http://192.168.100.56/identity/users/12d3903866c04c03867014b46405549b/projects -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}3a82a8e5488a184982dda25814ae171bb25c4382"
2016-05-26 10:10:10.275675 DEBUG:keystoneauth.session:RESP: [404] Date: Thu, 26 May 2016 10:10:10 GMT Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips mod_wsgi/3.4 Python/2.7.5 Vary: X-Auth-Token Content-Length: 93 Keep-Alive: timeout=5, max=100 Connection: Keep-Alive Content-Type: application/json
2016-05-26 10:10:10.275699 RESP BODY: {"error": {"message": "The resource could not be found.", "code": 404, "title": "Not Found"}}

Revision history for this message
Andreas Scheuring (andreas-scheuring) wrote :

Added keystone & horizon to the bugreport, to get additional attendance to this!

A colleague and myself both ran into this issue today, independent from each other.

The local_settings.py contains the following configs:

OPENSTACK_KEYSTONE_DEFAULT_ROLE="Member"
OPENSTACK_HOST="9.152.151.115"
OPENSTACK_API_VERSIONS={"identity":3}
OPENSTACK_KEYSTONE_URL="http://9.152.151.115:5000/identity/v3"

Via the commandline client, everything works fine, but it is using some other URL: http://9.152.151.115:5000/v2.0
Probably as this is specified in the openrc file

$ openstack endpoint show keystone
+--------------+----------------------------------------+
| Field | Value |
+--------------+----------------------------------------+
| adminurl | http://9.152.151.115/identity_v2_admin |
| enabled | True |
| id | dbd1484befcd4dd09fe09948600434ae |
| internalurl | http://9.152.151.115/identity |
| publicurl | http://9.152.151.115/identity |
| region | RegionOne |
| service_id | 25f0917040e749f98fe4d7df380ef5bb |
| service_name | keystone |
| service_type | identity |
+--------------+----------------------------------------+

Revision history for this message
Steve Martinelli (stevemar) wrote :
Revision history for this message
Andreas Scheuring (andreas-scheuring) wrote :
Download full text (3.3 KiB)

Yeah this seems to be exactly the same issue!

For completeness, this is my stacktrace:

2016-05-30 13:35:09.485286 DEBUG:keystoneauth.session:REQ: curl -g -i -X GET http://9.152.151.115/identity/users/a24a98675a564fe4acd82cee9236cfe6/projects -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}f8e44847ba7084a0586ca06efa10fb3cf2c24c08"
2016-05-30 13:35:15.016479 DEBUG:keystoneauth.session:RESP: [404] Date: Mon, 30 May 2016 13:35:09 GMT Server: Apache/2.4.7 (Ubuntu) Vary: X-Auth-Token Content-Length: 93 Keep-Alive: timeout=5, max=100 Connection: Keep-Alive Content-Type: application/json
2016-05-30 13:35:15.016755 RESP BODY: {"error": {"message": "The resource could not be found.", "code": 404, "title": "Not Found"}}
2016-05-30 13:35:15.016827
2016-05-30 13:35:15.017006 DEBUG:keystoneauth.session:Request returned failure status: 404
2016-05-30 13:35:15.018954 Unable to retrieve project list.
2016-05-30 13:35:15.019055 Traceback (most recent call last):
2016-05-30 13:35:15.019124 File "/usr/local/lib/python2.7/dist-packages/openstack_auth/user.py", line 314, in authorized_tenants
2016-05-30 13:35:15.019191 is_federated=self.is_federated)
2016-05-30 13:35:15.019264 File "/usr/local/lib/python2.7/dist-packages/openstack_auth/utils.py", line 325, in get_project_list
2016-05-30 13:35:15.019333 projects = client.projects.list(user=kwargs.get('user_id'))
2016-05-30 13:35:15.019401 File "/usr/local/lib/python2.7/dist-packages/positional/__init__.py", line 101, in inner
2016-05-30 13:35:15.019500 return wrapped(*args, **kwargs)
2016-05-30 13:35:15.019633 File "/usr/local/lib/python2.7/dist-packages/keystoneclient/v3/projects.py", line 108, in list
2016-05-30 13:35:15.019714 **kwargs)
2016-05-30 13:35:15.019800 File "/usr/local/lib/python2.7/dist-packages/keystoneclient/base.py", line 74, in func
2016-05-30 13:35:15.019873 return f(*args, **new_kwargs)
2016-05-30 13:35:15.019949 File "/usr/local/lib/python2.7/dist-packages/keystoneclient/base.py", line 386, in list
2016-05-30 13:35:15.020024 self.collection_key)
2016-05-30 13:35:15.020090 File "/usr/local/lib/python2.7/dist-packages/keystoneclient/base.py", line 124, in _list
2016-05-30 13:35:15.020156 resp, body = self.client.get(url, **kwargs)
2016-05-30 13:35:15.020221 File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/adapter.py", line 178, in get
2016-05-30 13:35:15.020340 return self.request(url, 'GET', **kwargs)
2016-05-30 13:35:15.020441 File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/adapter.py", line 335, in request
2016-05-30 13:35:15.020513 resp = super(LegacyJsonAdapter, self).request(*args, **kwargs)
2016-05-30 13:35:15.020596 File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/adapter.py", line 103, in request
2016-05-30 13:35:15.020666 return self.session.request(url, method, **kwargs)
2016-05-30 13:35:15.020731 File "/usr/local/lib/python2.7/dist-packages/positional/__init__.py", line 101, in inner
2016-05-30 13:35:15.020798 return wrapped(*args, **kwargs)
2016-05-30 13:35:15.020863 File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py...

Read more...

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.