Nova test suite breakage.

Bug #1200231 reported by Chuck Short
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Roman Podoliaka
Grizzly
Fix Released
High
Unassigned

Bug Description

FAIL: nova.tests.test_quota.QuotaIntegrationTestCase.test_too_many_addresses
tags: worker-5
----------------------------------------------------------------------
Empty attachments:
  stderr
  stdout

pythonlogging:'': {{{
Loading network driver 'nova.network.linux_net'
Starting network node (version 2013.2)
Quota exceeded for admin, tried to allocate floating IP
}}}

Traceback (most recent call last):
  File "/tmp/buildd/nova-2013.2.a1884.gb14f9cd/nova/tests/test_quota.py", line 130, in test_too_many_addresses
    db.floating_ip_destroy(context.get_admin_context(), address)
  File "/tmp/buildd/nova-2013.2.a1884.gb14f9cd/nova/db/api.py", line 288, in floating_ip_destroy
    return IMPL.floating_ip_destroy(context, address)
  File "/tmp/buildd/nova-2013.2.a1884.gb14f9cd/nova/db/sqlalchemy/api.py", line 120, in wrapper
    return f(*args, **kwargs)
  File "/tmp/buildd/nova-2013.2.a1884.gb14f9cd/nova/db/sqlalchemy/api.py", line 790, in floating_ip_destroy
    filter_by(address=address).\
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 1245, in filter_by
    for key, value in kwargs.iteritems()]
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/sql/operators.py", line 278, in __eq__
    return self.operate(eq, other)
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/attributes.py", line 252, in operate
    return op(self.comparator, *other, **kwargs)
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/sql/operators.py", line 278, in __eq__
    return self.operate(eq, other)
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/properties.py", line 212, in operate
    return op(self.__clause_element__(), *other, **kwargs)
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/sql/util.py", line 490, in __eq__
    return self.__element.__class__.__eq__(self, other)
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/sql/operators.py", line 278, in __eq__
    return self.operate(eq, other)
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/sql/expression.py", line 2300, in operate
    return op(self.comparator, *other, **kwargs)
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/util/langhelpers.py", line 612, in __get__
    obj.__dict__[self.__name__] = result = self.fget(obj)
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/sql/expression.py", line 2286, in comparator
    return self.type.comparator_factory(self)
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/types.py", line 629, in comparator_factory
    {})
TypeError: Cannot create a consistent method resolution
order (MRO) for bases TDComparator, Comparator

Tags: db
Chuck Short (zulcss)
Changed in nova:
importance: Undecided → High
Chuck Short (zulcss)
summary: - Nova test suite with sqlalchemy >= 0.8
+ Nova test suite breakage.
Changed in nova:
assignee: nobody → Roman Podolyaka (rpodolyaka)
status: New → In Progress
tags: added: db
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/37060

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

Reviewed: https://review.openstack.org/37060
Committed: http://github.com/openstack/nova/commit/cd382933eb5b6b09f34398cf2c963164bc5b6fc7
Submitter: Jenkins
Branch: master

commit cd382933eb5b6b09f34398cf2c963164bc5b6fc7
Author: Roman Podolyaka <email address hidden>
Date: Mon Jul 15 16:47:14 2013 +0300

    Fix IPAddress and CIDR type decorators

    Use load_dialect_impl() user hook instead of calling
    with_variant() on a type implementation in IPAddress
    and CIDR type decorators. This makes this code work
    with SQLAlchemy 0.8.x versions.

    Fixes bug 1200231

    Change-Id: Ib0eb582f472116bda817d3e35e26888dc116ad58

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → havana-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: havana-3 → 2013.2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/grizzly)

Fix proposed to branch: stable/grizzly
Review: https://review.openstack.org/53167

Revision history for this message
Xavier Queralt (xqueralt-deactivatedaccount) wrote :

I've hit this issue with grizzly running in fedora 19 which has sqlalchemy 0.8.2. Without the fix the system is completely unusable as it is impossible to boot an instance.

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

Reviewed: https://review.openstack.org/53167
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=21871a7b5278e999621374ec0cc86288b3994549
Submitter: Jenkins
Branch: stable/grizzly

commit 21871a7b5278e999621374ec0cc86288b3994549
Author: Roman Podolyaka <email address hidden>
Date: Mon Jul 15 16:47:14 2013 +0300

    Fix IPAddress and CIDR type decorators

    Use load_dialect_impl() user hook instead of calling
    with_variant() on a type implementation in IPAddress
    and CIDR type decorators. This makes this code work
    with SQLAlchemy 0.8.x versions.

    Fixes bug 1200231

    Change-Id: Ib0eb582f472116bda817d3e35e26888dc116ad58
    (cherry picked from commit cd382933eb5b6b09f34398cf2c963164bc5b6fc7)

tags: added: in-stable-grizzly
Alan Pevec (apevec)
tags: removed: in-stable-grizzly
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.