2016-04-14 09:39:01 |
Damian Szeluga |
description |
When running ISO build on isolated environment, job fails on shotgun rpm build, due to lack of „BuildRequires: python-pbr >= 1.8” in shotgun.spec
If it's not specified, setup.py tries to reach to python.org, which on isolated environment is not possible.
Relevant log:
test -f /home/jenkins/9.0_debug/build/packages/rpm/SANDBOX/shotgun/tmp/SOURCES/version && sudo chroot /home/jenkins/9.0_debug/build/packages/rpm/SANDBOX/shotgun rpmbuild --nodeps --define "_topdir /tmp" --define "release `awk -F'=' '/RPMRELEASE/ {print $2}' /home/jenkins/9.0_debug/build/packages/rpm/SANDBOX/shotgun/tmp/SOURCES/version`" -ba /tmp/shotgun.spec || sudo chroot /home/jenkins/9.0_debug/build/packages/rpm/SANDBOX/shotgun rpmbuild --nodeps --define "_topdir /tmp" -ba /tmp/shotgun.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.h6DF1R
+ umask 022
+ cd /tmp/BUILD
+ cd /tmp/BUILD
+ rm -rf shotgun-9.0.0
+ /usr/bin/mkdir -p shotgun-9.0.0
+ cd shotgun-9.0.0
+ /usr/bin/gzip -dc /tmp/SOURCES/shotgun-9.0.0.tar.gz
+ /usr/bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.BalzIL
+ umask 022
+ cd /tmp/BUILD
+ cd shotgun-9.0.0
+ cd /tmp/BUILD/shotgun-9.0.0
+ python setup.py build
Download error on https://pypi.python.org/simple/pbr/: [Errno 110] Connection timed out -- Some packages may not be found!
Couldn't find index page for 'pbr' (maybe misspelled?) |
When running ISO build on isolated environment, job fails on shotgun rpm build, due to lack of „BuildRequires: python-pbr >= 1.8” in shotgun.spec
If it's not specified, setup.py tries to reach to python.org, which on isolated environment is not possible.
Relevant log:
test -f /home/jenkins/9.0_debug/build/packages/rpm/SANDBOX/shotgun/tmp/SOURCES/version && sudo chroot /home/jenkins/9.0_debug/build/packages/rpm/SANDBOX/shotgun rpmbuild --nodeps --define "_topdir /tmp" --define "release `awk -F'=' '/RPMRELEASE/ {print $2}' /home/jenkins/9.0_debug/build/packages/rpm/SANDBOX/shotgun/tmp/SOURCES/version`" -ba /tmp/shotgun.spec || sudo chroot /home/jenkins/9.0_debug/build/packages/rpm/SANDBOX/shotgun rpmbuild --nodeps --define "_topdir /tmp" -ba /tmp/shotgun.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.h6DF1R
+ umask 022
+ cd /tmp/BUILD
+ cd /tmp/BUILD
+ rm -rf shotgun-9.0.0
+ /usr/bin/mkdir -p shotgun-9.0.0
+ cd shotgun-9.0.0
+ /usr/bin/gzip -dc /tmp/SOURCES/shotgun-9.0.0.tar.gz
+ /usr/bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.BalzIL
+ umask 022
+ cd /tmp/BUILD
+ cd shotgun-9.0.0
+ cd /tmp/BUILD/shotgun-9.0.0
+ python setup.py build
Download error on https://pypi.python.org/simple/pbr/: [Errno 110] Connection timed out -- Some packages may not be found!
Couldn't find index page for 'pbr' (maybe misspelled?)
actual result:
ISO build fails
expected result:
ISO build completes
steps to reproduce:
Run iso build process on the environment where pypi.python.org is mapped to f.e. 127.0.0.1 |
|