no module testrepository error

Bug #1530026 reported by Rico Lin
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
PBR
Invalid
Undecided
Unassigned
devstack
New
Undecided
Marc Koderer
tempest
Invalid
Undecided
Unassigned

Bug Description

In [1] gate-tempest-dsvm-*-kilo keep failed
and I found this error [2].

appears that testrepository did not get installed.

[1] https://review.openstack.org/#/c/252234/
[2] http://logs.openstack.org/34/252234/4/check/gate-tempest-dsvm-full-kilo/e9b534a/logs/devstack-early.txt.gz#_2015-12-29_17_09_24_767

Rico Lin (rico-lin)
description: updated
Marc Koderer (m-koderer)
Changed in tempest:
importance: Undecided → Critical
status: New → Confirmed
Revision history for this message
Marc Koderer (m-koderer) wrote :

This seems to be a missing PBR requirement.

Full stack trace:
2015-12-29 17:09:24.767 | ERROR:root:Error parsing
2015-12-29 17:09:24.767 | Traceback (most recent call last):
2015-12-29 17:09:24.767 | File "/usr/local/lib/python2.7/dist-packages/pbr/core.py", line 109, in pbr
2015-12-29 17:09:24.767 | attrs = util.cfg_to_args(path)
2015-12-29 17:09:24.767 | File "/usr/local/lib/python2.7/dist-packages/pbr/util.py", line 261, in cfg_to_args
2015-12-29 17:09:24.767 | wrap_commands(kwargs)
2015-12-29 17:09:24.767 | File "/usr/local/lib/python2.7/dist-packages/pbr/util.py", line 482, in wrap_commands
2015-12-29 17:09:24.767 | for cmd, _ in dist.get_command_list():
2015-12-29 17:09:24.767 | File "/usr/local/lib/python2.7/dist-packages/setuptools/dist.py", line 446, in get_command_list
2015-12-29 17:09:24.767 | cmdclass = ep.resolve()
2015-12-29 17:09:24.767 | File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2386, in resolve
2015-12-29 17:09:24.767 | module = __import__(self.module_name, fromlist=['__name__'], level=0)
2015-12-29 17:09:24.767 | File "/usr/local/lib/python2.7/dist-packages/pbr/testr_command.py", line 47, in <module>
2015-12-29 17:09:24.767 | from testrepository import commands
2015-12-29 17:09:24.767 | ImportError: No module named testrepository
2015-12-29 17:09:24.767 | error in setup command: Error parsing /opt/stack/new/keystone/setup.cfg: ImportError: No module named testrepository
2015-12-29 17:09:24.767 |
2015-12-29 17:09:24.767 | ----------------------------------------
2015-12-29 17:09:24.767 | Command "python setup.py egg_info" failed with error code 1 in /opt/stack/new/keystone

Changed in pbr:
status: New → Confirmed
Changed in tempest:
status: Confirmed → Invalid
Changed in devstack:
assignee: nobody → Marc Koderer (m-koderer)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to devstack (stable/kilo)

Fix proposed to branch: stable/kilo
Review: https://review.openstack.org/262470

Marc Koderer (m-koderer)
Changed in tempest:
importance: Critical → Undecided
Revision history for this message
Ghanshyam Mann (ghanshyammann) wrote :

Still confused why pbr did not pickup testrepository, its seems to be installed (or i missed something)-

http://logs.openstack.org/34/252234/4/check/gate-tempest-dsvm-full-kilo/e9b534a/logs/devstack-early.txt.gz#_2015-12-29_17_07_50_031

Also latest pbr has handled the testrepository import error in better way, Can we bump the kilo pbr version?

Revision history for this message
Marc Koderer (m-koderer) wrote :

@gmann I am confused why pbr needs testrepository at all for package installation.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to devstack (stable/kilo)

Reviewed: https://review.openstack.org/262470
Committed: https://git.openstack.org/cgit/openstack-dev/devstack/commit/?id=77e835142aaa740c53993fe34dc5643518a368be
Submitter: Jenkins
Branch: stable/kilo

commit 77e835142aaa740c53993fe34dc5643518a368be
Author: Marc Koderer <email address hidden>
Date: Mon Jan 4 09:34:53 2016 +0100

    Workaround for missing PBR requirement

    PBR misses a requirement to testrepository.
    This workaround installs it in front and can be removed after
    PBR is fixed.

    This fix also contains tox fix due to the fact that kilo gate is broken two
    times which can't be fixed in two dependent commits:

      Do not fail with Tox 2.3.1

      Latest tox causes failures:
         File "/usr/local/lib/python2.7/dist-packages/tox/config.py", line 1140, in processcommand
          argv = list(shlexer)
         File "/usr/lib/python2.7/shlex.py", line 269, in next
           token = self.get_token()
         File "/usr/lib/python2.7/shlex.py", line 96, in get_token
           raw = self.read_token()
         File "/usr/lib/python2.7/shlex.py", line 172, in read_token
           raise ValueError, "No closing quotation"
       ValueError: No closing quotation

      This is caused by a backwards incompatible change in tox:
      https://bitbucket.org/hpk42/tox/issues/181
      (cherry picked from commit f59e6df23a430f0622215fec5bbbe18cfe7fee9c)

    Change-Id: Iddce0260436042e37eebe2aecb810707e53a4473
    Partial-Bug: #1530026

tags: added: in-stable-kilo
Revision history for this message
Robert Collins (lifeless) wrote :

This is not a missing dependency of pbr; its a bug we fixed a while back thats been exposed by a setuptools change. It may make sense to make this a task on pbr 0.11 though.

Changed in pbr:
status: Confirmed → Invalid
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.