Bug 1828180
Summary: | Multipath should blacklist Oracle ASM filter driver (AFD) devices by default | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | nikhil kshirsagar <nkshirsa> |
Component: | device-mapper-multipath | Assignee: | Ben Marzinski <bmarzins> |
Status: | CLOSED ERRATA | QA Contact: | Lin Li <lilin> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 8.1 | CC: | agk, bmarzins, chorn, fj-lsoft-rh-driver, heinzm, jpittman, lilin, loberman, msnitzer, prajnoha, rbednar, zkabelac |
Target Milestone: | rc | ||
Target Release: | 8.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | device-mapper-multipath-0.8.4-2.el8 | Doc Type: | Enhancement |
Doc Text: |
Feature: Change multipath's default blacklist from blacklisting specific device types, to blacklisting all devices types except the ones that multipath supports (scsi, dasd, and nvme). Also users are now able to write inverse matching regexes in the blacklist and blacklist_exceptions sections of multipath.conf
Reason: Previously, multipath's default blacklist specifically listed all the device types that were blacklisted. This cause a problem whenever users encountered a new device type. Multipath would attempt to use these devices, and they would need to be manually blacklisted until the default blacklist could be updated.
Result: Multipath will now only accept the devices is was designed to support by default.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2020-11-04 01:59:31 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1799062 |
Description
nikhil kshirsagar
2020-04-27 08:52:27 UTC
I actually did more work then was necessary to fix this, so that we don't have to keep dealing with this class of bugs going forwards. The multipath blacklist and blacklist exceptions sections now treat their attribute values slightly differently. If a value starts with an exclamation point, "!", it will invert the matching of the rest of the regex. So for instance blacklist { devnode "!^sd[a-z]" } will now blacklist all devices whose device name doesn't start with "sd[a-z]". The exclamation point can be escaped, "\!", to match a literal exclamation point at the start of the regex. This change will not cause any issues for existing values since, because of a bug, multipath previously didn't recognize quoted strings starting with an exclamation point. With this new capability, the default blacklist has been changed to: devnode "!^(sd[a-z]|dasd[a-z]|nvme[0-9])" which only allows scsi, dasd, and nvme devices as multipath paths. Other device types could be added using the blacklist_exceptions section. This change also should not cause any problems since these are the only device types that multipath currently has code to support, and the multipath udev rules already have the following line KERNEL!="sd*|dasd*|nvme*", GOTO="end_mpath" So other device types currently will not be correctly set up by udev. *** Bug 1859437 has been marked as a duplicate of this bug. *** 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 (device-mapper-multipath bug fix and enhancement update), 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://access.redhat.com/errata/RHEA-2020:4540 |