pingtest/tenantvm_floatingip.yaml: connect vrouter before creating fip

This patch fix a race condition in templates/tenantvm_floatingip.yaml
template, used by pingtest.
It makes sure that the vrouter that make the connection between private
& public network will be created before trying to create a floating-ip.
Otherwise, the heat stack will fail to complete because a floating-ip
needs the vrouter in place.

Change-Id: I81641be2b4bf0bd15b10fab1e9725062f52a1bf8
Closes-Bug: #1597265
This commit is contained in:
Emilien Macchi 2016-06-29 16:35:39 -04:00
parent 765495445e
commit c33dccad0f
1 changed files with 3 additions and 0 deletions

View File

@ -105,6 +105,9 @@ resources:
server1_floating_ip:
type: OS::Neutron::FloatingIP
# TODO: investigate why we need this depends_on and if we could
# replace it by router_id with get_resource: router_interface
depends_on: router_interface
properties:
floating_network: { get_param: public_net_name }
port_id: { get_resource: server1_port }