Browse Source

Fix grenade job failure

Check if subnet already added to router before adding it.

Change-Id: I59903642aee125d3b5cfaa944d12cd3ed7b278b4
changes/92/706492/1
Rabi Mishra 1 week ago
parent
commit
c923b9c64b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      heat_integrationtests/prepare_test_network.sh

+ 2
- 2
heat_integrationtests/prepare_test_network.sh View File

@@ -22,5 +22,5 @@ HEAT_PRIVATE_SUBNET_CIDR=10.0.5.0/24
source $TOP_DIR/openrc demo demo

openstack network show heat-net || openstack network create heat-net
openstack subnet show heat-subnet || openstack subnet create heat-subnet --network heat-net --subnet-range $HEAT_PRIVATE_SUBNET_CIDR
openstack router add subnet router1 heat-subnet
subnet_id=$((openstack subnet show heat-subnet || openstack subnet create heat-subnet --network heat-net --subnet-range $HEAT_PRIVATE_SUBNET_CIDR) | grep " id " | awk '{print $4}')
openstack router show router1 -c interfaces_info | grep -q $subnet_id || openstack router add subnet router1 $subnet_id

Loading…
Cancel
Save