cinder/cinder/tests/unit
Gorka Eguileor d2f6ec5569 Remove file locks once we delete a resource
File locks are never removed from the system, so they keep increasing in
the locks directory, which can become problematic.

In this patch we start trying to delete these lock files when we delete
a volume or a snapshot.

This affects the 2 type of file locks we currently have:
- Using oslo lockutils synchronized with external=True
- Using coordination.synchronized when deployed in Active-Passive and no
  DLM

This will alleviate the ever increasing files in the locks directory.
Deployment tools should implement a service that runs when the host is
booting and cleans of the locks directory before the OpenStack services
are started.

Partial-Bug: #1432387
Change-Id: Ic73ee64257aeb024383c6cb79f2e8c04810aaf69
2021-08-04 10:41:33 -04:00
..
api Remove file locks once we delete a resource 2021-08-04 10:41:33 -04:00
attachments Remove unused code path in attachment_delete 2021-03-26 11:35:55 +01:00
backup Add backup_swift_create_storage_policy config opt 2021-06-28 07:37:06 +00:00
brick LVM: Simplify version fetching 2021-06-29 22:28:37 +00:00
cmd Remove NestedQuotaDriver 2021-01-19 17:43:29 +00:00
compute Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
consistencygroup
db Merge "Drop support for SQLite < 3.7" 2021-06-24 03:04:07 +00:00
group Use resource_backend for volumes and groups 2020-08-14 08:13:42 +00:00
image Open local image files with "rb" mode 2021-04-12 09:34:50 -04:00
keymgr Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
message Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
monkey_patch_example
objects Remove six from cinder.tests.unit.objects 2021-03-12 09:57:32 +08:00
policies Modify/Move project validation methods to api_utils 2021-04-05 08:00:40 -04:00
scheduler Fix instance locality scheduler filter 2021-04-13 12:27:55 +03:00
targets Remove six of dir cinder/tests/unit/policies&scheduler&targets/* 2020-10-08 10:58:09 +08:00
volume Remove file locks once we delete a resource 2021-08-04 10:41:33 -04:00
windows smbfs: set VHD UUID using volume UUID 2021-02-18 09:54:58 +02:00
zonemanager Move require_driver_initialized / log_unsupp to volume_utils 2021-06-11 11:13:34 -04:00
__init__.py
cast_as_call.py Introduce flake8-import-order extension 2020-01-06 09:59:35 -06:00
conf_fixture.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
fake_cluster.py
fake_constants.py Default type overrides 2020-09-16 14:05:31 +00:00
fake_group.py
fake_group_snapshot.py
fake_notifier.py Introduce flake8-import-order extension 2020-01-06 09:59:35 -06: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-07-10 10:41:15 +02:00
fake_utils.py Remove six of files under cinder/test/unit 2020-10-14 09:19:08 +08:00
fake_volume.py Fix VolumeAttachment is not bound to a Session 2019-03-15 11:29:25 +01:00
policy.yaml [goal] Deprecate the JSON formatted policy file 2020-12-11 18:31:04 -06:00
test.py [goal] Deprecate the JSON formatted policy file 2020-12-11 18:31:04 -06:00
test_api.py Remove six of files under cinder/test/unit 2020-10-14 09:19:08 +08:00
test_api_urlmap.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_cleanable_manager.py Fix sporadic cleanup unit test failure 2021-04-14 20:11:23 +02:00
test_cmd.py Update to hacking 4.0.0 2021-02-16 10:54:51 -05:00
test_context.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_coordination.py Remove file locks once we delete a resource 2021-08-04 10:41:33 -04:00
test_db_api.py Prevent quota and reservations to go into negative 2021-03-30 16:23:10 +02:00
test_db_worker_api.py Remove six of files under cinder/test/unit 2020-10-14 09:19:08 +08:00
test_evaluator.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_exception.py Remove six of files under cinder/test/unit 2020-10-14 09:19:08 +08:00
test_fixtures.py Explicitly set expected log level for tests 2017-11-17 16:58:40 -06:00
test_hacking.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_image_utils.py Merge "Abort volume creation when encryption spec is invalid" 2021-07-09 15:00:27 +00:00
test_interface.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_manager.py Remove six of files under cinder/test/unit 2020-10-14 09:19:08 +08:00
test_paginate_query.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_policy.py Make sure we pass context objects directly to policy enforcement 2021-02-17 17:44:40 +00:00
test_qos_specs.py Remove six of files under cinder/test/unit 2020-10-14 09:19:08 +08:00
test_quota.py Merge "Fix quota usage duplicate entries" 2021-04-02 08:08:05 +00:00
test_quota_utils.py Modify/Move project validation methods to api_utils 2021-04-05 08:00:40 -04:00
test_rpc.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_service.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_service_auth.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_setup_profiler.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_ssh_utils.py Refactor some unit tests 2020-10-14 11:01:02 +00:00
test_test.py Handle oslo.messaging ping endpoint 2020-09-03 17:04:17 -05:00
test_test_utils.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_utils.py Remove file locks once we delete a resource 2021-08-04 10:41:33 -04:00
test_volume_cleanup.py Introduce flake8-import-order extension 2020-01-06 09:59:35 -06:00
test_volume_configuration.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_volume_glance_metadata.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_volume_throttling.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_volume_transfer.py Fix: show volume transfer by name for non-admins 2020-08-03 12:46:31 +00:00
test_volume_types.py Modify default/delete volume type logic 2020-08-19 02:07:15 +00:00
test_volume_types_extra_specs.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_volume_utils.py Merge "Abort volume creation when encryption spec is invalid" 2021-07-09 15:00:27 +00:00
utils.py Remove uuid check/generate in service 2021-04-12 13:16:40 -04:00