summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-neutron
diff options
context:
space:
mode:
authorMark Asselstine <mark.asselstine@windriver.com>2014-03-22 23:20:07 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2014-04-15 19:48:37 -0400
commit1768e94b9e600884d43e65b3ef05e379f043a196 (patch)
treebda7de8ecbefad7244f7b27dc0bb88354bea40be /meta-openstack/recipes-devtools/python/python-neutron
parent8e8d5d43698b24af551a8c2c3b766cf545a7d340 (diff)
downloadmeta-cloud-services-1768e94b9e600884d43e65b3ef05e379f043a196.tar.gz
python-neutron: get the l3-agent properly packaged
The recipe had the initial groundwork established to create the l3-agent package but some aspects were incomplete. Add the necessary .ini file and create the initscript necessary to launch the l3-agent at boot time. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-neutron')
-rw-r--r--meta-openstack/recipes-devtools/python/python-neutron/l3_agent.ini65
-rw-r--r--meta-openstack/recipes-devtools/python/python-neutron/neutron-agent.init3
2 files changed, 67 insertions, 1 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-neutron/l3_agent.ini b/meta-openstack/recipes-devtools/python/python-neutron/l3_agent.ini
new file mode 100644
index 0000000..1310c7e
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python-neutron/l3_agent.ini
@@ -0,0 +1,65 @@
1[DEFAULT]
2# Show debugging output in log (sets DEBUG log level output)
3# debug = False
4
5# L3 requires that an interface driver be set. Choose the one that best
6# matches your plugin.
7# interface_driver =
8
9# Example of interface_driver option for OVS based plugins (OVS, Ryu, NEC)
10# that supports L3 agent
11interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
12
13# Use veth for an OVS interface or not.
14# Support kernels with limited namespace support
15# (e.g. RHEL 6.5) so long as ovs_use_veth is set to True.
16# ovs_use_veth = False
17
18# Example of interface_driver option for LinuxBridge
19# interface_driver = neutron.agent.linux.interface.BridgeInterfaceDriver
20
21# Allow overlapping IP (Must have kernel build with CONFIG_NET_NS=y and
22# iproute2 package that supports namespaces).
23# use_namespaces = True
24
25# If use_namespaces is set as False then the agent can only configure one router.
26
27# This is done by setting the specific router_id.
28# router_id =
29
30# Each L3 agent can be associated with at most one external network. This
31# value should be set to the UUID of that external network. If empty,
32# the agent will enforce that only a single external networks exists and
33# use that external network id
34# gateway_external_network_id =
35
36# Indicates that this L3 agent should also handle routers that do not have
37# an external network gateway configured. This option should be True only
38# for a single agent in a Neutron deployment, and may be False for all agents
39# if all routers must have an external network gateway
40# handle_internal_only_routers = True
41
42# Name of bridge used for external network traffic. This should be set to
43# empty value for the linux bridge
44# external_network_bridge = br-ex
45
46# TCP Port used by Neutron metadata server
47# metadata_port = 9697
48
49# Send this many gratuitous ARPs for HA setup. Set it below or equal to 0
50# to disable this feature.
51# send_arp_for_ha = 3
52
53# seconds between re-sync routers' data if needed
54# periodic_interval = 40
55
56# seconds to start to sync routers' data after
57# starting agent
58# periodic_fuzzy_delay = 5
59
60# enable_metadata_proxy, which is true by default, can be set to False
61# if the Nova metadata server is not available
62# enable_metadata_proxy = True
63
64# Location of Metadata Proxy UNIX domain socket
65# metadata_proxy_socket = $state_path/metadata_proxy
diff --git a/meta-openstack/recipes-devtools/python/python-neutron/neutron-agent.init b/meta-openstack/recipes-devtools/python/python-neutron/neutron-agent.init
index 01cb27e..8bd4c23 100644
--- a/meta-openstack/recipes-devtools/python/python-neutron/neutron-agent.init
+++ b/meta-openstack/recipes-devtools/python/python-neutron/neutron-agent.init
@@ -12,6 +12,7 @@ SUFFIX=@suffix@
12DESC="neutron-$SUFFIX-agent" 12DESC="neutron-$SUFFIX-agent"
13DAEMON="/usr/bin/neutron-$SUFFIX-agent" 13DAEMON="/usr/bin/neutron-$SUFFIX-agent"
14PIDFILE="/var/run/neutron-$SUFFIX-agent.pid" 14PIDFILE="/var/run/neutron-$SUFFIX-agent.pid"
15DAEMON_ARGS="@args@"
15 16
16start() 17start()
17{ 18{
@@ -34,7 +35,7 @@ start()
34 35
35 start-stop-daemon --start --quiet --background \ 36 start-stop-daemon --start --quiet --background \
36 --pidfile ${PIDFILE} --make-pidfile --exec ${DAEMON} \ 37 --pidfile ${PIDFILE} --make-pidfile --exec ${DAEMON} \
37 -- --log-dir=/var/log/neutron 38 -- ${DAEMON_ARGS} --log-dir=/var/log/neutron
38 39
39 if [ $? -eq 0 ]; then 40 if [ $? -eq 0 ]; then
40 echo "done." 41 echo "done."