Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1426441

Summary: Wait for device on mpath + iscsi cleanup
Product: Red Hat OpenStack Reporter: Yuming Ma <yumima>
Component: python-os-brickAssignee: Gorka Eguileor <geguileo>
Status: CLOSED ERRATA QA Contact: Avi Avraham <aavraham>
Severity: high Docs Contact:
Priority: high    
Version: 8.0 (Liberty)CC: apevec, charcrou, eharney, geguileo, jdonohue, jschluet, lhh, mburns, mlopes, nlevinki, pgrist, wlehman
Target Milestone: zstreamKeywords: Triaged, ZStream
Target Release: 8.0 (Liberty)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: hot
Fixed In Version: python-os-brick-0.5.0-4.el7ost Doc Type: Bug Fix
Doc Text:
This update contains a complete refactoring of the iSCSI connection mechanism, resulting in improved reliability. For optimal results, use with openstack-cinder >= 7.0.3-8 and iscsi-initiator-utils >= 6.2.0.874-2.
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-10-25 17:06:46 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:
Bug Depends On:    
Bug Blocks: 1194008    

Comment 1 Yuming Ma 2017-02-28 22:25:03 UTC
Description of problem:

During the cleanup of a multipath iSCSi volume os-brick will issue the command to remove the device but it doesn't wait for the device to be removed before moving on. As a result of this as soon as the request to delete all the devices are made the lock guarding against collision is released. If another volume is waiting to be connected or disconnected the the next request will grab the lock and run a multipath -r. This can detect the to-be-deleted-but-not-yet-removed device, pull it into the map and prevent the cleanup from functioning. To prevent this we need to wait for the device to be fully removed first. Link to patch upstream review: https://review.openstack.org/#/c/409881/

This will need to be:
1. merged to upstream
2. back port to OSP8

Comment 6 Avi Avraham 2017-10-18 12:27:02 UTC
verified 
Package installed :
python-os-brick-0.5.0-4.el7ost.noarch
verified by running tempest

Comment 8 errata-xmlrpc 2017-10-25 17:06:46 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:3067