summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFedor Zhadaev <fzhadaev@mirantis.com>2017-03-27 14:57:39 +0400
committerFedor Zhadaev <fzhadaev@mirantis.com>2017-03-27 11:03:29 +0000
commitdc2a892a0298de0a4406eb447393d82be9735345 (patch)
tree0a3d77f2f32092b103f170d28fc51ec0ee502d7e
parent094cbbaad5a34f77529665cce44cabb3303c3cc9 (diff)
Ensure that all nodes goes offline after shutting them off
Notes
Notes (review): Verified+1: Fuel CI <fuel-ci-bot@mirantis.com> Code-Review+2: Vladimir Khlyunev <vkhlyunev@mirantis.com> Workflow+1: Nastya Urlapova <aurlapova@mirantis.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Tue, 28 Mar 2017 10:10:44 +0000 Reviewed-on: https://review.openstack.org/450162 Project: openstack/fuel-qa Branch: refs/heads/master
-rw-r--r--fuelweb_test/models/fuel_web_client.py5
-rw-r--r--fuelweb_test/tests/tests_strength/test_image_based.py2
2 files changed, 7 insertions, 0 deletions
diff --git a/fuelweb_test/models/fuel_web_client.py b/fuelweb_test/models/fuel_web_client.py
index acfa931..ad8c92a 100644
--- a/fuelweb_test/models/fuel_web_client.py
+++ b/fuelweb_test/models/fuel_web_client.py
@@ -2247,6 +2247,11 @@ class FuelWebClient29(object):
2247 self.wait_node_is_online(node, timeout=timeout) 2247 self.wait_node_is_online(node, timeout=timeout)
2248 2248
2249 @logwrap 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
2254 @logwrap
2250 def wait_cluster_nodes_get_online_state(self, cluster_id, 2255 def wait_cluster_nodes_get_online_state(self, cluster_id,
2251 timeout=4 * 60): 2256 timeout=4 * 60):
2252 self.wait_nodes_get_online_state( 2257 self.wait_nodes_get_online_state(
diff --git a/fuelweb_test/tests/tests_strength/test_image_based.py b/fuelweb_test/tests/tests_strength/test_image_based.py
index 5e84301..bd14424 100644
--- a/fuelweb_test/tests/tests_strength/test_image_based.py
+++ b/fuelweb_test/tests/tests_strength/test_image_based.py
@@ -74,6 +74,8 @@ class RepeatableImageBased(TestBasic):
74 timeout_msg='Nodes failed to become online') 74 timeout_msg='Nodes failed to become online')
75 for slave in self.env.d_env.nodes().slaves[:5]: 75 for slave in self.env.d_env.nodes().slaves[:5]:
76 slave.destroy() 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 self.env.make_snapshot("deploy_after_delete", is_make=True) 80 self.env.make_snapshot("deploy_after_delete", is_make=True)
79 81