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:
parent
222dc8a9d9
commit
cbd64b6175
0
modules/openstack_project/files/nodepool/scripts/cache_git_repos.py
Normal file → Executable file
0
modules/openstack_project/files/nodepool/scripts/cache_git_repos.py
Normal file → Executable file
3
modules/openstack_project/files/nodepool/scripts/prepare_devstack_new_kernel.sh
Normal file → Executable file
3
modules/openstack_project/files/nodepool/scripts/prepare_devstack_new_kernel.sh
Normal file → Executable file
@ -25,3 +25,6 @@ if [ -f /usr/bin/apt-get ]; then
|
||||
fi
|
||||
|
||||
/opt/nodepool-scripts/prepare_devstack.sh "$@"
|
||||
|
||||
sync
|
||||
sleep 5
|
||||
|
@ -36,3 +36,6 @@ fi
|
||||
|
||||
sudo mkdir -p /opt/git
|
||||
sudo -i python /opt/nodepool-scripts/cache_git_repos.py
|
||||
|
||||
sync
|
||||
sleep 5
|
||||
|
@ -21,3 +21,6 @@ SUDO='false'
|
||||
BARE='false'
|
||||
|
||||
./prepare_node.sh "$HOSTNAME" "$SUDO" "$BARE"
|
||||
|
||||
sync
|
||||
sleep 5
|
||||
|
@ -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
|
||||
|
3
modules/openstack_project/files/nodepool/scripts/prepare_node_devstack_new_kernel.sh
Normal file → Executable file
3
modules/openstack_project/files/nodepool/scripts/prepare_node_devstack_new_kernel.sh
Normal file → Executable 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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user