Browse Source

Fix getting ip in shutdown node method

We need to use ip instead name of node

Change-Id: I9885ac6b63f3ddd9c7d0ef022bbf9e0e764f4a88
changes/99/409799/1
Evgeny Sikachev 2 years ago
parent
commit
990ea5e627
1 changed files with 6 additions and 2 deletions
  1. 6
    2
      fuel_ccp_tests/tests/system/test_galera.py

+ 6
- 2
fuel_ccp_tests/tests/system/test_galera.py View File

@@ -43,7 +43,9 @@ class TestGalera(base_test.SystemBaseTest):
43 43
         Duration 30 min
44 44
         """
45 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 49
         show_step(3)
48 50
         # todo: add wait for galera to assemble when galera_checker is ready
49 51
         remote = underlay.remote(host=config.k8s.kube_host)
@@ -71,7 +73,9 @@ class TestGalera(base_test.SystemBaseTest):
71 73
         Duration 30 min
72 74
         """
73 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 79
         hardware.start_node_by_ip(underlay.host_by_node_name('slave-0'))
76 80
         show_step(3)
77 81
         # todo: add wait for galera to assemble when galera_checker is ready

Loading…
Cancel
Save