@@ -1126,22 +1126,23 @@ class Tests(object):
11261126 test.add_stonith_neg_log_pattern("does not advertise support for 'reboot', performing 'off'")
11271127 test.add_stonith_log_pattern("with device 'true1' returned: 0 (OK)")
11281128
1129- # make sure enforced fencing delay is applied only for the first device in the first level
1129+ # make sure requested fencing delay is applied only for the first device in the first level
1130+ # make sure static delay from pcmk_delay_base is combined
11301131 for test_type in test_types:
11311132 if test_type["use_cpg"] == 0:
11321133 continue
11331134
11341135 test = self.new_test("%s_topology_delay" % test_type["prefix"],
1135- "Verify enforced fencing delay is applied only for the first device in the first level.",
1136+ "Verify requested fencing delay is applied only for the first device in the first level and pcmk_delay_base is combined .",
11361137 test_type["use_cpg"])
11371138 test.add_cmd("stonith_admin",
1138- "--output-as=xml -R true1 -a fence_dummy -o \"mode=pass\" -o \"pcmk_host_list=node1 node2 node3\"")
1139+ "--output-as=xml -R true1 -a fence_dummy -o \"mode=pass\" -o \"pcmk_host_list=node1 node2 node3\" -o \"pcmk_delay_base=1\" ")
11391140 test.add_cmd("stonith_admin",
1140- "--output-as=xml -R false1 -a fence_dummy -o \"mode=fail\" -o \"pcmk_host_list=node1 node2 node3\"")
1141+ "--output-as=xml -R false1 -a fence_dummy -o \"mode=fail\" -o \"pcmk_host_list=node1 node2 node3\" -o \"pcmk_delay_base=1 \"")
11411142 test.add_cmd("stonith_admin",
1142- "--output-as=xml -R true2 -a fence_dummy -o \"mode=pass\" -o \"pcmk_host_list=node1 node2 node3\"")
1143+ "--output-as=xml -R true2 -a fence_dummy -o \"mode=pass\" -o \"pcmk_host_list=node1 node2 node3\"")
11431144 test.add_cmd("stonith_admin",
1144- "--output-as=xml -R true3 -a fence_dummy -o \"mode=pass\" -o \"pcmk_host_list=node1 node2 node3\"")
1145+ "--output-as=xml -R true3 -a fence_dummy -o \"mode=pass\" -o \"pcmk_host_list=node1 node2 node3\"")
11451146
11461147 test.add_cmd("stonith_admin", "--output-as=xml -r node3 -i 1 -v true1")
11471148 test.add_cmd("stonith_admin", "--output-as=xml -r node3 -i 1 -v false1")
@@ -1150,8 +1151,8 @@ class Tests(object):
11501151
11511152 test.add_cmd("stonith_admin", "--output-as=xml -F node3 --delay 1")
11521153
1153- test.add_stonith_log_pattern("Delaying 'off' action targeting node3 on true1 for enforced 1s ")
1154- test.add_stonith_neg_log_pattern ("Delaying 'off' action targeting node3 on false1")
1154+ test.add_stonith_log_pattern("Delaying 'off' action targeting node3 on true1 for 2s (timeout=120s, requested_delay=1s, base=1s, max=1s) ")
1155+ test.add_stonith_log_pattern ("Delaying 'off' action targeting node3 on false1 for 1s (timeout=120s, requested_delay=0s, base=1s, max=1s) ")
11551156 test.add_stonith_neg_log_pattern("Delaying 'off' action targeting node3 on true2")
11561157 test.add_stonith_neg_log_pattern("Delaying 'off' action targeting node3 on true3")
11571158
0 commit comments