Bug 1584648
| Summary: | multipath -ll does not show any warning for invalid multipath device map passed as an argument | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Milan P. Gandhi <mgandhi> | ||||
| Component: | device-mapper-multipath | Assignee: | Ben Marzinski <bmarzins> | ||||
| Status: | CLOSED WONTFIX | QA Contact: | Lin Li <lilin> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | --- | CC: | agk, bmarzins, coughlan, heinzm, lilin, msnitzer, prajnoha, rdave, zkabelac | ||||
| Target Milestone: | rc | Keywords: | EasyFix, Patch | ||||
| Target Release: | 8.1 | Flags: | pm-rhel:
mirror+
|
||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2020-10-08 15:08:56 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: | |||||||
| Attachments: |
|
||||||
|
Description
Milan P. Gandhi
2018-05-31 11:37:14 UTC
Created attachment 1446244 [details]
Proposed Patch v1
This patch updates device-mapper-multipath to display a message if there is no match found for the mpath device name/WWID passed with "multipath -ll <dev/wwid>" command or there are no multipathd devices present on server.
With this patch applied we get following message in above scenarios: [root@testhost1 ~]# multipath -ll mpath999 May 31 07:59:04 | No multipath device maps found [root@testhost1 ~]# multipath -ll test May 31 07:59:05 | No multipath device maps found [root@testhost1 ~]# [root@testhost1 ~]# multipath -ll test123 May 31 07:59:08 | No multipath device maps found [root@testhost1 ~]# multipath -ll 123 May 31 07:59:11 | No multipath device maps found [root@testhost1 ~]# multipath -ll 8737887918978931 May 31 07:59:15 | No multipath device maps found [root@testhost1 ~]# [root@testhost1 ~]# [root@testhost1 ~]# [root@testhost1 ~]# multipath -F [root@testhost1 ~]# multipath -ll May 31 07:59:20 | No multipath device maps found [root@testhost1 ~]# [root@testhost1 ~]# [root@testhost1 ~]# multipath -v2 May 31 07:59:23 | No multipath device maps found May 31 07:59:23 | mpatha: ignoring map create: mpathb (36001405d0b9a050efa544b58fe8de66f) undef LIO-ORG ,file11 size=500M features='0' hwhandler='0' wp=undef `-+- policy='service-time 0' prio=1 status=undef `- 4:0:0:0 sdb 8:16 undef ready running create: mpathc (36001405177ec9678c7441a7b327eeffe) undef LIO-ORG ,file12 size=500M features='0' hwhandler='0' wp=undef `-+- policy='service-time 0' prio=1 status=undef `- 4:0:0:1 sdc 8:32 undef ready running create: mpathd (36001405a2f034e541704e6eafca2960e) undef LIO-ORG ,file13 size=500M features='0' hwhandler='0' wp=undef `-+- policy='service-time 0' prio=1 status=undef `- 4:0:0:2 sdd 8:48 undef ready running create: mpathe (36001405a43d674083094b69a6a7f310b) undef LIO-ORG ,file14 size=500M features='0' hwhandler='0' wp=undef `-+- policy='service-time 0' prio=1 status=undef `- 4:0:0:3 sde 8:64 undef ready running create: mpathf (3600140571c8a14d4d2a49c6b9e7ce41b) undef LIO-ORG ,file15 size=500M features='0' hwhandler='0' wp=undef `-+- policy='service-time 0' prio=1 status=undef `- 4:0:0:4 sdf 8:80 undef ready running [root@testhost1 ~]# [root@testhost1 ~]# [root@testhost1 ~]# multipath -ll mpathe (36001405a43d674083094b69a6a7f310b) dm-6 LIO-ORG ,file14 size=500M features='0' hwhandler='0' wp=rw `-+- policy='service-time 0' prio=1 status=enabled `- 4:0:0:3 sde 8:64 active ready running mpathd (36001405a2f034e541704e6eafca2960e) dm-5 LIO-ORG ,file13 size=500M features='0' hwhandler='0' wp=rw `-+- policy='service-time 0' prio=1 status=enabled `- 4:0:0:2 sdd 8:48 active ready running mpathc (36001405177ec9678c7441a7b327eeffe) dm-4 LIO-ORG ,file12 size=500M features='0' hwhandler='0' wp=rw `-+- policy='service-time 0' prio=1 status=active `- 4:0:0:1 sdc 8:32 active ready running mpathb (36001405d0b9a050efa544b58fe8de66f) dm-2 LIO-ORG ,file11 size=500M features='0' hwhandler='0' wp=rw `-+- policy='service-time 0' prio=1 status=active `- 4:0:0:0 sdb 8:16 active ready running mpathf (3600140571c8a14d4d2a49c6b9e7ce41b) dm-7 LIO-ORG ,file15 size=500M features='0' hwhandler='0' wp=rw `-+- policy='service-time 0' prio=1 status=enabled `- 4:0:0:4 sdf 8:80 active ready running [root@testhost1 ~]# I'm not sure that this needs changing. Right now, user scripts might rely on a blank return to indicate that a device isn't present, and the only way that you will not see any devices if you don't specify a device, is if there really are none. You may consider posting this patch to dm-devel. If it is accepted upstream, I will of course pull it back into RHEL. (In reply to Ben Marzinski from comment #5) > I'm not sure that this needs changing. Right now, user scripts might rely > on a blank return to indicate that a device isn't present, and the only way > that you will not see any devices if you don't specify a device, is if there > really are none. You may consider posting this patch to dm-devel. > If it is accepted upstream, I will of course pull it back into RHEL. Hello Ben, The if/else block used in this patch were first added through the patch https://www.redhat.com/archives/dm-devel/2016-July/msg00536.html which was applied in RHEL provided dm-multipath, but these changes are not in upstream dm-multipath version. So the attached patch does not apply to upstream multipath code. Thanks, Milan. (In reply to Milan P. Gandhi from comment #6) > (In reply to Ben Marzinski from comment #5) > > I'm not sure that this needs changing. Right now, user scripts might rely > > on a blank return to indicate that a device isn't present, and the only way > > that you will not see any devices if you don't specify a device, is if there > > really are none. You may consider posting this patch to dm-devel. > > If it is accepted upstream, I will of course pull it back into RHEL. > > Hello Ben, The if/else block used in this patch were first added through the > patch https://www.redhat.com/archives/dm-devel/2016-July/msg00536.html which > was applied in RHEL provided dm-multipath, but these changes are not in > upstream dm-multipath version. So the attached patch does not apply to > upstream multipath code. > > Thanks, > Milan. That's fine. Like I said, I don't want to needlessly change the output in RHEL7. If you make a version for upstream that is accepted, I will put it in RHEL8, where nobody has any scripts written yet. (In reply to Ben Marzinski from comment #7) > (In reply to Milan P. Gandhi from comment #6) > > (In reply to Ben Marzinski from comment #5) > > > I'm not sure that this needs changing. Right now, user scripts might rely > > > on a blank return to indicate that a device isn't present, and the only way > > > that you will not see any devices if you don't specify a device, is if there > > > really are none. You may consider posting this patch to dm-devel. > > > If it is accepted upstream, I will of course pull it back into RHEL. > > > > Hello Ben, The if/else block used in this patch were first added through the > > patch https://www.redhat.com/archives/dm-devel/2016-July/msg00536.html which > > was applied in RHEL provided dm-multipath, but these changes are not in > > upstream dm-multipath version. So the attached patch does not apply to > > upstream multipath code. > > > > Thanks, > > Milan. > > That's fine. Like I said, I don't want to needlessly change the output in > RHEL7. If you make a version for upstream that is accepted, I will put it in > RHEL8, where nobody has any scripts written yet. Thanks for your inputs Ben! let me rework on it. (In reply to Ben Marzinski from comment #7) ... > That's fine. Like I said, I don't want to needlessly change the output in > RHEL7. If you make a version for upstream that is accepted, I will put it in > RHEL8, where nobody has any scripts written yet. Just as a caution, I'd suggest that 8.1 is the last chance before "nobody has any scripts written yet" for RHEL 8. Even then, we are putting a priority on making upgrades easier (witness all the effort that has gone into Leapp). So we no longer have free reign to break anything we want on an major release update. We should consider each case. You guys know the risk/benefit for this change better than I do. Just saying... Tom Hello, (In reply to Tom Coughlan from comment #9) > (In reply to Ben Marzinski from comment #7) > > ... > > > That's fine. Like I said, I don't want to needlessly change the output in > > RHEL7. If you make a version for upstream that is accepted, I will put it in > > RHEL8, where nobody has any scripts written yet. > > Just as a caution, I'd suggest that 8.1 is the last chance before "nobody > has any scripts written yet" for RHEL 8. > > Even then, we are putting a priority on making upgrades easier (witness all > the effort that has gone into Leapp). So we no longer have free reign to > break anything we want on an major release update. We should consider each > case. > > You guys know the risk/benefit for this change better than I do. Just > saying... > > Tom Thanks for looking into this! This BZ and patch were primarily to improve the error reporting in dm-multipath instead of silently ignoring an invalid command argument passed to multipath -ll. But if there is a chance of this breaking any custom scripts, then I do not see it as a priority for inclusion. The reason for this improvement was to improve error reporting, if it could affect any custom scripts, then we could definitely consider avoiding this improvement. Kind regards, Milan. The possibility to break scripts outweighs the benefits of this change. |