Count threads in suite teardown 82/68982/4
authorJamo Luhrsen <jluhrsen@redhat.com>
Fri, 2 Mar 2018 01:13:49 +0000 (17:13 -0800)
committerSam Hague <shague@redhat.com>
Wed, 11 Apr 2018 22:54:26 +0000 (22:54 +0000)
- in light of the recent discovery that we get a lot of threads
running when doing karaf shell commands (especially via ssh),
this info might be useful to have down the road.

see: https://jira.opendaylight.org/browse/INFRAUTILS-29

Change-Id: I4198512bd6ad28b2916ca13276b7ca1ea73117c8
Signed-off-by: Jamo Luhrsen <jluhrsen@redhat.com>
csit/libraries/OpenStackOperations.robot

index 31fb3c3519735d7d8cd847a94f80ef8ef28768ef..efc9bb0534585f93d3a39e24c424c6a92b36ee81 100644 (file)
@@ -7,6 +7,7 @@ Library           SSHLibrary
 Library           String
 Resource          DataModels.robot
 Resource          DevstackUtils.robot
+Resource          KarafKeywords.robot
 Resource          L2GatewayOperations.robot
 Resource          OVSDB.robot
 Resource          SetupUtils.robot
@@ -1004,6 +1005,8 @@ OpenStack Suite Teardown
     OpenStack Cleanup All
     OpenStackOperations.Stop Packet Capture On Nodes    ${tcpdump_port_6653_conn_ids}
     SSHLibrary.Close All Connections
+    : FOR    ${i}    IN RANGE    ${NUM_ODL_SYSTEM}
+    \    KarafKeywords.Issue Command On Karaf Console    threads --list | wc -l    ${ODL_SYSTEM_${i+1}_IP}
 
 Copy DHCP Files From Control Node
     [Documentation]    Copy the current DHCP files to the robot vm. The keyword must be called