From b0be8d04caf957461cd5456bf1514dda5d3e5f43 Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Wed, 26 Feb 2020 18:01:37 +0100 Subject: [PATCH] Added sleep before volume mount. --- start_or_update.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/start_or_update.sh b/start_or_update.sh index 2df260f..0ca4c28 100755 --- a/start_or_update.sh +++ b/start_or_update.sh @@ -6,12 +6,14 @@ if ! mountpoint -q /mnt/volumes/scuttle_code then VOLUME_ID=$(/home/yohan/env_py3/bin/openstack volume show scuttle_code -c id --format value) test -e /dev/disk/by-id/*${VOLUME_ID:0:20} || nova volume-attach $INSTANCE $VOLUME_ID auto + sleep 3 sudo mount /dev/disk/by-id/*${VOLUME_ID:0:20} /mnt/volumes/scuttle_code fi if ! mountpoint -q /mnt/volumes/scuttle_php5-fpm_conf then VOLUME_ID=$(/home/yohan/env_py3/bin/openstack volume show scuttle_php5-fpm_conf -c id --format value) test -e /dev/disk/by-id/*${VOLUME_ID:0:20} || nova volume-attach $INSTANCE $VOLUME_ID auto + sleep 3 sudo mount /dev/disk/by-id/*${VOLUME_ID:0:20} /mnt/volumes/scuttle_php5-fpm_conf fi