Also add akka "light" debugging.
Change-Id: Ia018b871a19fadd52a05194bfb1dc295fa6f9618
Signed-off-by: Luis Gomez <ecelgp@gmail.com>
Read Until ${prompt}
Close Connection
-Report_Failure_Due_To_Bug
+Report Failure Due To Bug
[Arguments] ${number} ${include_bug_in_tags}=True
[Documentation] Report that a test failed due to a known Bugzilla bug whose
... number is provided as an argument.
... into the Robot log file.
${test_skipped}= BuiltIn.Evaluate len(re.findall('SKIPPED', """${TEST_MESSAGE}""")) > 0 modules=re
BuiltIn.Return From Keyword If ('${TEST_STATUS}' != 'FAIL') or ${test_skipped}
- ${bug_url}= BuiltIn.Set_Variable https://bugs.opendaylight.org/show_bug.cgi?id=${number}
+ Comment Jira tickets are {PROJECT}-{NUMBER} while Bugzilla tickets are {NUMBER}
+ ${match} BuiltIn.Run Keyword And Return Status Should Contain ${number} -
+ ${bug_url}= BuiltIn.Set Variable If ${match} https://jira.opendaylight.org/browse/${number} https://bugs.opendaylight.org/show_bug.cgi?id=${number}
${msg}= BuiltIn.Set_Variable This test fails due to ${bug_url}
${newline}= BuiltIn.Evaluate chr(10)
BuiltIn.Set Test Message ${msg}${newline}${newline}${TEST_MESSAGE}
BuiltIn.Log ${msg}
- BuiltIn.Run_Keyword_If "${include_bug_in_tags}"=="True" Set Tags ${bug_url}
+ BuiltIn.Run Keyword If "${include_bug_in_tags}"=="True" Set Tags ${bug_url}
Report_Failure_And_Point_To_Linked_Bugs
[Documentation] Report that a test failed and point to linked Bugzilla bug(s).
cat > ${WORKSPACE}/set_akka_debug.sh <<EOF
echo "Enable AKKA debug"
+ # light debug
sed -i -e 's/akka {/akka {\nloglevel = "DEBUG"\nactor {\ndebug {\nautoreceive = on\nlifecycle = on\nunhandled = on\nfsm = on\nevent-stream = on\n}\n}/' ${AKKACONF}
+ # heavy debug
+ #sed -i -e 's/akka {/akka {\nloglevel = "DEBUG"\nremote {\nlog-received-messages = on\nlog-sent-messages = on\n}\nactor {\ndebug {\nautoreceive = on\nlifecycle = on\nunhandled = on\nfsm = on\nevent-stream = on\n}\n}/' ${AKKACONF}
echo "Dump ${AKKACONF}"
cat ${AKKACONF}
- echo "log4j.logger.akka.remote=DEBUG" >> ${LOGCONF}
+ echo "log4j2.logger.cluster.name=akka.cluster" >> ${LOGCONF}
+ echo "log4j2.logger.cluster.level=DEBUG" >> ${LOGCONF}
+ echo "log4j2.logger.remote.name=akka.remote" >> ${LOGCONF}
+ echo "log4j2.logger.remote.level=DEBUG" >> ${LOGCONF}
echo "Dump ${LOGCONF}"
cat ${LOGCONF}
Start Old Owner Instance
[Documentation] Start old Owner Instance and verify it is up
ClusterManagement.Start Single Member ${original_owner}
+ [Teardown] Utils.Report Failure Due To Bug CONTROLLER-1849
Check Shards Status After Recover
[Documentation] Create original cluster list and check Status for all shards in OpenFlow application.
# Place the suites in run order:
integration/test/csit/suites/openflowplugin/Clustering/020__Cluster_HA_Owner_Restart.robot
-integration/test/csit/suites/openflowplugin/Clustering/010__Cluster_HA_Owner_Failover.robot
integration/test/csit/suites/openflowplugin/Clustering/030__Cluster_HA_Data_Recovery_Leader_Follower_Failover.robot
integration/test/csit/suites/openflowplugin/Clustered_Reconciliation/010_Group_Flows.robot
integration/test/csit/suites/openflowplugin/EntityOwnership/010_Switch_Disconnect.robot
integration/test/csit/suites/openflowplugin/EntityOwnership/020_Cluster_Node_Failure.robot
integration/test/csit/suites/openflowplugin/EntityOwnership/030_Cluster_Sync_Problems.robot
integration/test/csit/suites/openflowplugin/Bug_Validation/9145.robot
+integration/test/csit/suites/openflowplugin/Clustering/010__Cluster_HA_Owner_Failover.robot