Browse code

Remove fwaas from DevStack

Depends-On: Iadcee07e873fcb4f099ebccc2e33780e74438140
Change-Id: Ic60cd1fa90c19dfac00be583e2ddc5633dbb68a3

Sean M. Collins authored on 2015/08/19 06:24:44
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
... ...
@@ -267,13 +266,8 @@ source $TOP_DIR/lib/neutron_plugins/services/loadbalancer
267 267
 # Hardcoding for 1 service plugin for now
268 268
 source $TOP_DIR/lib/neutron_plugins/services/metering
269 269
 
270
-# Firewall Service Plugin functions
271
-# ---------------------------------
272
-source $TOP_DIR/lib/neutron_plugins/services/firewall
273
-
274 270
 # L3 Service functions
275 271
 source $TOP_DIR/lib/neutron_plugins/services/l3
276
-
277 272
 # Use security group or not
278 273
 if has_neutron_plugin_security_group; then
279 274
     Q_USE_SECGROUP=${Q_USE_SECGROUP:-True}
... ...
@@ -334,10 +328,6 @@ function configure_mutnauq {
334 334
     if is_service_enabled q-metering; then
335 335
         _configure_neutron_metering
336 336
     fi
337
-    if is_service_enabled q-fwaas; then
338
-        deprecated "Configuring q-fwaas through devstack is deprecated"
339
-        _configure_neutron_fwaas
340
-    fi
341 337
     if is_service_enabled q-agt q-svc; then
342 338
         _configure_neutron_service
343 339
     fi
... ...
@@ -435,10 +425,6 @@ function install_mutnauq {
435 435
 
436 436
     git_clone $NEUTRON_REPO $NEUTRON_DIR $NEUTRON_BRANCH
437 437
     setup_develop $NEUTRON_DIR
438
-    if is_service_enabled q-fwaas; then
439
-        git_clone $NEUTRON_FWAAS_REPO $NEUTRON_FWAAS_DIR $NEUTRON_FWAAS_BRANCH
440
-        setup_develop $NEUTRON_FWAAS_DIR
441
-    fi
442 438
     if is_service_enabled q-lbaas; then
443 439
         git_clone $NEUTRON_LBAAS_REPO $NEUTRON_LBAAS_DIR $NEUTRON_LBAAS_BRANCH
444 440
         setup_develop $NEUTRON_LBAAS_DIR
... ...
@@ -580,9 +566,6 @@ function stop_mutnauq_other {
580 580
     if is_service_enabled q-lbaas; then
581 581
         neutron_lbaas_stop
582 582
     fi
583
-    if is_service_enabled q-fwaas; then
584
-        neutron_fwaas_stop
585
-    fi
586 583
     if is_service_enabled q-metering; then
587 584
         neutron_metering_stop
588 585
     fi
... ...
@@ -877,14 +860,6 @@ function _configure_neutron_metering {
877 877
     neutron_agent_metering_configure_agent
878 878
 }
879 879
 
880
-function _configure_neutron_fwaas {
881
-    if [ -f $NEUTRON_FWAAS_DIR/etc/neutron_fwaas.conf ]; then
882
-        cp $NEUTRON_FWAAS_DIR/etc/neutron_fwaas.conf $NEUTRON_CONF_DIR
883
-    fi
884
-    neutron_fwaas_configure_common
885
-    neutron_fwaas_configure_driver
886
-}
887
-
888 880
 function _configure_dvr {
889 881
     iniset $NEUTRON_CONF DEFAULT router_distributed True
890 882
     iniset $Q_L3_CONF_FILE DEFAULT agent_mode $Q_DVR_MODE
891 883
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