Sync before reboot
authorRail Aliiev <rail@mozilla.com>
Sat, 14 Jun 2014 13:23:21 -0400
changeset 440 0cbf5c7b81e73810e98ef02a4ffbbe532191c7fb
parent 439 4d3d3ea9051718497cc30f2a318d4b1539694678
child 441 1c0c48222b0a3127a96c7f7c815a75aea1ad117f
push id436
push userraliiev@mozilla.com
push dateSat, 14 Jun 2014 17:23:25 +0000
Sync before reboot
scripts/aws_create_instance.py
--- a/scripts/aws_create_instance.py
+++ b/scripts/aws_create_instance.py
@@ -153,16 +153,18 @@ def assimilate(instance, config, ssh_key
         sudo("/tools/buildbot/bin/buildslave create-slave /builds/slave "
              "{buildbot_master} {name} "
              "{buildslave_password}".format(**instance_data), user="cltbld")
     if instance_data.get("hg_shares"):
         unbundle_hg(instance_data['hg_shares'])
     if instance_data.get("s3_tarballs"):
         unpack_tarballs(instance_data["s3_tarballs"])
 
+    run("sync")
+    run("sync")
     if reboot:
         log.info("Rebooting %s...", hostname)
         run("reboot")
 
 
 def unbundle_hg(hg_shares):
     log.info("Cloning HG repos")
     hg = "/tools/python27-mercurial/bin/hg"