Description of problem:
We sometimes observe that an instance has duplicated attachments for the same volume,
while the volume has also duplicated attachments for the instance.
This causes wrong handling of block devices in nova, and causes issue in the instance,
or the failure when rebooting the instance caused by duplicated lock about the same volume
It doesn't always happen, but sometime does.
We observe that it tends to happen when ocp on top of osp continuously reties to attach a volume to an instance
Steps to Reproduce:
1. Create volume A
2. Create instance B
3. Attach a volume A to instance B concurrently
The instance B sometimes gets duplicated attachments for the volume A
The instance B never gets duplicated attachments for the volume A
This bug looks like a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1705563. Can you please check the deployed version of cinder?
As it seems that an older version is used (openstack-cinder-12.0.3-2.el7ost.noarch), closing as duplicate for now. The bug can be reopened if the issue is still visible after an update.
*** This bug has been marked as a duplicate of bug 1705563 ***