RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1346724 - cannot pool-define/create mpath pool
Summary: cannot pool-define/create mpath pool
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libvirt
Version: 7.3
Hardware: x86_64
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Ján Tomko
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-06-15 08:53 UTC by yisun
Modified: 2016-11-03 18:47 UTC (History)
5 users (show)

Fixed In Version: libvirt-2.0.0-1.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1347486 (view as bug list)
Environment:
Last Closed: 2016-11-03 18:47:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2016:2577 0 normal SHIPPED_LIVE Moderate: libvirt security, bug fix, and enhancement update 2016-11-03 12:07:06 UTC

Description yisun 2016-06-15 08:53:38 UTC
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

Comment 2 Ján Tomko 2016-06-17 10:21:54 UTC
Upstream patch:
https://www.redhat.com/archives/libvir-list/2016-June/msg01147.html

Comment 3 Ján Tomko 2016-06-17 13:40:01 UTC
Fixed upstream by:
commit 7303e7079ccfec1bf7d2891c6e87a8646355f124
Author:     Ján Tomko <jtomko>
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

Comment 5 yisun 2016-07-26 08:39:56 UTC
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>

Comment 7 errata-xmlrpc 2016-11-03 18:47:10 UTC
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


Note You need to log in before you can comment on or make changes to this bug.