Fix IPv6 tempest job
Changes in the neutron devstack plugin caused the Octavia IPv6 only tempest job to fail. This patch adapts the Octavia devstack plugin to function correctly with those changes. Change-Id: I0252bcc796e2c0eb93d8c3c24eb86dc5db600288
This commit is contained in:
parent
f5b73d8e00
commit
c9b15db3db
@ -541,12 +541,9 @@ function build_mgmt_network {
|
||||
# Create network and attach a subnet
|
||||
openstack network create lb-mgmt-net
|
||||
if [ $SERVICE_IP_VERSION == '6' ] ; then
|
||||
openstack subnet create --subnet-range $OCTAVIA_MGMT_SUBNET_IPV6 --allocation-pool start=$OCTAVIA_MGMT_SUBNET_IPV6_START,end=$OCTAVIA_MGMT_SUBNET_IPV6_END --network lb-mgmt-net --ip-version 6 --ipv6-address-mode slaac --ipv6-ra-mode slaac lb-mgmt-subnet
|
||||
# SLAAC needs a router on the subnet to advertise the prefix.
|
||||
openstack router create lb-mgmt-router
|
||||
openstack router add subnet lb-mgmt-router lb-mgmt-subnet
|
||||
openstack subnet create --subnet-range $OCTAVIA_MGMT_SUBNET_IPV6 --allocation-pool start=$OCTAVIA_MGMT_SUBNET_IPV6_START,end=$OCTAVIA_MGMT_SUBNET_IPV6_END --network lb-mgmt-net --ip-version 6 --gateway none --no-dhcp lb-mgmt-subnet
|
||||
else
|
||||
openstack subnet create --subnet-range $OCTAVIA_MGMT_SUBNET --allocation-pool start=$OCTAVIA_MGMT_SUBNET_START,end=$OCTAVIA_MGMT_SUBNET_END --network lb-mgmt-net lb-mgmt-subnet
|
||||
openstack subnet create --subnet-range $OCTAVIA_MGMT_SUBNET --allocation-pool start=$OCTAVIA_MGMT_SUBNET_START,end=$OCTAVIA_MGMT_SUBNET_END --network lb-mgmt-net --gateway none --no-dhcp lb-mgmt-subnet
|
||||
fi
|
||||
|
||||
# Create security group and rules
|
||||
|
Loading…
Reference in New Issue
Block a user