From 96f3b37b4322a817acc3550820a40c22f205d996 Mon Sep 17 00:00:00 2001 From: Ghanshyam Mann Date: Tue, 9 Jun 2020 17:36:53 -0500 Subject: [PATCH] Make neutron functional uwsgi jobs usable by other projects. neutron-fullstack-with-uwsgi and neutron-functional-with-uwsgi jobs are run in devstack gate[1] also. On devstack side these jobs are broken when migrated to zuulv3 and start using neutron defined tox env. neutron gate is no issue as job find the tox env in neutron's tox.ini but devstack does not. We need to define the working dir to neutron so that any where they are run they always look for the neutron's tox.ini for used tox env. Failure: https://review.opendev.org/#/c/577779/ [1] https://opendev.org/openstack/devstack/src/commit/c3b58f5335fb3545bf49b5d542ef9ed702de43c8/.zuul.yaml#L717 Change-Id: I0cadebb45864a83dfba7b54c9f161d11611164db --- zuul.d/base.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/zuul.d/base.yaml b/zuul.d/base.yaml index 194f07abbf8..c5c200831ae 100644 --- a/zuul.d/base.yaml +++ b/zuul.d/base.yaml @@ -50,6 +50,12 @@ vars: devstack_localrc: NEUTRON_DEPLOY_MOD_WSGI: true + # Because this job uses neutron defined tox env (defined in base job), + # we need to set zuul_work_dir to neutron so that it can be used by + # other projects. Currently devstack run this job. Not setting this + # in base neutron-functional job as that is being used by neutron + # stadium projects where they need to use stadium project as working dir. + zuul_work_dir: src/opendev.org/openstack/neutron - job: name: neutron-functional-with-uwsgi @@ -57,3 +63,9 @@ vars: devstack_localrc: NEUTRON_DEPLOY_MOD_WSGI: true + # Because this job uses neutron defined tox env (defined in base job), + # we need to set zuul_work_dir to neutron so that it can be used by + # other projects. Currently devstack run this job. Not setting this + # in base neutron-functional job as that is being used by neutron + # stadium projects where they need to use stadium project as working dir. + zuul_work_dir: src/opendev.org/openstack/neutron