[INTPAK-221] Fix unstable packaging-build-rpm jobs Created: 20/Nov/18  Updated: 09/Jan/19  Resolved: 09/Jan/19

Status: Resolved
Project: integration-packaging
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: High
Reporter: Daniel Farrell Assignee: Daniel Farrell
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The post-job logic for packaging-build-rpm jobs is failing on an error related to lftools versions, resulting in the jobs being marked unstable and the logs not being deployed to the logserver correctly.

Failing job example (doesn't deploy logs to logserver, so can't link to those):

https://jenkins.opendaylight.org/releng/view/packaging/job/packaging-build-rpm-fluorine/164/console

Fails with:

22:53:37 ---> create-netrc.sh
22:53:38 [packaging-build-rpm-fluorine] $ /bin/bash -l /tmp/jenkins1857170009203454492.sh
22:53:38 ++ mktemp /tmp/requirements-XXXX.txt
22:53:38 + REQUIREMENTS_FILE=/tmp/requirements-mcKb.txt
22:53:38 + cat
22:53:38 + python -m pip install --user --quiet --upgrade pip
22:53:39 + python -m pip install --user --quiet --upgrade setuptools
22:53:40 + python -m pip install --user --quiet --upgrade -r /tmp/requirements-mcKb.txt
22:53:41 Could not find a version that satisfies the requirement lftools[openstack]~=0.18.0 (from -r /tmp/requirements-mcKb.txt (line 1)) (from versions: )
22:53:41 No matching distribution found for lftools[openstack]~=0.18.0 (from -r /tmp/requirements-mcKb.txt (line 1))

This patch tests adding the lf-infra-pre-build builder macro to the packaging-build-rpm-<stream> jobs.

https://git.opendaylight.org/gerrit/#/c/77966/

It does fix the issue.

---> create-netrc.sh
[packaging-build-rpm-oxygen] $ /bin/bash -l /tmp/jenkins4739013833915024100.sh
++ mktemp /tmp/requirements-XXXX.txt
+ REQUIREMENTS_FILE=/tmp/requirements-PBgQ.txt
+ cat
+ python -m pip install --user --quiet --upgrade pip
+ python -m pip install --user --quiet --upgrade setuptools
+ python -m pip install --user --quiet --upgrade -r /tmp/requirements-PBgQ.txt
+ pip freeze

https://logs.opendaylight.org/releng/vex-yul-odl-jenkins-1/packaging-build-rpm-oxygen/157/console.log.gz


Generated at Wed Feb 07 20:03:56 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.