Unittests should not use distrubute as it is deprecated in favor of setuptools

Bug #1559867 reported by Ignatious Johnson Christopher
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R2.20
Fix Released
High
Unassigned
R2.21.x
Fix Released
High
Unassigned
R2.22.x
Fix Released
High
Unassigned
Trunk
Fix Released
High
Unassigned

Bug Description

Collecting distribute>=0.7.3 (from -r /home/jenkins/contrail_repo/build/debug/discovery/test-requirements.txt (line 8))
Downloading distribute-0.7.3.zip (145kB)
   Complete output from command python setup.py egg_info:
   running egg_info
   creating pip-egg-info/distribute.egg-info
   writing requirements to pip-egg-info/distribute.egg-info/requires.txt
   writing pip-egg-info/distribute.egg-info/PKG-INFO
   writing top-level names to pip-egg-info/distribute.egg-info/top_level.txt
   writing dependency_links to pip-egg-info/distribute.egg-info/dependency_links.txt
   Traceback (most recent call last):
     File "<string>", line 1, in <module>
     File "/tmp/pip-build-QvfxJx/distribute/setup.py", line 58, in <module>
       setuptools.setup(**setup_params)
     File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
       dist.run_commands()
     File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
       self.run_command(cmd)
     File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
       cmd_obj.run()
     File "setuptools/command/egg_info.py", line 177, in run
       writer = ep.load(installer=installer)
     File "pkg_resources.py", line 2241, in load
       if require: self.require(env, installer)
     File "pkg_resources.py", line 2254, in require
       working_set.resolve(self.dist.requires(self.extras),env,installer)))
     File "pkg_resources.py", line 2471, in requires
       dm = self._dep_map
     File "pkg_resources.py", line 2682, in _dep_map
       self.__dep_map = self._compute_dependencies()
     File "pkg_resources.py", line 2699, in _compute_dependencies
       from _markerlib import compile as compile_marker
   ImportError: No module named _markerlib
   ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-QvfxJx/distribute/
Command "/home/jenkins/contrail_repo/build/debug/discovery/../config/common/tests/tools/with_venv.sh python .venv/bin/pip install --no-cache-dir --upgrade --find-links file:///home/jenkins/contrail_repo/build/debug/discovery/../../../build/debug/config/common/dist/ --find-links file:///home/jenkins/contrail_repo/build/debug/discovery/../../../build/debug/api-lib/dist/ --find-links file:///home/jenkins/contrail_repo/build/debug/discovery/../../../build/debug/config/api-server/dist/ --find-links file:///home/jenkins/contrail_repo/build/debug/discovery/../../../build/debug/discovery/client/dist/ --find-links file:///home/jenkins/contrail_repo/build/debug/discovery/../../../build/debug/tools/sandesh/library/python/dist/ --find-links file:///home/jenkins/contrail_repo/build/debug/discovery/../../../build/debug/sandesh/common/dist/ -r /home/jenkins/contrail_repo/build/debug/discovery/requirements.txt -r /home/jenkins/contrail_repo/build/debug/discovery/test-requirements.txt --pre" failed.
None
Creating venv... done.

Tags: config
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.21.x

Review in progress for https://review.opencontrail.org/18571
Submitter: Ignatious Johnson Christopher (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.22.x

Review in progress for https://review.opencontrail.org/18572
Submitter: Ignatious Johnson Christopher (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.20

Review in progress for https://review.opencontrail.org/18573
Submitter: Ignatious Johnson Christopher (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.21.x

Review in progress for https://review.opencontrail.org/18571
Submitter: Ignatious Johnson Christopher (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.22.x

Review in progress for https://review.opencontrail.org/18572
Submitter: Ignatious Johnson Christopher (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.20

Review in progress for https://review.opencontrail.org/18573
Submitter: Ignatious Johnson Christopher (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.21.x

Review in progress for https://review.opencontrail.org/18571
Submitter: Ignatious Johnson Christopher (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.20

Review in progress for https://review.opencontrail.org/18573
Submitter: Ignatious Johnson Christopher (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.22.x

Review in progress for https://review.opencontrail.org/18572
Submitter: Ignatious Johnson Christopher (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.21.x

Review in progress for https://review.opencontrail.org/18571
Submitter: Ignatious Johnson Christopher (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.22.x

Review in progress for https://review.opencontrail.org/18572
Submitter: Ignatious Johnson Christopher (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.20

Review in progress for https://review.opencontrail.org/18573
Submitter: Ignatious Johnson Christopher (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.22.x

Review in progress for https://review.opencontrail.org/18572
Submitter: Ignatious Johnson Christopher (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/18571
Committed: http://github.org/Juniper/contrail-controller/commit/2d6a398baa4e3e36711a05b87173ad0288d2d70a
Submitter: Zuul
Branch: R2.21.x

commit 2d6a398baa4e3e36711a05b87173ad0288d2d70a
Author: Ignatious Johnson Christopher <email address hidden>
Date: Mon Mar 21 21:29:32 2016 +0000

Removing distribute from test-requirements, becaause distribute is deprecated
in favour of setuptools

python-keystoneclient latest has moved middleware to keystonemiddleware.
fixing it in unit-test and code. Also detecting failure of .venv building
is broken so invoke testr run with pipefail.

Closes-Bug: 1559867

Fixes: API server: A slash is appended to vhost name for accessing rabbitmq
RabbitMQ URL has an extra / which fails RMQ connection
Closes-Bug:1477814

Change-Id: I8a82905ff960cf73ec8f4d6702ae8d2b087adbfa

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/18573
Committed: http://github.org/Juniper/contrail-controller/commit/32f8880e4e034fec50215ca8bc4498900cc4a638
Submitter: Zuul
Branch: R2.20

commit 32f8880e4e034fec50215ca8bc4498900cc4a638
Author: Ignatious Johnson Christopher <email address hidden>
Date: Mon Mar 21 21:43:35 2016 +0000

Removing distribute from test-requirements, becaause distribute is deprecated
in favour of setuptools

python-keystoneclient latest has moved middleware to keystonemiddleware.
fixing it in unit-test and code. Also detecting failure of .venv building
is broken so invoke testr run with pipefail.

Closes-Bug: 1559867

Fixes: API server: A slash is appended to vhost name for accessing rabbitmq
RabbitMQ URL has an extra / which fails RMQ connection
Closes-Bug:1477814

Change-Id: I8a82905ff960cf73ec8f4d6702ae8d2b087adbfa

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/18572
Committed: http://github.org/Juniper/contrail-controller/commit/265c737a69ddbfa51465f6719f9039f5175ba9ee
Submitter: Zuul
Branch: R2.22.x

commit 265c737a69ddbfa51465f6719f9039f5175ba9ee
Author: Ignatious Johnson Christopher <email address hidden>
Date: Mon Mar 21 21:39:54 2016 +0000

Removing distribute from test-requirements, becaause distribute is deprecated
in favour of setuptools

python-keystoneclient latest has moved middleware to keystonemiddleware.
fixing it in unit-test and code. Also detecting failure of .venv building
is broken so invoke testr run with pipefail.

Closes-Bug: 1559867

Fixes: API server: A slash is appended to vhost name for accessing rabbitmq
RabbitMQ URL has an extra / which fails RMQ connection
Closes-Bug:1477814

Change-Id: I8a82905ff960cf73ec8f4d6702ae8d2b087adbfa

Sachin Bansal (sbansal)
Changed in juniperopenstack:
status: New → Fix Committed
Sachin Bansal (sbansal)
Changed in juniperopenstack:
status: Fix Committed → Fix Released
information type: Proprietary → Public
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.