Bug 1804562

Summary: An instance get a duplicated attachments about the same volume
Product: Red Hat OpenStack Reporter: Takashi Kajinami <tkajinam>
Component: openstack-cinderAssignee: Cinder Bugs List <cinder-bugs>
Status: CLOSED DUPLICATE QA Contact: Tzach Shefi <tshefi>
Severity: medium Docs Contact: Chuck Copello <ccopello>
Priority: unspecified    
Version: 13.0 (Queens)CC: ltoscano
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-02-19 09:59:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Takashi Kajinami 2020-02-19 07:40:01 UTC
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

How reproducible:
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

Actual results:
The instance B sometimes gets duplicated attachments for the volume A


Expected results:
The instance B never gets duplicated attachments for the volume A


Additional info:

Comment 2 Luigi Toscano 2020-02-19 09:18:10 UTC
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?

Comment 5 Luigi Toscano 2020-02-19 09:59:51 UTC
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 ***