Mark CONTROLLER-1849 bug in cluster suite 12/74412/6
authorLuis Gomez <ecelgp@gmail.com>
Tue, 24 Jul 2018 18:14:56 +0000 (11:14 -0700)
committerSam Hague <shague@redhat.com>
Mon, 22 Oct 2018 22:14:15 +0000 (22:14 +0000)
Also add akka "light" debugging.

Change-Id: Ia018b871a19fadd52a05194bfb1dc295fa6f9618
Signed-off-by: Luis Gomez <ecelgp@gmail.com>
csit/libraries/Utils.robot
csit/scripts/set_akka_debug.sh
csit/suites/openflowplugin/Clustering/010__Cluster_HA_Owner_Failover.robot
csit/testplans/openflowplugin-clustering.txt

index 186f6ac3c76771e269a392cf99aae27d04581c1e..3ab78a5484c58170484a41ce6eed686c1677beda 100644 (file)
@@ -42,7 +42,7 @@ Stop Mininet
     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.
@@ -53,12 +53,14 @@ Report_Failure_Due_To_Bug
     ...    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).
index 108b026bea850d4908f9911bff53759f90d83348..78972c23eec274d1caea66d61c713a633f9efb57 100644 (file)
@@ -3,10 +3,16 @@
 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}
 
index 108429e7c2d1060f680f14e947b79b70a761bcfa..481419f257523c9336d4e7ef680a077d12766046 100644 (file)
@@ -161,6 +161,7 @@ Restore Network and Verify After Fail
 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.
index bbe5b3d794e30a0fba61485d9a6a49b9c3bb51e5..eb585c7cc3e5a65766b3b8a00af7784f45b3fb2b 100644 (file)
@@ -1,9 +1,9 @@
 # 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