Merge "manila: use local.conf in pre_test_hook script"

This commit is contained in:
Jenkins 2017-03-02 23:57:28 +00:00 committed by Gerrit Code Review
commit a83f2030ca
1 changed files with 9 additions and 7 deletions

View File

@ -14,21 +14,23 @@
# This script is executed inside pre_test_hook function in devstack gate.
localrc_path=$BASE/new/devstack/localrc
echo "DEVSTACK_GATE_TEMPEST_ALLOW_TENANT_ISOLATION=1" >> $localrc_path
echo "API_RATE_LIMIT=False" >> $localrc_path
echo "TEMPEST_SERVICES+=,manila" >> $localrc_path
localconf=$BASE/new/devstack/local.conf
echo "MANILA_USE_DOWNGRADE_MIGRATIONS=True" >> $localrc_path
echo "[[local|localrc]]" >> $localconf
echo "DEVSTACK_GATE_TEMPEST_ALLOW_TENANT_ISOLATION=1" >> $localconf
echo "API_RATE_LIMIT=False" >> $localconf
echo "TEMPEST_SERVICES+=,manila" >> $localconf
echo "MANILA_USE_DOWNGRADE_MIGRATIONS=True" >> $localconf
# NOTE(vponomaryov): enable following only for 'scenario' tests if such added.
echo "MANILA_SERVICE_IMAGE_ENABLED=False" >> $localrc_path
echo "MANILA_SERVICE_IMAGE_ENABLED=False" >> $localconf
# Enabling isolated metadata in Neutron is required because
# Tempest creates isolated networks and created vm's in scenario tests don't
# have access to Nova Metadata service. This leads to unavailability of
# created vm's in scenario tests.
echo 'ENABLE_ISOLATED_METADATA=True' >> $localrc_path
echo 'ENABLE_ISOLATED_METADATA=True' >> $localconf
# Go to Tempest dir and checkout stable commit to avoid possible
# incompatibilities for plugin stored in Manila repo.