Wait cluster readiness in failover tests

Change-Id: Ifc872b5b70e5a64d1ebfa447e4ae5a93ba716c2f
This commit is contained in:
Victor Ryzhenkin 2016-11-25 15:34:18 +03:00 committed by Victor Ryzhenkin (freerunner)
parent ca1705c53b
commit bba3ee4a52
2 changed files with 5 additions and 1 deletions

View File

@ -736,3 +736,7 @@ class PluginHelper(object):
cmd = "yum clean all"
self.ssh_manager.execute_on_remote(
ip, cmd, err_msg="yum cache flush unsuccessful")
def wait_os_cluster_readiness(self, timeout=15 * 60):
self.fuel_web.assert_os_services_ready(self.cluster_id,
timeout=timeout)

View File

@ -163,7 +163,7 @@ class MuranoPluginApi(object):
target_node = fuel_web_client.get_devops_nodes_by_nailgun_nodes(
nailgun_nodes[:1])
operations[operation](target_node)
self.wait_plugin_online()
self.helpers.wait_os_cluster_readiness()
def apply_maintenance_update(self):
"""Method applies maintenance updates on whole cluster