reproduce.sh doesn't capture PROJECTS

Bug #1544827 reported by Angus Lees
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Gate
New
Undecided
Unassigned

Bug Description

If you're unlucky enough to be a project that was excluded from the hard-coded PROJECTS list in devstack-vm-gate-wrap.sh, then you rely on PROJECTS being set appropriately in your jenkins job definition. `reproduce.sh` fails to capture the value of this variable, leading (eventually) to a failure like this:

2016-02-12 03:59:31.084 | + /opt/stack/new/devstack/lib/oslo:_do_install_oslo_lib:L63: git_clone_by_name oslo.privsep
2016-02-12 03:59:31.084 | + /opt/stack/new/devstack/functions-common:git_clone_by_name:L597: local name=oslo.privsep
2016-02-12 03:59:31.084 | + /opt/stack/new/devstack/functions-common:git_clone_by_name:L598: local repo=git://git.openstack.org/openstack/oslo.privsep.git
2016-02-12 03:59:31.084 | + /opt/stack/new/devstack/functions-common:git_clone_by_name:L599: local dir=/opt/stack/new/oslo.privsep
2016-02-12 03:59:31.084 | + /opt/stack/new/devstack/functions-common:git_clone_by_name:L600: local branch=master
2016-02-12 03:59:31.084 | + /opt/stack/new/devstack/functions-common:git_clone_by_name:L601: git_clone git://git.openstack.org/openstack/oslo.privsep.git /opt/stack/new/oslo.privsep master
2016-02-12 03:59:31.084 | + /opt/stack/new/devstack/functions-common:git_clone:L517: local git_remote=git://git.openstack.org/openstack/oslo.privsep.git
2016-02-12 03:59:31.084 | + /opt/stack/new/devstack/functions-common:git_clone:L518: local git_dest=/opt/stack/new/oslo.privsep
2016-02-12 03:59:31.084 | + /opt/stack/new/devstack/functions-common:git_clone:L519: local git_ref=master
2016-02-12 03:59:31.084 | + /opt/stack/new/devstack/functions-common:git_clone:L520: local orig_dir
2016-02-12 03:59:31.084 | ++ /opt/stack/new/devstack/functions-common:git_clone:L521: pwd
2016-02-12 03:59:31.084 | + /opt/stack/new/devstack/functions-common:git_clone:L521: orig_dir=/opt/stack/new/devstack
2016-02-12 03:59:31.084 | + /opt/stack/new/devstack/functions-common:git_clone:L522: local git_clone_flags=
2016-02-12 03:59:31.084 | ++ /opt/stack/new/devstack/functions-common:git_clone:L524: trueorfalse False RECLONE
2016-02-12 03:59:31.086 | + /opt/stack/new/devstack/functions-common:git_clone:L524: RECLONE=False
2016-02-12 03:59:31.086 | + /opt/stack/new/devstack/functions-common:git_clone:L525: [[ 0 -gt 0 ]]
2016-02-12 03:59:31.086 | + /opt/stack/new/devstack/functions-common:git_clone:L529: [[ False = \T\r\u\e ]]
2016-02-12 03:59:31.086 | + /opt/stack/new/devstack/functions-common:git_clone:L538: echo master
2016-02-12 03:59:31.086 | + /opt/stack/new/devstack/functions-common:git_clone:L538: egrep -q '^refs'
2016-02-12 03:59:31.087 | + /opt/stack/new/devstack/functions-common:git_clone:L552: [[ ! -d /opt/stack/new/oslo.privsep ]]
2016-02-12 03:59:31.087 | + /opt/stack/new/devstack/functions-common:git_clone:L553: [[ True = \T\r\u\e ]]
2016-02-12 03:59:31.087 | + /opt/stack/new/devstack/functions-common:git_clone:L554: echo 'The /opt/stack/new/oslo.privsep project was not found; if this is a gate job, add'
2016-02-12 03:59:31.087 | The /opt/stack/new/oslo.privsep project was not found; if this is a gate job, add
2016-02-12 03:59:31.087 | + /opt/stack/new/devstack/functions-common:git_clone:L555: echo 'the project to the $PROJECTS variable in the job definition.'
2016-02-12 03:59:31.088 | the project to the $PROJECTS variable in the job definition.
2016-02-12 03:59:31.088 | + /opt/stack/new/devstack/functions-common:git_clone:L556: die 556 'Cloning not allowed in this configuration'
2016-02-12 03:59:31.088 | + /opt/stack/new/devstack/functions-common:die:L186: local exitcode=0
2016-02-12 03:59:31.088 | [Call Trace]
2016-02-12 03:59:31.088 | ./stack.sh:774:install_oslo
2016-02-12 03:59:31.088 | /opt/stack/new/devstack/lib/oslo:84:_do_install_oslo_lib
2016-02-12 03:59:31.088 | /opt/stack/new/devstack/lib/oslo:63:git_clone_by_name
2016-02-12 03:59:31.088 | /opt/stack/new/devstack/functions-common:601:git_clone
2016-02-12 03:59:31.088 | /opt/stack/new/devstack/functions-common:556:die
2016-02-12 03:59:31.090 | [ERROR] /opt/stack/new/devstack/functions-common:556 Cloning not allowed in this configuration
2016-02-12 03:59:32.092 | Error on exit
2016-02-12 03:59:32.251 | World dumping... see /opt/stack/new/worlddump-2016-02-12-035932.txt for details

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.