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.
Cause: mpathpersist requires a non-zero Service Action Reservation Key when run with the Register and Ignore command
Consequence: mpathpersist works differently than sg_persist, which allows Register and Ignore command with a missing or zero valued Service Action Reservation Key
Fix: mpathpersist now allow Register and Ignore command with a missing or zero valued Service Action Reservation Key
Result: The Register and Ignore command works the same on sg_persist and mpathpersist.
Description of problem:
When mpathpersist register-ignore is used for unregistering a key, it fails with error:
Nov 03 14:37:59 | 3600c0ff00050b9fda179aa5e01000000: configured reservation key doesn't match: 0x123aaa
PR out: command failed
The muletipath is configued with option "reservation_key file"
Version-Release number of selected component (if applicable):
device-mapper-multipath-0.8.3-3.el8.x86_64
How reproducible:
100%
Steps to Reproduce:
Regiter a key:
# mpathpersist --out --register --param-sark=123456 /dev/mapper/3600c0ff00050b9fda179aa5e01000000
List the keys:
# mpathpersist -i -k /dev/mapper/3600c0ff00050b9fda179aa5e01000000
PR generation=0xbfc, 4 registered reservation keys follow:
0x123456
0x123456
0x123456
0x123456
Register another key (not needed, but it shows that the reregistration works)
# mpathpersist --out --register-ignore --param-sark 123aaa /dev/mapper/3600c0ff00050b9fda179aa5e01000000
List the keys again:
# mpathpersist -i -k /dev/mapper/3600c0ff00050b9fda179aa5e01000000
PR generation=0xc00, 4 registered reservation keys follow:
0x123aaa
0x123aaa
0x123aaa
0x123aaa
Reregistrage without registration keys or with zeroes
# mpathpersist --out --register-ignore --param-sark 000000 /dev/mapper/3600c0ff00050b9fda179aa5e01000000
Nov 03 14:37:59 | 3600c0ff00050b9fda179aa5e01000000: configured reservation key doesn't match: 0x123aaa
PR out: command failed
Actual results:
The key is not unregistred and the command fails.
Expected results:
The keys are remove from the device.
Additional info:
The sg_presist commands work as expected with omiting the key also with the 000000 key. This issue causes failure of Microsoft Clusters running as a guest on the hypevisor as qemu uses mpathpersist lib for delegating the requests from the guest. The MS cluster uses register-ignore with zero key for removing the key. This issue affects scsi reservation feature on the layered products.
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-2021:1685
Comment 19Red Hat Bugzilla
2023-09-15 00:50:38 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days
Description of problem: When mpathpersist register-ignore is used for unregistering a key, it fails with error: Nov 03 14:37:59 | 3600c0ff00050b9fda179aa5e01000000: configured reservation key doesn't match: 0x123aaa PR out: command failed The muletipath is configued with option "reservation_key file" Version-Release number of selected component (if applicable): device-mapper-multipath-0.8.3-3.el8.x86_64 How reproducible: 100% Steps to Reproduce: Regiter a key: # mpathpersist --out --register --param-sark=123456 /dev/mapper/3600c0ff00050b9fda179aa5e01000000 List the keys: # mpathpersist -i -k /dev/mapper/3600c0ff00050b9fda179aa5e01000000 PR generation=0xbfc, 4 registered reservation keys follow: 0x123456 0x123456 0x123456 0x123456 Register another key (not needed, but it shows that the reregistration works) # mpathpersist --out --register-ignore --param-sark 123aaa /dev/mapper/3600c0ff00050b9fda179aa5e01000000 List the keys again: # mpathpersist -i -k /dev/mapper/3600c0ff00050b9fda179aa5e01000000 PR generation=0xc00, 4 registered reservation keys follow: 0x123aaa 0x123aaa 0x123aaa 0x123aaa Reregistrage without registration keys or with zeroes # mpathpersist --out --register-ignore --param-sark 000000 /dev/mapper/3600c0ff00050b9fda179aa5e01000000 Nov 03 14:37:59 | 3600c0ff00050b9fda179aa5e01000000: configured reservation key doesn't match: 0x123aaa PR out: command failed Actual results: The key is not unregistred and the command fails. Expected results: The keys are remove from the device. Additional info: The sg_presist commands work as expected with omiting the key also with the 000000 key. This issue causes failure of Microsoft Clusters running as a guest on the hypevisor as qemu uses mpathpersist lib for delegating the requests from the guest. The MS cluster uses register-ignore with zero key for removing the key. This issue affects scsi reservation feature on the layered products.