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 1272620 - multipathd remove map foo responds with "ok"
Summary: multipathd remove map foo responds with "ok"
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: device-mapper-multipath
Version: 7.3
Hardware: Unspecified
OS: Linux
unspecified
low
Target Milestone: rc
: ---
Assignee: Ben Marzinski
QA Contact: Lin Li
Steven J. Levine
URL:
Whiteboard:
Depends On: 1271381
Blocks: 1295577 1313485
TreeView+ depends on / blocked
 
Reported: 2015-10-16 23:40 UTC by Ben Marzinski
Modified: 2021-09-03 11:57 UTC (History)
11 users (show)

Fixed In Version: device-mapper-multipath-0.4.9-87.el7
Doc Type: Bug Fix
Doc Text:
The *multipathd* daemon now responds to failed removes with `fail` rather than `ok` Previously, the *multipathd* daemon did not retain the error status when removing a path or a map failed and would respond to failed removes with `ok`. With this fix, *multipathd* now responds to failed removes with `fail`.
Clone Of: 1271381
Environment:
Last Closed: 2016-11-04 08:13:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:2536 0 normal SHIPPED_LIVE device-mapper-multipath bug fix and enhancement update 2016-11-03 14:18:10 UTC

Description Ben Marzinski 2015-10-16 23:40:15 UTC
+++ This bug was initially created as a clone of Bug #1271381 +++

Description of problem:

multipathd responds with "ok" to any input <device> parameter for the remove command.


How reproducible:
100%

Steps to Reproduce:
1. Issue command with invalid device name:

# multipathd remove map foo
ok

Expected results:

Error message to indicate that an invalid device name was specified.

Additional info:

Comment 2 Lin Li 2016-04-25 09:27:20 UTC
Reproduced on device-mapper-multipath-0.4.9-77.el7
1). #yum install device-mapper device-mapper-multipath
2). # rpm -qa | grep multipath
device-mapper-multipath-libs-0.4.9-77.el7.x86_64
device-mapper-multipath-0.4.9-77.el7.x86_64
3). # mpathconf --enable
4). # service multipathd restart
Redirecting to /bin/systemctl restart  multipathd.service
5). # multipathd remove map foo   <-------invalid device name
ok
6). # multipathd remove map absdssf <--------invalid device name
ok


Verified on device-mapper-multipath-0.4.9-87.el7
1). #yum install device-mapper device-mapper-multipath
2). # rpm -qa | grep multipath
device-mapper-multipath-0.4.9-87.el7.x86_64
device-mapper-multipath-sysvinit-0.4.9-87.el7.x86_64
device-mapper-multipath-libs-0.4.9-87.el7.x86_64
3). mpathconf --enable
4). # service multipathd restart
Redirecting to /bin/systemctl restart  multipathd.service
5).# multipathd remove map foo   <-------invalid device name
fail
6). # multipathd remove map absdssf <--------invalid device name
fail

Comment 5 errata-xmlrpc 2016-11-04 08:13:44 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, 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://rhn.redhat.com/errata/RHBA-2016-2536.html


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