From Fedora Project Wiki

No edit summary
No edit summary
Line 3: Line 3:
|description= This testcase checks if multipathd responds with 'fail' for invalid device name. It is reported in fixed bug that multipathd responds with 'ok' for invalid device name.
|description= This testcase checks if multipathd responds with 'fail' for invalid device name. It is reported in fixed bug that multipathd responds with 'ok' for invalid device name.
|actions=
|actions=
# Ensure the device-mapper-multipath package is installed
1. Ensure the device-mapper-multipath package is installed
     Execute: {{command|dnf -y install device-mapper device-mapper-multipath}}
     Execute: {{command|dnf -y install device-mapper device-mapper-multipath}}
     Execute: {{command|rpm -qa | grep multipath}}
     Execute: {{command|rpm -qa | grep multipath}}
# Execute the following command to generate the configuration file
2. Execute the following command to generate the configuration file
     Execute: {{command|mpathconf --enable}}
     Execute: {{command|mpathconf --enable}}
# Restart multipathd service
3. Restart multipathd service
     Execute:service multipathd restart
     Execute:service multipathd restart
# multipathd remove invalid device name 'foo'
4. multipathd remove invalid device name 'foo'
     Execute:multipathd remove map foo
     Execute:multipathd remove map foo
# check whether the return value is 'ok' or 'fail'
5. check whether the return value is 'ok' or 'fail'


|results=
|results=

Revision as of 09:38, 29 October 2018

QA.png


Description

This testcase checks if multipathd responds with 'fail' for invalid device name. It is reported in fixed bug that multipathd responds with 'ok' for invalid device name.


How to test

1. Ensure the device-mapper-multipath package is installed

    Execute: dnf -y install device-mapper device-mapper-multipath
    Execute: rpm -qa 

2. Execute the following command to generate the configuration file

   Execute: mpathconf --enable

3. Restart multipathd service

   Execute:service multipathd restart

4. multipathd remove invalid device name 'foo'

   Execute:multipathd remove map foo

5. check whether the return value is 'ok' or 'fail'

Expected Results

  1. multipathd responds with 'fail' for invalid device name.