cinder/cinder/tests/unit
Rajat Dhasmana 175eb62813 RBD: Cleanup temporary file during exception
During copy image to encrypted volume operation, we create a
temporary image file to convert source image into an encrypted
image and rename it to source image name.
If any error occurs during this process, there is no code to
cleanup the temporary '.luks' file.
This patch adds the following cleanup.

Conflicts:
    cinder/image/image_utils.py
    cinder/tests/unit/volume/drivers/test_rbd.py

Change-Id: I05dfc996a635299990fdafba841ab6c4fd7d32c7
Closes-Bug: 1873738
(cherry picked from commit 7c95f3969f)
(cherry picked from commit 02de7897d4)
(cherry picked from commit 48774c89ab)
2020-08-13 15:41:42 +00:00
..
api Prevent double-attachment race in attachment_reserve 2019-07-31 11:38:37 -04:00
attachments Prevent double-attachment race in attachment_reserve 2019-07-31 11:38:37 -04:00
backup Fix cross-project incremental backups 2020-07-06 18:18:49 -03:00
brick Revert "Synchronize all LVM operations" 2018-12-18 00:18:41 +00:00
cmd Fix online data migrations 2020-05-15 19:37:06 +03:00
compute Add user messages for extend volume operation 2018-06-01 09:12:07 +08:00
consistencygroup Remove unused CG code 2017-03-19 00:49:10 -04:00
db Make volume soft delete more thorough 2020-01-24 07:06:02 +00:00
glance
group Fix gigabytes usage error when deleting snapshot group 2019-01-21 11:42:00 +01:00
image Pass image_id to ImageDownloadFailed 2019-01-17 21:41:46 +00:00
keymgr Add 'volume_attachment' to volume expected attributes 2018-08-21 17:06:12 +08:00
message Use constants for microversion values 2017-09-22 08:15:56 -05:00
monkey_patch_example
objects Fix cross-project incremental backups 2020-07-06 18:18:49 -03:00
policies Refactor on policy in code 2019-01-15 01:22:37 +00:00
scheduler Fix DriverFilter to accept None volume type 2020-05-13 15:10:06 +03:00
targets Fix LVM IPv6 target portals 2019-08-26 15:43:09 +00:00
volume RBD: Cleanup temporary file during exception 2020-08-13 15:41:42 +00:00
windows Merge "SMBFS: allow snapshot ro attach" 2018-02-21 19:37:34 +00:00
zonemanager Merge "Fix for auth version change in Brcd HTTP" 2019-02-23 10:07:03 +00:00
__init__.py
cast_as_call.py
conf_fixture.py Stop using deprecated rpc_backend option 2018-10-08 20:52:53 +00:00
fake_cluster.py
fake_constants.py Update db from drivers in default groups methods 2017-03-17 11:08:06 -04:00
fake_group.py Update db from drivers in default groups methods 2017-03-17 11:08:06 -04:00
fake_group_snapshot.py Update db from drivers in default groups methods 2017-03-17 11:08:06 -04:00
fake_notifier.py Short-circuit notifications when not enabled 2017-01-30 12:31:45 +01:00
fake_objects.py
fake_service.py Fix migration 112 to use live_data_migration API 2017-10-20 18:24:33 -06:00
fake_snapshot.py Add context to cloning snapshots in remotefs driver 2019-09-11 08:04:46 -07:00
fake_utils.py
fake_volume.py Fix VolumeAttachment is not bound to a Session 2019-03-15 11:29:25 +01:00
policy.json Add policy test for volume extend/retype/update_ro policy 2019-01-15 01:22:24 +00:00
test_api.py
test_api_urlmap.py
test_cleanable_manager.py
test_cmd.py Fix online data migrations 2020-05-15 19:37:06 +03:00
test_context.py Update oslo.context RequestContext args 2017-11-21 14:56:06 -06:00
test_coordination.py Handle deprecation of inspect.getargspec 2017-11-21 12:57:05 -06:00
test_db_api.py Fix cross-project incremental backups 2020-07-06 18:18:49 -03:00
test_db_worker_api.py Prevent claiming and updating races on worker 2017-01-19 10:42:24 +01:00
test_evaluator.py
test_exception.py Make CinderException format errors fatal for tests 2018-02-06 21:17:17 +00:00
test_fixtures.py Explicitly set expected log level for tests 2017-11-17 16:58:40 -06:00
test_hacking.py Update log translation hacking rule 2017-06-29 04:05:52 -04:00
test_image_utils.py Add missing ws seperator between words 2019-01-23 14:21:15 +08:00
test_manager.py Add service dynamic log change/query 2017-05-16 13:37:35 +02:00
test_paginate_query.py Don't use None value for sql query. 2017-02-04 09:31:27 +08:00
test_policy.py Add policy granularity to the encryption API 2018-08-15 09:22:25 -05:00
test_qos_specs.py Add enough notification for QoS 2018-01-18 14:04:29 +08:00
test_quota.py Remove auth_uri usage 2018-08-29 11:46:11 +08:00
test_quota_utils.py Remove auth_uri usage 2018-08-29 11:46:11 +08:00
test_rpc.py Fix notification short-circuit 2017-02-01 17:11:14 +01:00
test_service.py Refresh the Service.service_id after re-spawning children 2019-10-07 19:39:01 +00:00
test_service_auth.py Add service_token for cinder-nova interaction 2017-12-15 12:04:23 +05:30
test_setup_profiler.py Use constants for cinder-volume 2017-12-29 09:05:08 +08:00
test_ssh_utils.py Stop a connections leak when freeing an SSHPool 2018-02-14 18:16:55 -06:00
test_test.py Fix test_rpc_consumer_isolation for oslo.messaging 5.31.0 2017-09-06 15:12:45 -04:00
test_test_utils.py Update oslo.context RequestContext args 2017-11-21 14:56:06 -06:00
test_utils.py Mask passwords in utils.trace for func params 2019-01-02 17:22:07 +08:00
test_volume_cleanup.py
test_volume_configuration.py Add support for shared "backend_defaults" config 2017-07-11 18:58:58 +00:00
test_volume_glance_metadata.py
test_volume_throttling.py Implement privsep boilerplate in cinder. 2018-06-06 09:42:54 +08:00
test_volume_transfer.py Improve volume transfer records 2019-01-14 11:50:43 +08:00
test_volume_types.py Rollback the volume_types table when failed to update quota_usages 2019-10-07 19:44:53 +00:00
test_volume_types_extra_specs.py
test_volume_utils.py Add check_encryption_provider to volume utils 2019-01-22 14:42:56 -05:00
utils.py Extend timeout for database migration tests 2019-02-25 10:37:55 -05:00