Fix drivers_private_data update on deleted entries
The drivers_private_data is expected to be able to
save new entries using the same keys as previously deleted
entries.
Before performing an update, it retrieves all entries
related to the same entity to check if it needs to
perform an update (including on deleted entries) or a
new insertion.
Unfortunately, the misinterpretation of a parameter in the
manila DB API led to a bug that prevented deleted entries
to be retrieved.
This bugfix replaces the query ensuring that all entries
(active and deleted) are retrieved so the update validation
works.
Closes-bug: #1721123
Change-Id: Id94544c9b8a534d7f0fe4e16bc57546002e33373
(cherry picked from commit ebac41d6314adb4046c097fcb1046308f3776d31)
Reviewed: https:/ /review. openstack. org/529105 /git.openstack. org/cgit/ openstack/ manila/ commit/ ?id=abb480f27da 50c32c72d21ef69 f5d173c48340a9
Committed: https:/
Submitter: Zuul
Branch: stable/pike
commit abb480f27da50c3 2c72d21ef69f5d1 73c48340a9
Author: Rodrigo Barbieri <email address hidden>
Date: Tue Oct 3 15:15:00 2017 -0300
Fix drivers_ private_ data update on deleted entries
The drivers_ private_ data is expected to be able to
save new entries using the same keys as previously deleted
entries.
Before performing an update, it retrieves all entries
related to the same entity to check if it needs to
perform an update (including on deleted entries) or a
new insertion.
Unfortunately, the misinterpretation of a parameter in the
manila DB API led to a bug that prevented deleted entries
to be retrieved.
This bugfix replaces the query ensuring that all entries
(active and deleted) are retrieved so the update validation
works.
Closes-bug: #1721123
Change-Id: Id94544c9b8a534 d7f0fe4e16bc575 46002e33373 046c097fcb10463 08f3776d31)
(cherry picked from commit ebac41d6314adb4