manila: use local.conf in pre_test_hook script

As per, http://lists.openstack.org/pipermail/openstack-dev/2017-February/112872.html
a devstack plugin's pre_test_hook script can set options
in local.conf and not in localrc. Do so to unblock gate,
gate-manila-tempest-dsvm-glusterfs-*

Change-Id: Ia7c5ffeeff7e8cb86153f565b7b74f7e67b11a03
This commit is contained in:
Tom Barron 2017-02-27 12:57:23 -05:00
parent a48b35f0d0
commit 99a3d82609
1 changed files with 11 additions and 9 deletions

View File

@ -14,14 +14,16 @@
# 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 "MANILA_SERVICE_IMAGE_ENABLED=False" >> $localrc_path
echo "MANILA_MULTI_BACKEND=False" >> $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
echo "MANILA_SERVICE_IMAGE_ENABLED=False" >> $localconf
echo "MANILA_MULTI_BACKEND=False" >> $localconf
# Import env vars defined in CI job.
for env_var in ${DEVSTACK_LOCAL_CONFIG// / }; do
@ -35,14 +37,14 @@ done
# ends with "glusterfs".
case "$GLUSTERFS_MANILA_DRIVER_TYPE" in
glusterfs|glusterfs-nfs)
echo "MANILA_DEFAULT_SHARE_TYPE_EXTRA_SPECS='snapshot_support=False'" >> $localrc_path
echo "MANILA_DEFAULT_SHARE_TYPE_EXTRA_SPECS='snapshot_support=False'" >> $localconf
esac
# 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.