From Fedora Project Wiki

No edit summary
No edit summary
Line 4: Line 4:
|actions=
|actions=
Be as specific as required for the target audience.  
Be as specific as required for the target audience.  
# Ensure the device-mapper-multipath package is installed
1.  Ensure the device-mapper-multipath package is installed
    Execute:  dnf -y install device-mapper device-mapper-multipath
    Execute:  dnf -y install device-mapper device-mapper-multipath
    Execute:  rpm -qa<nowiki>|</nowiki>grep multipath
    Execute:  rpm -qa<nowiki>|</nowiki>grep multipath
# Next do this ...
2. Execute the following command to generate the configuration file:
# Finally click that
    Execute:  mpathconf --enable
# Start here ...
3. Restart multipathd service
# Next do this ...
    Execute: service multipathd restart
# Finally click that
4. kpartx called with invalid options /
    Execute: kpartx -l /
5. sleep 1 second
    Execute: sleep 1
6. check dmesg if there is segmentation fault
    Execute:dmesg <nowiki>|</nowiki> grep segfault
|results=
|results=
The following must be true to consider this a successful test run. Be brief ... but explicit.
# no Segmentation fault, kpartx no longer crashes when called with invalid options.
# Step #1 completes without error
# The system boots into runlevel 5
# Program completes with exit code 0
|optional=Optionally provide hints for exploratory testing.
}}
}}

Revision as of 10:29, 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

Be as specific as required for the target audience. 1. Ensure the device-mapper-multipath package is installed

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

2. Execute the following command to generate the configuration file:

    Execute:  mpathconf --enable

3. Restart multipathd service

   Execute: service multipathd restart

4. kpartx called with invalid options /

   Execute: kpartx -l /

5. sleep 1 second

   Execute: sleep 1

6. check dmesg if there is segmentation fault

   Execute:dmesg | grep segfault

Expected Results

  1. no Segmentation fault, kpartx no longer crashes when called with invalid options.