Merge "Fixed incorrect region endpoint in multi-region"

This commit is contained in:
Zuul 2024-08-27 13:04:57 +00:00 committed by Gerrit Code Review
commit 0b9839e392
2 changed files with 7 additions and 1 deletions

View File

@ -16,6 +16,7 @@ from django.conf import settings
import octavia_dashboard
from openstack import config as occ
from openstack import connection
from openstack_dashboard.api import base
def get_sdk_connection(request):
@ -44,7 +45,7 @@ def get_sdk_connection(request):
project_id=request.user.project_id,
project_domain_id=request.user.domain_id,
auth_token=request.user.token.unscoped_token,
auth_url=request.user.endpoint),
auth_url=base.url_for(request, 'identity')),
app_name='octavia-dashboard',
app_version=octavia_dashboard.__version__)
return connection.from_config(cloud_config=cloud_config)

View File

@ -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.