Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 2042032

Summary: multipath doesn't support the historical-service-time path selector
Product: Red Hat Enterprise Linux 9 Reporter: Ben Marzinski <bmarzins>
Component: device-mapper-multipathAssignee: Ben Marzinski <bmarzins>
Status: CLOSED ERRATA QA Contact: Lin Li <lilin>
Severity: unspecified Docs Contact:
Priority: high    
Version: 9.0CC: agk, bmarzins, heinzm, lilin, msnitzer, prajnoha, zkabelac
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: All   
OS: Unspecified   
Whiteboard:
Fixed In Version: device-mapper-multipath-0.8.7-4.el9 Doc Type: Bug Fix
Doc Text:
Cause: Multipath wasn't correctly parsing the status output for multipath devices using the historical-service-time path selector Consequence: Multipathd would not be able to track the kernel state of multipath devices that use the historical-service-time path selector, causing it to occasionally mark failed paths as usable. Fix: multipath now correctly parses the status of multipath devices that use the historical-service-time path selector. Result: Multipathd no longer occasionally marks failed paths as usable for devices using the historical-service time path selector.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-17 15:56:11 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: 2000835    
Bug Blocks:    

Description Ben Marzinski 2022-01-18 17:39:58 UTC
Description of problem:
Bug #2000835 adds kernel support for the historical-service-time path selector, but the device-mapper-multipath userspace tools don't handle it correctly. When a multipath device is configure to use the historical-service-time selector, multipath commands print warning messages of the form: "error parsing map <WWID>"

How reproducible:
Always

Steps to Reproduce:
1. Get a kernel that includes the dm-historical-service-time module. See https://bugzilla.redhat.com/show_bug.cgi?id=2000835#c3 for links to kernel rpms with this module
2. configure multipath to use the historical-service-time selector. Add the line
        path_selector "historical-service-time 0"
to the defaults section of multipath.conf
3. create some multipath devices
4. Run "multipath -l" to list them

Actual results:
The devices will be using the selector. You will see
policy='historical-service-time 2'
but the command will print a warning message "error parsing map <WWID>"

Expected results:
No warning message

Comment 6 Lin Li 2022-02-09 13:08:12 UTC
Verified on device-mapper-multipath-0.8.7-4.el9
[root@storageqe-25 ~]# rpm -qa | grep multipath
device-mapper-multipath-libs-0.8.7-4.el9.x86_64
device-mapper-multipath-0.8.7-4.el9.x86_64

[root@storageqe-25 ~]# rpm -qa | grep multipath
device-mapper-multipath-libs-0.8.7-4.el9.x86_64
device-mapper-multipath-0.8.7-4.el9.x86_64

[root@storageqe-25 ~]# uname -r
5.14.0-55.el9.x86_64

Edit /etc/multipath.conf
[root@storageqe-25 ~]# cat /etc/multipath.conf 
defaults {
	user_friendly_names yes
	find_multipaths yes
        path_selector "historical-service-time 0"
}


[root@storageqe-25 ~]# service multipathd reload
Redirecting to /bin/systemctl reload multipathd.service


[root@storageqe-25 ~]# multipath -l
360a98000324669436c2b45666c567858 dm-3 NETAPP,LUN
size=2.0G features='3 queue_if_no_path pg_init_retries 50' hwhandler='1 alua' wp=rw
|-+- policy='historical-service-time 2' prio=0 status=active
| |- 7:0:1:0 sdf 8:80  active undef running
| `- 8:0:0:0 sdj 8:144 active undef running
`-+- policy='historical-service-time 2' prio=0 status=enabled
  |- 7:0:0:0 sdb 8:16  active undef running
  `- 8:0:1:0 sdn 8:208 active undef running
360a98000324669436c2b45666c56785a dm-4 NETAPP,LUN
size=2.0G features='3 queue_if_no_path pg_init_retries 50' hwhandler='1 alua' wp=rw
|-+- policy='historical-service-time 2' prio=0 status=active
| |- 7:0:1:1 sdg 8:96  active undef running
| `- 8:0:0:1 sdk 8:160 active undef running
`-+- policy='historical-service-time 2' prio=0 status=enabled
  |- 7:0:0:1 sdc 8:32  active undef running
  `- 8:0:1:1 sdo 8:224 active undef running
360a98000324669436c2b45666c567861 dm-5 NETAPP,LUN
size=2.0G features='3 queue_if_no_path pg_init_retries 50' hwhandler='1 alua' wp=rw
|-+- policy='historical-service-time 2' prio=0 status=active
| |- 7:0:1:2 sdh 8:112 active undef running
| `- 8:0:0:2 sdl 8:176 active undef running
`-+- policy='historical-service-time 2' prio=0 status=enabled
  |- 7:0:0:2 sdd 8:48  active undef running
  `- 8:0:1:2 sdp 8:240 active undef running
360a98000324669436c2b45666c567863 dm-6 NETAPP,LUN
size=2.0G features='3 queue_if_no_path pg_init_retries 50' hwhandler='1 alua' wp=rw
|-+- policy='historical-service-time 2' prio=0 status=active
| |- 7:0:1:3 sdi 8:128 active undef running
| `- 8:0:0:3 sdm 8:192 active undef running
`-+- policy='historical-service-time 2' prio=0 status=enabled
  |- 7:0:0:3 sde 8:64  active undef running
  `- 8:0:1:3 sdq 65:0  active undef running

Comment 8 errata-xmlrpc 2022-05-17 15:56:11 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 (new packages: device-mapper-multipath), 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/RHBA-2022:3971