Add sync calls to all prepare scripts

Strictly speaking, we only need sync calls at the end of the
script that is directly invoked by nodepool.  But just so we
don't have to think about it too much, add them to all prepare
scripts.

Without it, clouds will happily snapshot a system without all
the data written to disk!

Closes-Bug: 1282136

Change-Id: Id7dcf6667d6e48eb5ae95fd42b09f0651eeb38f9
This commit is contained in:
James E. Blair 2014-02-19 09:03:19 -08:00
parent 222dc8a9d9
commit cbd64b6175
7 changed files with 18 additions and 0 deletions

View File

View File

@ -25,3 +25,6 @@ if [ -f /usr/bin/apt-get ]; then
fi
/opt/nodepool-scripts/prepare_devstack.sh "$@"
sync
sleep 5

View File

@ -36,3 +36,6 @@ fi
sudo mkdir -p /opt/git
sudo -i python /opt/nodepool-scripts/cache_git_repos.py
sync
sleep 5

View File

@ -21,3 +21,6 @@ SUDO='false'
BARE='false'
./prepare_node.sh "$HOSTNAME" "$SUDO" "$BARE"
sync
sleep 5

View File

@ -22,3 +22,6 @@ BARE='true'
./prepare_node.sh "$HOSTNAME" "$SUDO" "$BARE"
sudo -u jenkins -i /opt/nodepool-scripts/prepare_devstack.sh $HOSTNAME
sync
sleep 5

View File

@ -22,3 +22,6 @@ BARE='true'
./prepare_node.sh "$HOSTNAME" "$SUDO" "$BARE"
sudo -u jenkins -i /opt/nodepool-scripts/prepare_devstack_new_kernel.sh $HOSTNAME
sync
sleep 5

View File

@ -24,3 +24,6 @@ BARE='true'
sudo ip link set mtu 1458 dev eth0
./prepare_node.sh "$HOSTNAME" "$SUDO" "$BARE"
sudo -u jenkins -i /opt/nodepool-scripts/prepare_tripleo.sh $HOSTNAME
sync
sleep 5