Comment 24 for bug 1432387

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.opendev.org/c/openstack/cinder/+/734144
Committed: https://opendev.org/openstack/cinder/commit/dbcbfefe517268c3a2159b3bcd2d9a865b9d0a81
Submitter: "Zuul (22348)"
Branch: master

commit dbcbfefe517268c3a2159b3bcd2d9a865b9d0a81
Author: Gorka Eguileor <email address hidden>
Date: Mon Jun 8 18:35:06 2020 +0200

    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