Bug 677231

Summary: virsh vol-list only displays one of the multipath
Product: Red Hat Enterprise Linux 6 Reporter: zhanghaiyan <yoyzhang>
Component: libvirtAssignee: Osier Yang <jyang>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1CC: dallan, dyuan, eblake, jialiu, jyang, llim, nzhang, veillard, xen-maint
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: libvirt-0.8.7-7.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-19 13:27:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description zhanghaiyan 2011-02-14 07:01:53 UTC
Description of problem:
virsh vol-list only displays one of the multipath

Version-Release number of selected component (if applicable):
- libvirt-0.8.7-6.el6.x86_64
- qemu-kvm-0.12.1.2-2.144.el6.x86_64
- kernel-2.6.32-115.el6.x86_64
- device-mapper-multipath-0.4.9-31.el6.x86_64

How reproducible:
2/2

Steps to Reproduce:
1. # multipath -l3
mpathc (3600a0b80005adb0b0000ab2d4cae9254) dm-3 IBM,1726-4xx  FAStT
size=20G features='1 queue_if_no_path' hwhandler='1 rdac' wp=rw
|-+- policy='round-robin 0' prio=-1 status=active
| `- 9:0:2:0 sdd 8:48 active undef running
`-+- policy='round-robin 0' prio=-1 status=enabled
  `- 9:0:3:0 sde 8:64 active undef running
mpathb (3600a0b80005ad1d7000093604cae912f) dm-0 IBM,1726-4xx  FAStT
size=20G features='1 queue_if_no_path' hwhandler='1 rdac' wp=rw
|-+- policy='round-robin 0' prio=-1 status=active
| `- 8:0:1:0 sdb 8:16 active undef running
`-+- policy='round-robin 0' prio=-1 status=enabled
  `- 8:0:3:0 sdc 8:32 active undef running
2. # ll /dev/mapper/
total 0
crw-rw----. 1 root root 10, 58 Feb 14 08:58 control
lrwxrwxrwx. 1 root root      7 Feb 14 09:08 mpathb -> ../dm-0
lrwxrwxrwx. 1 root root      7 Feb 14 09:08 mpathbp1 -> ../dm-1
lrwxrwxrwx. 1 root root      7 Feb 14 09:08 mpathbp2 -> ../dm-2
lrwxrwxrwx. 1 root root      7 Feb 14 09:08 mpathc -> ../dm-3
lrwxrwxrwx. 1 root root      7 Feb 14 09:08 mpathcp1 -> ../dm-4
lrwxrwxrwx. 1 root root      7 Feb 14 09:08 mpathcp2 -> ../dm-5
3. # virsh pool-dumpxml mpath
<pool type='mpath'>
  <name>mpath</name>
  <uuid>f4b73e42-a253-8825-ed68-0843cc606d6c</uuid>
  <capacity>21481278464</capacity>
  <allocation>21481278464</allocation>
  <available>0</available>
  <source>
  </source>
  <target>
    <path>/dev/mapper</path>
    <permissions>
      <mode>0700</mode>
      <owner>-1</owner>
      <group>-1</group>
    </permissions>
  </target>
</pool>
4. # virsh vol-list mpath
Name                 Path                                    
-----------------------------------------
dm-3                 /dev/mapper/mpathc  
  
Actual results:
Only one storage is displayed

Expected results:
Display all storage connected like
Name                 Path                                    
-----------------------------------------
dm-3                 /dev/mapper/mpathc  
dm-0                 /dev/mapper/mpathc  

Additional info:

Comment 2 Osier Yang 2011-02-14 13:56:13 UTC
http://www.redhat.com/archives/libvir-list/2011-February/msg00442.html

patch posted to upstream in reviewing process.

Comment 3 Osier Yang 2011-02-15 02:32:25 UTC
patch got pushed upstream.

Comment 4 Osier Yang 2011-02-17 03:35:49 UTC
patch posted internally. move to POST

Comment 6 zhanghaiyan 2011-02-21 09:12:57 UTC
Verified this bug PASS with libvirt-0.8.7-7.el6.x86_64
- kernel-2.6.32-113.el6.x86_64
- qemu-kvm-0.12.1.2-2.147.el6.x86_64

On step4, could see the following
# virsh vol-list mpath
Name                 Path                                    
-----------------------------------------
dm-0                 /dev/mapper/mpathc                      
dm-1                 /dev/mapper/mpathb

Comment 9 errata-xmlrpc 2011-05-19 13:27:15 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0596.html