Fixed incorrect region endpoint in multi-region
When using multi-region, octavia-dashboard used the keystone catalog of auth endpoint linked to the horizon session. But it should use the keystone endpoint of the selected region if it exists. Closes-Bug: #2076074 Change-Id: I8d90a7225361a88ebfd68e7f16724b302031eda6
This commit is contained in:
parent
979ee7f213
commit
0f59b0d164
@ -16,6 +16,7 @@ from django.conf import settings
|
|||||||
import octavia_dashboard
|
import octavia_dashboard
|
||||||
from openstack import config as occ
|
from openstack import config as occ
|
||||||
from openstack import connection
|
from openstack import connection
|
||||||
|
from openstack_dashboard.api import base
|
||||||
|
|
||||||
|
|
||||||
def get_sdk_connection(request):
|
def get_sdk_connection(request):
|
||||||
@ -44,7 +45,7 @@ def get_sdk_connection(request):
|
|||||||
project_id=request.user.project_id,
|
project_id=request.user.project_id,
|
||||||
project_domain_id=request.user.domain_id,
|
project_domain_id=request.user.domain_id,
|
||||||
auth_token=request.user.token.unscoped_token,
|
auth_token=request.user.token.unscoped_token,
|
||||||
auth_url=request.user.endpoint),
|
auth_url=base.url_for(request, 'identity')),
|
||||||
app_name='octavia-dashboard',
|
app_name='octavia-dashboard',
|
||||||
app_version=octavia_dashboard.__version__)
|
app_version=octavia_dashboard.__version__)
|
||||||
return connection.from_config(cloud_config=cloud_config)
|
return connection.from_config(cloud_config=cloud_config)
|
||||||
|
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
fixes:
|
||||||
|
- |
|
||||||
|
Fixed a bug when using multi-region deployments, the octavia-dashboard may
|
||||||
|
have used the wrong keystone catalog to get the load-balancer endpoint.
|
Loading…
Reference in New Issue
Block a user