correct neutron core plugin patch
authorSergey Vasilenko <svasilenko@mirantis.com>
Mon, 7 Jul 2014 16:41:52 +0000 (20:41 +0400)
committerSergey Vasilenko <svasilenko@mirantis.com>
Tue, 8 Jul 2014 09:55:03 +0000 (13:55 +0400)
for possibility works openvswitch-agent with ml2-plugin.

Blueprint: neutron-ml2-plugin-in-fuel-51

Change-Id: I792d6578ab293c55ed23ca7dca55793f9bf1ad68

debian/neutron-ovs-cleanup.upstart
debian/neutron-plugin-openvswitch-agent.upstart
debian/neutron-server.default
debian/patches/fix-quantum-configuration.patch
debian/tests/openvswitch-plugin

index 7ae53a199fab61ff311ebd6c0617cff44eedb4a1..ea36ef33689ce4be61841b27cf560b3881428856 100644 (file)
@@ -16,5 +16,5 @@ pre-start script
   chown neutron:neutron /var/run/neutron-ovs-cleanup
   mkdir -p /var/lock/neutron-ovs-cleanup
   chown neutron:root /var/lock/neutron-ovs-cleanup
-  /usr/bin/neutron-ovs-cleanup --config-file=/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini --log-file=/var/log/neutron/neutron-ovs-cleanup.log
+  /usr/bin/neutron-ovs-cleanup --config-file=/etc/neutron/plugin.ini --log-file=/var/log/neutron/neutron-ovs-cleanup.log
 end script
index b87adac580ec73f74ca6dd3aa517b009c2633ec3..457f7ad599b5e58aafb29bef99c051971faca32c 100644 (file)
@@ -14,4 +14,4 @@ pre-start script
   chown neutron:root /var/run/neutron
 end script
 
-exec start-stop-daemon --start --chuid neutron --exec /usr/bin/neutron-openvswitch-agent -- --config-file=/etc/neutron/neutron.conf --config-file=/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini --log-file=/var/log/neutron/ovs-agent.log
+exec start-stop-daemon --start --chuid neutron --exec /usr/bin/neutron-openvswitch-agent -- --config-file=/etc/neutron/neutron.conf --config-file=/etc/neutron/plugin.ini --log-file=/var/log/neutron/ovs-agent.log
index c4b8e862b1ea77dab01e02968efd14f77791f46c..f15e168a36d0e36126507fcafd64651364c618dc 100644 (file)
@@ -2,4 +2,4 @@
 
 # path to config file corresponding to the core_plugin specified in
 # neutron.conf
-NEUTRON_PLUGIN_CONFIG="/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini"
+NEUTRON_PLUGIN_CONFIG="/etc/neutron/plugin.ini"
index df77dbe6cc269500c0230cea371012d4e0ecb183..4b4780b7f6bb4f90449f3b8e6441054c37387021 100644 (file)
@@ -1,38 +1,37 @@
 --- a/etc/neutron.conf
 +++ b/etc/neutron.conf
 @@ -7,7 +7,7 @@
+
  # Where to store Neutron state files.  This directory must be writable by the
  # user executing the agent.
 -# state_path = /var/lib/neutron
 +state_path = /var/lib/neutron
+
  # Where to store lock files
  lock_path = $state_path/lock
-@@ -45,7 +45,7 @@ lock_path = $state_path/lock
- # api_extensions_path =
- # Neutron plugin provider module
+@@ -50,7 +50,7 @@
+ # previous versions, the class name of a plugin can be specified instead of its
+ # entrypoint name.
+ #
 -# core_plugin =
 +core_plugin = neutron.plugins.openvswitch.ovs_neutron_plugin.OVSNeutronPluginV2
- # Advanced service modules
- # service_plugins =
-@@ -295,7 +295,7 @@ notification_driver = neutron.openstack.
- # Use "sudo neutron-rootwrap /etc/neutron/rootwrap.conf" to use the real
+ # Example: core_plugin = ml2
+
+ # (ListOpt) List of service plugin entrypoints to be loaded from the
+@@ -490,6 +490,7 @@
  # root filter facility.
  # Change to "sudo" to skip the filtering and just run the comand directly
--# root_helper = sudo
+ # root_helper = sudo
 +root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf
+
  # =========== items for agent management extension =============
  # seconds between nodes reporting state to server; should be less than
-@@ -319,7 +319,7 @@ signing_dir = $state_path/keystone-signi
+@@ -512,7 +513,7 @@
  # connection = mysql://root:pass@127.0.0.1:3306/neutron
  # Replace 127.0.0.1 above with the IP address of the database used by the
  # main neutron server. (Leave it as is if the database runs on this host.)
 -# connection = sqlite://
 +connection = sqlite:////var/lib/neutron/neutron.sqlite
- # The SQLAlchemy connection string used to connect to the slave database
- # slave_connection =
+ # NOTE: In deployment the [database] section and its connection attribute may
+ # be set in the corresponding core plugin '.ini' file. However, it is suggested
+ # to put the [database] section and its connection attribute in this
index 01dcaf23c53be3ed5e2936768c164ff05f41fdac..a9bfb9be12627bbd4fcc1c9eafb23775782d7a54 100644 (file)
@@ -6,7 +6,6 @@ set -e
 apt-get -y install neutron-plugin-openvswitch
 
 # update plugin path
-sed -i 's/NEUTRON_PLUGIN_CONFIG\=.*/NEUTRON_PLUGIN_CONFIG\=\"\/etc\/neutron\/plugins\/openvswitch\/ovs_neutron_plugin\.ini\"/g' /etc/default/neutron-server
 sed -i 's/core_plugin/core_plugin \= neutron\.plugins\.openvswitch\.ovs_neutron_plugin\.OVSNeutronPluginV2/g' /etc/neutron/neutron.conf
 service neutron-server restart  > /dev/null 2>&1
 if pidof -x neutron-server > /dev/null; then