Now that we split the neutron repository and have service configuration
files maintained in their own repos, start using them.
The old files are going to be cleaned up from the Neutron tree.
Change-Id: Iaeff0b9de88e9bcca87da1092cc888c4cc1bedfd
| ... | ... |
@@ -898,7 +898,7 @@ function _configure_neutron_l3_agent {
|
| 898 | 898 |
Q_L3_ROUTER_PER_TENANT=$Q_USE_NAMESPACE |
| 899 | 899 |
|
| 900 | 900 |
if is_service_enabled q-vpn; then |
| 901 |
- cp $NEUTRON_DIR/etc/vpn_agent.ini $Q_VPN_CONF_FILE |
|
| 901 |
+ cp $NEUTRON_VPNAAS_DIR/etc/vpn_agent.ini $Q_VPN_CONF_FILE |
|
| 902 | 902 |
fi |
| 903 | 903 |
|
| 904 | 904 |
cp $NEUTRON_DIR/etc/l3_agent.ini $Q_L3_CONF_FILE |
| ... | ... |
@@ -1024,22 +1024,28 @@ function _neutron_service_plugin_class_add {
|
| 1024 | 1024 |
fi |
| 1025 | 1025 |
} |
| 1026 | 1026 |
|
| 1027 |
+# _neutron_deploy_rootwrap_filters() - deploy rootwrap filters to $Q_CONF_ROOTWRAP_D (owned by root). |
|
| 1028 |
+function _neutron_deploy_rootwrap_filters {
|
|
| 1029 |
+ local srcdir=$1 |
|
| 1030 |
+ mkdir -p -m 755 $Q_CONF_ROOTWRAP_D |
|
| 1031 |
+ sudo cp -pr $srcdir/etc/neutron/rootwrap.d/* $Q_CONF_ROOTWRAP_D/ |
|
| 1032 |
+ sudo chown -R root:root $Q_CONF_ROOTWRAP_D |
|
| 1033 |
+ sudo chmod 644 $Q_CONF_ROOTWRAP_D/* |
|
| 1034 |
+} |
|
| 1035 |
+ |
|
| 1027 | 1036 |
# _neutron_setup_rootwrap() - configure Neutron's rootwrap |
| 1028 | 1037 |
function _neutron_setup_rootwrap {
|
| 1029 | 1038 |
if [[ "$Q_USE_ROOTWRAP" == "False" ]]; then |
| 1030 | 1039 |
return |
| 1031 | 1040 |
fi |
| 1032 |
- # Deploy new rootwrap filters files (owned by root). |
|
| 1033 | 1041 |
# Wipe any existing ``rootwrap.d`` files first |
| 1034 | 1042 |
Q_CONF_ROOTWRAP_D=$NEUTRON_CONF_DIR/rootwrap.d |
| 1035 | 1043 |
if [[ -d $Q_CONF_ROOTWRAP_D ]]; then |
| 1036 | 1044 |
sudo rm -rf $Q_CONF_ROOTWRAP_D |
| 1037 | 1045 |
fi |
| 1038 |
- # Deploy filters to ``$NEUTRON_CONF_DIR/rootwrap.d`` |
|
| 1039 |
- mkdir -p -m 755 $Q_CONF_ROOTWRAP_D |
|
| 1040 |
- cp -pr $NEUTRON_DIR/etc/neutron/rootwrap.d/* $Q_CONF_ROOTWRAP_D/ |
|
| 1041 |
- sudo chown -R root:root $Q_CONF_ROOTWRAP_D |
|
| 1042 |
- sudo chmod 644 $Q_CONF_ROOTWRAP_D/* |
|
| 1046 |
+ |
|
| 1047 |
+ _neutron_deploy_rootwrap_filters $NEUTRON_DIR |
|
| 1048 |
+ |
|
| 1043 | 1049 |
# Set up ``rootwrap.conf``, pointing to ``$NEUTRON_CONF_DIR/rootwrap.d`` |
| 1044 | 1050 |
# location moved in newer versions, prefer new location |
| 1045 | 1051 |
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. |