multipath device action incorrectly being parsed as the device name

Bug #1466444 reported by Lee Yarwood
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
os-brick
Fix Released
Undecided
Kendall Nelson
Lee Yarwood (lyarwood)
description: updated
Changed in nova:
assignee: nobody → Lee Yarwood (lyarwood)
status: New → In Progress
Revision history for this message
Amador Pahim (apahim) wrote :

I think we should catch the name from /sys/devices/virtual/block/<device>/dm/name. Seems better than parse a txt output.

Revision history for this message
Lee Yarwood (lyarwood) wrote :

@apahim we are actually trying to traverse the other way, starting with a single path device and working out the virtual mpath dm device details. We could actually use a glob to do this instead of `multipath -l /dev/path` :

~~~
# ll /sys/devices/virtual/block/*/slaves/sdk
lrwxrwxrwx. 1 root root 0 Jun 3 03:56 /sys/devices/virtual/block/dm-2/slaves/sdk -> ../../../../pci0000:00/0000:00:07.0/0000:1a:00.0/host0/rport-0:0-8/target0:0:3/0:0:3:3/block/sdk
~~~

IMHO moving to this method is out of scope for this bug but I will try to write up a spec detailing how we could use this method in os-brick.

no longer affects: cinder
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by Lee Yarwood (<email address hidden>) on branch: master
Review: https://review.openstack.org/193119

Changed in os-brick:
assignee: nobody → Kendall Nelson (kjnelson)
Changed in os-brick:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to os-brick (master)

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

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

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

commit 7900cf38c2da5142c62e59ea7a6160f59f396dae
Author: Kendall Nelson <email address hidden>
Date: Thu Nov 5 15:47:53 2015 +0000

    Multipath Device Action Being Parsed as Name

    Whenever find_multipath_device() was being called on an action
    it would include the action as part of the device name. This patch
    creates a list of actions and checks that they aren't preceding
    the device name before parsing the rest of the device information
    in find_multipath_device().

    This patch is based on the approach that was taken in Nova until
    it was abandoned in favor of the change being made in os-brick
    instead. The Change-Id for the Nova change:
    I8f1f769bb15ec10054e2fd73c4cf621389014cf1

    Change-Id: I12a10ba189e4987cdf07bebdadbac0d4587c01d1
    Closes-Bug: 1466444

Changed in os-brick:
status: In Progress → Fix Committed
Changed in os-brick:
milestone: none → 0.6.0
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/os-brick 0.6.0

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

Changed in os-brick:
status: Fix Committed → Fix Released
Lee Yarwood (lyarwood)
no longer affects: nova
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.