Openstack Cinder volume: VM with ERROR state Failed to get "write" lock\nIs another process using the image
Applies to
- Openstack Cinder driver
- Compute (nova) services
- NFS protocol
Issue
- Compute node reboots or fails and the NFS mount point disappears
- which causes VM running on that compute to an ERROR state as the cinder-volume with the below error.
Failed to get "write" lock\nIs another | process using the image
2022-09-06 14:07:08.378 7 ERROR oslo_messaging.rpc.server raise libvirtError('virDomainCreateWithFlags() failed')
2022-09-06 14:07:08.378 7 ERROR oslo_messaging.rpc.server libvirt.libvirtError: internal error: qemu unexpectedly closed the monitor: 2022-09-06T08:37:07.310519Z xxx-kvm: -device vir-xxx-pci,bus=pci.0,addr=0x4,drive=libvirt-1-format,id=virtio-disk0,bootindex=1,write-cache=on,serial=f0a03ccf-b923-4c73-a6a0-f57d4eb34db5: Failed to get shared "write" lock
2022-09-06 14:07:08.378 7 ERROR oslo_messaging.rpc.server Is another process using the image [/var/lib/nova/mnt/c75969649b0a65bb741b8ef144d2ab5b/volume-d7b52688-4bd5-4634-80df-9baef152bde2]?