Shotgun rpm fails to build on isolated env

Bug #1570252 reported by Damian Szeluga
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
High
Igor Yozhikov
Mitaka
Fix Released
High
Igor Yozhikov
Newton
Fix Committed
High
Igor Yozhikov

Bug 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?)

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

Changed in fuel:
importance: Undecided → Critical
affects: fuel → shotgun
Changed in shotgun:
milestone: 9.0 → none
Changed in fuel:
importance: Undecided → Critical
milestone: none → 9.0
status: New → Confirmed
assignee: nobody → Fuel Python Team (fuel-python)
no longer affects: shotgun
Revision history for this message
Bartosz Kupidura (zynzel) wrote :

Im not sure if this should be assigned to fuel-python, if you think that mos-linux, fuel-ci, fuel-qa should handle this issue - please reassign.

tags: added: module-shotgun
Revision history for this message
Bug Checker Bot (bug-checker) wrote : Autochecker

(This check performed automatically)
Please, make sure that bug description contains the following sections filled in with the appropriate data related to the bug you are describing:

actual result

expected result

steps to reproduce

For more detailed information on the contents of each of the listed sections see https://wiki.openstack.org/wiki/Fuel/How_to_contribute#Here_is_how_you_file_a_bug

tags: added: need-info
description: updated
tags: removed: need-info
Dmitry Pyzhov (dpyzhov)
Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Fuel build team (fuel-build)
Roman Vyalov (r0mikiam)
Changed in fuel:
assignee: Fuel build team (fuel-build) → MOS Packaging Team (mos-packaging)
status: Confirmed → New
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to shotgun (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/305753

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to shotgun (master)

Fix proposed to branch: master
Review: https://review.openstack.org/305766

Changed in fuel:
assignee: MOS Packaging Team (mos-packaging) → Igor Yozhikov (iyozhikov)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on shotgun (master)

Change abandoned by Igor Yozhikov (<email address hidden>) on branch: master
Review: https://review.openstack.org/305766
Reason: wrong branch

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to shotgun (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/305797

Revision history for this message
Sergey Kulanov (skulanov) wrote :

We've already have patches and waiting for merge,
 setting bug to high since it's not blocking us

Changed in fuel:
importance: Critical → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to shotgun (stable/mitaka)

Related fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/306548

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on shotgun (stable/mitaka)

Change abandoned by Igor Yozhikov (<email address hidden>) on branch: stable/mitaka
Review: https://review.openstack.org/305797
Reason: due cherry-pick https://review.openstack.org/#/c/306548/1

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to shotgun (master)

Reviewed: https://review.openstack.org/305753
Committed: https://git.openstack.org/cgit/openstack/shotgun/commit/?id=230d84cacf2c869fc0d9d3cd658c8ba0de25886f
Submitter: Jenkins
Branch: master

commit 230d84cacf2c869fc0d9d3cd658c8ba0de25886f
Author: Igor Yozhikov <email address hidden>
Date: Thu Apr 14 13:57:13 2016 +0300

    Add python-pbr as build time dependency

    Change-Id: I426895f6895d302e999567d0a87e9c910d6ada22
    Related-Bug: #1570252

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to shotgun (stable/mitaka)

Reviewed: https://review.openstack.org/306548
Committed: https://git.openstack.org/cgit/openstack/shotgun/commit/?id=667e0eecf96ea347a7ca158e6b62a1b8554504c2
Submitter: Jenkins
Branch: stable/mitaka

commit 667e0eecf96ea347a7ca158e6b62a1b8554504c2
Author: Igor Yozhikov <email address hidden>
Date: Thu Apr 14 13:57:13 2016 +0300

    Add python-pbr as build time dependency

    Change-Id: I426895f6895d302e999567d0a87e9c910d6ada22
    Related-Bug: #1570252

tags: added: in-stable-mitaka
Revision history for this message
Alexander Petrov (apetrov-n) wrote :

Verified on MOS 9.0 #465

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.