cloud_admin not work in Horizon
Bug #1553904 reported by
Phelim Xue
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Invalid
|
Undecided
|
Dan Nguyen |
Bug Description
1)
I download and build environment Horizon with Github
https:/
2)
I configure my horizon with URL below
https:/
If my keystone policy use origin policy, it's OKay.
But when I change policy to policy.
the domain/
seems like auth_token not domain scope
3)
In this commit https:/
the problem looks like resolved.
why I got this failure, what do I missed?
tags: | added: keystone |
Changed in horizon: | |
assignee: | nobody → Dan Nguyen (daniel-a-nguyen) |
To post a comment you must log in.
Hello,
This sounds like might be a configuration issue.
Here are things you need to do enable domain support and Keystone v3 in Horizon in devstack.
[Keystone]
1) copy or link the v3 policy file to /etc/keystone/ policy. json
2) edit the 'cloud_admin', set the default_admin_id to 'default'
3) restart keystone
$ sudo service apache2 restart
4) grant the admin user an admin role on the default admin domain 127.0.0. 1:5000/ v3/domains/ default/ users/<ADMIN_ ID>/roles/ <ADMIN_ ROLE_ID>
$ curl -s -H "X-Auth-Token: <ADMIN_TOKEN>" -X PUT http://
--> Note 1: Refer to keystone docs regarding the ADMIN_TOKEN as this has changed a bit recently
--> Note 2: There is also a local_user table in the keystone database now where the admin user is stored
[Horizon]
5) enable the following configs in your local_settings.py
# We recommend you use memcached for development; otherwise after every reload core.cache. backends. memcached. MemcachedCache' , contrib. sessions. backends. cache'
# of the django development server, you will have to login again. To use
# memcached set CACHES to something like
CACHES = {
'default': {
'BACKEND': 'django.
'LOCATION': '127.0.0.1:11211',
}
}
SESSION_ENGINE = 'django.
OPENSTACK_ KEYSTONE_ DEFAULT_ ROLE = "Member" API_VERSIONS = { "identity": 3, } KEYSTONE_ MULTIDOMAIN_ SUPPORT = True KEYSTONE_ DEFAULT_ DOMAIN = 'default' KEYSTONE_ URL = "http:// %s:5000/ v3" % OPENSTACK_HOST policy. json', v3cloudsample. json',
...
OPENSTACK_
OPENSTACK_
OPENSTACK_
OPENSTACK_
...
POLICY_FILES = {
#'identity': 'keystone_
'identity': 'policy.
--> Note: the copy of the policy. v3cloudsample. json should omit this string:
token.is_ admin_project: True
There is an issue here about that https:/ /bugs.launchpad .net/horizon/ +bug/1564851
Give that a shot and let me know if you still run into issues. You also hit me up on irc.