From 5e01c47e4d671166b9396c507a7105a5ac8256dc Mon Sep 17 00:00:00 2001 From: "Sean M. Collins" Date: Thu, 19 May 2016 11:36:57 -0400 Subject: [PATCH] Neutron: stop creating neutron debug probes They seem to be more trouble than they are worth. http://lists.openstack.org/pipermail/openstack-dev/2016-May/095476.html Neutron has already deprecated the utility in https://review.openstack.org/#/c/318786/ Change-Id: I470ed5bc1cbe754c4bfae41f411150331bc4335d --- lib/neutron-legacy | 40 ---------------------------------------- stack.sh | 1 - 2 files changed, 41 deletions(-) diff --git a/lib/neutron-legacy b/lib/neutron-legacy index 9144ca4b1e..02be83ac35 100644 --- a/lib/neutron-legacy +++ b/lib/neutron-legacy @@ -130,8 +130,6 @@ Q_USE_ROOTWRAP_DAEMON=$(trueorfalse True Q_USE_ROOTWRAP_DAEMON) Q_META_DATA_IP=${Q_META_DATA_IP:-$SERVICE_HOST} # Allow Overlapping IP among subnets Q_ALLOW_OVERLAPPING_IP=${Q_ALLOW_OVERLAPPING_IP:-True} -# Use neutron-debug command -Q_USE_DEBUG_COMMAND=${Q_USE_DEBUG_COMMAND:-False} # The name of the default q-l3 router Q_ROUTER_NAME=${Q_ROUTER_NAME:-router1} Q_NOTIFY_NOVA_PORT_STATUS_CHANGES=${Q_NOTIFY_NOVA_PORT_STATUS_CHANGES:-True} @@ -361,8 +359,6 @@ function configure_mutnauq { _configure_neutron_ceilometer_notifications fi - _configure_neutron_debug_command - iniset $NEUTRON_CONF DEFAULT api_workers "$API_WORKERS" } @@ -799,24 +795,6 @@ function _configure_neutron_common { _neutron_setup_rootwrap } -function _configure_neutron_debug_command { - if [[ "$Q_USE_DEBUG_COMMAND" != "True" ]]; then - return - fi - - cp $NEUTRON_DIR/etc/l3_agent.ini.sample $NEUTRON_TEST_CONFIG_FILE - - iniset $NEUTRON_TEST_CONFIG_FILE DEFAULT debug False - iniset $NEUTRON_TEST_CONFIG_FILE AGENT root_helper "$Q_RR_COMMAND" - if [[ "$Q_USE_ROOTWRAP_DAEMON" == "True" ]]; then - iniset $NEUTRON_TEST_CONFIG_FILE AGENT root_helper_daemon "$Q_RR_DAEMON_COMMAND" - fi - - _neutron_setup_interface_driver $NEUTRON_TEST_CONFIG_FILE - - neutron_plugin_configure_debug_command -} - function _configure_neutron_dhcp_agent { cp $NEUTRON_DIR/etc/dhcp_agent.ini.sample $Q_DHCP_CONF_FILE @@ -1027,24 +1005,6 @@ function delete_probe { neutron-debug --os-tenant-name admin --os-username admin probe-delete $probe_id } -function setup_neutron_debug { - if [[ "$Q_USE_DEBUG_COMMAND" == "True" ]]; then - public_net_id=`_get_net_id $PUBLIC_NETWORK_NAME` - if [[ -n $public_net_id ]]; then - neutron-debug --os-tenant-name admin --os-username admin --os-password $ADMIN_PASSWORD probe-create --device-owner compute $public_net_id - fi - private_net_id=`_get_net_id $PRIVATE_NETWORK_NAME` - if [[ -n $private_net_id ]]; then - neutron-debug --os-tenant-name admin --os-username admin --os-password $ADMIN_PASSWORD probe-create --device-owner compute $private_net_id - fi - fi -} - -function teardown_neutron_debug { - delete_probe $PUBLIC_NETWORK_NAME - delete_probe $PRIVATE_NETWORK_NAME -} - function _get_net_id { 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}' } diff --git a/stack.sh b/stack.sh index 21f7f35f35..381e94cf26 100755 --- a/stack.sh +++ b/stack.sh @@ -1250,7 +1250,6 @@ fi if is_service_enabled q-svc && [[ "$NEUTRON_CREATE_INITIAL_NETWORKS" == "True" ]]; then echo_summary "Creating initial neutron network elements" create_neutron_initial_network - setup_neutron_debug fi if is_service_enabled nova; then