Fixed too tight timeouts for deconfiguration 86/30386/8
authorJozef Behran <jbehran@cisco.com>
Mon, 30 Nov 2015 14:13:10 +0000 (15:13 +0100)
committerGerrit Code Review <gerrit@opendaylight.org>
Wed, 2 Dec 2015 09:18:25 +0000 (09:18 +0000)
commit4bfbeb7ba66098204a9ccbdc8fcbf55d0453425e
tree2221f3ba15104bec17dbb7216c197e84c143501f
parent96876471e4d5efda01c40c710d6941abb20a006c
Fixed too tight timeouts for deconfiguration

Timeouts of 10 seconds for deconfiguring the device is too
tight when there are other scaling suites executed before
and the memory leak bug 4514 is present. The needed timeout
is 120 seconds as I had seen 20 to 30 second garbage
collection pauses on just a 1GB heap usage and the bug
causes the ODL to leak about 5GB if two scaling suites
are present.

There are two timeouts, one is the Karaf console timeout
and the other one is the timeout waiting for the device
to disappear after it was deconfigured. The large timeout
is necessary in the second case because the "device
disappeared" check is executed immediately after the request
to remove it from the configuration was sent.

To avoid "test running for 2 weeks if something bad happens"
type of situation a global timeout logic was also added. The
default timeout is 30 minutes but the scaling suite is
giving less time to the loops.

Change-Id: Ie59a2f9d7a6ee9999f202ba209caf03efd05a801
Signed-off-by: Jozef Behran <jbehran@cisco.com>
csit/libraries/NetconfKeywords.robot
csit/suites/netconf/scale/getsingle.robot