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
This commit is contained in:
@@ -110,6 +110,10 @@ class ServerActionsTestJSON(base.BaseV2ComputeTest):
|
||||
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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user