Ask Your Question
1

Error: unable to retrieve user list in horizon

asked 2015-12-14 10:58:09 -0500

aksan gravatar image

updated 2015-12-14 12:52:19 -0500

When i login to horizon with admin username and password, go to Identity-> Users or Identity->Projects, I get this: "unable to retrieve user list" and "unable to retrieve project details". But when i do "openstack user list", i can see the list of users and "openstack project list" shows me the list of projects. Also, from admin login , why i don't see other projects? If i have admin access, i should be able to view all the projects of openstack (not its topology,but other projects' details)'. What can be the error? I followed this link to install openstack: http://docs.openstack.org/liberty/ins...

What logs should i see to narrow down to the exact problem?

edit retag flag offensive close merge delete

Comments

do you see any error in keystone.log in /var/log/keystone and /var/log/apache2 ?

vaibhavhyd2014 gravatar imagevaibhavhyd2014 ( 2015-12-14 11:50:15 -0500 )edit

From error.log in apache2 , i can see that horizon is calling keystoneclient. Since, keystoneclient is deprecated , it should use openstack client. This is the error. When i do keystone user-list, i get the same error . But openstack user list works fine. Any suggestions ?

aksan gravatar imageaksan ( 2015-12-14 12:06:46 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
2

answered 2015-12-30 09:31:55 -0500

jmferrer gravatar image

updated 2016-01-15 08:14:42 -0500

FOUND!!!!: Set

OPENSTACK_API_VERSIONS = {
    "data-processing": 1.1,
    "identity": 3,
    "volume": 2,
}

In /etc/openstack-dashboard/local_settings.py

My original post: +++ Same problem:

 2015-12-30 15:12:02.960 20816 DEBUG keystone.middleware.core [req-6f491a9e-9e68-47ca-a798-279faba1a87f
- - - - -] RBAC: auth_context: {'is_delegated_auth': False, 'access_token_id': None, 'user_id': u'91ae78bcb0934dde8da5ca39747d0807', 'roles': [u'admin'], 'trustee_id': None, 'trustor_id': None, 'consumer_id': None, 'token': <KeystoneToken (audit_id=yFY1EATlRv6PHmF6jqFfUg, audit_chain_id=80KavDBlS_eEgTkoWSZfLw) at 0x7f03e9d3d050>, 'project_id': u'2ccb182c404944148e56a349c80886f0', 'trust_id': None} process_request /usr/lib/python2.7/dist-packages/keystone/middleware/core.py:314

Users appear to be correct:

root@test:~# openstack role assignment list
+----------------------------------+----------------------------------+-------+----------------------------------+--------+-----------+
| Role                             | User                             | Group | Project                          | Domain | Inherited |
+----------------------------------+----------------------------------+-------+----------------------------------+--------+-----------+
| bf375df7409b484cbbca81eeea543b20 | 91ae78bcb0934dde8da5ca39747d0807 |       | 2ccb182c404944148e56a349c80886f0 |        | False     |
| 23eee61f60d64ae9a7243474b0f64ead | 87345f14b24a42a3bc74f99644fbbbf8 |       | 7e9188bf2ce94cb3860081d8a2b59322 |        | False     |
+----------------------------------+----------------------------------+-------+----------------------------------+--------+-----------+
root@test:~# openstack user list
+----------------------------------+-------+
| ID                               | Name  |
+----------------------------------+-------+
| 91ae78bcb0934dde8da5ca39747d0807 | admin |
| 87345f14b24a42a3bc74f99644fbbbf8 | demo  |
+----------------------------------+-------+
root@test:~# openstack role list
+----------------------------------+-------+
| ID                               | Name  |
+----------------------------------+-------+
| bf375df7409b484cbbca81eeea543b20 | admin |
| 23eee61f60d64ae9a7243474b0f64ead | user  |
+----------------------------------+-------+
root@test:~# openstack project list
+----------------------------------+---------+
| ID                               | Name    |
+----------------------------------+---------+
| 2ccb182c404944148e56a349c80886f0 | admin   |
| 97f59a9d71a144dab5c0bbe700613b08 | service |
| 7e9188bf2ce94cb3860081d8a2b59322 | demo    |
+----------------------------------+---------+

Any update?

Back to Kilo release?

edit flag offensive delete link more
0

answered 2015-12-14 22:31:41 -0500

Prateek K gravatar image

Keystone is now hosted on apache server and works as a WSGI....but as per the repo and packages keystone also comes with the rest of the stuff so you need to disable keystone :-

Disable the keystone service from starting automatically after installation:

echo "manual" > /etc/init/keystone.override

If you still find issues then you need to configure apache server and also check the endpoints. The endpoints decide where the URL's land to. Follow this page:-

http://docs.openstack.org/kilo/instal...

edit flag offensive delete link more

Comments

echo "manual"> /etc/init/keystone.override . I had already done this. http://docs.openstack.org/liberty/ins...

What i want to know is how do i make sure that horizon make calls through openstack client and not keystone client.

aksan gravatar imageaksan ( 2015-12-14 22:39:34 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2015-12-14 10:58:09 -0500

Seen: 3,444 times

Last updated: Jan 15 '16