Merge "Add router for IPv6 ctlplane subnet"

This commit is contained in:
Jenkins
2017-09-12 12:47:12 +00:00
committed by Gerrit Code Review
3 changed files with 16 additions and 1 deletions

View File

@@ -410,6 +410,9 @@ class { '::neutron::agents::dhcp':
dnsmasq_config_file => '/etc/dnsmasq-ironic.conf',
}
class { '::neutron::agents::l3':
}
class { '::neutron::agents::ml2::ovs':
bridge_mappings => split(hiera('neutron_bridge_mappings'), ','),
}

View File

@@ -237,6 +237,7 @@ mysql::server::restart: true
neutron::debug: "%{hiera('debug')}"
neutron::bind_host: {{LOCAL_IP}}
neutron::core_plugin: ml2
neutron::service_plugins: ['router']
neutron::dhcp_agents_per_network: 2
neutron::dns_domain: {{OVERCLOUD_DOMAIN_NAME}}
neutron::server::api_workers: "%{::os_workers}"

View File

@@ -70,7 +70,11 @@ if [ -n "$subnet_id" ]; then
fi
if [ "$net_create" -eq "1" ]; then
# Delete the subnet and network to make sure it doesn't already exist
# Delete the route, subnet and network to make sure it doesn't already exist
if neutron router-show ctlplane-router ; then
neutron router-interface-delete ctlplane-router ctlplane-subnet
neutron router-delete ctlplane-router
fi
if neutron subnet-list | grep start; then
neutron subnet-delete $(neutron subnet-list | grep start | awk '{print $2}')
fi
@@ -87,6 +91,13 @@ if [ "$net_create" -eq "1" ]; then
--gateway $NETWORK_GATEWAY \
$SUBNET_VERSION_STRING $SUBNET_ROUTE_STRING \
ctlplane $NETWORK_CIDR
# If ctlplane-subnet is IPv6 we need to start a router so the router advertisments are sent out
# for statless IP addressing to work.
if [[ $DHCP_START =~ : ]] ; then
neutron router-create ctlplane-router
neutron router-interface-add ctlplane-router ctlplane-subnet
fi
fi
# Disable nova quotas