due to a bug in delete snaoshots I have several delete and create tasks for volme and volume snapshots.
[root@opens-vdsb ~(keystone_admin)]# cinder list
+--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
| ID | Status | Display Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
| 5f036640-6f4a-4990-804a-fa2a1f46c0a7 | available | test | 10 | None | false | |
| ade1cb34-a642-4867-a590-268812a575df | creating | None | 2 | None | false | |
+--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
[root@opens-vdsb ~(keystone_admin)]# cinder snapshot-list
+--------------------------------------+--------------------------------------+----------------+--------------+------+
| ID | Volume ID | Status | Display Name | Size |
+--------------------------------------+--------------------------------------+----------------+--------------+------+
| 0f48b93d-32bb-4078-89be-76ff6468ee97 | 5f036640-6f4a-4990-804a-fa2a1f46c0a7 | error_deleting | None | 10 |
| 24d4e530-5eef-4f4c-8b3b-c1dd51f1b295 | 5f036640-6f4a-4990-804a-fa2a1f46c0a7 | error_deleting | None | 10 |
| 5a14b4c4-9a14-4de6-abd2-236208bc1429 | 5f036640-6f4a-4990-804a-fa2a1f46c0a7 | error_deleting | None | 10 |
| 69f4bd94-f7df-40bf-94ba-f9e1f6661a3f | 5f036640-6f4a-4990-804a-fa2a1f46c0a7 | error_deleting | None | 10 |
| 9a68a5b8-781c-4661-be5c-6a791ff79370 | 5f036640-6f4a-4990-804a-fa2a1f46c0a7 | error_deleting | None | 10 |
+--------------------------------------+--------------------------------------+----------------+--------------+------+
when I try to run a simple vgs , the command get stuck and I have no option other than terminating the command:
[root@opens-vdsb ~(keystone_admin)]# vgs
/dev/cinder-volumes/_snapshot-69f4bd94-f7df-40bf-94ba-f9e1f6661a3f: read failed after 0 of 4096 at 10737352704: Input/output error
/dev/cinder-volumes/_snapshot-69f4bd94-f7df-40bf-94ba-f9e1f6661a3f: read failed after 0 of 4096 at 10737410048: Input/output error
/dev/cinder-volumes/_snapshot-69f4bd94-f7df-40bf-94ba-f9e1f6661a3f: read failed after 0 of 4096 at 0: Input/output error
/dev/cinder-volumes/_snapshot-69f4bd94-f7df-40bf-94ba-f9e1f6661a3f: read failed after 0 of 4096 at 4096: Input/output error
/dev/cinder-volumes/_snapshot-24d4e530-5eef-4f4c-8b3b-c1dd51f1b295: read failed after 0 of 4096 at 10737352704: Input/output error
/dev/cinder-volumes/_snapshot-24d4e530-5eef-4f4c-8b3b-c1dd51f1b295: read failed after 0 of 4096 at 10737410048: Input/output error
/dev/cinder-volumes/_snapshot-24d4e530-5eef-4f4c-8b3b-c1dd51f1b295: read failed after 0 of 4096 at 0: Input/output error
/dev/cinder-volumes/_snapshot-24d4e530-5eef-4f4c-8b3b-c1dd51f1b295: read failed after 0 of 4096 at 4096: Input/output error
/dev/cinder-volumes/_snapshot-0f48b93d-32bb-4078-89be-76ff6468ee97: read failed after 0 of 4096 at 10737352704: Input/output error
/dev/cinder-volumes/_snapshot-0f48b93d-32bb-4078-89be-76ff6468ee97: read failed after 0 of 4096 at 10737410048: Input/output error
/dev/cinder-volumes/_snapshot-0f48b93d-32bb-4078-89be-76ff6468ee97: read failed after 0 of 4096 at 0: Input/output error
/dev/cinder-volumes/_snapshot-0f48b93d-32bb-4078-89be-76ff6468ee97: read failed after 0 of 4096 at 4096: Input/output error
/dev/cinder-volumes/_snapshot-5a14b4c4-9a14-4de6-abd2-236208bc1429: read failed after 0 of 4096 at 10737352704: Input/output error
/dev/cinder-volumes/_snapshot-5a14b4c4-9a14-4de6-abd2-236208bc1429: read failed after 0 of 4096 at 10737410048: Input/output error
/dev/cinder-volumes/_snapshot-5a14b4c4-9a14-4de6-abd2-236208bc1429: read failed after 0 of 4096 at 0: Input/output error
/dev/cinder-volumes/_snapshot-5a14b4c4-9a14-4de6-abd2-236208bc1429: read failed after 0 of 4096 at 4096: Input/output error
/dev/cinder-volumes/_snapshot-9a68a5b8-781c-4661-be5c-6a791ff79370: read failed after 0 of 4096 at 10737352704: Input/output error
/dev/cinder-volumes/_snapshot-9a68a5b8-781c-4661-be5c-6a791ff79370: read failed after 0 of 4096 at 10737410048: Input/output error
/dev/cinder-volumes/_snapshot-9a68a5b8-781c-4661-be5c-6a791ff79370: read failed after 0 of 4096 at 0: Input/output error
/dev/cinder-volumes/_snapshot-9a68a5b8-781c-4661-be5c-6a791ff79370: read failed after 0 of 4096 at 4096: Input/output error
^C CTRL-c detected: giving up waiting for lock
/var/lock/lvm/V_cinder-volumes:aux: flock failed: Interrupted system call
Can't get lock for cinder-volumes
VG #PV #LV #SN Attr VSize VFree
vg0 1 2 0 wz--n- 232.69g 0
this exposes an issue on locks with lvm since we appearantly cannot run any commands at all requiring a lock on the vg if we have a stuck task.
hi,
I have followed below steps to reproduce
In script I have created 3 volumes using cinder create commands.
Given sleep of 90 seconds so that volumes are “available”
Deleted 3 created volumes using cinder delete command.
Wrote 3 scripts to execute cinder commands parallely. ,
Executed 1 script on one terminal. So 3 terminals total 9 volumes will be created.
On 4th terminal I have executed Sudo VGS command to check if it give some locking error or not.
I found, VGS is working properly without getting any error
##The same thing I have tried using snapshot create on the volume. With this snapshot-create also I am not getting any issue.
can you please give us exact scenario where you got this error
--Sandeep.