Add sync to avoid the loss of pub key data
On the hard rebooting test, the pub key data can be loss due to the
immediate rebooting. In addition, the existing scenario test manager
is using 'sync' command to avoid the other data loss.
So this patch adds a 'sync' command call.
Change-Id: Ie55ad394cdbbde100eee45026c1e52a6f2825b77
Closes-Bug: #1583987
diff --git a/tempest/api/compute/servers/test_server_actions.py b/tempest/api/compute/servers/test_server_actions.py
index 0d06119..21e7d10 100644
--- a/tempest/api/compute/servers/test_server_actions.py
+++ b/tempest/api/compute/servers/test_server_actions.py
@@ -110,6 +110,10 @@
servers_client=self.client)
boot_time = linux_client.get_boot_time()
+ # NOTE: This sync is for avoiding the loss of pub key data
+ # in a server
+ linux_client.exec_command("sync")
+
self.client.reboot_server(self.server_id, type=reboot_type)
waiters.wait_for_server_status(self.client, self.server_id, 'ACTIVE')