Gate: Update heat templates to export floating IP

This PS updates the heat template to output the Floating IP, which
makes the gate scripts compatible with the current master clients
when used with newton images.

Change-Id: I8e429b504ede521612c91d7563a8c5e4953bdbb4
This commit is contained in:
portdirect 2018-01-16 22:37:31 -05:00 committed by Pete Birley
parent 4c2b5d22c3
commit 2d2e10bfb7
2 changed files with 8 additions and 6 deletions

View File

@ -66,12 +66,10 @@ openstack stack create --wait \
-t ./tools/gate/files/heat-basic-vm-deployment.yaml \
heat-basic-vm-deployment
FLOATING_IP=$(openstack floating ip show \
$(openstack stack resource show \
heat-basic-vm-deployment \
server_floating_ip \
-f value -c physical_resource_id) \
-f value -c floating_ip_address)
FLOATING_IP=$(openstack stack output show \
heat-basic-vm-deployment \
floating_ip \
-f value -c output_value)
function wait_for_ssh_port {
# Default wait timeout is 300 seconds

View File

@ -80,3 +80,7 @@ resources:
properties:
floating_network: {get_param: public_net}
port_id: { get_resource: server_port }
outputs:
floating_ip:
value: {get_attr: [server_floating_ip, floating_ip_address]}