cinder/releasenotes/notes/clean-file-locks-tool-3a62ba05ef2d2239.yaml
Gorka Eguileor dbcbfefe51 Add cinder-manage command to remove file locks
This patch adds a new subgroup of commands called `util` with a single
command ``remove_locks` that takes care of deleting locks that will no
longer be used because the resources they are related to are no longer
there.

This works for volumes and snapshots and with the cinder services
running or stopped.

It gets the file locks filtering by name (must have the "cinder-" prefix
and an UUID) and then if the service is online it will not delete file
locks for resources that are still present in the database.

Closes-Bug: #1432387
Change-Id: I2535017e112c8bcb9a2e516876f52a945e9c7da8
2021-08-04 14:42:29 +00:00

11 lines
496 B
YAML

---
features:
- |
`Bug #1432387 <https://bugs.launchpad.net/cinder/+bug/1432387>`_: Add a
command to cinder-manage to clean up file locks existing in hosts where
there is a Cinder service running (API, Scheduler, Volume, Backup).
Command works with the Cinder services running, useful to be called as a
cron job, as well as stopped, to be called on host startup. Command
invocation ``cinder-manage util clean_locks`` with optional parameter
``--services-offline``.