Merge "Add ipv6 support for novncproxy_base_url."

This commit is contained in:
Zuul 2020-03-30 17:00:36 +00:00 committed by Gerrit Code Review
commit 3918066c39
1 changed files with 6 additions and 2 deletions

View File

@ -201,6 +201,10 @@ class NovaHelm(openstack.OpenstackBaseHelm):
if endpoint_domain is not None:
location = "%s.%s" % (self.NOVNCPROXY_SERVICE_NAME,
str(endpoint_domain.value).lower())
else:
if self._is_ipv6_cluster_service():
location = "[%s]:%s" % (self._get_oam_address(),
self.NOVNCPROXY_NODE_PORT)
else:
location = "%s:%s" % (self._get_oam_address(),
self.NOVNCPROXY_NODE_PORT)