DCN/Edge: Handle ipv6 address for local glance endpoint

In a DCN/Edge deployment, the glance endpoint is overridden so that
nova and cinder use the local glance-api service. When the deployment
is using ipv6, ensure the endpoint URI has brackets around the ipv6
address.

Closes-Bug: #1868579
Change-Id: I8e71a1f6df732c352b018472c30c662f1e726aaa
This commit is contained in:
Alan Bishop 2020-03-23 08:46:06 -07:00
parent a957b0e67f
commit 95b0171804
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ outputs:
value: &glance_api_edge_uri
str_replace:
template:
"PROTOCOL://%{hiera('NETWORK')}:9292"
"PROTOCOL://%{hiera('NETWORK_uri')}:9292"
params:
PROTOCOL:
if:

View File

@ -63,7 +63,7 @@ outputs:
value: &glance_api_edge_uri
str_replace:
template:
"PROTOCOL://%{hiera('NETWORK')}:9292"
"PROTOCOL://%{hiera('NETWORK_uri')}:9292"
params:
PROTOCOL:
if: