Browse code

Merge "Remove fwaas from DevStack"

Jenkins authored on 2016/07/15 06:51:31
Showing 2 changed files
... ...
@@ -101,7 +101,6 @@ AGENT_META_BINARY="$NEUTRON_BIN_DIR/neutron-metadata-agent"
101 101
 # loaded from per-plugin  scripts in lib/neutron_plugins/
102 102
 Q_DHCP_CONF_FILE=$NEUTRON_CONF_DIR/dhcp_agent.ini
103 103
 Q_L3_CONF_FILE=$NEUTRON_CONF_DIR/l3_agent.ini
104
-Q_FWAAS_CONF_FILE=$NEUTRON_CONF_DIR/fwaas_driver.ini
105 104
 Q_META_CONF_FILE=$NEUTRON_CONF_DIR/metadata_agent.ini
106 105
 
107 106
 # Default name for Neutron database
... ...
@@ -265,13 +264,8 @@ source $TOP_DIR/lib/neutron_plugins/services/loadbalancer
265 265
 # Hardcoding for 1 service plugin for now
266 266
 source $TOP_DIR/lib/neutron_plugins/services/metering
267 267
 
268
-# Firewall Service Plugin functions
269
-# ---------------------------------
270
-source $TOP_DIR/lib/neutron_plugins/services/firewall
271
-
272 268
 # L3 Service functions
273 269
 source $TOP_DIR/lib/neutron_plugins/services/l3
274
-
275 270
 # Use security group or not
276 271
 if has_neutron_plugin_security_group; then
277 272
     Q_USE_SECGROUP=${Q_USE_SECGROUP:-True}
... ...
@@ -332,10 +326,6 @@ function configure_mutnauq {
332 332
     if is_service_enabled q-metering; then
333 333
         _configure_neutron_metering
334 334
     fi
335
-    if is_service_enabled q-fwaas; then
336
-        deprecated "Configuring q-fwaas through devstack is deprecated"
337
-        _configure_neutron_fwaas
338
-    fi
339 335
     if is_service_enabled q-agt q-svc; then
340 336
         _configure_neutron_service
341 337
     fi
... ...
@@ -431,10 +421,6 @@ function install_mutnauq {
431 431
 
432 432
     git_clone $NEUTRON_REPO $NEUTRON_DIR $NEUTRON_BRANCH
433 433
     setup_develop $NEUTRON_DIR
434
-    if is_service_enabled q-fwaas; then
435
-        git_clone $NEUTRON_FWAAS_REPO $NEUTRON_FWAAS_DIR $NEUTRON_FWAAS_BRANCH
436
-        setup_develop $NEUTRON_FWAAS_DIR
437
-    fi
438 434
     if is_service_enabled q-lbaas; then
439 435
         git_clone $NEUTRON_LBAAS_REPO $NEUTRON_LBAAS_DIR $NEUTRON_LBAAS_BRANCH
440 436
         setup_develop $NEUTRON_LBAAS_DIR
... ...
@@ -576,9 +562,6 @@ function stop_mutnauq_other {
576 576
     if is_service_enabled q-lbaas; then
577 577
         neutron_lbaas_stop
578 578
     fi
579
-    if is_service_enabled q-fwaas; then
580
-        neutron_fwaas_stop
581
-    fi
582 579
     if is_service_enabled q-metering; then
583 580
         neutron_metering_stop
584 581
     fi
... ...
@@ -853,14 +836,6 @@ function _configure_neutron_metering {
853 853
     neutron_agent_metering_configure_agent
854 854
 }
855 855
 
856
-function _configure_neutron_fwaas {
857
-    if [ -f $NEUTRON_FWAAS_DIR/etc/neutron_fwaas.conf ]; then
858
-        cp $NEUTRON_FWAAS_DIR/etc/neutron_fwaas.conf $NEUTRON_CONF_DIR
859
-    fi
860
-    neutron_fwaas_configure_common
861
-    neutron_fwaas_configure_driver
862
-}
863
-
864 856
 function _configure_dvr {
865 857
     iniset $NEUTRON_CONF DEFAULT router_distributed True
866 858
     iniset $Q_L3_CONF_FILE DEFAULT agent_mode $Q_DVR_MODE
867 859
deleted file mode 100644
... ...
@@ -1,33 +0,0 @@
1
-#!/bin/bash
2
-
3
-# Neutron firewall plugin
4
-# ---------------------------
5
-
6
-# Save trace setting
7
-_XTRACE_NEUTRON_FIREWALL=$(set +o | grep xtrace)
8
-set +o xtrace
9
-
10
-FWAAS_PLUGIN=${FWAAS_PLUGIN:-neutron_fwaas.services.firewall.fwaas_plugin.FirewallPlugin}
11
-FWAAS_DRIVER=${FWAAS_DRIVER:-neutron_fwaas.services.firewall.drivers.linux.iptables_fwaas.IptablesFwaasDriver}
12
-
13
-function neutron_fwaas_configure_common {
14
-    _neutron_service_plugin_class_add $FWAAS_PLUGIN
15
-}
16
-
17
-function neutron_fwaas_configure_driver {
18
-    # Uses oslo config generator to generate FWaaS sample configuration files
19
-    (cd $NEUTRON_FWAAS_DIR && exec ./tools/generate_config_file_samples.sh)
20
-
21
-    FWAAS_DRIVER_CONF_FILENAME=/etc/neutron/fwaas_driver.ini
22
-    cp $NEUTRON_FWAAS_DIR/etc/fwaas_driver.ini.sample $FWAAS_DRIVER_CONF_FILENAME
23
-
24
-    iniset_multiline $FWAAS_DRIVER_CONF_FILENAME fwaas enabled True
25
-    iniset_multiline $FWAAS_DRIVER_CONF_FILENAME fwaas driver "$FWAAS_DRIVER"
26
-}
27
-
28
-function neutron_fwaas_stop {
29
-    :
30
-}
31
-
32
-# Restore xtrace
33
-$_XTRACE_NEUTRON_FIREWALL