Merge "Enable bridge debugging services on the tempest and grenade jobs"

This commit is contained in:
Zuul 2020-06-23 17:39:15 +00:00 committed by Gerrit Code Review
commit c6d02a1980
5 changed files with 33 additions and 10 deletions

View File

@ -768,16 +768,6 @@ function start_ovn {
setup_logging $OVN_META_CONF
fi
if is_service_enabled br-ex-tcpdump ; then
# tcpdump monitor on br-ex for ARP, reverse ARP and ICMP v4 / v6 packets
sudo ip link set dev $PUBLIC_BRIDGE up
run_process br-ex-tcpdump "/usr/sbin/tcpdump -i $PUBLIC_BRIDGE arp or rarp or icmp or icmp6 -enlX" "$STACK_GROUP" root
fi
if is_service_enabled br-int-flows ; then
run_process br-int-flows "/bin/sh -c \"set +e; while true; do echo ovs-ofctl dump-flows br-int; ovs-ofctl dump-flows br-int ; sleep 30; done; \"" "$STACK_GROUP" root
fi
# NOTE(lucasagomes): To keep things simpler, let's reuse the same
# RUNDIR for both OVS and OVN. This way we avoid having to specify the
# --db option in the ovn-{n,s}bctl commands while playing with DevStack

View File

@ -116,6 +116,15 @@ if [[ "$1" == "stack" ]]; then
configure_ovn_plugin
start_ovn
fi
if is_service_enabled br-ex-tcpdump ; then
# tcpdump monitor on br-ex for ARP, reverse ARP and ICMP v4 / v6 packets
sudo ip link set dev $PUBLIC_BRIDGE up
run_process br-ex-tcpdump "/usr/sbin/tcpdump -i $PUBLIC_BRIDGE arp or rarp or icmp or icmp6 -enlX" "$STACK_GROUP" root
fi
if is_service_enabled br-int-flows ; then
run_process br-int-flows "/bin/sh -c \"set +e; while true; do echo ovs-ofctl dump-flows br-int; ovs-ofctl dump-flows br-int ; sleep 30; done; \"" "$STACK_GROUP" root
fi
;;
extra)
if is_service_enabled q-sriov-agt neutron-sriov-agent; then

View File

@ -24,6 +24,8 @@
s-container: false
s-object: false
s-proxy: false
br-ex-tcpdump: true
br-int-flows: true
- job:
name: neutron-grenade-dvr-multinode
@ -43,6 +45,8 @@
s-container: false
s-object: false
s-proxy: false
br-ex-tcpdump: true
br-int-flows: true
devstack_local_conf:
post-config:
$NEUTRON_CONF:
@ -76,6 +80,8 @@
q-agt: true
q-l3: true
q-meta: true
br-ex-tcpdump: true
br-int-flows: true
devstack_local_conf:
post-config:
$NEUTRON_CONF:

View File

@ -25,6 +25,9 @@
voting: false
vars:
tox_envlist: integrated-network
devstack_services:
br-ex-tcpdump: true
br-int-flows: true
devstack_local_conf:
post-config:
$NEUTRON_CONF:
@ -59,6 +62,8 @@
q-agt: true
q-l3: true
q-meta: true
br-ex-tcpdump: true
br-int-flows: true
devstack_local_conf:
post-config:
$NEUTRON_CONF:

View File

@ -10,6 +10,9 @@
tempest_concurrency: 4
devstack_localrc:
Q_DVR_MODE: dvr_snat
devstack_services:
br-ex-tcpdump: true
br-int-flows: true
irrelevant-files: &irrelevant-files
- ^(test-|)requirements.txt$
- ^.*\.rst$
@ -56,6 +59,8 @@
neutron-segments: true
neutron-trunk: true
neutron-uplink-status-propagation: true
br-ex-tcpdump: true
br-int-flows: true
devstack_local_conf:
post-config:
$NEUTRON_CONF:
@ -104,6 +109,8 @@
devstack_services:
postgresql: true
mysql: false
br-ex-tcpdump: true
br-int-flows: true
irrelevant-files: *irrelevant-files
- job:
@ -117,6 +124,9 @@
vars:
devstack_localrc:
MYSQL_SERVICE_NAME: mariadb
devstack_services:
br-ex-tcpdump: true
br-int-flows: true
# NOTE(ralonsoh): once MariaDB default version in Ubuntu is bumped to
# >10.1, this workaround can be removed (bug 1855912)
pre-run: playbooks/add_mariadb_repo.yaml
@ -150,6 +160,9 @@
vars:
devstack_localrc:
NEUTRON_DEPLOY_MOD_WSGI: true
devstack_services:
br-ex-tcpdump: true
br-int-flows: true
irrelevant-files: *irrelevant-files
- job: