Bug 461469 - device-mapper changes to support readonly device maps
Summary: device-mapper changes to support readonly device maps
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kernel
Version: 5.2
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Ben Marzinski
QA Contact: Red Hat Kernel QE team
URL:
Whiteboard:
Depends On:
Blocks: 444421
TreeView+ depends on / blocked
 
Reported: 2008-09-08 11:09 UTC by Bryn M. Reeves
Modified: 2018-10-20 03:41 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-09-02 08:39:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
mpath propagate path errors (1.85 KB, patch)
2008-09-08 11:11 UTC, Bryn M. Reeves
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2009:1243 0 normal SHIPPED_LIVE Important: Red Hat Enterprise Linux 5.4 kernel security and bug fix update 2009-09-01 08:53:34 UTC

Description Bryn M. Reeves 2008-09-08 11:09:58 UTC
Description of problem:
This bug is to track the kernel changes needed for bug 444421. Device-mapper currently does not propagate EROFS errors from the dm constructor to user space so multipath-tools cannot take appropriate decisions when constructing multipath maps for these devices.

Ben has a proposed patch attached to bug 444421:

https://bugzilla.redhat.com/attachment.cgi?id=306846 

Version-Release number of selected component (if applicable):
RHEL-5.2

How reproducible:
100%

Steps to Reproduce:
1. Present a readonly device from an array 
2. Scan for devices from the host 
3. run "multipath -v3" 
  
Actual results:
"domap (0) failure for create/reload map" is observed for the readonly device
and the multipath map is not getting created.

Expected results:
DM devices have to be created for readonly devices also.
Actual results:

Comment 1 Bryn M. Reeves 2008-09-08 11:11:06 UTC
Created attachment 316070 [details]
mpath propagate path errors

Propagate path errors to user space from multipath constructor.

Comment 3 Alasdair Kergon 2009-02-11 13:22:22 UTC
Upstream in 2.6.28.

commit 01460f3520c100010aacc8f8500cafcb17ce4665
Author: Benjamin Marzinski <bmarzins>
Date:   Fri Oct 10 13:36:57 2008 +0100

    dm mpath: use more error codes
    
    This patch allows path errors from the multipath ctr function to
    propagate up to userspace as errno values from the ioctl() call.
    
    This is in response to
      https://www.redhat.com/archives/dm-devel/2008-May/msg00000.html
    and
      https://bugzilla.redhat.com/show_bug.cgi?id=444421
    
    The patch only lets through the errors that it needs to in order to
    get the path errors from parse_path().
    
    Signed-off-by: Benjamin Marzinski <bmarzins>
    Signed-off-by: Alasdair G Kergon <agk>

Comment 4 RHEL Program Management 2009-02-11 13:38:50 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 5 RHEL Program Management 2009-02-16 15:33:34 UTC
Updating PM score.

Comment 8 Don Zickus 2009-04-27 15:57:56 UTC
in kernel-2.6.18-141.el5
You can download this test kernel from http://people.redhat.com/dzickus/el5

Please do NOT transition this bugzilla state to VERIFIED until our QE team
has sent specific instructions indicating when to do so.  However feel free
to provide a comment indicating that this fix has been verified.

Comment 10 Chris Ward 2009-07-03 18:07:54 UTC
~~ Attention - RHEL 5.4 Beta Released! ~~

RHEL 5.4 Beta has been released! There should be a fix present in the Beta release that addresses this particular request. Please test and report back results here, at your earliest convenience. RHEL 5.4 General Availability release is just around the corner!

If you encounter any issues while testing Beta, please describe the issues you have encountered and set the bug into NEED_INFO. If you encounter new issues, please clone this bug to open a new issue and request it be reviewed for inclusion in RHEL 5.4 or a later update, if it is not of urgent severity.

Please do not flip the bug status to VERIFIED. Only post your verification results, and if available, update Verified field with the appropriate value.

Questions can be posted to this bug or your customer or partner representative.

Comment 13 errata-xmlrpc 2009-09-02 08:39:54 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/RHSA-2009-1243.html


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