oslo.messaging 3.1.0 breaking ironic stable releases unit tests

Bug #1524041 reported by Lucas Alvares Gomes
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo.messaging
Fix Released
High
Jim Rollenhagen

Bug Description

Example of error:

2015-12-08 14:07:48.276 | class RequestContextSerializer(messaging.RequestContextSerializer):
2015-12-08 14:07:48.276 | File "/home/jenkins/workspace/gate-ironic-python27/.tox/py27/lib/python2.7/abc.py", line 87, in __new__
2015-12-08 14:07:48.276 | cls = super(ABCMeta, mcls).__new__(mcls, name, bases, namespace)
2015-12-08 14:07:48.276 | TypeError: Error when calling the metaclass bases
2015-12-08 14:07:48.276 | metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases

More logs: http://logs.openstack.org/59/254759/1/check/gate-ironic-python27/9e4a526/console.html

Cause:

oslo.messaging was using debtcollector to decorate the RequestContextSerializer as deprecated and ran into this debt collector bug: https://bugs.launchpad.net/debtcollector/+bug/1520397

More:

This patch fixed the problem before the oslo.messaging release in Ironic master branch https://review.openstack.org/#/c/250571/1

summary: - oslo.messaging 3.1.0 breaking ironic stable releases unit tests
+ oslo.messaging 3.1.0 may break stable releases unit tests
summary: - oslo.messaging 3.1.0 may break stable releases unit tests
+ oslo.messaging 3.1.0 breaking stable releases unit tests
description: updated
Changed in oslo.messaging:
assignee: nobody → Jim Rollenhagen (jim-rollenhagen)
status: New → In Progress
Revision history for this message
Matt Riedemann (mriedem) wrote : Re: oslo.messaging 3.1.0 breaking stable releases unit tests

This is the revert to oslo.messaging:

https://review.openstack.org/#/c/254904/

We have to blacklist o.m 3.1.0 in g-r master and stable/liberty.

Revision history for this message
Matt Riedemann (mriedem) wrote :

This is the g-r blacklist change: https://review.openstack.org/#/c/254911/

Revision history for this message
Matt Riedemann (mriedem) wrote :
summary: - oslo.messaging 3.1.0 breaking stable releases unit tests
+ oslo.messaging 3.1.0 breaking ironic stable releases unit tests
Changed in oslo.messaging:
importance: Undecided → High
Revision history for this message
Matt Riedemann (mriedem) wrote :

Question - why didn't the ironic dsvm gate jobs fail with the oslo.messaging 3.1.0 release? Why was it only the unit tests?

Revision history for this message
Matt Riedemann (mriedem) wrote :

Nevermind, it's a unit test only failure because of upper-constraints, that's applied to the dsvm jobs but not the unit test jobs.

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :

I'd support https://review.openstack.org/#/c/254890/ as a fix for this problem

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :

Theres a block on the specific version in g-r, which means unless https://review.openstack.org/#/c/254890/ is re-instated, the next oslo.messaging will break ironic again

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to oslo.messaging (master)

Reviewed: https://review.openstack.org/254904
Committed: https://git.openstack.org/cgit/openstack/oslo.messaging/commit/?id=576e6ccfb20aa754da41aa73977031ba0ac6aebb
Submitter: Jenkins
Branch: master

commit 576e6ccfb20aa754da41aa73977031ba0ac6aebb
Author: Jim Rollenhagen <email address hidden>
Date: Tue Dec 8 10:48:35 2015 -0800

    Revert "serializer: deprecate RequestContextSerializer"

    This reverts commit 196980dace199c412dfaec34568c2a2d66b95a45.

    There is a bug in debtcollector with using the remove decorator on
    abstract classes, which RequestContextSerializer is.
    https://bugs.launchpad.net/debtcollector/+bug/1520397

    The addition of debtcollector to requirements.txt is left in place
    because it is used elsewhere in the code by now.

    Partial-Bug: #1524041
    Change-Id: Ic3985707e941f7a7a1e039e702ce9219a3c741df

Ruby Loo (rloo)
no longer affects: ironic
Changed in oslo.messaging:
status: In Progress → Fix Released
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.