cinder/cinder
whoami-rajat 0ba501e021 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.

Conflicts:
    test-requirements.txt

    Note: conflict is due to gate fixing patch in Stein
    I9f0fec25444ed865d56d0d250fb6d840ab5b4095, which is
    not applicable in Rocky.

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

Change-Id: Ibfa6c4ba2f162681756ec3203991351345b65346
Related-Bug: #1542169
Depends-On: https://review.opendev.org/#/c/704688/
(cherry picked from commit a5bb17bdfc)
(cherry picked from commit dd2ba49004)
2020-02-03 17:58:54 +00:00
..
api Add OS-SCH-HNT in extensions list 2019-06-21 12:23:38 +05:30
backup Fix ceph: only close rbd image after snapshot iteration is finished 2019-08-13 11:40:10 -03:00
brick Add retry to LVM deactivation 2019-10-02 19:47:50 +00:00
cmd Prevent double-attachment race in attachment_reserve 2019-08-01 13:34:44 -04:00
common Enable split logging for cinder-glanceclient interaction 2018-07-11 14:38:04 +05:30
compute Add user messages for extend volume operation 2018-06-01 09:12:07 +08:00
db Make volume soft delete more thorough 2020-02-03 17:58:54 +00:00
group Fix wrong uuid recognized when create group 2019-02-27 11:04:45 -06:00
hacking Fix invalid escape sequence warnings 2018-06-20 16:22:26 -05:00
image Increase cpu limit for image conversion 2019-12-03 10:13:45 -05:00
interface Make scheduler check online_extend_support capability 2018-06-26 14:42:34 -03:00
keymgr Add secret=true to fixed_key configuration parameter 2018-12-13 21:56:15 -05:00
locale Imported Translations from Zanata 2018-10-19 08:01:47 +00:00
message Support image signature verification 2018-06-11 10:14:49 +08:00
objects Add 'volume_attachment' to volume expected attributes 2019-12-26 07:37:01 +00:00
policies Merge "Add policy in code documentation for os-set_bootable API" 2018-08-08 21:19:30 +00:00
privsep Port nvmet driver to use privsep 2018-07-05 08:11:01 -04:00
scheduler Merge "Make scheduler check online_extend_support capability" 2018-07-13 02:20:26 +00:00
tests Make volume soft delete more thorough 2020-02-03 17:58:54 +00:00
transfer Transfer snapshots with volumes 2018-07-19 09:42:43 +08:00
volume Make volume soft delete more thorough 2020-02-03 17:58:54 +00:00
wsgi Prevent double-attachment race in attachment_reserve 2019-08-01 13:34:44 -04:00
zonemanager Fix for auth version change in Brcd HTTP 2019-02-23 11:44:48 +00:00
__init__.py
context.py Add Keystone v3 domain information to context 2018-04-25 09:29:33 -04:00
coordination.py Remove deprecated heartbeat options 2017-10-03 14:41:18 -05:00
exception.py Set message property in ImageDownloadFailed 2018-12-14 05:49:30 +00:00
flow_utils.py
i18n.py Replace http with https for doc links in cinder 2017-10-17 11:14:01 +08:00
manager.py Allow configuring tpool size 2018-03-08 15:59:29 +01:00
opts.py Add keystoneauth options to list_opts 2018-07-23 12:02:08 +08:00
policy.py Correct default policy file 2018-11-30 03:39:03 +00:00
quota.py V3 jsonschema validation: Quotas 2018-04-27 08:21:51 +05:30
quota_utils.py Add Generic Volume Group Into Quota Management 2017-05-26 01:43:23 +00:00
rpc.py Remove deprecated oslo_messaging.get_transport 2017-06-13 14:25:38 +07:00
service.py Use InvalidConfigurationValue instead of InvalidInput 2018-04-11 19:25:48 +08:00
service_auth.py Add service_token for cinder-nova interaction 2017-12-15 12:04:23 +05:30
ssh_utils.py Stop a connections leak when freeing an SSHPool 2018-02-14 18:16:55 -06:00
test.py Tests: Fix up migrate notify tests 2019-04-03 10:29:21 -04:00
utils.py [Logging] Enable filtering of trace_api logs 2018-06-29 10:04:55 -03:00
version.py