| ... | ... |
@@ -908,7 +908,7 @@ function _configure_neutron_l3_agent {
|
| 908 | 908 |
Q_L3_ROUTER_PER_TENANT=$Q_USE_NAMESPACE |
| 909 | 909 |
|
| 910 | 910 |
if is_service_enabled q-vpn; then |
| 911 |
- cp $NEUTRON_DIR/etc/vpn_agent.ini $Q_VPN_CONF_FILE |
|
| 911 |
+ cp $NEUTRON_VPNAAS_DIR/etc/vpn_agent.ini $Q_VPN_CONF_FILE |
|
| 912 | 912 |
fi |
| 913 | 913 |
|
| 914 | 914 |
cp $NEUTRON_DIR/etc/l3_agent.ini $Q_L3_CONF_FILE |
| ... | ... |
@@ -1034,22 +1034,28 @@ function _neutron_service_plugin_class_add {
|
| 1034 | 1034 |
fi |
| 1035 | 1035 |
} |
| 1036 | 1036 |
|
| 1037 |
+# _neutron_deploy_rootwrap_filters() - deploy rootwrap filters to $Q_CONF_ROOTWRAP_D (owned by root). |
|
| 1038 |
+function _neutron_deploy_rootwrap_filters {
|
|
| 1039 |
+ local srcdir=$1 |
|
| 1040 |
+ mkdir -p -m 755 $Q_CONF_ROOTWRAP_D |
|
| 1041 |
+ sudo cp -pr $srcdir/etc/neutron/rootwrap.d/* $Q_CONF_ROOTWRAP_D/ |
|
| 1042 |
+ sudo chown -R root:root $Q_CONF_ROOTWRAP_D |
|
| 1043 |
+ sudo chmod 644 $Q_CONF_ROOTWRAP_D/* |
|
| 1044 |
+} |
|
| 1045 |
+ |
|
| 1037 | 1046 |
# _neutron_setup_rootwrap() - configure Neutron's rootwrap |
| 1038 | 1047 |
function _neutron_setup_rootwrap {
|
| 1039 | 1048 |
if [[ "$Q_USE_ROOTWRAP" == "False" ]]; then |
| 1040 | 1049 |
return |
| 1041 | 1050 |
fi |
| 1042 |
- # Deploy new rootwrap filters files (owned by root). |
|
| 1043 | 1051 |
# Wipe any existing ``rootwrap.d`` files first |
| 1044 | 1052 |
Q_CONF_ROOTWRAP_D=$NEUTRON_CONF_DIR/rootwrap.d |
| 1045 | 1053 |
if [[ -d $Q_CONF_ROOTWRAP_D ]]; then |
| 1046 | 1054 |
sudo rm -rf $Q_CONF_ROOTWRAP_D |
| 1047 | 1055 |
fi |
| 1048 |
- # Deploy filters to ``$NEUTRON_CONF_DIR/rootwrap.d`` |
|
| 1049 |
- mkdir -p -m 755 $Q_CONF_ROOTWRAP_D |
|
| 1050 |
- cp -pr $NEUTRON_DIR/etc/neutron/rootwrap.d/* $Q_CONF_ROOTWRAP_D/ |
|
| 1051 |
- sudo chown -R root:root $Q_CONF_ROOTWRAP_D |
|
| 1052 |
- sudo chmod 644 $Q_CONF_ROOTWRAP_D/* |
|
| 1056 |
+ |
|
| 1057 |
+ _neutron_deploy_rootwrap_filters $NEUTRON_DIR |
|
| 1058 |
+ |
|
| 1053 | 1059 |
# Set up ``rootwrap.conf``, pointing to ``$NEUTRON_CONF_DIR/rootwrap.d`` |
| 1054 | 1060 |
# location moved in newer versions, prefer new location |
| 1055 | 1061 |
if test -r $NEUTRON_DIR/etc/neutron/rootwrap.conf; then |
| ... | ... |
@@ -13,7 +13,7 @@ function neutron_fwaas_configure_common {
|
| 13 | 13 |
|
| 14 | 14 |
function neutron_fwaas_configure_driver {
|
| 15 | 15 |
FWAAS_DRIVER_CONF_FILENAME=/etc/neutron/fwaas_driver.ini |
| 16 |
- cp $NEUTRON_DIR/etc/fwaas_driver.ini $FWAAS_DRIVER_CONF_FILENAME |
|
| 16 |
+ cp $NEUTRON_FWAAS_DIR/etc/fwaas_driver.ini $FWAAS_DRIVER_CONF_FILENAME |
|
| 17 | 17 |
|
| 18 | 18 |
iniset_multiline $FWAAS_DRIVER_CONF_FILENAME fwaas enabled True |
| 19 | 19 |
iniset_multiline $FWAAS_DRIVER_CONF_FILENAME fwaas driver "neutron_fwaas.services.firewall.drivers.linux.iptables_fwaas.IptablesFwaasDriver" |
| ... | ... |
@@ -17,6 +17,7 @@ function neutron_agent_lbaas_install_agent_packages {
|
| 17 | 17 |
|
| 18 | 18 |
function neutron_agent_lbaas_configure_common {
|
| 19 | 19 |
_neutron_service_plugin_class_add $LBAAS_PLUGIN |
| 20 |
+ _neutron_deploy_rootwrap_filters $NEUTRON_LBAAS_DIR |
|
| 20 | 21 |
} |
| 21 | 22 |
|
| 22 | 23 |
function neutron_agent_lbaas_configure_agent {
|
| ... | ... |
@@ -25,7 +26,7 @@ function neutron_agent_lbaas_configure_agent {
|
| 25 | 25 |
|
| 26 | 26 |
LBAAS_AGENT_CONF_FILENAME="$LBAAS_AGENT_CONF_PATH/lbaas_agent.ini" |
| 27 | 27 |
|
| 28 |
- cp $NEUTRON_DIR/etc/lbaas_agent.ini $LBAAS_AGENT_CONF_FILENAME |
|
| 28 |
+ cp $NEUTRON_LBAAS_DIR/etc/lbaas_agent.ini $LBAAS_AGENT_CONF_FILENAME |
|
| 29 | 29 |
|
| 30 | 30 |
# ovs_use_veth needs to be set before the plugin configuration |
| 31 | 31 |
# occurs to allow plugins to override the setting. |