pbr 2.0.0 is released and python-jenkins is breaking jjb for the version conflict

Bug #1669086 reported by Jerry Zhao
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Python Jenkins
Fix Committed
Undecided
Unassigned

Bug Description

In my 3rd party CI system, jjb is breaking due to pbr's new version number conflict with python-jenkins requirement.

Notice: /Stage[main]/Jenkins::Job_builder/Exec[jenkins_jobs_update]/returns: INFO:root:Updating jobs in ['/etc/jenkins_jobs/config'] ([])
Notice: /Stage[main]/Jenkins::Job_builder/Exec[jenkins_jobs_update]/returns: /usr/local/lib/python2.7/dist-packages/jenkins/__init__.py:644: DeprecationWarning: get_plugins_info() is deprecated, use get_plugins()
Notice: /Stage[main]/Jenkins::Job_builder/Exec[jenkins_jobs_update]/returns: DeprecationWarning)
Notice: /Stage[main]/Jenkins::Job_builder/Exec[jenkins_jobs_update]/returns: Traceback (most recent call last):
Notice: /Stage[main]/Jenkins::Job_builder/Exec[jenkins_jobs_update]/returns: File "/usr/local/bin/jenkins-jobs", line 10, in <module>
Notice: /Stage[main]/Jenkins::Job_builder/Exec[jenkins_jobs_update]/returns: sys.exit(main())
Notice: /Stage[main]/Jenkins::Job_builder/Exec[jenkins_jobs_update]/returns: File "/usr/local/lib/python2.7/dist-packages/jenkins_jobs/cmd.py", line 191, in main
Notice: /Stage[main]/Jenkins::Job_builder/Exec[jenkins_jobs_update]/returns: execute(options, config)
Notice: /Stage[main]/Jenkins::Job_builder/Exec[jenkins_jobs_update]/returns: File "/usr/local/lib/python2.7/dist-packages/jenkins_jobs/cmd.py", line 372, in execute
Notice: /Stage[main]/Jenkins::Job_builder/Exec[jenkins_jobs_update]/returns: n_workers=options.n_workers)
Notice: /Stage[main]/Jenkins::Job_builder/Exec[jenkins_jobs_update]/returns: File "/usr/local/lib/python2.7/dist-packages/jenkins_jobs/builder.py", line 348, in update_jobs
Notice: /Stage[main]/Jenkins::Job_builder/Exec[jenkins_jobs_update]/returns: self.load_files(input_fn)
Notice: /Stage[main]/Jenkins::Job_builder/Exec[jenkins_jobs_update]/returns: File "/usr/local/lib/python2.7/dist-packages/jenkins_jobs/builder.py", line 245, in load_files
Notice: /Stage[main]/Jenkins::Job_builder/Exec[jenkins_jobs_update]/returns: self.parser = YamlParser(self.global_config, self.plugins_list)
Notice: /Stage[main]/Jenkins::Job_builder/Exec[jenkins_jobs_update]/returns: File "/usr/local/lib/python2.7/dist-packages/jenkins_jobs/parser.py", line 78, in __init__
Notice: /Stage[main]/Jenkins::Job_builder/Exec[jenkins_jobs_update]/returns: self.registry = ModuleRegistry(self.config, plugins_info)
Notice: /Stage[main]/Jenkins::Job_builder/Exec[jenkins_jobs_update]/returns: File "/usr/local/lib/python2.7/dist-packages/jenkins_jobs/registry.py", line 47, in __init__
Notice: /Stage[main]/Jenkins::Job_builder/Exec[jenkins_jobs_update]/returns: Mod = entrypoint.load()
Notice: /Stage[main]/Jenkins::Job_builder/Exec[jenkins_jobs_update]/returns: File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2301, in load
Notice: /Stage[main]/Jenkins::Job_builder/Exec[jenkins_jobs_update]/returns: self.require(*args, **kwargs)
Notice: /Stage[main]/Jenkins::Job_builder/Exec[jenkins_jobs_update]/returns: File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2324, in require
Notice: /Stage[main]/Jenkins::Job_builder/Exec[jenkins_jobs_update]/returns: items = working_set.resolve(reqs, env, installer, extras=self.extras)
Notice: /Stage[main]/Jenkins::Job_builder/Exec[jenkins_jobs_update]/returns: File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 859, in resolve
Notice: /Stage[main]/Jenkins::Job_builder/Exec[jenkins_jobs_update]/returns: raise VersionConflict(dist, req).with_context(dependent_req)
Notice: /Stage[main]/Jenkins::Job_builder/Exec[jenkins_jobs_update]/returns: pkg_resources.VersionConflict: (pbr 2.0.0 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('pbr<2.0,>=1.0.0'))

Revision history for this message
Jerry Zhao (zhaoxinyu) wrote :

updating jenkins-job-builder to 2.0.0.0b1 seems to fix the issue but the version is not the default latest to install.

Revision history for this message
Jerry Zhao (zhaoxinyu) wrote :

jenkins job builder 2.0.0.0b1 still has the cap but master branch removed it. anyway python-jenkins need to remove the cap too.

Revision history for this message
Jerry Zhao (zhaoxinyu) wrote :
Changed in python-jenkins:
status: New → Fix Committed
Revision history for this message
Mathieu Losmede (m-losmede-o) wrote :

pip package of jenkins-job-builder 2.0.0.0b1 on pypi repo is still containing old requirement.txt :

https://pypi.python.org/simple/jenkins-job-builder/jenkins-job-builder-2.0.0.0b1.tar.gz

cat requirements.txt
six>=1.5.2
PyYAML
python-jenkins>=0.4.8
pbr>=1.0.0,<2.0
stevedore>=1.8.0

Since it's break install managed with pip, Can pypi repo be updated as part of this bug ?

Thanks

Revision history for this message
Jerry Zhao (zhaoxinyu) wrote :

jjb 1.6.2 has been released to include the change.
https://pypi.python.org/pypi/jenkins-job-builder/1.6.2

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.