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 1313324 - Individual errors during multipath discovery invalidate the entire discovery.
Summary: Individual errors during multipath discovery invalidate the entire discovery.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: device-mapper-multipath
Version: 7.4
Hardware: Unspecified
OS: Linux
urgent
urgent
Target Milestone: rc
: ---
Assignee: Ben Marzinski
QA Contact: Lin Li
Steven J. Levine
URL:
Whiteboard:
Depends On:
Blocks: 1203710 1309188 1328515 1343747
TreeView+ depends on / blocked
 
Reported: 2016-03-01 12:08 UTC by Gorka Eguileor
Modified: 2021-09-03 12:08 UTC (History)
9 users (show)

Fixed In Version: device-mapper-multipath-0.4.9-88.el7
Doc Type: Bug Fix
Doc Text:
Failures on some devices no longer keep multipath from creating other devices Previously, the "multipath" command could fail to set up working devices because of failures on unrelated devices since it would quit early if it failed to get the information on any of the devices it was trying to create. With this fix, multipath no longer quits early if it fails to get information on some of the devices and failures on some devices no longer keep multipath from creating others.
Clone Of:
: 1328515 1343747 (view as bug list)
Environment:
Last Closed: 2016-11-04 08:18:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:2536 0 normal SHIPPED_LIVE device-mapper-multipath bug fix and enhancement update 2016-11-03 14:18:10 UTC

Description Gorka Eguileor 2016-03-01 12:08:51 UTC
Description of problem:

Under heavy load (creating and deleting many devices simultaneously) multipath calls (for example "multipath -l $device") will fail if during discovery phase there's a problem retrieving individual udev information from a device (because it has been deleted after listing the devices).  And the call should not fail.

In the code we get the list of devices [A], then if we fail at [B], we will end up returning a positive number at [C] and then caller will fail operation.


        udev_enumerate_add_match_subsystem(udev_iter, "block");
        udev_enumerate_scan_devices(udev_iter);   <-------------------------------- A
        udev_list_entry_foreach(entry,
                                udev_enumerate_get_list_entry(udev_iter)) {
                const char *devtype;
                devpath = udev_list_entry_get_name(entry);
                condlog(4, "Discover device %s", devpath);
                udevice = udev_device_new_from_syspath(conf->udev, devpath); <----- B
                if (!udevice) {
                        condlog(4, "%s: no udev information", devpath);
                        r++;
                        continue;
                }
                devtype = udev_device_get_devtype(udevice);
                if(devtype && !strncmp(devtype, "disk", 4))
                        r += path_discover(pathvec, conf, udevice, flag);
                udev_device_unref(udevice);
        }

        condlog(4, "Discovery status %d", r);
        return r;   <-------------------------------------------------------------- C
    }

I believe upstream commit 646e754853b123a075b4cede7d9ccf540e8c9b0c should fix this.

Comment 4 Ben Marzinski 2016-03-30 03:03:51 UTC
I've backported the upstream fix.

Comment 12 Jon Magrini 2016-04-05 12:50:57 UTC
Ben,  Yes the customer can use device-mapper-multipath-0.4.9-88.el7.  I will remove the zstream flag.  Thanks.

Comment 19 Raunak Kumar 2016-06-07 18:30:34 UTC
When is the ETA for this fix for both Redhat 6.8 and 7.2 ?

Comment 20 Ben Marzinski 2016-06-07 19:51:09 UTC
The rhel-7.2 zstream for this bug is Bug 1328515, which has already been released. There is currently no rhel-6 version of this bug. I can create one, but rhel-6.8 has been out for a while, and rhel-6.9 is not yet in the planning phase. You'd need to talk to a support person about getting a 6.8 zstream.

Comment 21 Ben Marzinski 2016-06-07 20:02:30 UTC
The rhel-6 bug is Bug 1343747

Comment 24 errata-xmlrpc 2016-11-04 08:18:35 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/RHBA-2016-2536.html


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