Hi there,

So, fun fact, the latest _stable_ release of oslo.db entirely broke
Gnocchi. :-)

The culprit is the backport of "Correctly detect incomplete sort_keys
passed to paginate_query" at https://review.openstack.org/#/c/363827/

It turns out that while the backport might have been a good idea, the
original patch seems to have a bug: it assumes that the model passed to
it has a __table__ attribute, which might not be the case. In Gnocchi,
we build temporary ORM mapping classes which do have primary keys but
are not attached to any table:

  
https://github.com/openstack/gnocchi/blob/master/gnocchi/indexer/sqlalchemy.py#L835-L848

I'll look into fixing that, though any help would be welcome.

Cheers,
-- 
Julien Danjou
-- Free Software hacker
-- https://julien.danjou.info

Attachment: signature.asc
Description: PGP signature

__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: [email protected]?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Reply via email to