1 #
2 # CDDL HEADER START
3 #
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21
22 #
23 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
25 #
26 # ident "@(#)README 1.9 09/09/17 SMI"
27 #
28
29 ******************************************************************************
30 * COMSTAR *
31 ******************************************************************************
32 DESCRIPTION:
33 ===========
34 The COMSTAR framework supports FC, FCoE, iSCSI, and iSER Target providers.
35
36 The test suite is mainly designed to test the functionality of framework,
37 FC, FCOE, iSCSI and iSER target provider. Although the operation of the
38 initiator is tested in the execution of the target tests.
39
40 The test hardware topology involves one Target host and one Initiator host, and
41 possibly switchs depending upon the individual target provider type. Due to the
42 hardware dependencies for each framework, it is unlikely that the entire suite
43 would be run on one configuration. See each specific framework section for
44 individual requirements.
45
46 The tests should be run from the target host.
47
48 PREREQUISITES:
49 =============
50 1. The Initiator Host requires that the following package(s) are
51 installed on the test host:
52 - SUNWstc-diskomizer
53
54 Please download the latest package at
55 http://dlc.sun.com/osol/test/downloads/current/
56
57 A good candidate package for the i386 plaform is
58 http://dlc.sun.com/osol/test/downloads/current/SUNWstc-diskomizer-YYYYMMDD.i386.tar.bz2
59
60 After downloading the package, as root do the following:
61 # gtar -jxvf SUNWstc-diskomizer-YYYYMMDD.i386.tar.bz2
62 # pkgadd -d packages/i386/ SUNWstc-diskomizer
63
64 The SUNWstc-diskomizer pkg must be installed in the default directory:
65 /opt/SUNWstc-diskomizer
66
67 2. The target Host requires that the following package(s) are
68 installed on the test host:
69 - SUNWstc-tetlite
70
71 Please download the latest package at
72 http://dlc.sun.com/osol/test/downloads/current/
73
74 A good candidate package for the i386 plaform is
75 http://dlc.sun.com/osol/test/downloads/current/SUNWstc-tetlite-YYYYMMDD.i386.tar.bz2
76
77 After downloading the package, as root do the following:
78 # gtar -jxvf SUNWstc-tetlite-YYYYMMDD.i386.tar.bz2
79 # pkgadd -d packages/i386/ SUNWstc-tetlite
80
81 It is also acceptable to use an NFS-accessible location of the tetlite
82 package.
83
84 3. The test suite can be installed locally to the test host for target provider
85 or accessed via nfs over the network from a server. To install the
86 test suite, as root do:
87
88 pkgadd -d <package location> SUNWstc-storage-comstar
89
90 Where <package location> is the path containing the SUNWstc-storage-comstar
91 package directory.
92
93 It is also acceptable to use an NFS accessible location of the test suite
94 package.
95
96 ALTERNATIVELY, the test suite source can be installed and built. To
97 build the test suite source, as any user, do:
98
99 $ export CTI_ROOT=/opt/SUNWstc-tetlite/contrib/ctitools
100 $ export PATH=$CTI_ROOT/bin:$PATH
101 $ export CC=/usr/bin/gcc (e.g C complier location)
102 $ cd /export/home/comstar (e.g suit source location)
103 $ /usr/ccs/bin/make
104
105 To install test suite binaries in the proto tree, do
106 $ /usr/ccs/bin/make install
107
108 To create installable test suite packages, do
109 $ /usr/ccs/bin/make package
110
111 4. The Initiator and Target hosts must be configured to accept rcp and
112 rsh calls from test hosts.
113
114 5. It's assumed that the following CONFIGURATION, and EXECUTION steps in
115 Comstar are performed in a single shell environment. If they are performed
116 in different shell environment, please set up CTI_ROOT and PATH for each
117 operation.
118
119 Please refer to the PREREQUISITES segment for each target type for the target
120 suite specific prerequisites.
121
122 CONFIGURATION:
123 =============
124 Please refer to the TEST SUITE CONFIGURATION segment for each target in each
125 individual target provider section.
126
127 EXECUTION:
128 =============
129 Please refer to the TEST SUITE EXECUTION segment for each target in each
130 individual target provider section.
131
132 ******************************************************************************
133 * FC TARGET *
134 ******************************************************************************
135
136 PREREQUISITES:
137 ============
138 1. The test configuration requires both a FC Initiator and FC Target host,
139 which are both connected to a Qlogic Switch. The FC Initiator Host will
140 be rebooted automatically during Fault Injection testing. The test
141 requires at least two FC ports on both the target and the initiator.
142
143 2. The FC Target Host must NOT have any existing LUs or related
144 configuration information such as target group, host group, view entry
145 or mapping association before test execution.
146
147 3. It is required that all other target providers be disabled prior to
148 test suite execution. For instance, the SMF services for
149 /network/iscsi/target, and /system/iscsitgt must be disabled.
150 Otherwise, unexpected test failures will result.
151
152 4. Operations on the systems under test, beyond the execution of the test
153 suite are prohibited during test suite execution. Any external LUN
154 operations could impact the test suite results.
155
156 5. For QLOGIC HBA, it's mandatory to switch into target mode manually
157 after an OS refresh installation. Please refer to the web page
158 on opensolaris.org for the procedure:
159 http://wikis.sun.com/display/OpenSolarisInfo/How+to+Configure+Fibre+Channel+Ports
160
161 Contact the HBA specific vendor or product team for target mode implications
162 as they become qualified and supported for Comstar.
163
164 TEST SUITE CONFIGURATION:
165 =========================
166 Test suite configuration must be done as root.
167
168 1. Set up the following environment variables
169 # CTI_ROOT=/opt/SUNWstc-tetlite/contrib/ctitools
170 # PATH=$CTI_ROOT/bin:$PATH
171
172 2. To configure the test suite :
173
174 # run_test \
175 -v FC_IHOST=<FC Initiator IP Addr> \
176 -v EXPECT=<EXPECT Script Parser Location> \
177 -v "BDEVS=\"<device list separated by spaces>\"" \
178 (Example: -v "BDEVS=\"/dev/dsk/c0t1d0s2 /dev/dsk/c0t2d0s2\"")
179 -v "RDEVS=\"<Raw device list separated by spaces>\"" \
180 (Example: -v "RDEVS=\"/dev/rdsk/c0t1d0s2 /dev/rdsk/c0t2d0s2\"")
181 -v FC_TARGET_SWITCH_PORT=<FC Switch Model:FC Switch IP:Admin:Passwd:Port1,Port2...> \
182 (Example: -v FC_TARGET_SWITCH_PORT=QLOGIC:127.0.0.1:admin:password:1,2)
183 comstar fc_configure
184
185 The configuration file will be created as a result of the arguments specified
186 in the run_test command line. Once the configuration operation has been
187 run successfully, you may check and/or correct the information in the
188 <test suite location>config/test_config file.
189
190 Other configurable variables that can be set in the configuration line :
191
192 FC_IHOST - [ fc initiator host ip address ] is required
193 - currently only supports one fc initiator host
194
195 EXPECT - [ Expect script parser location ] is optional
196 - defaults to /usr/bin/expect
197
198 BDEVS - [ block device list ] is required
199 - slice information is required
200 - the default configuration creates 8 1Gb LUNs
201 - this can only be changed in the configuration. Otherwise, this
202 is the minimum test suite requirment for the device size.
203
204 RDEVS - [ raw disk device list ] is required
205 - slice information is required
206 - the default configuration creates 8 1Gb LUNs
207 - this can only be changed in the configuration. Otherwise, this
208 is the minimum test suite requirment for the device size.
209
210 FC_TARGET_SWITCH_PORT
211 - [ fc target host topology in fabric switch ] is required
212 - QLOGIC and BROCADE fabric switches are supported
213 - for fault injection testing of target side cable pull
214
215 TEST SUITE EXECUTION :
216 ====================
217 The test suite execution is required to be done as root.
218
219 To run the entire test suite do the following.
220
221 # run_test comstar fc
222
223 To execute individual scenarios (sbdadm, stmfadm, misc, fcinfo, libstmf)
224
225 # run_test comstar <scenario>
226
227 # run_test comstar sbdadm
228
229 To execute Test Purposes within a scenario :
230
231 # run_test comstar sbdadm/<test case dir>:<test purpose number>
232
233 # run_test comstar sbdadm/create:1
234 # run_test comstar stmfadm/create:1-2
235 # run_test comstar fc/fault/forcelip:1,2
236
237 Test case directories are sbdadm, stmfadm, misc, fault, and libstmf
238
239 TEST SUITE UNCONFIGURE :
240 ======================
241
242 # run_test comstar fc_unconfigure
243
244 ******************************************************************************
245 * ISCSI TARGET *
246 ******************************************************************************
247
248 PREREQUISITES:
249 ============
250 1. Test configuration requires both a ISCSI Initiator and ISCSI Target host.
251
252 On both hosts, it is necessary to have an additional 2 NICs for test
253 transports. Hosts will have an on-board interface to house the host
254 IP address being used for rsh communication between the target and
255 initiator host. The other two NICs should be configured with IPs
256 under different subnets for physical multi-path.
257
258 The ISCSI Initiator host will be rebooted automatically during
259 Fault Injection testing.
260
261 2. The iSCSI Target Host should NOT have any existing LUs or related
262 configuration information such as target group, host group, view
263 entry or mapping association before test execution.
264
265 3. It is required that all other target providers be disabled prior to
266 test suite execution. For instance, the SMF services for
267 /system/iscsitgt must be disabled. Otherwise, unexpected test
268 failures will result.
269
270 4. Operations on the systems under test, beyond the execution of the test
271 suite are prohibited during test suite execution. Any external LUN
272 operations could impact the test suite results.
273
274 TEST SUITE CONFIGURATION :
275 ========================
276 Test suite configuration must be done as root.
277
278 1. Set up the following environment variables
279 # CTI_ROOT=/opt/SUNWstc-tetlite/contrib/ctitools
280 # PATH=$CTI_ROOT/bin:$PATH
281
282 2. To configure the test suite :
283
284 # run_test \
285 -v TRANSPORT=SOCKETS
286 -v EXPECT=<EXPECT Script Parser Location>
287 -v ISCSI_THOST=<ISCSI Target IP Addr> \
288 -v ISCSI_IHOST=<ISCSI Initiator IP Addr> \
289 -v ISNS_HOST=<ISNS Target IP Addr> \
290 -v "BDEVS=\"<device list separated by space>\"" \
291 (Example: -v "BDEVS=\"/dev/dsk/c0t1d0s2 /dev/dsk/c0t2d0s2\"")
292 -v "RDEVS=\"<Raw device list separated by space>\"" \
293 (Example: -v "RDEVS=\"/dev/rdsk/c0t1d0s2 /dev/rdsk/c0t2d0s2\"")
294 comstar iscsi_configure
295
296 The configuration file will be created as a result of the arguments specified
297 in the run_test command line. Once the configuration operation has been
298 run successfully, you may check and/or correct the information in the
299 <test suite location>config/test_config file.
300
301 Other configurable variables that can be set in the configuration line :
302
303 TRANSPORT - [ SOCKETS or ALL transport can be specified ]
304 - SOCKETS transport goes through only the ethernet interfaces
305 - ALL transport goes through all the networking interfaces
306
307 EXPECT - [ Expect script parser location ] is optional
308 - default is /usr/bin/expect
309
310 ISCSI_THOST - [ iscsi target host ip address ] is required
311 - only supports one target initiator host nowadays
312
313 ISCSI_IHOST - [ iscsi initiator host ip address ] is required
314 - only supports one iscsi initiator host nowadays
315
316 ISNS_HOST - [ isns server host ip address ] is required
317
318 BDEVS - [ block disk device list ] is required
319 - slice information is required
320 - the default configuration creates 8 1Gb LUNs
321 - this can only be changed in the configuration. Otherwise, this
322 is the minimum test suite requirment for the device size.
323
324 RDEVS - [ raw disk device list ] is required
325 - slice information is required
326 - the default configuration creates 8 1Gb LUNs
327 - this can only be changed in the configuration. Otherwise, this
328 is the minimum test suite requirment for the device size.
329
330 ISCSI_TARGET_SWITCH_PORT
331 - [ ethernet interface topology on switch ] is currently
332 unsupported
333 - switch cable pull is unsupported currently
334
335 RADIUS_HOST - [ radius server host ip address ] is optional
336 - radius authentication feature is currently unsupported
337 - RADIUS_HOST defaults to ISCSI_IHOST implicitly for
338 itadm utility testing
339
340 TEST SUITE EXECUTION :
341 ====================
342 The test suite execution is required to be run as root.
343
344 After the configuration step, to run the entire test suite do the following.
345
346 # run_test comstar iscsi
347
348 To execute individual scenarios (itadm, iscsi_auth, iscsi_discovery, iscsi_io,
349 iscsi_fs, iscsi_smf, iscsi_visible)
350
351 # run_test comstar <scenario>
352
353 # run_test comstar itadm
354
355 To execute Test Purposes within a scenario :
356
357 # run_test comstar iscsi/<test case dir>:<test purpose number>
358
359 # run_test comstar iscsi/auth:1
360 # run_test comstar iscsi/auth:1-2
361 # run_test comstar iscsi/auth:1,2
362
363 Test case directories are iscsi,itadm
364
365 TEST SUITE UNCONFIGURE :
366 ======================
367
368 # run_test comstar iscsi_unconfigure
369
370
371 ******************************************************************************
372 * ISER TARGET *
373 ******************************************************************************
374
375 The ISER tests are currently the same set as the iscsi, and it's the
376 installation of the IB equipment and configuration of the interfaces that
377 load the IB modules and exercise that code.
378
379 PREREQUISITES:
380 ============
381 1. Test configuration requires both ISER Initiator and ISER Target hosts.
382
383 On both hosts, it is necessary to have an additional 2 IB HCAs for test
384 transports. Hosts will have an on-board interface to house the host
385 IP address being used for rsh communication between the target and
386 initiator host. The other two IB HCAs should be configured with IPs
387 under different subnets for physical multi-path. It is acceptable to
388 have one IB interface, and a additional sockets interface configured to
389 satisfy the additional 2 transport requirement. Or you can utilize 2
390 socket addresses to test iSER in sockets mode.
391
392 The ISER Initiator host will be rebooted automatically during
393 Fault Injection testing.
394
395 2. ISER Target Host should NOT have any existing LUs and related
396 configuration information such as target group, host group, view
397 entry and mapping association before test execution.
398
399 3. It is required that all other target providers be disabled prior to
400 test suite execution. For instance, the SMF services for
401 /system/iscsitgt must be disabled. Otherwise, unexpected test
402 failures will result.
403
404 4. Operations on the systems under test, beyond the execution of the test
405 suite are prohibited during test suite execution. Any external LUN
406 operations could impact the test suite results.
407
408 TEST SUITE CONFIGURATION :
409 ========================
410 Test suite configuration must be done as root.
411
412 1. Set up the following environment variables
413 # CTI_ROOT=/opt/SUNWstc-tetlite/contrib/ctitools
414 # PATH=$CTI_ROOT/bin:$PATH
415
416 2. To configure the test suite :
417
418 # run_test \
419 -v TRANSPORT=ISER
420 -v EXPECT=<EXPECT Script Parser Location>
421 -v ISCSI_THOST=<ISCSI Target IP Addr> \
422 -v ISCSI_IHOST=<ISCSI Initiator IP Addr> \
423 -v ISNS_HOST=<ISNS Target IP Addr> \
424 -v "BDEVS=\"<Block device list separated by spaces>\"" \
425 (Example: -v "BDEVS=\"/dev/dsk/c0t1d0s2 /dev/dsk/c0t2d0s2\"")
426 -v "RDEVS=\"<Raw device list separated by spaces>\"" \
427 (Example: -v "RDEVS=\"/dev/rdsk/c0t1d0s2 /dev/rdsk/c0t2d0s2\"")
428 -v ISER_TARGET_SWITCH_PORT=<IB Switch Model:IB Switch IP Addr:Admin:Passwd:Port1,Port2...> \
429 (Example for TOPSPIN 120:
430 -v ISER_TARGET_SWITCH_PORT=TOPSPIN:127.0.0.1:admin:admin:1,2)
431 (Example for TOPSPIN 360:
432 -v ISER_TARGET_SWITCH_PORT=TOPSPIN:127.0.0.1:admin:admin:16/1,16/2)
433 comstar iscsi_configure
434
435 The configuration file will be created as a result of the arguments specified
436 in the run_test command line. Once the configuration operation has been
437 run successfully, you may check and/or correct the information in the
438 <test suite location>config/test_config file.
439
440 Other configurable variables that can be set in the configuration line:
441
442 TRANSPORT - [ ISER, SOCKETS or ALL transport can be specified ]
443 - SOCKETS transport goes through only the ethernet interfaces
444 - ISER transport goes through only the infiniband interfaces
445 - ALL transport goes through all the networking interfaces
446
447 EXPECT - [ Expect script parser location ] is optional
448 - default is /usr/bin/expect
449
450 ISCSI_THOST - [ iscsi target host ip address ] is required
451 - the suite currently only supports one initiator host
452
453 ISCSI_IHOST - [ iscsi initiator host ip address ] is required
454 - the suite currently only supports one initiator host
455
456 ISNS_HOST - [ isns server host ip address ] is required
457
458 BDEVS - [ block device list ] is required
459 - slice information is required
460 - the default configuration creates 8 1Gb LUNs
461 - this can only be changed in the configuration. Otherwise, this
462 is the minimum test suite requirment for the device size.
463
464 RDEVS - [ raw device list ] is required
465 - slice information is required
466 - the default configuration creates 8 1Gb LUNs
467 - this can only be changed in the configuration. Otherwise, this
468 is the minimum test suite requirment for the device size.
469
470
471 ISER_TARGET_SWITCH_PORT
472 - [ infiniband interface topology on switch ] is optional
473 - only supports TOPSPIN infiniband switch nowadays
474
475 RADIUS_HOST - [ radius server host ip address ] is optional
476 - radius authentication feature is currently unsupported
477 - RADIUS_HOST defaults to ISCSI_IHOST implicitly for
478 itadm utility testing
479
480 TEST SUITE EXECUTION :
481 ====================
482 The test suite execution is required to be run as root.
483
484 To run the entire test suite do the following.
485
486 # run_test comstar iscsi
487
488 To execute individual scenarios (itadm iscsi_auth iscsi_discovery iscsi_io
489 iscsi_fs iscsi_smf iscsi_visible)
490
491 # run_test comstar <scenario>
492
493 # run_test comstar itadm
494
495 To execute Test Purposes within a scenario :
496
497 # run_test comstar iscsi/<test case dir>:<test purpose number>
498
499 # run_test comstar iscsi/auth:1
500 # run_test comstar iscsi/auth:1-2
501 # run_test comstar iscsi/auth:1,2
502
503 Test case directories are iscsi,itadm
504
505 TEST SUITE UNCONFIGURE :
506 ======================
507
508 # run_test comstar iscsi_unconfigure
509
510 ******************************************************************************
511 * FCOE TARGET *
512 ******************************************************************************
513
514 PREREQUISITES:
515 ============
516 1. The test configuration requires both a FC Initiator and FCoE Target hosts,
517 which are both connected to a CISCO NEXUS Switch. The FC Initiator Host
518 will be rebooted automatically during Fault Injection testing.
519
520 2. The FCoE Target Host should NOT have any existing LUs and related
521 configuration information such as target group, host group, view entry
522 and mapping association before test execution.
523
524 3. It is required that all other target providers be disabled prior to
525 test suite execution. For instance, the SMF services for
526 /network/iscsi/target, and /system/iscsitgt must be disabled.
527 Otherwise, unexpected test failures will result.
528
529 4. Operations on the systems under test, beyond the execution of the test
530 suite are prohibited during test suite execution. Any external LUN
531 operations could impact the test suite results.
532
533 5. The FCoE target project is integrated into Solaris Nevada snv_112,
534 FCoE Target Host has to be upgraded to snv_112 or above.
535
536 TEST SUITE CONFIGURATION:
537 =========================
538 Test suite configuration must be done as root.
539
540 1. Set up the following environment variables
541 # CTI_ROOT=/opt/SUNWstc-tetlite/contrib/ctitools
542 # PATH=$CTI_ROOT/bin:$PATH
543
544 2. To configure the test suite :
545
546 # run_test \
547 -v FC_IHOST=<FC Initiator IP Addr> \
548 -v EXPECT=<EXPECT Script Parser Location> \
549 -v "BDEVS=\"<Block device list separated by spaces>\"" \
550 (Example: -v "BDEVS=\"/dev/dsk/c0t1d0s2 /dev/dsk/c0t2d0s2\"")
551 -v "RDEVS=\"<Raw device list separated by spaces>\"" \
552 (Example: -v "RDEVS=\"/dev/rdsk/c0t1d0s2 /dev/rdsk/c0t2d0s2\"")
553 -v FC_TARGET_SWITCH_PORT=<FCoE Switch Model:FCoE Switch IP:Admin:Passwd:Port1,Port2...> \
554 (Example: -v FC_TARGET_SWITCH_PORT=NEXUS:127.0.0.1:admin:password:1,2)
555 comstar fcoe_configure
556
557 The configuration file will be created as a result of the arguments specified
558 in the run_test command line. There is no need to manually edit the
559 configuration file as is required by some of the other test suites.
560
561 Other configurable variables that can be set in the configuration line :
562
563 FC_IHOST - [ fc initiator host ip address ] is required
564 - currently only supports one fc initiator host
565
566 EXPECT - [ Expect script parser location ] is optional
567 - defaults to /usr/bin/expect
568
569 BDEVS - [ block device list ] is required
570 - slice information is required
571 - the default configuration creates 8 1Gb LUNs
572 - this can only be changed in the configuration. Otherwise, this
573 is the minimum test suite requirment for the device size.
574
575 RDEVS - [ raw device list ] is required
576 - slice information is required
577 - the default configuration creates 8 1Gb LUNs
578 - this can only be changed in the configuration. Otherwise, this
579 is the minimum test suite requirment for the device size.
580
581 FC_TARGET_SWITCH_PORT
582 - [ FCoE target host topology in fabric switch ] is required
583 - CISCO NEXUS switches are supported
584 - For fault injection testing of target side cable pull
585
586 TEST SUITE EXECUTION :
587 ====================
588 The test suite execution is required to be run as root.
589
590 To run the entire test suite do the following.
591
592 # run_test comstar fcoe
593
594 To execute individual scenarios (sbdadm stmfadm misc fcinfo libstmf)
595
596 # run_test comstar <scenario>
597
598 # run_test comstar fcoe/visible
599
600 To execute Test Purposes within a scenario :
601
602 # run_test comstar fcoe/<test case dir>:<test purpose number>
603
604 # run_test comstar fcoe/fcadm/create:1
605 # run_test comstar fcoe/fcadm/create:1-2
606 # run_test comstar fcoe/fault/forcelip:1,2
607
608 Test case directories are fcoe
609
610 TEST SUITE UNCONFIGURE :
611 ======================
612
613 # run_test comstar fcoe_unconfigure
614
615