Create 'neutron-router' image element

To enable Neutron DVR support, this change introduces the 'neutron-router'
image element, which mirrors the current 'neutron-network-node' element
except it does not have a dependency on the neutron-dhcp-agent element
as that element should not be included on the compute nodes in the
Neutron Distributed Virtual Routing model.

Change-Id: I487ece637b75f8ef3ce0390f2da093b9f123a8d9
blueprint: support-neutron-dvr
This commit is contained in:
Erik Colnick 2014-10-10 01:37:02 -06:00
parent 927e8448c7
commit c074ac902a
6 changed files with 57 additions and 0 deletions

View File

@ -0,0 +1,16 @@
Install components for Neutron router node.
Configuration
-------------
No router node specific configuration exists. See the
neutron-openvswitch-agent element for configuration parameters.
A typical ovs configuration will set:
neutron:
ovs:
enable_tunneling: 'True'
public_interface: eth0
physical_bridge: br-ex
tenant_network_type: gre

View File

@ -0,0 +1,4 @@
neutron
neutron-openvswitch-agent
os-refresh-config
pkg-map

View File

@ -0,0 +1,4 @@
#!/bin/bash
set -eux
install-packages -m neutron-router arping_package

View File

@ -0,0 +1,15 @@
#!/bin/bash
set -eux
# If NEUTRON_VENV_DIR is set, then need to fix up the l3.filters rootwrap file to allow l3-agent to
# kill metadata-proxy processes when routers are deleted.
if [ -n "${NEUTRON_VENV_DIR}" ]
then
sed -i "s, /usr/bin/python, ${NEUTRON_VENV_DIR}/bin/python," /etc/neutron/rootwrap.d/l3.filters
fi
os-svc-daemon -i "$NEUTRON_VENV_DIR" -n neutron-l3-agent -u neutron -c neutron-l3-agent -- --config-file /etc/neutron/l3_agent.ini --config-dir /etc/neutron
os-svc-daemon -i "$NEUTRON_VENV_DIR" -n neutron-metadata-agent -u neutron -c neutron-metadata-agent -- --config-file /etc/neutron/metadata_agent.ini --config-dir /etc/neutron
# This has to be on the path of the agent that runs it http://pad.lv/1182704
ln -sf $NEUTRON_VENV_DIR/bin/neutron-ns-metadata-proxy /usr/bin

View File

@ -0,0 +1,8 @@
#!/bin/bash
set -eux
os-svc-enable -n neutron-metadata-agent
os-svc-enable -n neutron-l3-agent
os-svc-restart -n neutron-metadata-agent
os-svc-restart -n neutron-l3-agent

View File

@ -0,0 +1,10 @@
{
"family": {
"debian": {
"arping_package": "iputils-arping"
}
},
"default": {
"arping_package": "iputils"
}
}