Red Hat Bugzilla – Bug 1346724
cannot pool-define/create mpath pool
Last modified: 2016-11-03 14:47:10 EDT
Description: cannot pool-define/create mpath pool versions: libvirt-1.3.5-1.el7.x86_64 reproduce rate: 100% THIS IS A REGRESSION BUG, and it works on libvirt-1.3.4-1.el7.x86_64 Steps: 1. # cat pool.mpath <pool type="mpath"> <name>mpath-pool-1</name> <target> <path>/dev/mapper</path> </target> </pool> 2. # virsh pool-define pool.mpath error: Failed to define pool from pool.mpath error: internal error: missing backend for pool type 7 (mpath) Actual result: mpath pool cannot be defined Expected result: mpath pool can be defined Additional info: This works fined with libvirt-1.3.4-1.el7.x86_64
Upstream patch: https://www.redhat.com/archives/libvir-list/2016-June/msg01147.html
Fixed upstream by: commit 7303e7079ccfec1bf7d2891c6e87a8646355f124 Author: Ján Tomko <jtomko@redhat.com> CommitDate: 2016-06-17 15:35:46 +0200 configure: define preprocessor macros for SCSI and MPATH This fixes building these backends when explicitly enabled on the command line. Exposed by commit a659559 which started adding --with-storage-mpath in the spec file. https://bugzilla.redhat.com/show_bug.cgi?id=1346724 git describe: v1.3.5-306-g7303e70
Verified on libvirt-2.0.0-3.el7.x86_64 and PASSED steps: 1. # cat pool.xml <pool type="mpath"> <name>mpool</name> <target> <path>/dev/mapper</path> </target> </pool> 2. # virsh pool-define pool.xml Pool mpool defined from pool.xml 3. # virsh pool-undefine mpool Pool mpool has been undefined 4. # virsh pool-create pool.xml Pool mpool created from pool.xml 5. # virsh vol-list mpool Name Path ------------------------------------------------------------------------------ dm-2 /dev/mapper/mpatha dm-3 /dev/mapper/mpathb dm-4 /dev/mapper/mpathd dm-5 /dev/mapper/mpathc dm-7 /dev/mapper/mpathg 6. # virsh pool-dumpxml mpool <pool type='mpath'> <name>mpool</name> <uuid>4cb87b5a-4eb5-4e1c-9bb3-1977002ac1c6</uuid> <capacity unit='bytes'>96636764160</capacity> <allocation unit='bytes'>96636764160</allocation> <available unit='bytes'>0</available> <source> </source> <target> <path>/dev/mapper</path> </target> </pool>
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2016-2577.html