From Fedora Project Wiki
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{header|qa}} | {{header|qa}} | ||
{{QA/Test_Case | {{QA/Test_Case | ||
|description=This testcase checks | |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. | ||
It is reported in fixed bug that | |||
|actions= | |actions= | ||
1. 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: rpm -qa<nowiki>|</nowiki>grep multipath | |||
2. Execute the following command to generate the configuration file: | 2. Execute the following command to generate the configuration file: | ||
Execute: mpathconf --enable | |||
3. Restart multipathd service | 3. Restart multipathd service | ||
Execute: service multipathd restart | Execute: service multipathd restart | ||
4. kpartx called with invalid options / | 4. kpartx called with invalid options / | ||
Execute:kpartx -l / | Execute: kpartx -l / | ||
5. sleep 1 second | 5. sleep 1 second | ||
Execute:sleep 1 | Execute: sleep 1 | ||
6. check dmesg if there is segmentation fault | 6. check dmesg if there is segmentation fault | ||
Execute:dmesg <nowiki>|</nowiki> grep segfault | Execute:dmesg <nowiki>|</nowiki> grep segfault |
Revision as of 10:31, 29 October 2018
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|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
- no Segmentation fault, kpartx no longer crashes when called with invalid options.