Commit 1cd28b48 authored by Michal Berger's avatar Michal Berger Committed by Tomasz Zawadzki
Browse files

test/openstack: Adjust environment for stack.sh



Signed-off-by: default avatarMichal 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: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: default avatarKarol Latecki <karol.latecki@intel.com>
parent beca9a86
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -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