[openstack-dev] [oslo] [telemetry] Oslo.db 4.13.1 broke Gnocchi

Julien Danjou julien at danjou.info
Fri Sep 2 08:09:14 UTC 2016


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 800 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160902/2fa31ea6/attachment.pgp>


More information about the OpenStack-dev mailing list