summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Sikachev <esikachev@mirantis.com>2016-12-12 17:54:46 +0400
committerEvgeny Sikachev <esikachev@mirantis.com>2016-12-12 17:55:58 +0400
commit990ea5e6276782077400b19418b865e2d18e7dd9 (patch)
tree3525fe75fe54d95bd9dc164ef94f8b9f2c7a77f6
parenta81ceb069c119a9c31e66b8938b5f25ed81fe05e (diff)
Fix getting ip in shutdown node method
We need to use ip instead name of node Change-Id: I9885ac6b63f3ddd9c7d0ef022bbf9e0e764f4a88
Notes
Notes (review): Verified+1: Mirantis CCP CI <mirantis-fuel-ccp-ci@mirantis.com> Code-Review+2: Andrey Sledzinskiy <asledzinskiy@mirantis.com> Workflow+1: tatyana-leontovich <tleontovich@mirantis.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Mon, 12 Dec 2016 14:22:53 +0000 Reviewed-on: https://review.openstack.org/409799 Project: openstack/fuel-ccp-tests Branch: refs/heads/master
-rw-r--r--fuel_ccp_tests/tests/system/test_galera.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/fuel_ccp_tests/tests/system/test_galera.py b/fuel_ccp_tests/tests/system/test_galera.py
index 3b0450b..8c17c34 100644
--- a/fuel_ccp_tests/tests/system/test_galera.py
+++ b/fuel_ccp_tests/tests/system/test_galera.py
@@ -43,7 +43,9 @@ class TestGalera(base_test.SystemBaseTest):
43 Duration 30 min 43 Duration 30 min
44 """ 44 """
45 show_step(2) 45 show_step(2)
46 hardware.shutdown_node_by_ip(underlay.node_names()[1]) 46 galera_node = underlay.node_names()[1]
47 galera_node_ip = underlay.host_by_node_name(galera_node)
48 hardware.shutdown_node_by_ip(galera_node_ip)
47 show_step(3) 49 show_step(3)
48 # todo: add wait for galera to assemble when galera_checker is ready 50 # todo: add wait for galera to assemble when galera_checker is ready
49 remote = underlay.remote(host=config.k8s.kube_host) 51 remote = underlay.remote(host=config.k8s.kube_host)
@@ -71,7 +73,9 @@ class TestGalera(base_test.SystemBaseTest):
71 Duration 30 min 73 Duration 30 min
72 """ 74 """
73 show_step(2) 75 show_step(2)
74 hardware.shutdown_node_by_ip(underlay.node_names()[1]) 76 galera_node = underlay.node_names()[1]
77 galera_node_ip = underlay.host_by_node_name(galera_node)
78 hardware.shutdown_node_by_ip(galera_node_ip)
75 hardware.start_node_by_ip(underlay.host_by_node_name('slave-0')) 79 hardware.start_node_by_ip(underlay.host_by_node_name('slave-0'))
76 show_step(3) 80 show_step(3)
77 # todo: add wait for galera to assemble when galera_checker is ready 81 # todo: add wait for galera to assemble when galera_checker is ready