Browse code

Merge "remove neutron 3rd party infrastructure"

Jenkins authored on 2016/08/09 23:23:05
Showing 6 changed files
... ...
@@ -1002,55 +1002,6 @@ function _ssh_check_neutron {
1002 1002
     test_with_retry "$testcmd" "server $ip didn't become ssh-able" $timeout_sec
1003 1003
 }
1004 1004
 
1005
-# Neutron 3rd party programs
1006
-#---------------------------
1007
-
1008
-# please refer to ``lib/neutron_thirdparty/README.md`` for details
1009
-NEUTRON_THIRD_PARTIES=""
1010
-for f in $TOP_DIR/lib/neutron_thirdparty/*; do
1011
-    third_party=$(basename $f)
1012
-    if is_service_enabled $third_party; then
1013
-        source $TOP_DIR/lib/neutron_thirdparty/$third_party
1014
-        NEUTRON_THIRD_PARTIES="$NEUTRON_THIRD_PARTIES,$third_party"
1015
-    fi
1016
-done
1017
-
1018
-function _neutron_third_party_do {
1019
-    for third_party in ${NEUTRON_THIRD_PARTIES//,/ }; do
1020
-        ${1}_${third_party}
1021
-    done
1022
-}
1023
-
1024
-# configure_neutron_third_party() - Set config files, create data dirs, etc
1025
-function configure_neutron_third_party {
1026
-    _neutron_third_party_do configure
1027
-}
1028
-
1029
-# init_neutron_third_party() - Initialize databases, etc.
1030
-function init_neutron_third_party {
1031
-    _neutron_third_party_do init
1032
-}
1033
-
1034
-# install_neutron_third_party() - Collect source and prepare
1035
-function install_neutron_third_party {
1036
-    _neutron_third_party_do install
1037
-}
1038
-
1039
-# start_neutron_third_party() - Start running processes, including screen
1040
-function start_neutron_third_party {
1041
-    _neutron_third_party_do start
1042
-}
1043
-
1044
-# stop_neutron_third_party - Stop running processes (non-screen)
1045
-function stop_neutron_third_party {
1046
-    _neutron_third_party_do stop
1047
-}
1048
-
1049
-# check_neutron_third_party_integration() - Check that third party integration is sane
1050
-function check_neutron_third_party_integration {
1051
-    _neutron_third_party_do check
1052
-}
1053
-
1054 1005
 # Restore xtrace
1055 1006
 $_XTRACE_NEUTRON
1056 1007
 
1057 1008
deleted file mode 100644
... ...
@@ -1,41 +0,0 @@
1
-Neutron third party specific files
2
-==================================
3
-Some Neutron plugins require third party programs to function.
4
-The files under the directory, ``lib/neutron_thirdparty/``, will be used
5
-when their service are enabled.
6
-Third party program specific configuration variables should be in this file.
7
-
8
-* filename: ``<third_party>``
9
-  * The corresponding file name should be same to service name, ``<third_party>``.
10
-
11
-functions
12
-``lib/neutron-legacy`` calls the following functions when the ``<third_party>`` is enabled
13
-
14
-functions to be implemented
15
-* ``configure_<third_party>``:
16
-  set config files, create data dirs, etc
17
-  e.g.
18
-  sudo python setup.py deploy
19
-  iniset $XXXX_CONF...
20
-
21
-* ``init_<third_party>``:
22
-  initialize databases, etc
23
-
24
-* ``install_<third_party>``:
25
-  collect source and prepare
26
-  e.g.
27
-  git clone xxx
28
-
29
-* ``start_<third_party>``:
30
-  start running processes, including screen if USE_SCREEN=True
31
-  e.g.
32
-  run_process XXXX "$XXXX_DIR/bin/XXXX-bin"
33
-
34
-* ``stop_<third_party>``:
35
-  stop running processes (non-screen)
36
-  e.g.
37
-  stop_process XXXX
38
-
39
-* ``check_<third_party>``:
40
-  verify that the integration between neutron server and third-party components is sane
41 1
deleted file mode 100644
... ...
@@ -1,54 +0,0 @@
1
-#!/bin/bash
2
-#
3
-# Big Switch/FloodLight  OpenFlow Controller
4
-# ------------------------------------------
5
-
6
-# Save trace setting
7
-_XTRACE_NEUTRON_BIGSWITCH=$(set +o | grep xtrace)
8
-set +o xtrace
9
-
10
-BS_FL_CONTROLLERS_PORT=${BS_FL_CONTROLLERS_PORT:-localhost:80}
11
-BS_FL_OF_PORT=${BS_FL_OF_PORT:-6633}
12
-
13
-function configure_bigswitch_floodlight {
14
-    :
15
-}
16
-
17
-function init_bigswitch_floodlight {
18
-    install_neutron_agent_packages
19
-
20
-    echo -n "Installing OVS managed by the openflow controllers:"
21
-    echo ${BS_FL_CONTROLLERS_PORT}
22
-
23
-    # Create local OVS bridge and configure it
24
-    sudo ovs-vsctl --no-wait -- --if-exists del-br ${OVS_BRIDGE}
25
-    sudo ovs-vsctl --no-wait add-br ${OVS_BRIDGE}
26
-    sudo ovs-vsctl --no-wait br-set-external-id ${OVS_BRIDGE} bridge-id ${OVS_BRIDGE}
27
-
28
-    ctrls=
29
-    for ctrl in `echo ${BS_FL_CONTROLLERS_PORT} | tr ',' ' '`; do
30
-        ctrl=${ctrl%:*}
31
-        ctrls="${ctrls} tcp:${ctrl}:${BS_FL_OF_PORT}"
32
-    done
33
-    echo "Adding Network conttrollers: " ${ctrls}
34
-    sudo ovs-vsctl --no-wait set-controller ${OVS_BRIDGE} ${ctrls}
35
-}
36
-
37
-function install_bigswitch_floodlight {
38
-    :
39
-}
40
-
41
-function start_bigswitch_floodlight {
42
-    :
43
-}
44
-
45
-function stop_bigswitch_floodlight {
46
-    :
47
-}
48
-
49
-function check_bigswitch_floodlight {
50
-    :
51
-}
52
-
53
-# Restore xtrace
54
-$_XTRACE_NEUTRON_BIGSWITCH
55 1
deleted file mode 100644
... ...
@@ -1,4 +0,0 @@
1
-#!/bin/bash
2
-
3
-# REVISIT(roeyc): this file left empty so that 'enable_service vmware_nsx'
4
-# continues to work.
... ...
@@ -843,7 +843,6 @@ fi
843 843
 if is_service_enabled neutron; then
844 844
     # Network service
845 845
     stack_install_service neutron
846
-    install_neutron_third_party
847 846
 fi
848 847
 
849 848
 if is_service_enabled nova; then
... ...
@@ -1093,15 +1092,6 @@ if is_service_enabled neutron; then
1093 1093
     fi
1094 1094
 fi
1095 1095
 
1096
-# Some Neutron plugins require network controllers which are not
1097
-# a part of the OpenStack project. Configure and start them.
1098
-if is_service_enabled neutron; then
1099
-    configure_neutron_third_party
1100
-    init_neutron_third_party
1101
-    start_neutron_third_party
1102
-fi
1103
-
1104
-
1105 1096
 # Nova
1106 1097
 # ----
1107 1098
 
... ...
@@ -1235,11 +1225,9 @@ fi
1235 1235
 if is_service_enabled neutron-api; then
1236 1236
     echo_summary "Starting Neutron"
1237 1237
     start_neutron_api
1238
-    # check_neutron_third_party_integration
1239 1238
 elif is_service_enabled q-svc; then
1240 1239
     echo_summary "Starting Neutron"
1241 1240
     start_neutron_service_and_check
1242
-    check_neutron_third_party_integration
1243 1241
 elif is_service_enabled $DATABASE_BACKENDS && is_service_enabled n-net; then
1244 1242
     NM_CONF=${NOVA_CONF}
1245 1243
     if is_service_enabled n-cell; then
... ...
@@ -168,7 +168,6 @@ fi
168 168
 
169 169
 if is_service_enabled neutron; then
170 170
     stop_neutron
171
-    stop_neutron_third_party
172 171
     cleanup_neutron
173 172
 fi
174 173