:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Test :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 15:51:20 ] :: [ PASS ] :: Command 'uname -a' (Expected 0, got 0) :: [ 15:51:20 ] :: [ LOG ] :: ./runtest.sh :: [ 15:51:20 ] :: [ PASS ] :: check the device-mapper-multipath if installed (Expected 0, got 0) :: [ 15:51:20 ] :: [ PASS ] :: check the sg3_utils if installed (Expected 0, got 0) :: [ 15:51:20 ] :: [ PASS ] :: Command 'mpathconf --enable --find_multipaths y --with_module y --with_multipathd y' (Expected 0, got 0) :: [ 15:51:21 ] :: [ LOG ] :: rlServiceStart: Service multipathd started successfully :: [ 15:51:21 ] :: [ PASS ] :: Command 'multipath -l' (Expected 0, got 0) :: [ 15:51:21 ] :: [ PASS ] :: remove scsi_debug (Expected 0-255, got 1) :: [ 15:51:21 ] :: [ LOG ] :: add scsi_debug level 4 :: [ 15:51:21 ] :: [ LOG ] :: Start test using scsi_level 4 :: [ 15:51:21 ] :: [ PASS ] :: Command 'modprobe scsi_debug scsi_level=4' (Expected 0, got 0) :: [ 15:51:21 ] :: [ LOG ] :: Checking if VPD for /dev/sdb is exported correctly :: [ 15:51:21 ] :: [ PASS ] :: get message by sg_ing (Expected 0, got 0) :: [ 15:51:21 ] :: [ PASS ] :: get mesage by page=0x80 (Expected 0, got 0) :: [ 15:51:21 ] :: [ PASS ] :: get message by page=0x83 (Expected 0, got 0) :: [ 15:51:21 ] :: [ LOG ] :: VPD exported successfuly for /dev/sdb scsi_level 4 :: [ 15:51:21 ] :: [ LOG ] :: remove /dev/sdb from multipath :: [ 15:51:21 ] :: [ PASS ] :: try to remove scsi_debug from mp (Expected 0-255, got 1) :: [ 15:51:21 ] :: [ PASS ] :: Command 'multipath -F' (Expected 0, got 0) :: [ 15:51:22 ] :: [ PASS ] :: Command 'systemctl disable multipathd' (Expected 0, got 0) :: [ 15:51:22 ] :: [ PASS ] :: Command 'multipath -F' (Expected 0, got 0) :: [ 15:51:22 ] :: [ PASS ] :: test scsi_debug if removed (Expected 0-255, got 2) :: [ 15:51:22 ] :: [ PASS ] :: remove scsi_debug (Expected 0-255, got 0) :: [ 15:51:22 ] :: [ LOG ] :: test passed scsi_debug 4 level vpd :: [ 15:51:22 ] :: [ LOG ] :: add scsi_debug level 5 :: [ 15:51:22 ] :: [ LOG ] :: Start test using scsi_level 5 :: [ 15:51:22 ] :: [ PASS ] :: Command 'modprobe scsi_debug scsi_level=5' (Expected 0, got 0) :: [ 15:51:22 ] :: [ LOG ] :: Checking if VPD for /dev/sdb is exported correctly :: [ 15:51:22 ] :: [ PASS ] :: get message by sg_ing (Expected 0, got 0) :: [ 15:51:22 ] :: [ PASS ] :: get mesage by page=0x80 (Expected 0, got 0) :: [ 15:51:22 ] :: [ PASS ] :: get message by page=0x83 (Expected 0, got 0) :: [ 15:51:22 ] :: [ LOG ] :: VPD exported successfuly for /dev/sdb scsi_level 5 :: [ 15:51:22 ] :: [ LOG ] :: remove /dev/sdb from multipath :: [ 15:51:22 ] :: [ PASS ] :: try to remove scsi_debug from mp (Expected 0-255, got 1) :: [ 15:51:22 ] :: [ PASS ] :: Command 'multipath -F' (Expected 0, got 0) :: [ 15:51:22 ] :: [ PASS ] :: Command 'systemctl disable multipathd' (Expected 0, got 0) :: [ 15:51:22 ] :: [ PASS ] :: Command 'multipath -F' (Expected 0, got 0) :: [ 15:51:23 ] :: [ PASS ] :: test scsi_debug if removed (Expected 0-255, got 2) :: [ 15:51:23 ] :: [ PASS ] :: remove scsi_debug (Expected 0-255, got 0) :: [ 15:51:23 ] :: [ LOG ] :: test passed scsi_debug 5 level vpd :: [ 15:51:23 ] :: [ LOG ] :: add scsi_debug level 6 :: [ 15:51:23 ] :: [ LOG ] :: Start test using scsi_level 6 :: [ 15:51:23 ] :: [ PASS ] :: Command 'modprobe scsi_debug scsi_level=6' (Expected 0, got 0) :: [ 15:51:23 ] :: [ LOG ] :: Checking if VPD for /dev/sdb is exported correctly :: [ 15:51:23 ] :: [ PASS ] :: get message by sg_ing (Expected 0, got 0) :: [ 15:51:23 ] :: [ PASS ] :: get mesage by page=0x80 (Expected 0, got 0) :: [ 15:51:23 ] :: [ PASS ] :: get message by page=0x83 (Expected 0, got 0) :: [ 15:51:23 ] :: [ LOG ] :: VPD exported successfuly for /dev/sdb scsi_level 6 :: [ 15:51:23 ] :: [ LOG ] :: remove /dev/sdb from multipath :: [ 15:51:23 ] :: [ PASS ] :: try to remove scsi_debug from mp (Expected 0-255, got 1) :: [ 15:51:23 ] :: [ PASS ] :: Command 'multipath -F' (Expected 0, got 0) :: [ 15:51:23 ] :: [ PASS ] :: Command 'systemctl disable multipathd' (Expected 0, got 0) :: [ 15:51:23 ] :: [ PASS ] :: Command 'multipath -F' (Expected 0, got 0) :: [ 15:51:23 ] :: [ PASS ] :: test scsi_debug if removed (Expected 0-255, got 2) :: [ 15:51:23 ] :: [ PASS ] :: remove scsi_debug (Expected 0-255, got 0) :: [ 15:51:23 ] :: [ LOG ] :: test passed scsi_debug 6 level vpd :: [ 15:51:23 ] :: [ LOG ] :: add scsi_debug level 7 :: [ 15:51:23 ] :: [ LOG ] :: Start test using scsi_level 7 :: [ 15:51:24 ] :: [ PASS ] :: Command 'modprobe scsi_debug scsi_level=7' (Expected 0, got 0) :: [ 15:51:24 ] :: [ LOG ] :: Checking if VPD for /dev/sdb is exported correctly :: [ 15:51:24 ] :: [ PASS ] :: get message by sg_ing (Expected 0, got 0) :: [ 15:51:24 ] :: [ PASS ] :: get mesage by page=0x80 (Expected 0, got 0) :: [ 15:51:24 ] :: [ PASS ] :: get message by page=0x83 (Expected 0, got 0) :: [ 15:51:24 ] :: [ LOG ] :: VPD exported successfuly for /dev/sdb scsi_level 7 :: [ 15:51:24 ] :: [ LOG ] :: remove /dev/sdb from multipath :: [ 15:51:24 ] :: [ PASS ] :: try to remove scsi_debug from mp (Expected 0-255, got 1) :: [ 15:51:24 ] :: [ PASS ] :: Command 'multipath -F' (Expected 0, got 0) :: [ 15:51:24 ] :: [ PASS ] :: Command 'systemctl disable multipathd' (Expected 0, got 0) :: [ 15:51:24 ] :: [ PASS ] :: Command 'multipath -F' (Expected 0, got 0) :: [ 15:51:24 ] :: [ PASS ] :: test scsi_debug if removed (Expected 0-255, got 2) :: [ 15:51:24 ] :: [ PASS ] :: remove scsi_debug (Expected 0-255, got 0) :: [ 15:51:24 ] :: [ LOG ] :: test passed scsi_debug 7 level vpd :: [ 15:51:24 ] :: [ PASS ] :: check the errors (Expected 1, got 1) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 4s :: Assertions: 47 good, 0 bad :: RESULT: PASS (Test)