From testing in ON-PIT in snv_66 and snv_67 we came across the following errors, when testing iSCSI:
520|1 1 132551 1 1|=======================================================
520|1 1 132551 1 2| Test case modify001 - specify a tpgt to use when
520|1 1 132551 1 3| initiators reference a target
520|1 1 132551 1 4|=======================================================
520|1 1 132551 1 5| - /usr/sbin/iscsitadm create target -z 50m testtarget1
520|1 1 132551 1 6| - /usr/sbin/iscsitadm list target -v testtarget1
520|1 1 132551 1 7|PASS - all acl(s) in the stored info were found in the list output
520|1 1 132551 1 8|PASS - all tpgts in the stored info were found in the list output
520|1 1 132551 1 9| - /usr/sbin/iscsitadm list target -v
520|1 1 132551 1 10|PASS - testtarget1 stored type is disk list shows disk
520|1 1 132551 1 11|PASS - testtarget1 stored size is 50M list shows 50M
520|1 1 132551 1 12| - /usr/sbin/iscsitadm create tpgt 20
520|1 1 132551 1 13| - /usr/sbin/iscsitadm list tpgt 20
520|1 1 132551 1 14|PASS - 20 shown in list output.
520|1 1 132551 1 15|PASS - IP address count 0 does equal IP address count 0
520|1 1 132551 1 16| - /usr/sbin/iscsitadm modify target -p 20 testtarget1
520|1 1 132551 1 17|FAIL - /usr/sbin/iscsitadm modify target -p 20 testtarget1
520|1 1 132551 1 18| iscsitadm: Error TPGT has no ip-addr
520|1 1 132551 1 19|The current state of the test case is
520|1 1 132551 1 20|not PASS. Skipping the delete subcommand.
520|1 1 132551 1 21|This can be overridden by setting the
520|1 1 132551 1 22|environment variable iSCSI_NO_RESULT_CHK
520|1 1 132551 1 23|to TRUE
520|1 1 132551 1 24| - /usr/sbin/iscsitadm list target -v testtarget1
520|1 1 132551 1 25|PASS - all acl(s) in the stored info were found in the list output
520|1 1 132551 1 26|PASS - all tpgts in the stored info were found in the list output
520|1 1 132551 1 27| - /usr/sbin/iscsitadm list target -v
520|1 1 132551 1 28|PASS - testtarget1 stored type is disk list shows disk
520|1 1 132551 1 29|PASS - testtarget1 stored size is 50M list shows 50M
520|1 1 132551 1 30|The current state of the test case is
520|1 1 132551 1 31|not PASS. Skipping the delete subcommand.
520|1 1 132551 1 32|This can be overridden by setting the
520|1 1 132551 1 33|environment variable iSCSI_NO_RESULT_CHK
520|1 1 132551 1 34|to TRUE
520|1 1 132551 1 35| - /usr/sbin/iscsitadm delete tpgt -A 20
520|1 1 132551 1 36|verify object/object-values...
520|1 1 132551 1 37|clear internal stored information...
520|1 1 132551 1 38| - /usr/sbin/iscsitadm list target -v
520|1 1 132551 1 39| - /usr/sbin/iscsitadm delete target -u 0 testtarget1
520|1 1 132551 1 40|verify object/object-values...
520|1 1 132551 1 41|clear internal stored information...
520|1 1 132551 1 42| - /usr/sbin/iscsitadm list target
220|1 1 1 10:35:52|FAIL
410|1 1 1 10:35:52|IC End
-----------------------------------------------------------------------
400|1 3 1 10:35:56|IC Start
200|1 3 10:35:56|TP Start
520|1 3 132551 1 1|=======================================================
520|1 3 132551 1 2| Test case modify003 - Attempt to modify the target
520|1 3 132551 1 3| tpgt with a tpgt already associated with target
520|1 3 132551 1 4|=======================================================
520|1 3 132551 1 5| - /usr/sbin/iscsitadm create target -z 50m testtarget1
520|1 3 132551 1 6| - /usr/sbin/iscsitadm list target -v testtarget1
520|1 3 132551 1 7|PASS - all acl(s) in the stored info were found in the list output
520|1 3 132551 1 8|PASS - all tpgts in the stored info were found in the list output
520|1 3 132551 1 9| - /usr/sbin/iscsitadm list target -v
520|1 3 132551 1 10|PASS - testtarget1 stored type is disk list shows disk
520|1 3 132551 1 11|PASS - testtarget1 stored size is 50M list shows 50M
520|1 3 132551 1 12| - /usr/sbin/iscsitadm create tpgt 20
520|1 3 132551 1 13| - /usr/sbin/iscsitadm list tpgt 20
520|1 3 132551 1 14|PASS - 20 shown in list output.
520|1 3 132551 1 15|PASS - IP address count 0 does equal IP address count 0
520|1 3 132551 1 16| - /usr/sbin/iscsitadm modify target -p 20 testtarget1
520|1 3 132551 1 17|FAIL - /usr/sbin/iscsitadm modify target -p 20 testtarget1
520|1 3 132551 1 18| iscsitadm: Error TPGT has no ip-addr
520|1 3 132551 1 19|The current state of the test case is
520|1 3 132551 1 20|not PASS. Skipping the modify subcommand.
520|1 3 132551 1 21|This can be overridden by setting the
520|1 3 132551 1 22|environment variable iSCSI_NO_RESULT_CHK
520|1 3 132551 1 23|to TRUE
520|1 3 132551 1 24|The current state of the test case is
520|1 3 132551 1 25|not PASS. Skipping the delete subcommand.
520|1 3 132551 1 26|This can be overridden by setting the
520|1 3 132551 1 27|environment variable iSCSI_NO_RESULT_CHK
520|1 3 132551 1 28|to TRUE
520|1 3 132551 1 29| - /usr/sbin/iscsitadm delete tpgt -A 20
520|1 3 132551 1 30|verify object/object-values...
520|1 3 132551 1 31|clear internal stored information...
520|1 3 132551 1 32| - /usr/sbin/iscsitadm list target -v
520|1 3 132551 1 33| - /usr/sbin/iscsitadm delete target -u 0 testtarget1
520|1 3 132551 1 34|verify object/object-values...
520|1 3 132551 1 35|clear internal stored information...
520|1 3 132551 1 36| - /usr/sbin/iscsitadm list target
220|1 3 1 10:35:59|FAIL
410|1 3 1 10:35:59|IC End
------------------------------------------------------------------------
400|2 7 1 10:40:00|IC Start
200|2 7 10:40:00|TP Start
520|2 7 149284 1 1|=======================================================
520|2 7 149284 1 2| Test case delete007 - A series of attempt to
520|2 7 149284 1 3| delete an tpgt incorrectly
520|2 7 149284 1 4| - delete tpgt without a target
520|2 7 149284 1 5| - delete tpgt with a target but no tpgt
520|2 7 149284 1 6| - delete tpgt with a target with a NULL tpgt
520|2 7 149284 1 7| - delete tpgt with no arguments
520|2 7 149284 1 8| - delete tpgt with the wrong tpgt
520|2 7 149284 1 9| - delete tpgt with the wrong target
520|2 7 149284 1 10|=======================================================
520|2 7 149284 1 11| - /usr/sbin/iscsitadm create target -z 50m testtarget1
520|2 7 149284 1 12| - /usr/sbin/iscsitadm list target -v testtarget1
520|2 7 149284 1 13|PASS - all acl(s) in the stored info were found in the list output
520|2 7 149284 1 14|PASS - all tpgts in the stored info were found in the list output
520|2 7 149284 1 15| - /usr/sbin/iscsitadm list target -v
520|2 7 149284 1 16|PASS - testtarget1 stored type is disk list shows disk
520|2 7 149284 1 17|PASS - testtarget1 stored size is 50M list shows 50M
520|2 7 149284 1 18| - /usr/sbin/iscsitadm create target -z 50m testtarget2
520|2 7 149284 1 19| - /usr/sbin/iscsitadm list target -v testtarget2
520|2 7 149284 1 20|PASS - all acl(s) in the stored info were found in the list output
520|2 7 149284 1 21|PASS - all tpgts in the stored info were found in the list output
520|2 7 149284 1 22| - /usr/sbin/iscsitadm list target -v
520|2 7 149284 1 23|PASS - testtarget2 stored type is disk list shows disk
520|2 7 149284 1 24|PASS - testtarget2 stored size is 50M list shows 50M
520|2 7 149284 1 25| - /usr/sbin/iscsitadm create tpgt 20
520|2 7 149284 1 26| - /usr/sbin/iscsitadm list tpgt 20
520|2 7 149284 1 27|PASS - 20 shown in list output.
520|2 7 149284 1 28|PASS - IP address count 0 does equal IP address count 0
520|2 7 149284 1 29| - /usr/sbin/iscsitadm modify target -p 20 testtarget1
520|2 7 149284 1 30|FAIL - /usr/sbin/iscsitadm modify target -p 20 testtarget1
520|2 7 149284 1 31| iscsitadm: Error TPGT has no ip-addr
520|2 7 149284 1 32|Attempt to delete tpgt without a target
520|2 7 149284 1 33|The current state of the test case is
520|2 7 149284 1 34|not PASS. Skipping the delete subcommand.
520|2 7 149284 1 35|This can be overridden by setting the
520|2 7 149284 1 36|environment variable iSCSI_NO_RESULT_CHK
520|2 7 149284 1 37|to TRUE
520|2 7 149284 1 38|Attempt to delete tpgt with a target but no tpgt
520|2 7 149284 1 39|The current state of the test case is
520|2 7 149284 1 40|not PASS. Skipping the delete subcommand.
520|2 7 149284 1 41|This can be overridden by setting the
520|2 7 149284 1 42|environment variable iSCSI_NO_RESULT_CHK
520|2 7 149284 1 43|to TRUE
520|2 7 149284 1 44|Attempt to delete tpgt with a target with a NULL tpgt
520|2 7 149284 1 45|The current state of the test case is
520|2 7 149284 1 46|not PASS. Skipping the delete subcommand.
520|2 7 149284 1 47|This can be overridden by setting the
520|2 7 149284 1 48|environment variable iSCSI_NO_RESULT_CHK
520|2 7 149284 1 49|to TRUE
520|2 7 149284 1 50|Attempt to delete tpgt with no arguments
520|2 7 149284 1 51|The current state of the test case is
520|2 7 149284 1 52|not PASS. Skipping the delete subcommand.
520|2 7 149284 1 53|This can be overridden by setting the
520|2 7 149284 1 54|environment variable iSCSI_NO_RESULT_CHK
520|2 7 149284 1 55|to TRUE
520|2 7 149284 1 56|Attempt to delete tpgt with the wrong tpgt
520|2 7 149284 1 57|The current state of the test case is
520|2 7 149284 1 58|not PASS. Skipping the delete subcommand.
520|2 7 149284 1 59|This can be overridden by setting the
520|2 7 149284 1 60|environment variable iSCSI_NO_RESULT_CHK
520|2 7 149284 1 61|to TRUE
520|2 7 149284 1 62|Attempt to delete tpgt with the wrong target
520|2 7 149284 1 63|The current state of the test case is
520|2 7 149284 1 64|not PASS. Skipping the delete subcommand.
520|2 7 149284 1 65|This can be overridden by setting the
520|2 7 149284 1 66|environment variable iSCSI_NO_RESULT_CHK
520|2 7 149284 1 67|to TRUE
520|2 7 149284 1 68| - /usr/sbin/iscsitadm delete tpgt -A 20
520|2 7 149284 1 69|verify object/object-values...
520|2 7 149284 1 70|clear internal stored information...
520|2 7 149284 1 71| - /usr/sbin/iscsitadm list target -v
520|2 7 149284 1 72| - /usr/sbin/iscsitadm delete target -u 0 testtarget1
520|2 7 149284 1 73|verify object/object-values...
520|2 7 149284 1 74|clear internal stored information...
520|2 7 149284 1 75| - /usr/sbin/iscsitadm list target
520|2 7 149284 1 76| - /usr/sbin/iscsitadm list target -v
520|2 7 149284 1 77| - /usr/sbin/iscsitadm delete target -u 0 testtarget2
520|2 7 149284 1 78|verify object/object-values...
520|2 7 149284 1 79|clear internal stored information...
520|2 7 149284 1 80| - /usr/sbin/iscsitadm list target
220|2 7 1 10:40:07|FAIL
410|2 7 1 10:40:07|IC End
-----------------------------------------------------------------
200|0 9 09:32:12|TP Start
520|0 9 161337 1 1|=======================================================
520|0 9 161337 1 2| Test case create009 - Attempt to create a target
520|0 9 161337 1 3| for a raw device.
520|0 9 161337 1 4|=======================================================
520|0 9 161337 1 5| - /usr/sbin/iscsitadm modify admin -d /var/tmp/iscsi_tests/iscsi_mp
520|0 9 161337 1 6| - /usr/sbin/iscsitadm show admin
520|0 9 161337 1 7| - /usr/sbin/iscsitadm create target -t raw -b /dev/rdsk/c0t1d0p0 testtarget1
520|0 9 161337 1 8|FAIL - /usr/sbin/iscsitadm create target -t raw -b /dev/rdsk/c0t1d0p0 testtarget1
520|0 9 161337 1 9| iscsitadm: Error Failed to create target directory
520|0 9 161337 1 10|The current state of the test case is
520|0 9 161337 1 11|not PASS. Skipping the delete subcommand.
520|0 9 161337 1 12|This can be overridden by setting the
520|0 9 161337 1 13|environment variable iSCSI_NO_RESULT_CHK
520|0 9 161337 1 14|to TRUE
520|0 9 161337 1 15|The current state of the test case is
520|0 9 161337 1 16|not PASS. Skipping the create subcommand.
520|0 9 161337 1 17|This can be overridden by setting the
520|0 9 161337 1 18|environment variable iSCSI_NO_RESULT_CHK
520|0 9 161337 1 19|to TRUE
520|0 9 161337 1 20|The current state of the test case is
520|0 9 161337 1 21|not PASS. Skipping the delete subcommand.
520|0 9 161337 1 22|This can be overridden by setting the
520|0 9 161337 1 23|environment variable iSCSI_NO_RESULT_CHK
520|0 9 161337 1 24|to TRUE
520|0 9 161337 1 25|delete_all_targets
520|0 9 161337 1 26|The current state of the test case is
520|0 9 161337 1 27|not PASS. Skipping the modify subcommand.
520|0 9 161337 1 28|This can be overridden by setting the
520|0 9 161337 1 29|environment variable iSCSI_NO_RESULT_CHK
520|0 9 161337 1 30|to TRUE
220|0 9 1 09:32:49|FAIL
410|0 9 1 09:32:49|IC End
The first 3 failures:
tc_delete_iscsit8
tc_modify_iscsit3
tc_modify_iscsit1
occur reproducibly on sparc and i386.
This failure seems to be caused by modifying a target which has no ip address:
---------
PASS - IP address count 0 does equal IP address count 0
520|1 1 204860 1 16| - /usr/sbin/iscsitadm modify target -p 20 testtarget1
520|1 1 204860 1 17|FAIL - /usr/sbin/iscsitadm modify target -p 20 testtarget1
520|1 1 204860 1 18| iscsitadm: Error TPGT has no ip-addr
------
In each case, the command
"/usr/sbin/iscsitadm modify target -p 20 testtarget1"
fails.
There is also an extra new failure:
tc_create_iscsit9
occured twice on i386 but not on sparc. This testcase has been failing
intermittently since snv_56.
It appears that the target directory specified may not always
exist:
520|0 9 161337 1 5| - /usr/sbin/iscsitadm modify admin -d /var/tmp/iscsi_tests/iscsi_mp
520|0 9 161337 1 6| - /usr/sbin/iscsitadm show admin
520|0 9 161337 1 7| - /usr/sbin/iscsitadm create target -t raw -b /dev/rdsk/c0t1d0p0 testtarget1
520|0 9 161337 1 8|FAIL - /usr/sbin/iscsitadm create target -t raw -b /dev/rdsk/c0t1d0p0 testtarget1
520|0 9 161337 1 9| iscsitadm: Error Failed to create target directory
Perhaps the testsuite should check if the parent directory /var/tmp/iscsi_tests/
exists first?