FibreChannel ppc discovery returns duplicate entries

Bug #1715647 reported by Chhavi Agarwal
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
os-brick
Fix Released
Undecided
Chhavi Agarwal

Bug Description

On ppc64 architecture some times the get_host_devices returns duplicate entries

2017-09-05 10:29:21.548 1190 DEBUG os_brick.initiator.connectors.fibre_channel [req-b00f8cb8-245b-4579-9785-4d2a07c05d08 0688b01e6439ca32d698d20789d52169126fb41fb1a4ddafcebb97d854e836c9 98db82365c2d4e42a73748908895f43b - default default] devices to remove = [{'device': '/dev/sdp', 'host': u'4', 'id': u'1', 'channel': u'0', 'lun': u'1'}, {'device': '/dev/sdo', 'host': u'4', 'id': u'0', 'channel': u'0', 'lun': u'1'}, {'device': '/dev/sdn', 'host': u'3', 'id': u'1', 'channel': u'0', 'lun': u'1'}, {'device': '/dev/sdm', 'host': u'3', 'id': u'0', 'channel': u'0', 'lun': u'1'}, {'device': '/dev/sdp', 'host': u'4', 'id': u'1', 'channel': u'0', 'lun': u'1'}, {'device': '/dev/sdo', 'host': u'4', 'id': u'0', 'channel': u'0', 'lun': u'1'}, {'device': '/dev/sdn', 'host': u'3', 'id': u'1', 'channel': u'0', 'lun': u'1'}, {'device': '/dev/sdm', 'host': u'3', 'id': u'0', 'channel': u'0', 'lun': u'1'}, {'device': '/dev/sdp', 'host': u'4', 'id': u'1', 'channel': u'0', 'lun': u'1'}, {'device': '/dev/sdo', 'host': u'4', 'id': u'0', 'channel': u'0', 'lun': u'1'}, {'device': '/dev/sdn', 'host': u'3', 'id': u'1', 'channel': u'0', 'lun': u'1'}, {'device': '/dev/sdm', 'host': u'3', 'id': u'0', 'channel': u'0', 'lun': u'1'}, {'device': '/dev/sdp', 'host': u'4', 'id': u'1', 'channel': u'0', 'lun': u'1'}, {'device': '/dev/sdo', 'host': u'4', 'id': u'0', 'channel': u'0', 'lun': u'1'}, {'device': '/dev/sdn', 'host': u'3', 'id': u'1', 'channel': u'0', 'lun': u'1'}, {'device': '/dev/sdm', 'host': u'3', 'id': u'0', 'channel': u'0', 'lun': u'1'}] disconnect_volume /usr/lib/python2.7/site-packages/os_brick/initiator/connectors/fibre_channel.py:275

Due to which the device removal is failing as the device is already removed

2017-09-05 10:29:21.618 7907 DEBUG oslo.privsep.daemon [-] privsep: Exception during request[1100080209104]: Unexpected error while running command.
Command: tee -a /sys/block/sdo/device/delete
Exit code: 1

Command: tee -a /sys/block/sdo/device/delete
Exit code: 1
Stdout: u'1'
Stderr: u'tee: /sys/block/sdo/device/delete: Resource temporarily unavailable\n'

Revision history for this message
Chhavi Agarwal (chhagarw) wrote :
Changed in os-brick:
assignee: nobody → Chhavi Agarwal (chhagarw)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to os-brick (master)

Reviewed: https://review.openstack.org/501253
Committed: https://git.openstack.org/cgit/openstack/os-brick/commit/?id=acfcca557a51317924f847f345439604dcdd1e54
Submitter: Jenkins
Branch: master

commit acfcca557a51317924f847f345439604dcdd1e54
Author: Chhavi Agarwal <email address hidden>
Date: Wed Sep 6 09:11:49 2017 -0400

    FC PPC64 device discovery issue

    Change ppc64 device discovery to remove duplicate devices
    in _get_host_devices().

    Change _get_hba_channel_scsi_target() to find devices
    regardless of the case of WWPNs.

    Change-Id: I18e74d13cd94aba625c51ee05fde75642fbfd2f6
    Closes-Bug: #1715647

Changed in os-brick:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to os-brick (stable/pike)

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/504482

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to os-brick (stable/pike)

Reviewed: https://review.openstack.org/504482
Committed: https://git.openstack.org/cgit/openstack/os-brick/commit/?id=064e85f07c2a400d3707d68940bf00278ba410a2
Submitter: Jenkins
Branch: stable/pike

commit 064e85f07c2a400d3707d68940bf00278ba410a2
Author: Chhavi Agarwal <email address hidden>
Date: Wed Sep 6 09:11:49 2017 -0400

    FC PPC64 device discovery issue

    Change ppc64 device discovery to remove duplicate devices
    in _get_host_devices().

    Change _get_hba_channel_scsi_target() to find devices
    regardless of the case of WWPNs.

    Change-Id: I18e74d13cd94aba625c51ee05fde75642fbfd2f6
    Closes-Bug: #1715647
    (cherry picked from commit acfcca557a51317924f847f345439604dcdd1e54)

tags: added: in-stable-pike
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/os-brick 1.15.3

This issue was fixed in the openstack/os-brick 1.15.3 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/os-brick 2.0.0

This issue was fixed in the openstack/os-brick 2.0.0 release.

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.