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 2166467 - multipath devices that need both a table reload and a rename only get renamed on multipathd startup
Summary: multipath devices that need both a table reload and a rename only get renamed...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: device-mapper-multipath
Version: 9.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: rc
: ---
Assignee: Ben Marzinski
QA Contact: Lin Li
URL:
Whiteboard:
Depends On:
Blocks: 2166468
TreeView+ depends on / blocked
 
Reported: 2023-02-01 21:58 UTC by Ben Marzinski
Modified: 2023-05-09 10:15 UTC (History)
7 users (show)

Fixed In Version: device-mapper-multipath-0.8.7-19.el9
Doc Type: Bug Fix
Doc Text:
Cause: When multipath needed to rename a device, it wasn't checking if it also needed to change the configuration of the device. Consequence: If multipath needed to rename and reconfigure a device, it would only rename the device. Fix: multipath now checks for other actions it needs to perform in addition to renaming a device, and does those as well. Result: If a multipath device needs renaming and reconfiguring, multipath will now do both.
Clone Of:
: 2166468 (view as bug list)
Environment:
Last Closed: 2023-05-09 08:14:07 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-147373 0 None None None 2023-02-01 22:01:12 UTC
Red Hat Product Errata RHSA-2023:2459 0 None None None 2023-05-09 08:14:30 UTC

Description Ben Marzinski 2023-02-01 21:58:37 UTC
Description of problem:
If a multipath device needs to have its table reloaded and get renamed, when multipathd starts up, it will only do the rename.  To do the table reload, you need to run.

# service multipathd reload

after multipathd has started up. This does the reload, since the rename has already happened. This sort of error is most likely to be seen when the version of /etc/multipath.conf in the initramfs doesn't match the version in the regular filesystem.

Version-Release number of selected component (if applicable):
All versions

How reproducible:
Always

Steps to Reproduce:
1. create a multipath device with the following options in multipath.conf

        user_friendly_names yes
        path_selector "service-time 0"

2. Stop multipathd
3. Edit multipath.conf, and change the values to

        user_friendly_names no
        path_selector "round-robin 0"

This will make the multipath device need both a rename (from the user friendly name
to the WWID name) and a reload (from the service-time path selector to the round-robin path selector)
4. Start multipathd

Actual results:
The device will be renamed to use a WWID name, but the path selector will still be "service-time 0".

Expected results:
Both the device name will be changed to the WWID name and the path selector will be changed to "round-robin"

Comment 4 Lin Li 2023-02-17 01:28:43 UTC
Verified on device-mapper-multipath-0.8.7-20.el9
[root@storageqe-25 ~]# rpm -qa | grep multipath
device-mapper-multipath-libs-0.8.7-20.el9.x86_64
device-mapper-multipath-0.8.7-20.el9.x86_64

1. create a multipath device with the following options in multipath.conf

        user_friendly_names yes
        path_selector "service-time 0"

2. Stop multipathd
3. Edit multipath.conf, and change the values to

        user_friendly_names no
        path_selector "round-robin 0"

This will make the multipath device need both a rename (from the user friendly name
to the WWID name) and a reload (from the service-time path selector to the round-robin path selector)
4. Start multipathd
5.[root@storageqe-25 ~]# multipath -ll
360a98000324669436c2b45666c567858 dm-3 NETAPP,LUN
size=2.0G features='3 queue_if_no_path pg_init_retries 50' hwhandler='1 alua' wp=rw
|-+- policy='round-robin 0' prio=50 status=active
| |- 7:0:1:0 sdf 8:80  active ready running
| `- 8:0:1:0 sdn 8:208 active ready running
`-+- policy='round-robin 0' prio=10 status=enabled
  |- 7:0:0:0 sdb 8:16  active ready running
  `- 8:0:0:0 sdj 8:144 active ready 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='round-robin 0' prio=50 status=active
| |- 7:0:1:1 sdg 8:96  active ready running
| `- 8:0:1:1 sdo 8:224 active ready running
`-+- policy='round-robin 0' prio=10 status=enabled
  |- 7:0:0:1 sdc 8:32  active ready running
  `- 8:0:0:1 sdk 8:160 active ready 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='round-robin 0' prio=50 status=active
| |- 7:0:1:2 sdh 8:112 active ready running
| `- 8:0:1:2 sdp 8:240 active ready running
`-+- policy='round-robin 0' prio=10 status=enabled
  |- 7:0:0:2 sdd 8:48  active ready running
  `- 8:0:0:2 sdl 8:176 active ready 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='round-robin 0' prio=50 status=active
| |- 7:0:1:3 sdi 8:128 active ready running
| `- 8:0:1:3 sdq 65:0  active ready running
`-+- policy='round-robin 0' prio=10 status=enabled
  |- 7:0:0:3 sde 8:64  active ready running
  `- 8:0:0:3 sdm 8:192 active ready running


Test result: Both the device name is changed to the WWID name and the path selector is changed to "round-robin"

Comment 6 errata-xmlrpc 2023-05-09 08:14:07 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 (Moderate: device-mapper-multipath security and bug fix 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/RHSA-2023:2459


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