commit 03eced19f5d6665724a4fa432401be742383f8cf
Author: Mehdi Abaakouk <email address hidden>
Date: Wed Feb 1 13:31:38 2017 +0100
placement-api: fix ResourceProviderList query
The ResourceProviderList query use groupby without all grouped columns.
This works on mysql with unpredicable result, but don't for other RDBMS.
For example, postgresql gating jobs dsvm that use nova are currently
broken.
This change removes the unused consumer_id on first query,
and uses the primary key 'id' instead of 'uuid' the second groupby.
(Because groupby in postgresql requires a PK or all non-primary columns)
Reviewed: https:/ /review. openstack. org/427667 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=03eced19f5d 6665724a4fa4324 01be742383f8cf
Committed: https:/
Submitter: Jenkins
Branch: master
commit 03eced19f5d6665 724a4fa432401be 742383f8cf
Author: Mehdi Abaakouk <email address hidden>
Date: Wed Feb 1 13:31:38 2017 +0100
placement-api: fix ResourceProvide rList query
The ResourceProvide rList query use groupby without all grouped columns.
This works on mysql with unpredicable result, but don't for other RDBMS.
For example, postgresql gating jobs dsvm that use nova are currently
broken.
This change removes the unused consumer_id on first query,
and uses the primary key 'id' instead of 'uuid' the second groupby.
(Because groupby in postgresql requires a PK or all non-primary columns)
The fix is tested by gate-ceilometer -dsvm-tempest- plugin- postgresql- ubuntu- xenial job /review. openstack. org/#/c/ 427668/
here: https:/
closes-bug: #1660959 56696c9210d38dd 2d77b4157c1
Change-Id: I6cc93ba0dd569d