[cinder][tooz]Lock-files are remained
On 9/23/19 11:42 PM, Rikimaru Honjo wrote:
> Hi Eric,
> On 2019/09/20 23:10, Eric Harney wrote:
>> On 9/20/19 1:52 AM, Rikimaru Honjo wrote:
>>> I'm using Queens cinder with the following setting.
>>> backend_url = file://$state_path
>>> As a result, the files like the following were remained under the
>>> state path after some operations.
>>> In my understanding, these are lock-files created for synchronization
>>> by tooz.
>>> But, these lock-files were not deleted after finishing operations.
>>> Is this behaviour correct?
>>> e.g. Delete volume, Delete snapshot
>> This is a known bug that's described here:
>> (The fasteners library is used by tooz, which is used by Cinder for
>> managing these lock files.)
>> There's an old Cinder bug for it here:
>> but that's marked as "Won't Fix" because Cinder needs it to be fixed
>> in the underlying libraries.
> Thank you for your explanation.
> I understood the state.
> But, I have one more question.
> Can I think this bug doesn't affect synchronization?
It does not. In fact, it's important to not remove lock files while a
service is running or you can end up with synchronization issues.
To clean up the leftover lock files, we generally recommend clearing the
lock_path for each service on reboot before the services have started.
> Best regards,