Detach 3PAR volume from an instance fails if host name is changed

Bug #1546453 reported by Sunitha K
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
High
Kurt Martin

Bug Description

Detach of 3PAR FC volume fails if the host name is changed after the attach was done.

Steps to reproduce:
1) Attach 3PAR FC volume to an instance running on KVM compute host
2) Change the host name (compute host)
3) Try detach of the volume that was created earlier.

Problematic code in 3PAR Cinder driver - the comparison of WWN needs to take care of upper/lower case difference.

if 'FCPaths' in host and wwns is not None:
            fc_paths = host['FCPaths']
            for fc in fc_paths:
                for wwn in wwns:
                    if wwn == fc['wwn']:

Tags: 3par drivers
Changed in cinder:
status: New → Confirmed
assignee: nobody → Kurt Martin (kurt-f-martin)
tags: added: 3par driver
tags: added: drivers
removed: driver
Changed in cinder:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/281552

Changed in cinder:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/281552
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=8e0214e28150717612012b768354b489d069dc90
Submitter: Jenkins
Branch: master

commit 8e0214e28150717612012b768354b489d069dc90
Author: Kurt Martin <email address hidden>
Date: Wed Feb 17 13:58:41 2016 -0800

    3PAR get host by WWN now handles mixed cases

    The 3PAR driver comparison of WWNs will be able to handle
    WWNs with upper/lower case differences. For example, the
    driver code can now locate a 3PAR host with a WWN of
    123abc6789012345 or 123ABD6789012345.

    Change-Id: I571713f34ec3737123920acdbf20999baccd90b2
    Closes-Bug: 1546453

Changed in cinder:
status: In Progress → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/cinder 8.0.0.0b3

This issue was fixed in the openstack/cinder 8.0.0.0b3 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.