From 4b4681c42ad39aa18b6817095e2418b8633abae5 Mon Sep 17 00:00:00 2001 From: Mark McClain Date: Sun, 24 Feb 2013 07:55:06 -0500 Subject: [PATCH] LBaaS Agent Reference Implementation implements blueprint lbaas-namespace-agent This a reference implemention of the Quantum load balancing service using HAProxy. The implemention is designed for vendors, developers, and deployers to become familiar with the API and service workflow. This change also adds some constraint checks for data integrity. Change-Id: I10a67da11840477ccf063b98149f4f77248802a1 --- etc/lbaas_agent.ini | 24 ++++++++++++++++++++++++ setup.py | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 etc/lbaas_agent.ini diff --git a/etc/lbaas_agent.ini b/etc/lbaas_agent.ini new file mode 100644 index 000000000..e3ea75c3d --- /dev/null +++ b/etc/lbaas_agent.ini @@ -0,0 +1,24 @@ +[DEFAULT] +# Show debugging output in log (sets DEBUG log level output) +# debug = true + +# The LBaaS agent will resync its state with Quantum to recover from any +# transient notification or rpc errors. The interval is number of +# seconds between attempts. +# periodic_interval = 10 + +# OVS based plugins(OVS, Ryu, NEC, NVP, BigSwitch/Floodlight) +interface_driver = quantum.agent.linux.interface.OVSInterfaceDriver +# OVS based plugins(Ryu, NEC, NVP, BigSwitch/Floodlight) that use OVS +# as OpenFlow switch and check port status +# ovs_use_veth = True +# LinuxBridge +# interface_driver = quantum.agent.linux.interface.BridgeInterfaceDriver + +# The agent requires a driver to manage the loadbalancer. HAProxy is the +# opensource version. +device_driver = quantum.plugins.services.agent_loadbalancer.drivers.haproxy.namespace_driver.HaproxyNSDriver + +# Allow overlapping IP (Must have kernel build with CONFIG_NET_NS=y and +# iproute2 package that supports namespaces). +# use_namespaces = True diff --git a/setup.py b/setup.py index e265ab2ec..ac701900a 100644 --- a/setup.py +++ b/setup.py @@ -137,6 +137,8 @@ else: 'quantum-debug = quantum.debug.shell:main', 'quantum-ovs-cleanup = quantum.agent.ovs_cleanup_util:main', 'quantum-db-manage = quantum.db.migration.cli:main', + ('quantum-lbaas-agent = ' + 'quantum.plugins.services.agent_loadbalancer.agent:main'), ('quantum-check-nvp-config = ' 'quantum.plugins.nicira.nicira_nvp_plugin.check_nvp_config:main'), ]