[Grenade] Fix devstack configuration in CI hook
Commit [1] fixed approach for setting devstack config according to
changes [2] in devstack. But it started updating only 1 of 2 possible
devstack directories that are 'old' and 'new'. Where 'old' is the one
that is used only in 'grenade' job as base installation for performing
project migration. 'new' is used in all other single-devstack
installations. So, with [1] everything started working except
'grenade' job.
Fix grenade job by copying devstack config to 'old' dir if it exists.
[1] Idfa8e0cb3f446361daa1449e0854d95cfb379f46
[2] http://lists.openstack.org/pipermail/openstack-dev/2017-February/112872.html
Change-Id: Ic00a1fe296fa68a65672fa680ebd8a9336ed7cef
(cherry picked from commit 0b3fce7a04
)
This commit is contained in:
parent
8d3185e6b5
commit
5db255f893
|
@ -174,6 +174,11 @@ if [[ "$DRIVER" == "generic" ]]; then
|
|||
echo -e '[[post-config|${NEUTRON_CONF:-/etc/neutron/neutron.conf}]]\n[QUOTAS]\nquota_subnet=-1\n' >> $localconf
|
||||
fi
|
||||
|
||||
# Required for "grenade" job that uses devstack config from 'old' directory.
|
||||
if [[ -d "$BASE/old/devstack" ]]; then
|
||||
cp $localconf $BASE/old/devstack/local.conf
|
||||
fi
|
||||
|
||||
# Go to Tempest dir and checkout stable commit to avoid possible
|
||||
# incompatibilities for plugin stored in Manila repo.
|
||||
cd $BASE/new/tempest
|
||||
|
|
Loading…
Reference in New Issue