stable/liberty unit tests broken - keystonemiddleware conf

Bug #1599855 reported by Eric Harney
This bug report is a duplicate of:  Bug #1600529: quota tests fail with AttributeError. Edit Remove
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
In Progress
Undecided
Tom Barron
Liberty
Fix Committed
Undecided
Andreas Jaeger

Bug Description

Running py27 tests on stable/liberty @41cea9c20 currently results in many tests failing like this:

cinder.tests.unit.api.contrib.test_quotas.QuotaSetsControllerTest.test_show
---------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
      File "cinder/tests/unit/api/contrib/test_quotas.py", line 100, in setUp
        self.fixture = self.useFixture(config_fixture.Config(auth_token.CONF))
    AttributeError: 'module' object has no attribute 'CONF'

This is with keystonemiddleware==4.6.0

Capping keystonemiddleware to <3.0.0 seems to work around this problem. We need to either fix our tests or add a version cap.

Successful run with: keystonemiddleware==2.4.1

Eric Harney (eharney)
Changed in cinder:
status: New → Invalid
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to cinder (stable/liberty)

Related fix proposed to branch: stable/liberty
Review: https://review.openstack.org/338958

Revision history for this message
Avishay Traeger (avishay-il) wrote :
Changed in cinder:
assignee: nobody → Tom Barron (tpb)
status: Invalid → In Progress
Revision history for this message
Tom Barron (tpb) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (stable/liberty)

Fix proposed to branch: stable/liberty
Review: https://review.openstack.org/340149

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

Change abandoned by Eric Harney (<email address hidden>) on branch: stable/liberty
Review: https://review.openstack.org/338958
Reason: https://review.openstack.org/#/c/340532/

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

Reviewed: https://review.openstack.org/340149
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=eb2fd292b877f578abd4020ee2efb6332090f653
Submitter: Jenkins
Branch: stable/liberty

commit eb2fd292b877f578abd4020ee2efb6332090f653
Author: Andreas Jaeger <email address hidden>
Date: Fri Feb 26 19:44:07 2016 +0100

    always use pip constraints

    This flips the tox.ini to always use constraints installation for
    all targets. It drops the extra -constraints targets in the process.
    This makes it so there is no developer change required to operate in our
    new world order.

    Change-Id: I2b56835edb2d75b7c871aae030e909578dbb9
    Depends-On: I0b582ac2c7c227faf72bf701dfa88e83a8ba9ee6
    Depends-On: Iecd35d6bc3b1e9e0ed31b48a34e4149d34d55ac2
    Closes-Bug: #1599855
    (cherry picked from commit 379f272924f1e3946f8eb08eb9690e42d09b0a29)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/cinder 7.0.3

This issue was fixed in the openstack/cinder 7.0.3 release.

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.