trove/roles/trove-devstack/tasks/main.yml
Andreas Jaeger 7b3483723a Fix Trove CI jobs
Changes to get jobs working

1) After [1] devstack no longer changes the ownership of the whole
   /opt/stack tree to the stack user unconditionally. Switch to the
   stack user when running integration test.

2) Add bindep.txt file[2]. The default fallback file is not installed
   anymore and therefore a bindep.txt file is needed to add install
   additional packages.

3) Use trovestack script rather than devstack to build image so many
   global variables could be used for consistency. By default, devstack
   won't build image.

4) Remove the tools/test-setup.sh as it is not used any more.

5) Instance upgrade test keeps failing in CI for some reason, although
   it's always passed on my local environment. In order not to block
   other patches, skip the instance upgrade tests temporarily.

[1] https://review.opendev.org/203698
[2] http://lists.openstack.org/pipermail/openstack-discuss/2019-June/006888.html

Change-Id: I35e17afb9e827b1fead9d28dbf32f11ce4034a9b
2019-08-14 21:20:34 +12:00

12 lines
346 B
YAML

- name: Run trovestack
become: true
become_user: stack
shell: |
export BRIDGE_IP=10.1.0.1
export DEST={{devstack_base_dir}}
export PATH_DEVSTACK_SRC=$DEST/devstack
export TROVE_RESIZE_TIME_OUT={{trove_resize_time_out}}
cd $DEST/trove
tox -etrovestack -vv -- gate-tests {{trove_test_datastore}} {{trove_test_group}}