Skip to content

Commit

Permalink
Merge pull request #1275 from fnordahl/tempest-ipv6-keystone
Browse files Browse the repository at this point in the history
tempest: Properly render IPv6 endpoint IPs.
  • Loading branch information
javacruft authored Oct 14, 2024
2 parents 115c4e7 + efca169 commit 2f66c18
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions zaza/openstack/charm_tests/tempest/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import zaza.model as model
import zaza.utilities.deployment_env as deployment_env
import zaza.utilities.juju as zaza_juju_utils
import zaza.openstack.utilities.juju as juju_utils
import zaza.utilities.networking
import zaza.openstack.utilities.openstack as openstack_utils
import zaza.openstack.charm_tests.glance.setup as glance_setup
import zaza.openstack.charm_tests.magnum.setup as magnum_setup
Expand Down Expand Up @@ -217,9 +217,13 @@ def _add_application_ips(ctxt):
:returns: None
:rtype: None
"""
ctxt['keystone'] = juju_utils.get_application_ip('keystone')
ctxt['dashboard'] = juju_utils.get_application_ip('openstack-dashboard')
ctxt['ncc'] = juju_utils.get_application_ip('nova-cloud-controller')
for ctxt_key, application_name in (('keystone', 'keystone'),
('dashboard', 'openstack-dashboard'),
('ncc', 'nova-cloud-controller')):
ip = zaza_juju_utils.get_application_ip(application_name)
if ip:
ip = zaza.utilities.networking.format_addr(ip)
ctxt[ctxt_key] = ip


def _add_nova_config(ctxt, keystone_session, missing_fatal=True):
Expand Down

0 comments on commit 2f66c18

Please sign in to comment.