Jump to: navigation, search

Difference between revisions of "Neutron/LBaaS/DeployWithDevstack"

< Neutron‎ | LBaaS
(Deploying Neutron LBaaS With Devstack)
(Deploying Neutron LBaaS With Devstack)
Line 7: Line 7:
 
*** https://review.openstack.org/#/c/105610/
 
*** https://review.openstack.org/#/c/105610/
 
** Agentless Haproxy Driver
 
** Agentless Haproxy Driver
*** '' Will Be Added Soon ''
+
*** https://review.openstack.org/#/c/108174/
 
* Change the neutron config
 
* Change the neutron config
 
** /etc/neutron/neutron.conf
 
** /etc/neutron/neutron.conf
Line 19: Line 19:
 
***** <code>service_provider=LOADBALANCERV2:LoggingNoop:neutron.services.loadbalancer.drivers.logging_noop.driver.LoggingNoopLoadBalancerDriver:default </code>
 
***** <code>service_provider=LOADBALANCERV2:LoggingNoop:neutron.services.loadbalancer.drivers.logging_noop.driver.LoggingNoopLoadBalancerDriver:default </code>
 
**** To use the Agentless Haproxy Driver:
 
**** To use the Agentless Haproxy Driver:
***** '' Will Be Added Soon ''
+
***** <code>service_provider=LOADBALANCERV2:Haproxy:neutron.services.loadbalancer.drivers.haproxy.nonagent_namespace_driver.HaproxyNSDriver:default</code>
 
* Re-install the neutron code and restart the neutron-server process
 
* Re-install the neutron code and restart the neutron-server process
 
** I use this bash script:
 
** I use this bash script:
Line 30: Line 30:
  
 
sudo PIP_DOWNLOAD_CACHE=/var/cache/pip HTTP_PROXY= HTTPS_PROXY= NO_PROXY= /usr/local/bin/pip install --build=/tmp/pip-build.bE71P -e /opt/stack/neutron
 
sudo PIP_DOWNLOAD_CACHE=/var/cache/pip HTTP_PROXY= HTTPS_PROXY= NO_PROXY= /usr/local/bin/pip install --build=/tmp/pip-build.bE71P -e /opt/stack/neutron
 +
 +
/usr/local/bin/neutron-server --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini
 
</pre>
 
</pre>

Revision as of 05:07, 19 July 2014

Deploying Neutron LBaaS With Devstack

  • Install devstack with neutron and neutron lbaas
  • Pull down gerrit change requests with useable code
  • Change the neutron config
    • /etc/neutron/neutron.conf
      • Under the [DEFAULT] section there is an options called service_plugins. It is a comma-delimited list. Add the following to it:
        • If service_plugins option already exists add to the end of the line:
          • ,neutron.services.loadbalancer.plugin.LoadBalancerPluginv2
        • If service_plugins option does not exist add this line:
          • service_plugins = neutron.services.loadbalancer.plugin.LoadBalancerPluginv2
      • Under the [service_providers] section (usually at the bottom) there are options called service_provider, there can be many service_provider entries. Add the following
        • To use the LoggingNoopDriver:
          • service_provider=LOADBALANCERV2:LoggingNoop:neutron.services.loadbalancer.drivers.logging_noop.driver.LoggingNoopLoadBalancerDriver:default
        • To use the Agentless Haproxy Driver:
          • service_provider=LOADBALANCERV2:Haproxy:neutron.services.loadbalancer.drivers.haproxy.nonagent_namespace_driver.HaproxyNSDriver:default
  • Re-install the neutron code and restart the neutron-server process
    • I use this bash script:
#!/bin/bash

if [ `ps aux | grep neutron-server | wc -l` -gt 1 ]; then
    kill -9 `ps aux | grep '[n]eutron-server' -m1 | awk '{print $2}'`
fi

sudo PIP_DOWNLOAD_CACHE=/var/cache/pip HTTP_PROXY= HTTPS_PROXY= NO_PROXY= /usr/local/bin/pip install --build=/tmp/pip-build.bE71P -e /opt/stack/neutron

/usr/local/bin/neutron-server --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini