Browse code

XenAPI: enable root_helper_daemon for XenServer

The daemon mode of root helper for XenAPI has been implemented by
this change which has been merged to neutron:
https://review.openstack.org/#/c/390931/
It will help to import the performance. Let's enable this mode
by default in devstack.

Change-Id: I52246bef3e4434dfc49446535b122580bc475ac3

Jianghua Wang authored on 2016/11/08 18:49:45
Showing 1 changed files
... ...
@@ -81,8 +81,11 @@ function neutron_plugin_configure_plugin_agent {
81 81
         # integration bridge.  This is enabled by using a root wrapper
82 82
         # that executes commands on dom0 via a XenAPI plugin.
83 83
         # XenAPI does not support daemon rootwrap now, so set root_helper_daemon empty
84
-        iniset "/$Q_PLUGIN_CONF_FILE.domU" agent root_helper "$Q_RR_DOM0_COMMAND"
85
-        iniset "/$Q_PLUGIN_CONF_FILE.domU" agent root_helper_daemon ""
84
+        iniset "/$Q_PLUGIN_CONF_FILE.domU" agent root_helper ""
85
+        iniset "/$Q_PLUGIN_CONF_FILE.domU" agent root_helper_daemon "xenapi_root_helper"
86
+        iniset "/$Q_PLUGIN_CONF_FILE.domU" xenapi connection_url "$XENAPI_CONNECTION_URL"
87
+        iniset "/$Q_PLUGIN_CONF_FILE.domU" xenapi connection_username "$XENAPI_USER"
88
+        iniset "/$Q_PLUGIN_CONF_FILE.domU" xenapi connection_password "$XENAPI_PASSWORD"
86 89
 
87 90
         # Disable minimize polling, so that it can always detect OVS and Port changes
88 91
         # This is a problem of xenserver + neutron, bug has been reported