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 1981594 - find_multipaths_timeout is overwritten by mpatchconf command
Summary: find_multipaths_timeout is overwritten by mpatchconf command
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: device-mapper-multipath
Version: CentOS Stream
Hardware: All
OS: Linux
low
low
Target Milestone: beta
: 9.0 Beta
Assignee: Ben Marzinski
QA Contact: Lin Li
URL:
Whiteboard:
Depends On: 1979470
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-12 22:23 UTC by Ben Marzinski
Modified: 2021-12-07 21:57 UTC (History)
9 users (show)

Fixed In Version: device-mapper-multipath-0.8.6-4.el9
Doc Type: Bug Fix
Doc Text:
Cause: mpathconf wasn't correctly checking that there was one or more spaces between paramter names and their values, leading it to treat the find_multipaths_timeout parameter the same as find_multipaths parameter Consequence: If find_multipaths_timeout was set, and mpathconf was used to modify find_multipaths, it would convert the find_multipaths_timeout line into an invalid line. Fix: When mpathconf checks the existing multipath.conf file for parameters, it requires there to be one or more spaces between the parameter name and value Result: mpathconf no longer converts find_multipaths_timeout lines into invalid lines when updating the find_multipaths parameter.
Clone Of: 1979470
Environment:
Last Closed: 2021-12-07 21:52:33 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)

Comment 1 Ben Marzinski 2021-07-13 20:28:14 UTC
Fix ported from RHEL8.

Comment 5 Lin Li 2021-07-20 09:46:22 UTC
Reproduced on device-mapper-multipath-0.8.6-3.el9
1,[root@storageqe-05 ~]# rpm -qa | grep multipath
device-mapper-multipath-libs-0.8.6-3.el9.x86_64
device-mapper-multipath-0.8.6-3.el9.x86_64

2, [root@storageqe-05 ~]# vim /etc/multipath.conf 
defaults {
    user_friendly_names yes
    find_multipaths yes
    find_multipaths_timeout 10
    enable_foreign "^$"
}

3,[root@storageqe-05 ~]# mpathconf --enable --with_multipathd y --find_multipaths strict

4[root@storageqe-05 ~]# cat /etc/multipath.conf
defaults {
	user_friendly_names yes
	find_multipaths strict
	enable_foreign "^$"
	find_multipaths strict 10  <----------------------find_multipaths_timeout is overwritten
}


Verified on device-mapper-multipath-0.8.6-4.el9
1,[root@storageqe-05 ~]# rpm -qa | grep multipath
device-mapper-multipath-libs-0.8.6-4.el9.x86_64
device-mapper-multipath-0.8.6-4.el9.x86_64

2,[root@storageqe-05 ~]# vim /etc/multipath.conf 
[root@storageqe-05 ~]# cat /etc/multipath.conf 
defaults {
	user_friendly_names yes
	find_multipaths yes
	enable_foreign "^$"
	find_multipaths_timeout 10
}

3,[root@storageqe-05 ~]# mpathconf --enable --with_multipathd y --find_multipaths strict

4,[root@storageqe-05 ~]# cat /etc/multipath.conf
defaults {
	user_friendly_names yes
	find_multipaths strict
	enable_foreign "^$"
	find_multipaths_timeout 10 <----------------------find_multipaths_timeout is not overwritten
}


Test result:When mpathconf checks the existing multipath.conf file for parameters, it requires there to be one or more spaces between the parameter name and value


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