Fix 'reset_on_ready_ubuntu_bootstrap' test
Update the approach to waiting nodes to appear online after
env reset. Wait not only for 'online' nailgun status of nodes,
but also ensure that nodes are accessible.
Change-Id: Iae7fde7646d1edf2a3353c664def134589cc41e0
Closes-Bug: #1572470
(cherry picked from commit af1955cffc
)
This commit is contained in:
parent
7e9484782a
commit
7ed3f6e8ae
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user