Make sure tempest directories exist when modifying
* devstack-vm-gate.sh: In stable/grizzly and earlier, the $BASE/new/tempest, /opt/stack/data/tempest and /opt/stack/new/devstack/files directories may not exist. Look before you leap. Closes-Bug: #1235303 Change-Id: Ife6050e82e04b9fd50514d6d65a6dc438661dbf8
This commit is contained in:
@@ -259,12 +259,18 @@ if [ "$DEVSTACK_GATE_TEMPEST" -eq "1" ]; then
|
||||
cd $BASE/new/devstack
|
||||
sudo -H -u stack ./tools/configure_tempest.sh
|
||||
fi
|
||||
# under tempest issolation tempest will need to write .tox dir, log files
|
||||
sudo chown -R tempest:stack $BASE/new/tempest
|
||||
# under tempest isolation tempest will need to write .tox dir, log files
|
||||
if [ -d "$BASE/new/tempest" ]; then
|
||||
sudo chown -R tempest:stack $BASE/new/tempest
|
||||
fi
|
||||
# our lock files are in data, so we need to be able to write over there
|
||||
sudo chown -R tempest:stack /opt/stack/data/tempest
|
||||
if [ -d /opt/stack/data/tempest ]; then
|
||||
sudo chown -R tempest:stack /opt/stack/data/tempest
|
||||
fi
|
||||
# ensure the cirros image files are accessible
|
||||
sudo chmod -R o+rx /opt/stack/new/devstack/files/
|
||||
if [ -d /opt/stack/new/devstack/files ]; then
|
||||
sudo chmod -R o+rx /opt/stack/new/devstack/files
|
||||
fi
|
||||
|
||||
cd $BASE/new/tempest
|
||||
if [[ "$DEVSTACK_GATE_TEMPEST_ALL" -eq "1" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user