Merge "Fix 'reset_on_ready_ubuntu_bootstrap' test"

This commit is contained in:
Jenkins 2016-05-23 11:08:13 +00:00 committed by Gerrit Code Review
commit 1b134d7585
1 changed files with 8 additions and 2 deletions

View File

@ -14,6 +14,7 @@
import tempfile
import textwrap
from devops.helpers.helpers import tcp_ping
from devops.helpers.helpers import wait
from proboscis.asserts import assert_equal
from proboscis.asserts import assert_not_equal
@ -527,8 +528,13 @@ class UbuntuBootstrap(base_test_case.TestBasic):
self.fuel_web.wait_nodes_get_online_state(nodes, timeout=10 * 60)
for node in nodes:
_ip = self.fuel_web.get_nailgun_node_by_devops_node(node)['ip']
checkers.verify_bootstrap_on_node(_ip, os_type="ubuntu")
nailgun_node = self.fuel_web.get_nailgun_node_by_devops_node(node)
wait(lambda: tcp_ping(nailgun_node['ip'], 22),
timeout=300,
timeout_msg=("Node {0} is still unreachable after {1} "
"seconds".format(nailgun_node['name'], 300)))
checkers.verify_bootstrap_on_node(
nailgun_node['ip'], os_type="ubuntu")
self.fuel_web.deploy_cluster_wait(cluster_id)