Browse Source

Ensure that all nodes goes offline after shutting them off

Change-Id: Ia3220da94d7f1a9cca5f0eb96c50a1c1b077d593
Closes-Bug: #1672969
changes/62/450162/1
Fedor Zhadaev 2 years ago
parent
commit
dc2a892a02

+ 5
- 0
fuelweb_test/models/fuel_web_client.py View File

@@ -2246,6 +2246,11 @@ class FuelWebClient29(object):
2246 2246
         for node in nodes:
2247 2247
             self.wait_node_is_online(node, timeout=timeout)
2248 2248
 
2249
+    @logwrap
2250
+    def wait_nodes_get_offline_state(self, nodes, timeout=4 * 60):
2251
+        for node in nodes:
2252
+            self.wait_node_is_offline(node, timeout=timeout)
2253
+
2249 2254
     @logwrap
2250 2255
     def wait_cluster_nodes_get_online_state(self, cluster_id,
2251 2256
                                             timeout=4 * 60):

+ 2
- 0
fuelweb_test/tests/tests_strength/test_image_based.py View File

@@ -74,6 +74,8 @@ class RepeatableImageBased(TestBasic):
74 74
              timeout_msg='Nodes failed to become online')
75 75
         for slave in self.env.d_env.nodes().slaves[:5]:
76 76
             slave.destroy()
77
+        self.fuel_web.wait_nodes_get_offline_state(
78
+            self.env.d_env.nodes().slaves[:5], timeout=10 * 60)
77 79
 
78 80
         self.env.make_snapshot("deploy_after_delete", is_make=True)
79 81
 

Loading…
Cancel
Save