test/openstack: Adjust environment for stack.sh
Signed-off-by: Michal Berger <michalx.berger@intel.com> Change-Id: If6c972893471fbb504bf2ccac540899ea66a699d Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9368 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Karol Latecki <karol.latecki@intel.com>
This commit is contained in:
parent
beca9a86fb
commit
1cd28b484f
@ -58,10 +58,15 @@ python3 ./setup.py install
|
||||
|
||||
cp $rootdir/scripts/vagrant/local.conf /opt/stack/devstack/local.conf
|
||||
|
||||
# unset PYTHONPATH set by autotest_common.sh - keystone calls to stevedore's caching api and hits sys.path. In
|
||||
# our case the list includes $rootdir/scripts which stack user can't access due to lack of permissions.
|
||||
# Setting FORCE=yes allows stack.sh to run under distro versions which are not included in SUPPORTED_DISTROS.
|
||||
# This allows us to be more relaxed and run under a bit newer|older versions of the same distro (e.g. ubuntu)
|
||||
# in our CI.
|
||||
cd /opt/stack/devstack
|
||||
./tools/create-stack-user.sh
|
||||
chown -R stack:stack /opt/stack
|
||||
su -c "./stack.sh" -s /bin/bash stack
|
||||
su -c "PYTHONPATH= FORCE=yes ./stack.sh" -s /bin/bash stack
|
||||
source openrc admin admin
|
||||
openstack volume type create SPDK --public
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user