NSB PROX test hang fixes 37/44237/1
authorRoss Brattain <ross.b.brattain@intel.com>
Thu, 28 Sep 2017 07:10:43 +0000 (00:10 -0700)
committerRoss Brattain <ross.b.brattain@intel.com>
Wed, 4 Oct 2017 15:31:17 +0000 (08:31 -0700)
commit8e35dc2c45ec1897690173b374406a05b2132954
treee21fbaf51dd5d3aafe801798f5efa3e83be4b50d
parentddff9781c46fc446380a378cbca40d9576e32b68
NSB PROX test hang fixes

The PROX tests were hanging in the duration
runner.

These are fixes for various errors:

raise error in collect_kpi if VNF is down

move prox dpdk_rebind after collectd stop
fix dpdk nicbind rebind to group by drivers

prox: raise error in collect_kpi if the VNF is down
prox: add VNF_TYPE for consistency

sample_vnf: debug and fix kill_vnf
pkill is not matching some executable names,
add some debug process dumps and try switching
back to killall until we can find the issue

sample_vnf: add default timeout, so we can override
default 3600 SSH timeout

collect_kpi is the point at which we check
the VNFs and TGs for failures or exits

queues are the problem make sure we aren't silently blocking on
non-empty queues by canceling join thread in subprocess

fixup duration runner to close queues
and other attempt to stop duration runner
from hanging

VnfdHelper: memoize port_num

resource: fail if ssh can't connect
at the end of 3600 second test our ssh connection
is dead, so we can't actually stop collectd
unless we reconnect

fix stop() logic to ignore ssh errors

Change-Id: I6c8e682a80cb9d00362e2fef4a46df080f304e55
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
30 files changed:
tests/unit/benchmark/scenarios/networking/test_vnf_generic.py
tests/unit/common/test_process.py [new file with mode: 0644]
tests/unit/network_services/collector/test_subscriber.py
tests/unit/network_services/helpers/test_dpdkbindnic_helper.py
tests/unit/network_services/nfvi/test_resource.py
tests/unit/network_services/vnf_generic/vnf/test_cgnapt_vnf.py
tests/unit/network_services/vnf_generic/vnf/test_prox_helpers.py
tests/unit/network_services/vnf_generic/vnf/test_prox_vnf.py
tests/unit/network_services/vnf_generic/vnf/test_sample_vnf.py
tests/unit/network_services/vnf_generic/vnf/test_tg_prox.py
tests/unit/network_services/vnf_generic/vnf/test_udp_replay.py
tests/unit/network_services/vnf_generic/vnf/test_vpe_vnf.py
yardstick/benchmark/runners/arithmetic.py
yardstick/benchmark/runners/base.py
yardstick/benchmark/runners/duration.py
yardstick/benchmark/runners/dynamictp.py
yardstick/benchmark/runners/iteration.py
yardstick/benchmark/runners/search.py
yardstick/benchmark/runners/sequence.py
yardstick/benchmark/scenarios/networking/vnf_generic.py
yardstick/common/process.py [new file with mode: 0644]
yardstick/network_services/collector/subscriber.py
yardstick/network_services/helpers/dpdkbindnic_helper.py [moved from yardstick/network_services/helpers/dpdknicbind_helper.py with 85% similarity]
yardstick/network_services/nfvi/resource.py
yardstick/network_services/vnf_generic/vnf/base.py
yardstick/network_services/vnf_generic/vnf/prox_helpers.py
yardstick/network_services/vnf_generic/vnf/prox_vnf.py
yardstick/network_services/vnf_generic/vnf/sample_vnf.py
yardstick/network_services/vnf_generic/vnf/udp_replay.py
yardstick/network_services/vnf_generic/vnf/vpe_vnf.py