Bug 1272620

Summary: multipathd remove map foo responds with "ok"
Product: Red Hat Enterprise Linux 7 Reporter: Ben Marzinski <bmarzins>
Component: device-mapper-multipathAssignee: Ben Marzinski <bmarzins>
Status: CLOSED ERRATA QA Contact: Lin Li <lilin>
Severity: low Docs Contact: Steven J. Levine <slevine>
Priority: unspecified    
Version: 7.3CC: agk, bmarzins, dwysocha, extras-qa, heinzm, lilin, lvm-team, msnitzer, prajnoha, prockai, tgill
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
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`.
Story Points: ---
Clone Of: 1271381 Environment:
Last Closed: 2016-11-04 08:13:44 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: 1271381    
Bug Blocks: 1295577, 1313485    

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