Add HA test "kill keepalived, haproxy"
- also added time sync on '*' minions
after reverting snapshot in the salt_deployed fixture;
and after making a snapshot in the other fixtures
Change-Id: Ia5c5363bf55399422785f66e88e861c23cfab531
diff --git a/tcp_tests/managers/common_services_manager.py b/tcp_tests/managers/common_services_manager.py
index e29cdd6..1e783a8 100644
--- a/tcp_tests/managers/common_services_manager.py
+++ b/tcp_tests/managers/common_services_manager.py
@@ -41,6 +41,9 @@
"""Get minion ID where keepalived VIP is at the moment"""
tgt = 'I@keepalived:cluster:enabled:True'
grains = 'ip_interfaces'
+ # Refresh grains first
+ self._salt.run_state(tgt, 'saltutil.refresh_grains')
+ # Get grains
result = self._salt.get_grains(tgt=tgt, grains=grains)[0]
minion_ids = [
minion_id for minion_id, interfaces in result.items()