Browse code

Merge "Neutron: stop creating neutron debug probes"

Jenkins authored on 2016/05/26 13:10:51
Showing 2 changed files
... ...
@@ -130,8 +130,6 @@ Q_USE_ROOTWRAP_DAEMON=$(trueorfalse True Q_USE_ROOTWRAP_DAEMON)
130 130
 Q_META_DATA_IP=${Q_META_DATA_IP:-$SERVICE_HOST}
131 131
 # Allow Overlapping IP among subnets
132 132
 Q_ALLOW_OVERLAPPING_IP=${Q_ALLOW_OVERLAPPING_IP:-True}
133
-# Use neutron-debug command
134
-Q_USE_DEBUG_COMMAND=${Q_USE_DEBUG_COMMAND:-False}
135 133
 # The name of the default q-l3 router
136 134
 Q_ROUTER_NAME=${Q_ROUTER_NAME:-router1}
137 135
 Q_NOTIFY_NOVA_PORT_STATUS_CHANGES=${Q_NOTIFY_NOVA_PORT_STATUS_CHANGES:-True}
... ...
@@ -361,8 +359,6 @@ function configure_mutnauq {
361 361
         _configure_neutron_ceilometer_notifications
362 362
     fi
363 363
 
364
-    _configure_neutron_debug_command
365
-
366 364
     iniset $NEUTRON_CONF DEFAULT api_workers "$API_WORKERS"
367 365
 }
368 366
 
... ...
@@ -798,24 +794,6 @@ function _configure_neutron_common {
798 798
     _neutron_setup_rootwrap
799 799
 }
800 800
 
801
-function _configure_neutron_debug_command {
802
-    if [[ "$Q_USE_DEBUG_COMMAND" != "True" ]]; then
803
-        return
804
-    fi
805
-
806
-    cp $NEUTRON_DIR/etc/l3_agent.ini.sample $NEUTRON_TEST_CONFIG_FILE
807
-
808
-    iniset $NEUTRON_TEST_CONFIG_FILE DEFAULT debug False
809
-    iniset $NEUTRON_TEST_CONFIG_FILE AGENT root_helper "$Q_RR_COMMAND"
810
-    if [[ "$Q_USE_ROOTWRAP_DAEMON" == "True" ]]; then
811
-        iniset $NEUTRON_TEST_CONFIG_FILE AGENT root_helper_daemon "$Q_RR_DAEMON_COMMAND"
812
-    fi
813
-
814
-    _neutron_setup_interface_driver $NEUTRON_TEST_CONFIG_FILE
815
-
816
-    neutron_plugin_configure_debug_command
817
-}
818
-
819 801
 function _configure_neutron_dhcp_agent {
820 802
 
821 803
     cp $NEUTRON_DIR/etc/dhcp_agent.ini.sample $Q_DHCP_CONF_FILE
... ...
@@ -1026,24 +1004,6 @@ function delete_probe {
1026 1026
     neutron-debug --os-tenant-name admin --os-username admin probe-delete $probe_id
1027 1027
 }
1028 1028
 
1029
-function setup_neutron_debug {
1030
-    if [[ "$Q_USE_DEBUG_COMMAND" == "True" ]]; then
1031
-        public_net_id=`_get_net_id $PUBLIC_NETWORK_NAME`
1032
-        if [[ -n $public_net_id ]]; then
1033
-            neutron-debug --os-tenant-name admin --os-username admin --os-password $ADMIN_PASSWORD probe-create --device-owner compute $public_net_id
1034
-        fi
1035
-        private_net_id=`_get_net_id $PRIVATE_NETWORK_NAME`
1036
-        if [[ -n $private_net_id ]]; then
1037
-            neutron-debug --os-tenant-name admin --os-username admin --os-password $ADMIN_PASSWORD probe-create --device-owner compute $private_net_id
1038
-        fi
1039
-    fi
1040
-}
1041
-
1042
-function teardown_neutron_debug {
1043
-    delete_probe $PUBLIC_NETWORK_NAME
1044
-    delete_probe $PRIVATE_NETWORK_NAME
1045
-}
1046
-
1047 1029
 function _get_net_id {
1048 1030
     neutron --os-cloud devstack-admin --os-region "$REGION_NAME" --os-tenant-name admin --os-username admin --os-password $ADMIN_PASSWORD net-list | grep $1 | awk '{print $2}'
1049 1031
 }
... ...
@@ -1257,7 +1257,6 @@ fi
1257 1257
 if is_service_enabled q-svc && [[ "$NEUTRON_CREATE_INITIAL_NETWORKS" == "True" ]]; then
1258 1258
     echo_summary "Creating initial neutron network elements"
1259 1259
     create_neutron_initial_network
1260
-    setup_neutron_debug
1261 1260
 fi
1262 1261
 
1263 1262
 if is_service_enabled nova; then