Bug 1331108

Summary: Backport the disconnect_volume method from os-brick's FibreChannelConnector class
Product: Red Hat OpenStack Reporter: Lee Yarwood <lyarwood>
Component: openstack-novaAssignee: Lee Yarwood <lyarwood>
Status: CLOSED WONTFIX QA Contact: Prasanth Anbalagan <panbalag>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 7.0 (Kilo)CC: berrange, dasmith, dcadzow, eglynn, hmatsumo, kchamart, lyarwood, sbauza, sferdjao, sgordon, srevivo, vromanso, ykawada
Target Milestone: ---Keywords: FeatureBackport, ZStream
Target Release: 7.0 (Kilo)   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-05 15:32:45 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:

Description Lee Yarwood 2016-04-27 18:22:50 UTC
Description of problem:

Changes introduced in openstack-nova-2015.1.3-15.el7ost via BZ#1313624 to the LibvirtFibreChannelVolumeDriver class disconnect_volume method now result in no local devices being removed if only a single path device is found during connect_volume.

This method needs to be changed to reflect the current disconnect_volume method in os-brick's FibreChannelConnector class [1]. This implementation currently builds a list of possible device paths using the stashed target WWN(s) and local HBA PCI address details before removing any that it finds. Finally if a multipath device is present this is also flushed.

[1] https://git.io/vw2fE

Version-Release number of selected component (if applicable):
openstack-nova-2015.1.3-15.el7ost

How reproducible:
Always

Steps to Reproduce:
1. Detach a volume currently supplied by a single path device from an instance.

Actual results:
The single path device is not removed.

Expected results:
The single path device is removed.

Additional info:

Comment 18 awaugama 2017-08-30 17:53:01 UTC
WONTFIX/NOTABUG therefore QE Won't automate