Multiple regions with same keystone
Bug #1064822 reported by
Moh
This bug affects 5 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Won't Fix
|
Undecided
|
Gabriel Hurley |
Bug Description
When I have multiple regions with same identity service, Horizon stops working. For example, I have two independent regions that uses a central keystone. If I enter the following statement in local_settings.py, horizon stops working:
AVAILABLE_REGIONS =[
('cluster1','http://
('cluster2','http://
]
same identity manager for different regions.
First off, I can not login in cluster2. If I run an instance in cluster2, horizon initiates the instance on cluster1. It seems that Horizon is ignoring the cluster2 completely while the nams is listed in Regions. However, if they have different uri, it works fine.
To post a comment you must log in.
Hello,
Coincidentally I ran into the need to fix this problem around the same time you opened this bug report. I have modified Horizon (Essex) to fix this.
https:/ /github. com/jtopjian/ horizon- 2012.1. 3/commit/ 6690c14a6bb54fd f9df61dc2f9f3ea 3522ce861b
The core issue is that the tuple format of AVAILABLE_REGIONS has to be (value, key) to accommodate for Django's drop-down box. This is why (region_endpoint, region_name) has to be entered in that order.
The fix I did is pretty hack-ish, but it gets the job done. There are also other commits in that repo that provide additional region functionality to Horizon.
If you do not want to modify the code, the other workaround is to have your Keystone server be accessible via multiple IPs or multiple hostnames.
Hope that helps,
Joe