Sync before snapshots.
The filesystem state for an image is not guaranteed, so do the best we can to make it consistent. Change-Id: Ie59a83bc8d16bd88f0640bface3643b191053663
This commit is contained in:
@@ -196,6 +196,8 @@ def configure_server(server, branches):
|
||||
client.ssh('run custom script %s' % bn,
|
||||
'chmod +x /tmp/%s && /tmp/%s' % (bn, bn))
|
||||
|
||||
client.ssh('sync', 'sync && sleep 5')
|
||||
|
||||
def snapshot_server(client, server, name):
|
||||
print 'Saving image'
|
||||
if hasattr(client.images, 'create'): #v1.0
|
||||
|
||||
Reference in New Issue
Block a user