yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #55543
[Bug 1494287] Re: Urls in AVAILABLE_REGIONS setting fail to match against Keystone API endpoint in catalog
I believe this was fixed by a d_o_a change previously.
** Changed in: horizon
Assignee: Daniel Park (daniepar) => (unassigned)
** Changed in: horizon
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1494287
Title:
Urls in AVAILABLE_REGIONS setting fail to match against Keystone API
endpoint in catalog
Status in OpenStack Dashboard (Horizon):
Fix Released
Bug description:
The problem is that keystone endpoint urls from AVAILABLE_REGIONS
settings has suffix defining which keystone version should be used,
and that version does not always match with the version inside the url
returned from keystone catalog.
More concrete example (local_settings.py snippet):
OPENSTACK_API_VERSIONS = {
"data-processing": 1.1,
"identity": 3,
"volume": 2,
}
OPENSTACK_HOST = "192.168.0.1"
OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3" % OPENSTACK_HOST
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "_member_"
#For multiple regions uncomment this configuration, and add (endpoint, title).
AVAILABLE_REGIONS = [
(OPENSTACK_KEYSTONE_URL, '7.0 lab'),
('http://192.168.10.1:5000/v2.0', '7.0 sahara lab'),
]
Once I log in to '7.0 lab' Keystone endpoint here
https://github.com/openstack/django_openstack_auth/blob/1.4.0/openstack_auth/views.py#L124
region is being set to 'http://192.168.0.1:5000/v2.0' which causes
'region_name' on the next line to become None (since this url is not
found inside 'regions' dict, see line above). See results on a
screenshot below.
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1494287/+subscriptions
References