This patch introduces methods for retrieving volume targets by
their ID. As this field does not have a unique constraint, getting
volume targets by their volume_id field will return a list. This
will allow us to simplify attaching volumes in the cinder driver
as we can now easily query the database rather than looping
through all connected volumes.
Reviewed: https:/ /review. openstack. org/460250 /git.openstack. org/cgit/ openstack/ ironic/ commit/ ?id=2a9013599f6 abd9a30cea207aa 97637599a9f26e
Committed: https:/
Submitter: Jenkins
Branch: master
commit 2a9013599f6abd9 a30cea207aa9763 7599a9f26e
Author: Michael Turek <email address hidden>
Date: Wed Apr 26 13:45:38 2017 -0400
Enable getting volume targets by their volume_id
This patch introduces methods for retrieving volume targets by
their ID. As this field does not have a unique constraint, getting
volume targets by their volume_id field will return a list. This
will allow us to simplify attaching volumes in the cinder driver
as we can now easily query the database rather than looping
through all connected volumes.
Change-Id: I05709fd2ab09bd 127c0d202ddcd48 63077db3d5b
Partial-Bug: #1559691