]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
volume_image_metadata missing from volume list
authorMathieu Gagné <mgagne@iweb.com>
Thu, 3 Jul 2014 19:30:05 +0000 (15:30 -0400)
committerMathieu Gagné <mgagne@iweb.com>
Thu, 3 Jul 2014 19:31:04 +0000 (15:31 -0400)
commit06dd7f28d1d3ec8619df0d25ddfe977d538897b3
tree7804238bf433ad1d7b9d37204a8bab8707e71d64
parentbd4e556e685a3b7046f418aebe389e066310d7eb
volume_image_metadata missing from volume list

The volume_image_metadata field was missing from the volume list
because we tried to filter VolumeGlanceMetadata against a non-existent
project_id field. Filtering should be done on the Volume associated
to the VolumeGlanceMetadata instead.

Move project_id filtering out of model_query as it assumes
the project_id field is in the queried model itself.
Build the filter ourselves against Volume.

Change-Id: I6053708296f2b5e24513dc87ed63da0f67c220ae
Closes-bug: #1337526
cinder/db/sqlalchemy/api.py