cinder/cinder/volume
whoami-rajat 3b3e0b2c58 Make volume soft delete more thorough
When a volume record is soft-deleted in the database,
dependent records in other tables (for example,
Transfers, VolumeGlanceMetadata, etc.) must be soft
deleted as well.  Otherwise, we will get FK dependency
errors when the database is purged.

This patch adds that support for VolumeAttachment table.
(other tables were already covered, just refactored)

Also adds tests.

Co-authored-by: Rajat Dhasmana <rajatdhasmana@gmail.com>
Co-authored-by: Brian Rosmaita <rosmaita.fossdev@gmail.com>

Change-Id: Ibfa6c4ba2f162681756ec3203991351345b65346
Related-Bug: #1542169
(cherry picked from commit a5bb17bdfc)
(cherry picked from commit dd2ba49004)
2020-01-24 07:06:02 +00:00
..
drivers Merge "PowerMax Driver - PowerMax Formatted Vols Fix" into stable/stein 2019-12-09 13:07:18 +00:00
flows Create new image volume cache entry when cloning fails 2019-01-15 06:33:49 -05:00
targets Fix LVM IPv6 target portals 2019-08-26 15:43:09 +00:00
__init__.py Fix dynamic import of CONF.volume_api_class 2016-02-12 10:50:31 -06:00
api.py Don't allow retype to encrypted+multiattach type 2019-09-05 17:09:26 +00:00
configuration.py Add support for shared "backend_defaults" config 2017-07-11 18:58:58 +00:00
driver.py Add get_driver_options method 2019-03-07 09:18:01 -05:00
driver_utils.py Remove log translations 2017-03-19 14:59:57 +00:00
group_types.py handle no default_cgsnapshot_type 2017-11-28 21:55:29 +00:00
manager.py Make volume soft delete more thorough 2020-01-24 07:06:02 +00:00
qos_specs.py [Doc] Handle Sphinx warnings as errors 2017-08-29 16:00:09 -05:00
rpcapi.py Transfer snapshots with volumes 2018-07-19 09:42:43 +08:00
throttling.py Implement privsep boilerplate in cinder. 2018-06-06 09:42:54 +08:00
utils.py Fix LVM IPv6 target portals 2019-08-26 15:43:09 +00:00
volume_migration.py Initiating Cinder Volume Manager with large number of volumes 2019-01-11 08:19:07 -05:00
volume_types.py Rollback the volume_types table when failed to update quota_usages 2019-10-07 19:44:53 +00:00