Bug 1369125

Summary: buildbot requirements.txt not in sync rpm dependencies
Product: [Fedora] Fedora Reporter: Paul Jakma <paul+rhbugz>
Component: buildbotAssignee: Gianluca Sforna <giallu>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 26CC: giallu, ignatenko, ngompa13, smilner, tflink
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-11 13:40:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Paul Jakma 2016-08-22 14:12:22 UTC
Description of problem:

Install buildbot-master. Setup a basic configuration, and it will not run because the requirements.txt file is not in sync with the RPM dependencies. 

1. requirements.txt lists:

twisted >= 11.0.0
Jinja2 >= 2.1
sqlalchemy >= 0.6, <= 0.7.10
sqlalchemy-migrate==0.7.2
python-dateutil>=1.5

But dnf installs python-sqlalchemy 1.0.13 and python-migrate 0.10.0:

 python-jinja2           noarch       2.8-5.fc24            fedora        549 k
 python-markupsafe       x86_64       0.23-9.fc24           fedora         35 k
 python-migrate          noarch       0.10.0-2.fc24         fedora        231 k
 python-sqlalchemy       x86_64       1.0.13-1.fc24         fedora        3.3 M
 python-sqlparse         noarch       0.1.18-5.fc24         fedora         78 k
 python-tempita          noarch       0.5.1-12.fc24         fedora         37 k
 python2-babel           noarch       2.3.4-1.fc24          fedora        4.8 M
 python2-boto            noarch       2.41.0-1.fc24         updates       1.7 M
 python2-dateutil        noarch       1:2.5.2-2.fc24        fedora        250 k
 python2-rsa             noarch       3.4.1-1.fc24          fedora         70 k
 pytz                    noarch       2016.6.1-1.fc24       updates        52 k

Additionally, the sqlalchemy package appears to require python-pbr, which is not listed in requirements.txt - however that is a separate bug.

Version-Release number of selected component (if applicable):

0.8.12-2.fc24

(but presumably applicable to other versions)

How reproducible:

100%

Steps to Reproduce:
1. dnf install buildbot-master
2. create buildbot user
3. su - buildbot
4. buildbot create-master 
5. cp master.cfg.sample master.cfg
6. joe master.cfg
7. buildbot start 

Actual results:

Following error in twistd.log:

2016-08-22 13:48:55+0000 [-]   error while parsing config file: Requirements are not satisfied for buildbot.buildslave:BuildSlave: (sqlalchemy-migrate 0.10.0 (/usr/lib/python2.7/site-packages), Requirement.parse('sqlalchemy-migrate==0.7.2')) (traceback in logfile)

Expected results:

It should work.

Additional info:

Editing  

/usr/lib/python2.7/site-packages/buildbot-0.8.12-py2.7.egg-info/requires.txt

and modifying the sqlalchemy requires to suit, e.g. to:

twisted >= 11.0.0
Jinja2 >= 2.1
sqlalchemy >= 0.7.10
sqlalchemy-migrate >= 0.7.2
python-dateutil>=1.5

Makes it work (once python2-pbr is installed to satisfy sqlalchemy)

Comment 1 Paul Jakma 2016-08-22 14:20:58 UTC
See also bug#1369128 for the (apparent) missing python2-pbr issue in the python-migrate.

Comment 2 Fedora End Of Life 2016-11-25 09:31:30 UTC
This message is a reminder that Fedora 23 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 23. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '23'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 23 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 3 Fedora End Of Life 2017-02-28 10:08:16 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 26 development cycle.
Changing version to '26'.

Comment 4 Neal Gompa 2018-03-11 13:40:28 UTC
This is now fixed in Rawhide and F28 with the rebase to buildbot 1.0.0 as we now use the python dependency generator to generate Requires automatically.