From 9524e39d1579fe3f549fe3007f8b5a728719b4e2 Mon Sep 17 00:00:00 2001 From: Kevin Jackson Date: Sun, 10 Jan 2016 17:00:10 +0000 Subject: [PATCH] Fixes to flat networking: basically allow the demo to use a flat network in eth3 subnet, so we can get to internet stuff from a guest --- compute.sh | 13 ++++++++----- controller.sh | 5 ++++- demo.sh | 34 +++++++++++++++++++++++++++++++--- network.sh | 3 +++ rsyslog.conf | 1 + 5 files changed, 47 insertions(+), 9 deletions(-) create mode 120000 rsyslog.conf diff --git a/compute.sh b/compute.sh index 73a7d76..42b952c 100755 --- a/compute.sh +++ b/compute.sh @@ -203,7 +203,7 @@ EOF cat > ${NEUTRON_PLUGIN_ML2_CONF_INI} << EOF [ml2] -type_drivers = gre,vxlan +type_drivers = gre,vxlan,flat tenant_network_types = vxlan mechanism_drivers = openvswitch,l2population @@ -213,6 +213,9 @@ tunnel_id_ranges = 1:1000 [ml2_type_vxlan] vni_ranges = 1:1000 +[ml2_tyep_flat] +flat_networks = eth3 + #[vxlan] #enable_vxlan = True #vxlan_group = @@ -413,10 +416,10 @@ start neutron-l3-agent # Because live-migration # Do some terrible things for GID/UID mapping on compute nodes: -UID=`ssh root@controller "id nova | awk {'print $1'} | cut -d '=' -f2 | cut -d '(' -f1"` -GID=`ssh root@controller "id nova | awk {'print $1'} | cut -d '=' -f2 | cut -d '(' -f1"` -sudo usermod -u $UID nova -sudo groupmod -g $GID nova +_UID=`ssh root@controller "id nova | awk {'print $1'} | cut -d '=' -f2 | cut -d '(' -f1"` +_GID=`ssh root@controller "id nova | awk {'print $1'} | cut -d '=' -f2 | cut -d '(' -f1"` +sudo usermod -u $_UID nova +sudo groupmod -g $_GID nova # Logging sudo stop rsyslog diff --git a/controller.sh b/controller.sh index 10a895d..3dde164 100755 --- a/controller.sh +++ b/controller.sh @@ -647,7 +647,7 @@ EOF cat > ${NEUTRON_PLUGIN_ML2_CONF_INI} <