Add WR to sync time
Add sync time over salt until ntp sync formula implementation
Change-Id: I843c62d0cb8e57050586dd2078005d16f99e5259
Reviewed-on: https://review.gerrithub.io/379660
Reviewed-by: Tatyanka Leontovich <tleontovich@mirantis.com>
Tested-by: Tatyanka Leontovich <tleontovich@mirantis.com>
diff --git a/tcp_tests/tests/system/test_install_mcp11_ovs_newton.py b/tcp_tests/tests/system/test_install_mcp11_ovs_newton.py
index b777931..5645443 100644
--- a/tcp_tests/tests/system/test_install_mcp11_ovs_newton.py
+++ b/tcp_tests/tests/system/test_install_mcp11_ovs_newton.py
@@ -35,6 +35,10 @@
3. Setup compute nodes
"""
+ openstack_actions._salt.local(
+ tgt='*', fun='cmd.run',
+ args='service ntp stop; ntpd -gq; service ntp start')
+
if settings.RUN_TEMPEST:
openstack_actions.run_tempest(pattern=settings.PATTERN)
openstack_actions.download_tempest_report()
@@ -52,6 +56,10 @@
3. Setup compute nodes
"""
+ openstack_actions._salt.local(
+ tgt='*', fun='cmd.run',
+ args='service ntp stop; ntpd -gq; service ntp start')
+
if settings.RUN_TEMPEST:
openstack_actions.run_tempest(pattern=settings.PATTERN)
openstack_actions.download_tempest_report()
diff --git a/tcp_tests/tests/system/test_install_mcp11_ovs_ocata.py b/tcp_tests/tests/system/test_install_mcp11_ovs_ocata.py
index 235a523..4e25c72 100644
--- a/tcp_tests/tests/system/test_install_mcp11_ovs_ocata.py
+++ b/tcp_tests/tests/system/test_install_mcp11_ovs_ocata.py
@@ -37,6 +37,10 @@
4. Run tempest
"""
+ openstack_actions._salt.local(
+ tgt='*', fun='cmd.run',
+ args='service ntp stop; ntpd -gq; service ntp start')
+
if settings.RUN_TEMPEST:
openstack_actions.run_tempest(pattern=settings.PATTERN)
openstack_actions.download_tempest_report()
@@ -100,6 +104,10 @@
3. Setup compute nodes
"""
+ openstack_actions._salt.local(
+ tgt='*', fun='cmd.run',
+ args='service ntp stop; ntpd -gq; service ntp start')
+
if settings.RUN_TEMPEST:
openstack_actions.run_tempest(pattern=settings.PATTERN)
openstack_actions.download_tempest_report()