No edit summary |
m (QA/Test Days/iSCSI Test plan moved to QA:Test Plans/iSCSI Installation Test plan: Moving into the QA namespace under the Test Plans title) |
(No difference)
|
Revision as of 21:45, 11 February 2009
Initial setup
Test cases require at least two devices, iSCSI target (hw or sw) and machine fot test installations (physical or virtual).
iSCSI target is simply server in iSCSI terminology. If hardware iSCSI target device isn't available (however hw device is best choice), it is possible to create software iSCSI target on Linux system.
iSCSI initiator is name for client. iSCSI support in anaconda is tested, there is not desired to use hardware iSCSI initiator.
Network connectivity between iSCSI target and test machine is required, faster is always better, 1 Gb/s in best case.
All test cases describe, how to create sw target for particular action with Fedora 10 (iSCSI target is not object of this testing, let's use stable system). Before any testing prepare storage space and start target daemon with following commands (execute as root):
# dd if=/dev/zero of=/tmp/disk bs=1M count=8000 # losetup /dev/loop0 /tmp/disk # yum -y install scsi-target-utils # service tgtd start
You can check any time what targets are provided by command:
# tgtadm --lld iscsi --op show --mode target
No authentication
Status
Not tested
Setup
# tgtadm --lld iscsi --op new --mode target --tid=1 --targetname iqn.2009-02.com.example:for.all # tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 1 -b /dev/loop0 # tgtadm --lld iscsi --op bind --mode target --tid 1 -I ALL
Action
- Start installation, advance to partitioning screen,
- click Advanced storage configuration button,
- select Add iSCSI target option and click Add drive button,
- specify Target IP Address and click Add target button,
- complete installation.
Expected Results
- iSCSI inititiator is properly started,
- new SCSI drive(s) is included in list of available drives,
- installation is completed without error,
- new system will start with all filesystems mounted.
Teardown
- Shutdown test machine
- On target execute:
# tgtadm --lld iscsi --op delete --mode target --tid 1
CHAP authentication against iSCSI target
Status
Not tested
Setup
# tgtadm --lld iscsi --op new --mode target --tid=1 --targetname iqn.2009-02.com.example:auth.chap # tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 1 -b /dev/loop0 # tgtadm --lld iscsi --op bind --mode target --tid 1 -I ALL # tgtadm --lld iscsi --op new --mode account --user consumer --password Longsw0rd # tgtadm --lld iscsi --op bind --mode account --tid 1 --user consumer
Action
- Start installation, advance to partitioning screen,
- click Advanced storage configuration button,
- select Add iSCSI target option and click Add drive button,
- specify Target IP Address,
- into field CHAP Username put name consumer,
- into field CHAP Password put LongSw0rd and click Add target button,
- complete installation.
Expected Results
- iSCSI inititiator is properly started,
- authentication passes,
- new SCSI drive(s) is included in list of available drives,
- installation is completed without error,
- new system will start with all filesystems mounted.
Teardown
- Shutdown test machine
- On target execute:
# tgtadm --lld iscsi --op delete --mode target --tid 1 # tgtadm --lld iscsi --op delete --mode account --user consumer
Reverese CHAP authentication
Status
Not tested
Setup
# tgtadm --lld iscsi --op new --mode target --tid=1 --targetname iqn.2009-02.com.example:auth.rchap # tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 1 -b /dev/loop0 # tgtadm --lld iscsi --op bind --mode target --tid 1 -I ALL # tgtadm --lld iscsi --op new --mode account --user provider --password Shortsw0rd # tgtadm --lld iscsi --op bind --mode account --tid 1 --user provider --outgoing
Action
- Start installation, advance to partitioning screen,
- click Advanced storage configuration button,
- select Add iSCSI target option and click Add drive button,
- specify Target IP Address,
- into field Reverse CHAP Username put name provider,
- into field Reverse CHAP Password put ShortSw0rd and click Add target button,
- complete installation.
Expected Results
- iSCSI inititiator is properly started,
- authentication passes,
- new SCSI drive(s) is included in list of available drives,
- installation is completed without error,
- new system will start with all filesystems mounted.
Teardown
- Shutdown test machine
- On target execute:
# tgtadm --lld iscsi --op delete --mode target --tid 1 # tgtadm --lld iscsi --op delete --mode account --user provider
Data partition on iSCSI target
Status
Not tested
Setup
# tgtadm --lld iscsi --op new --mode target --tid=1 --targetname iqn.2009-02.com.example:for.all # tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 1 -b /dev/loop0 # tgtadm --lld iscsi --op bind --mode target --tid 1 -I ALL
Action
- Start installation, advance to partitioning screen,
- click Advanced storage configuration button,
- select Add iSCSI target option and click Add drive button,
- specify Target IP Address and click Add target button,
- select Create custom layout option, advance to next screen,
- create raw partition on iSCSI target with
/opt
mount point, - complete installation.
Expected results
- iSCSI inititiator is properly started,
- new SCSI drive(s) is included in list of available drives,
- custom partitioning is completed wihtout error,
- installation is completed without error,
- new system will start with all filesystems mounted.
Teardown
- Shutdown test machine
- On target execute:
# tgtadm --lld iscsi --op delete --mode target --tid 1
Root partition on iSCSI target
Status
Not tested
Setup
# tgtadm --lld iscsi --op new --mode target --tid=1 --targetname iqn.2009-02.com.example:for.all # tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 1 -b /dev/loop0 # tgtadm --lld iscsi --op bind --mode target --tid 1 -I ALL
Action
- Start installation, advance to partitioning screen,
- click Advanced storage configuration button,
- select Add iSCSI target option and click Add drive button,
- specify Target IP Address and click Add target button,
- select Create custom layout option, advance to next screen,
- create raw partition on iSCSI target with
/
mount point, - create
/boot
partition on local hard drive (alternatively use iBF or PXE), - complete installation.
Expected results
- iSCSI inititiator is properly started,
- new SCSI drive(s) is included in list of available drives,
- custom partitioning is completed wihtout error,
- installation is completed without error,
- new system will start with all filesystems mounted.
Teardown
- Shutdown test machine
- On target execute:
# tgtadm --lld iscsi --op delete --mode target --tid 1
swap on iSCSI target
Status
Not tested
Setup
# tgtadm --lld iscsi --op new --mode target --tid=1 --targetname iqn.2009-02.com.example:for.all # tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 1 -b /dev/loop0 # tgtadm --lld iscsi --op bind --mode target --tid 1 -I ALL
Action
- Start installation, advance to partitioning screen,
- click Advanced storage configuration button,
- select Add iSCSI target option and click Add drive button,
- specify Target IP Address and click Add target button,
- select Create custom layout option, advance to next screen,
- create
swap
partition on iSCSI target, - complete installation.
Expected results
- iSCSI inititiator is properly started,
- new SCSI drive(s) is included in list of available drives,
- custom partitioning is completed wihtout error,
- installation is completed without error,
- new system will start with all filesystems mounted,
swap
is activated during boot.
Teardown
- Shutdown test machine
- On target execute:
# tgtadm --lld iscsi --op delete --mode target --tid 1
iSCSI target is part of LVM vg
Status
Not tested
Setup
# tgtadm --lld iscsi --op new --mode target --tid=1 --targetname iqn.2009-02.com.example:for.all # tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 1 -b /dev/loop0 # tgtadm --lld iscsi --op bind --mode target --tid 1 -I ALL
Action
- Start installation, advance to partitioning screen,
- click Advanced storage configuration button,
- select Add iSCSI target option and click Add drive button,
- specify Target IP Address and click Add target button,
- select Create custom layout option, advance to next screen,
- create LVM PV partition on iSCSI target,
- create volume group TestVG' with PV placed on iSCSI target,
- create some logical volumes in TestVG, assign them with mount points (
/opt
, etc.) - complete installation.
Expected results
- iSCSI inititiator is properly started,
- new SCSI drive(s) is included in list of available drives,
- custom partitioning is completed wihtout error,
- installation is completed without error,
- new system will start with all filesystems mounted.
Teardown
- Shutdown test machine
- On target execute:
# tgtadm --lld iscsi --op delete --mode target --tid 1
Final teardown
- Shutdown test machine
- Execute following commands on target (alternatively reboot target, changes are not persistent):
# service tgtd stop # losetup -d /dev/loop0 # rm -f /tmp/disk