Switch off glance->swift in rally+py35 tests

Swift does not currently work on py35 and is a work
in progress. So for now, we should switch off the
glance upload to swift for images.

Change-Id: Idfc15ecbf5c109537d0715be216c84e6c369efd1
This commit is contained in:
Davanum Srinivas 2017-01-09 07:30:48 -05:00 committed by Davanum Srinivas (dims)
parent cb60cf8e39
commit 20859df2c0
1 changed files with 11 additions and 0 deletions

View File

@ -169,6 +169,17 @@
}}
export -f post_test_hook
if [[ "$DEVSTACK_GATE_USE_PYTHON3" = "True" ]]; then
# Switch off glance->swift communication as swift fails under py3.x
function pre_test_hook {{
local localconf=$BASE/new/devstack/local.conf
echo "[[post-config|\$GLANCE_API_CONF]]" >> $localconf
echo "[glance_store]" >> $localconf
echo "default_store=file" >> $localconf
}}
export -f pre_test_hook
fi
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
./safe-devstack-vm-gate-wrap.sh