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:
James E. Blair
2012-06-20 10:23:40 -07:00
parent 33fbc416ba
commit 365764df82

View File

@@ -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