Beispiel #1
0
def Initialize():
    global DEBUGON, logfile
    'Initialize the directories (remove and extract)'
    #
    o2tf.printlog('Cleaning up directories.', logfile, 0, '')
    o2tf.OpenMPIInit(DEBUGON, options.nodelist, logfile, 'ssh')
    o2tf.openmpi_run(DEBUGON, nproc, str('%s -c -d %s -l %s' % \
      (buildcmd,
      options.dirlist,
      options.logfile) ),
      options.nodelist,
      'ssh',
      options.interface,
      options.logfile,
      'WAIT')
    #
    o2tf.printlog('Extracting tar file into directories.', logfile, 0, '')
    o2tf.openmpi_run(DEBUGON, nproc, str('%s -e -d %s -l %s -t %s' % \
      (buildcmd,
      options.dirlist,
      options.logfile,
      tarfile) ),
      options.nodelist,
      'ssh',
      options.interface,
      options.logfile,
      'WAIT')
    o2tf.printlog('Directories initialization completed.', logfile, 0, '')
Beispiel #2
0
def Initialize():
	global DEBUGON, logfile
	'Initialize the directories (remove and extract)'
#
	o2tf.printlog('Cleaning up directories.', logfile, 0, '')
	o2tf.OpenMPIInit(DEBUGON, options.nodelist, logfile, 'ssh')
	o2tf.openmpi_run(DEBUGON, nproc, str('%s -c -d %s -l %s' % \
			(buildcmd, 
			options.dirlist, 
			options.logfile) ),
			options.nodelist, 
			'ssh',
			options.interface,
			options.logfile,
			'WAIT')
#
	o2tf.printlog('Extracting tar file into directories.', logfile, 0, '')
	o2tf.openmpi_run(DEBUGON, nproc, str('%s -e -d %s -l %s -t %s' % \
			(buildcmd, 
			options.dirlist, 
			options.logfile,
			tarfile) ),
			options.nodelist, 
			'ssh',
			options.interface,
			options.logfile,
			'WAIT')
	o2tf.printlog('Directories initialization completed.', logfile, 0, '')
o2tf.OpenMPIInit(DEBUGON, ','.join(nodelist), logfile, 'ssh')
for y in range(count):
    o2tf.printlog('cross-delete: RUN# %s of %s' % (y + 1, count), logfile, 3,
                  '=')
    BuildCrList(nodelist, nodelen, dirlist, dirlen)
    BuildDelList(nodelist, dirlist)
    #
    if DEBUGON:
        cmdline = os.path.join(config.BINDIR, 'crdel_gen_files.py -D')
    else:
        cmdline = os.path.join(config.BINDIR, 'crdel_gen_files.py')
    ret = o2tf.openmpi_run( DEBUGON, nproc, str('%s -s %s -l %s -t %s' % \
     (cmdline, stagedir,
     options.logfile,
     tarfile) ),
     ','.join(nodelist),
     'ssh',
     options.interface,
     logfile,
     'WAIT')
    if not ret:
        o2tf.printlog('cross_delete: RUN# %s extraction successful.'\
         % (y+1), logfile, 0, '')
    else:
        o2tf.printlog('cross_delete: RUN# %s extraction failed.' \
         % (y+1), logfile, 0, '')
        Cleanup(1)
    if DEBUGON:
        cmdline = os.path.join(config.BINDIR, 'crdel_del_files.py -D')
    else:
        cmdline = os.path.join(config.BINDIR, 'crdel_del_files.py')
Beispiel #4
0
        else:
            nodelist = options.nodelist.split(',')
            procs = len(nodelist)
    else:
        parser.error('Please specify list of nodes to run the test.')

#
from os import access, W_OK

if DEBUGON:
    o2tf.printlog('%s: main - dlmfs = %s' % (pgm, dlmfs), logfile, 0, '')
    o2tf.printlog('%s: main - count = %s' % (pgm, count), logfile, 0, '')
    o2tf.printlog('%s: main - hbdev = %s' % (pgm, hbdev), logfile, 0, '')
    o2tf.printlog('%s: main - interface = %s' % (pgm, interface), logfile, 0,
                  '')
    o2tf.printlog('%s: main - logfile = %s' % (pgm, logfile), logfile, 0, '')
    o2tf.printlog('%s: main - nodelist = %s' % (pgm, nodelist), logfile, 0, '')
#
o2tf.OpenMPIInit(DEBUGON, options.nodelist, logfile, 'ssh')
#
ret = o2tf.openmpi_run(
    DEBUGON, procs,
    str('%s -d %s %s -i %s %s %s 2>&1 | tee -a %s' %
        (cmd, dlmfs, hbdev, count, domain, lockname, options.logfile)),
    options.nodelist, 'ssh', options.interface, options.logfile, 'WAIT')
if not ret:
    o2tf.printlog('run_lvb_torture: execution successful.', logfile, 0, '')
else:
    o2tf.printlog('run_lvb_torture: execution failed.', logfile, 0, '')
    sys.exit(1)
    if options.nodelist:
        nodelist = options.nodelist.split(',')
        nodelen = len(nodelist)
        procs = nodelen
        if nodelen == 1:
            nodelist = nodelist.append(options.nodelist)
        else:
            nodelist = options.nodelist.split(',')
    else:
        if not options.cleanup:
            parser.error('Invalid node list.')

if DEBUGON:
    o2tf.printlog(
        'quota_multi_test: main - current directory %s' % os.getcwd(), logfile,
        0, '')
    o2tf.printlog('quota_multi_test: main - cmd = %s' % cmd, logfile, 0, '')
#
o2tf.OpenMPIInit(DEBUGON, options.nodelist, logfile, 'rsh')
#
ret = o2tf.openmpi_run(
    DEBUGON, procs,
    str('%s %s %s %s %s %s 2>&1 | tee -a %s' %
        (cmd, iter_arg, user_arg, group_arg, device_arg, mountpoint_arg,
         logfile)), options.nodelist, 'rsh', logfile, 'WAIT')
#
if not ret:
    o2tf.printlog('quota_multi_test: main - execution successful.', logfile, 0,
                  '')
Beispiel #6
0
        logfile = options.logfile
    if options.interface:
        interface = options.interface
    count = options.count
    filename = options.filename
    if options.nodelist:
        nodelist = options.nodelist.split(',')
        numnodes = len(nodelist)

#
if numnodes < 2:
    o2tf.printlog(
        'open_delete: Must provide at least 2 nodes to \
		run the test.', logfile, 0, '')
    parser.print_help()
    sys.exit(1)
#
o2tf.OpenMPIInit(DEBUGON, options.nodelist, logfile, 'ssh')
command = os.path.join(config.BINDIR, EXECPGM)
if DEBUGON:
    o2tf.printlog('command = %s' % command, logfile, 0, '')
ret = o2tf.openmpi_run(DEBUGON, 'C',
                       str('%s -i %s %s' % (command, options.count, filename)),
                       options.nodelist, 'ssh', interface, options.logfile,
                       'WAIT')
if not ret:
    o2tf.printlog('open_delete: execution successful.', logfile, 0, '')
else:
    o2tf.printlog('open_delete: execution failed.', logfile, 0, '')
    sys.exit(1)
Beispiel #7
0
        nodelen = len(tmplist)
        if nodelen == 1:
            options.nodelist = tmplist[0] + "," + tmplist[0]
        else:
            options.nodelist = tmplist[0] + "," + tmplist[1]
    else:
        if not options.cleanup:
            parser.error('Invalid node list.')

    if options.interface:
        interface = options.interface

if DEBUGON:
    o2tf.printlog('flock_unit_test: main - current directory %s' % os.getcwd(),
                  logfile, 0, '')
    o2tf.printlog('flock_unit_test: main - cmd = %s' % cmd, logfile, 0, '')
#
o2tf.OpenMPIInit(DEBUGON, options.nodelist, logfile, 'ssh')
#
ret = o2tf.openmpi_run(
    DEBUGON, procs,
    str('%s %s %s %s 2>&1 >> %s' %
        (cmd, type_arg, file1_arg, file2_arg, logfile)), options.nodelist,
    'ssh', interface, logfile, 'WAIT')
#
if not ret:
    o2tf.printlog('flock_unit_test: main - execution successful.', logfile, 0,
                  '')

sys.exit(ret)
Beispiel #8
0
        nodelen = len(nodelist)
        procs = nodelen
        if nodelen == 1:
            nodelist = nodelist.append(options.nodelist)
        else:
            nodelist = options.nodelist.split(',')
    else:
        if not options.cleanup:
            parser.error('Invalid node list.')

if DEBUGON:
    o2tf.printlog('run_multi_mmap: main - current directory %s' % os.getcwd(),
                  logfile, 0, '')
    o2tf.printlog('run_multi_mmap: main - cmd = %s' % cmd, logfile, 0, '')
#
if options.cleanup:
    Cleanup()
o2tf.OpenMPIInit(DEBUGON, options.nodelist, logfile, 'ssh')
#
ret = o2tf.openmpi_run(
    DEBUGON, procs,
    str('%s %s %s %s %s %s %s %s %s %s 2>&1 | tee -a %s' %
        (cmd, truncate_arg, cache_arg, reader_arg, writer_arg, blocksize_arg,
         hole_arg, iterations_arg, error_arg, filename_arg, logfile)),
    options.nodelist, 'ssh', interface, logfile, 'WAIT')
#
if not ret:
    o2tf.printlog('run_multi_mmap: main - execution successful.', logfile, 0,
                  '')
Cleanup()
Beispiel #9
0
		os.getcwd(), logfile, 0, '')
	o2tf.printlog('run_multi_mmap: main - cmd = %s' % cmd,
		logfile, 0, '')
#
if options.cleanup:
	Cleanup(0)
o2tf.OpenMPIInit(DEBUGON, options.nodelist, logfile, 'ssh')
#
ret = o2tf.openmpi_run(DEBUGON, procs, 
	str('%s %s %s %s %s %s %s %s %s %s 2>&1 >> %s' % (cmd,
	truncate_arg,
	cache_arg, 
	reader_arg,
	writer_arg,
	blocksize_arg,
	hole_arg,
	iterations_arg,
	error_arg,
	filename_arg,
	logfile)), 
	options.nodelist, 
	'ssh',
	interface,
	logfile,
	'WAIT')
#
if not ret:
	o2tf.printlog('run_multi_mmap: main - execution successful.',
		logfile, 0, '')
Cleanup(ret)
Beispiel #10
0
#
    if options.procs:
        procs = options.procs
#
    if options.sleep:
        sleep = options.sleep
#
cmd = config.BINDIR + '/forkwriter'
#
if DEBUGON:
    o2tf.printlog('run_forkwriter: main - cmd = %s' % cmd, logfile, 0, '')
#
o2tf.OpenMPIInit(DEBUGON, options.nodelist, logfile, 'ssh')
#
for z in range(options.count):
    o2tf.printlog(
        'run_forkwriter: Running test# %s of %s' % (z, options.count), logfile,
        0, '')
    ret = o2tf.openmpi_run(
        DEBUGON, options.procs,
        str('%s %s %s %s %s' % (cmd, options.filename, options.count,
                                options.procs, options.sleep)),
        options.nodelist, 'ssh', options.logfile, 'WAIT')
    if not ret:
        o2tf.printlog('run_forkwriter: RUN# %s execution successful.' \
        % z, logfile, 0, '')
    else:
        o2tf.printlog('run_forkwriter: RUN# %s execution failed.' % z, logfile,
                      0, '')
        sys.exit(1)
Beispiel #11
0
                      '')
#
# first. Start MPI
if not Client:
    o2tf.OpenMPIInit(DEBUGON, ','.join(nodelist), logfile, 'ssh')

    if DEBUGON:
        cmdline = os.path.join(config.BINDIR, 'recovery_load.py -D')
    else:
        cmdline = os.path.join(config.BINDIR, 'recovery_load.py')
# Extract the tar file
    ret = o2tf.openmpi_run( DEBUGON, nproc,
     str('%s -e -d %s -l %s -n %s -t %s' % \
     (cmdline, options.directory,
     options.logfile,
     options.nodes, tarfile) ),
     ','.join(nodelist),
     'ssh',
     options.interface,
     logfile,
     'WAIT')
    if not ret:
        o2tf.printlog('recovery_load: extraction successful.', logfile, 0, '')
    else:
        o2tf.printlog('recovery_load: extraction failed.', logfile, 0, '')
        Cleanup(1)
# run the find command
    raw_input('Extraction completed. Press ENTER to continue.')
    ret = o2tf.openmpi_run( DEBUGON, nproc,
     str('%s -f -d %s -l %s -n %s' % \
     (cmdline, options.directory,
     options.logfile,
Beispiel #12
0
			logfile, 0, '')
#
# first. Start MPI
if not Client:
	o2tf.OpenMPIInit(DEBUGON, ','.join(nodelist), logfile, 'ssh')

	if DEBUGON:
		cmdline = os.path.join(config.BINDIR, 'recovery_load.py -D')
	else:
		cmdline = os.path.join(config.BINDIR, 'recovery_load.py')
# Extract the tar file
	ret = o2tf.openmpi_run( DEBUGON, nproc, 
		str('%s -e -d %s -l %s -n %s -t %s' % \
		(cmdline, options.directory,
		options.logfile,
		options.nodes, tarfile) ),
		','.join(nodelist),
		'ssh',
		options.interface,
		logfile,
		'WAIT')
	if not ret:
		o2tf.printlog('recovery_load: extraction successful.',
			logfile, 0, '')
	else:
		o2tf.printlog('recovery_load: extraction failed.',
			logfile, 0, '')
		Cleanup(1)
# run the find command
	raw_input('Extraction completed. Press ENTER to continue.')
	ret = o2tf.openmpi_run( DEBUGON, nproc, 
		str('%s -f -d %s -l %s -n %s' % \
			nodelist = options.nodelist.split(',')
	else:
		if not options.cleanup:
			parser.error('Invalid node list.')

if DEBUGON:
	o2tf.printlog('write_append_truncate: main - current directory %s' % 
		os.getcwd(), logfile, 0, '')
	o2tf.printlog('write_append_truncate: main - cmd = %s' % cmd,
		logfile, 0, '')
#
if options.cleanup:
	Cleanup(0)
o2tf.OpenMPIInit(DEBUGON, options.nodelist, logfile, 'ssh')
#
ret = o2tf.openmpi_run(DEBUGON, procs, 
	str('%s %s %s 2>&1 >> %s' % (cmd,
	filename,
	nloops,
	logfile)), 
	options.nodelist, 
	'ssh',
	interface,
	logfile,
	'WAIT')
#
if not ret:
	o2tf.printlog('write_append_truncate: main - execution successful.',
		logfile, 0, '')
Cleanup(ret)
    cmd = os.path.join(config.BINDIR, 'write_torture.py -u')
else:
    cmd = os.path.join(config.BINDIR, 'write_torture.py')
#
if DEBUGON:
    o2tf.printlog(
        'run_write_torture: main - current directory %s' % os.getcwd(),
        logfile, 0, '')
    o2tf.printlog('run_write_torture: main - cmd = %s' % cmd, logfile, 0, '')
    o2tf.printlog(
        'run_write_torture: main - blocksize = %s' % options.blocksize,
        logfile, 0, '')
#
for z in range(options.count):
    o2tf.printlog('run_write_torture: Running test# %s' % z, logfile, 0, '')
    #
    o2tf.OpenMPIInit(DEBUGON, options.nodelist, logfile, 'ssh')
    ret = o2tf.openmpi_run(
        DEBUGON, options.procs,
        str('%s -b %s -l %s -s %s -f %s' %
            (cmd, options.blocksize, options.logfile, options.seconds,
             os.path.join(options.directory, filename))), options.nodelist,
        'ssh', options.interface, options.logfile, 'WAIT')
    if not ret:
        o2tf.printlog('run_write_torture: main - execution successful.',
                      logfile, 0, '')
    else:
        o2tf.printlog('run_write_torture: main - execution failed.', logfile,
                      0, '')
        sys.exit(1)
        else:
            parser.error('Invalid option. Choose ssh or rsh')
#
    nodelist = options.nodelist.split(',')
    nodelen = len(nodelist)
    if nodelen == 1:
        nodelist = nodelist.append(options.nodelist)
    else:
        nodelist = options.nodelist.split(',')

    nproc = nodelen
#
if DEBUGON:
    buildcmd = config.BINDIR + '/command.py --Debug --mount'
else:
    buildcmd = config.BINDIR + '/command.py --mount'
#
command = str('%s -l %s -m %s %s' %
              (buildcmd, options.label, options.mountpoint, mt_options))
#
o2tf.OpenMPIInit(DEBUGON, options.nodelist, logfile, 'ssh')
#
#
ret = o2tf.openmpi_run(DEBUGON, nproc, str('%s' % command), options.nodelist,
                       remote_method, options.interface, logfile, 'WAIT')

if ret:
    sys.exit(1)
else:
    sys.exit(0)
Beispiel #16
0
   o2tf.printlog('run_buildkernel: buildcmd = (%s)' % buildcmd, logfile, 0, '')
#
if options.initialize:
	Initialize()
elif not options.nocheckdirs:
	CheckDirs(options.nodelist, options.dirlist)
#
for i in range(options.count):
	r = i+1
	o2tf.printlog('run_buildkernel: Starting RUN# %s of %s' % (r, options.count),
		logfile, 3, '=')
	o2tf.OpenMPIInit(DEBUGON, options.nodelist, logfile, 'ssh')
	ret = o2tf.openmpi_run(DEBUGON, nproc, str('%s -d %s -l %s -n %s' % \
			(buildcmd, 
			options.dirlist, 
			options.logfile, 
			options.nodelist) ), 
			options.nodelist, 
			'ssh',
			options.interface,
			options.logfile,
			'WAIT' )
if not ret:
	o2tf.printlog('run_buildkernel: main - execution successful.',
		logfile, 0, '')
	sys.exit(0)
else:
	o2tf.printlog('run_buildkernel: main - execution failed.',
		logfile, 0, '')
	sys.exit(1)
			parser.error('Invalid node list.')

	if options.interface:
		interface = options.interface

if DEBUGON:
	o2tf.printlog('flock_unit_test: main - current directory %s' % 
		os.getcwd(), logfile, 0, '')
	o2tf.printlog('flock_unit_test: main - cmd = %s' % cmd,
		logfile, 0, '')
#
o2tf.OpenMPIInit(DEBUGON, options.nodelist, logfile, 'ssh')
#
ret = o2tf.openmpi_run(DEBUGON, procs, 
	str('%s %s %s %s 2>&1 >> %s' % (cmd,
	type_arg,
	file1_arg,
	file2_arg,
	logfile)), 
	options.nodelist, 
	'ssh',
	interface,
	logfile,
	'WAIT')
#
if not ret:
	o2tf.printlog('flock_unit_test: main - execution successful.',
		logfile, 0, '')

sys.exit(ret)
Beispiel #18
0
#
if numnodes < 2:
	o2tf.printlog('open_delete: Must provide at least 2 nodes to \
		run the test.', logfile, 0, '')
	parser.print_help()
	sys.exit(1)
#
o2tf.OpenMPIInit(DEBUGON, options.nodelist, logfile, 'ssh')
command=os.path.join(config.BINDIR, EXECPGM)
if DEBUGON:
	o2tf.printlog('command = %s' % command, 
	logfile, 0, '')
ret = o2tf.openmpi_run(DEBUGON, 
	'C', 
	str('%s -i %s %s' % 
	(command, 
	options.count, 
	filename) ),
	options.nodelist, 
	'ssh',
	interface,
	options.logfile,
	'WAIT')
if not ret:
	o2tf.printlog('open_delete: execution successful.',
		logfile, 0, '')
else:
	o2tf.printlog('open_delete: execution failed.',
		logfile, 0, '')
	sys.exit(1)
Beispiel #19
0
                  '')
#
if options.initialize:
    Initialize()
elif not options.nocheckdirs:
    CheckDirs(options.nodelist, options.dirlist)
#
for i in range(options.count):
    r = i + 1
    o2tf.printlog(
        'run_buildkernel: Starting RUN# %s of %s' % (r, options.count),
        logfile, 3, '=')
    o2tf.OpenMPIInit(DEBUGON, options.nodelist, logfile, 'ssh')
    ret = o2tf.openmpi_run(DEBUGON, nproc, str('%s -d %s -l %s -n %s' % \
      (buildcmd,
      options.dirlist,
      options.logfile,
      options.nodelist) ),
      options.nodelist,
      'ssh',
      options.interface,
      options.logfile,
      'WAIT' )
if not ret:
    o2tf.printlog('run_buildkernel: main - execution successful.', logfile, 0,
                  '')
    sys.exit(0)
else:
    o2tf.printlog('run_buildkernel: main - execution failed.', logfile, 0, '')
    sys.exit(1)
Beispiel #20
0
		path = options.path
	else:
		parser.error('Invalid path.')
	interface = options.interface
#
if DEBUGON:
	o2tf.printlog('run_create_racer: main - current directory %s' % 
		os.getcwd(), logfile, 0, '')
	o2tf.printlog('run_create_racer: main - cmd = %s' % cmd,
		logfile, 0, '')
#
if options.cleanup:
	Cleanup()
o2tf.OpenMPIInit(DEBUGON, options.nodelist, logfile, 'ssh')
#
ret = o2tf.openmpi_run(DEBUGON, procs, 
	str('%s -i %s %s 2>&1 | tee -a %s' % (cmd, 
	options.count, 
	options.path, 
	options.logfile)), 
	options.nodelist, 
	'ssh',
	options.interface,
	options.logfile,
	'WAIT')
#
if not ret:
	o2tf.printlog('run_create_racer: main - execution successful.',
		logfile, 0, '')
Cleanup()
Beispiel #21
0
		nodelist = options.nodelist.split(',')

	nproc = nodelen
#
if DEBUGON:
	buildcmd=config.BINDIR+'/command.py --Debug --mount'
else:
	buildcmd=config.BINDIR+'/command.py --mount'
#
command = str('%s -l %s -m %s %s' % (buildcmd,
	options.label,
	options.mountpoint,
	mt_options))
#
o2tf.OpenMPIInit(DEBUGON, options.nodelist, logfile, 'ssh')
#
#
ret = o2tf.openmpi_run(DEBUGON,
		 nproc,
		 str('%s' % command),
		 options.nodelist,
		 remote_method,
		 options.interface,
		 logfile,
		 'WAIT')

if ret:
	sys.exit(1)
else:
	sys.exit(0)
        if nodelen == 1:
            nodelist = nodelist.append(options.nodelist)
        else:
            nodelist = options.nodelist.split(",")
    else:
        if not options.cleanup:
            parser.error("Invalid node list.")

if DEBUGON:
    o2tf.printlog("write_append_truncate: main - current directory %s" % os.getcwd(), logfile, 0, "")
    o2tf.printlog("write_append_truncate: main - cmd = %s" % cmd, logfile, 0, "")
#
if options.cleanup:
    Cleanup()
o2tf.OpenMPIInit(DEBUGON, options.nodelist, logfile, "ssh")
#
ret = o2tf.openmpi_run(
    DEBUGON,
    procs,
    str("%s %s %s 2>&1 | tee -a %s" % (cmd, filename, nloops, logfile)),
    options.nodelist,
    "ssh",
    interface,
    logfile,
    "WAIT",
)
#
if not ret:
    o2tf.printlog("write_append_truncate: main - execution successful.", logfile, 0, "")
Cleanup()
Beispiel #23
0
        if not options.cleanup:
            parser.error('Invalid node list.')

#
    if options.path:
        path = options.path
    else:
        parser.error('Invalid path.')
    interface = options.interface
#
if DEBUGON:
    o2tf.printlog(
        'run_create_racer: main - current directory %s' % os.getcwd(), logfile,
        0, '')
    o2tf.printlog('run_create_racer: main - cmd = %s' % cmd, logfile, 0, '')
#
if options.cleanup:
    Cleanup()
o2tf.OpenMPIInit(DEBUGON, options.nodelist, logfile, 'ssh')
#
ret = o2tf.openmpi_run(
    DEBUGON, procs,
    str('%s -i %s %s 2>&1 | tee -a %s' %
        (cmd, options.count, options.path, options.logfile)), options.nodelist,
    'ssh', options.interface, options.logfile, 'WAIT')
#
if not ret:
    o2tf.printlog('run_create_racer: main - execution successful.', logfile, 0,
                  '')
Cleanup()
        nodelen = len(nodelist)
        procs = nodelen
        if nodelen == 1:
            nodelist = nodelist.append(options.nodelist)
        else:
            nodelist = options.nodelist.split(',')
    else:
        if not options.cleanup:
            parser.error('Invalid node list.')

if DEBUGON:
    o2tf.printlog(
        'write_append_truncate: main - current directory %s' % os.getcwd(),
        logfile, 0, '')
    o2tf.printlog('write_append_truncate: main - cmd = %s' % cmd, logfile, 0,
                  '')
#
if options.cleanup:
    Cleanup()
o2tf.OpenMPIInit(DEBUGON, options.nodelist, logfile, 'ssh')
#
ret = o2tf.openmpi_run(
    DEBUGON, procs,
    str('%s %s %s 2>&1 | tee -a %s' % (cmd, filename, nloops, logfile)),
    options.nodelist, 'ssh', interface, logfile, 'WAIT')
#
if not ret:
    o2tf.printlog('write_append_truncate: main - execution successful.',
                  logfile, 0, '')
Cleanup()
	else:
		if not options.cleanup:
			parser.error('Invalid node list.')

if DEBUGON:
	o2tf.printlog('quota_multi_test: main - current directory %s' % 
		os.getcwd(), logfile, 0, '')
	o2tf.printlog('quota_multi_test: main - cmd = %s' % cmd,
		logfile, 0, '')
#
o2tf.OpenMPIInit(DEBUGON, options.nodelist, logfile, 'rsh')
#
ret = o2tf.openmpi_run(DEBUGON, procs, 
	str('%s %s %s %s %s %s 2>&1 >> %s' % (cmd,
	iter_arg,
	user_arg,
	group_arg,
	device_arg,
	mountpoint_arg,
	logfile)), 
	options.nodelist, 
	'rsh',
	logfile,
	'WAIT')
#
if not ret:
	o2tf.printlog('quota_multi_test: main - execution successful.',
		logfile, 0, '')

sys.exit(ret)
Beispiel #26
0
		logfile, 0, '')
	o2tf.printlog('%s: main - interface = %s' % (pgm, interface),
		logfile, 0, '')
	o2tf.printlog('%s: main - logfile = %s' % (pgm, logfile),
		logfile, 0, '')
	o2tf.printlog('%s: main - nodelist = %s' % (pgm, nodelist),
		logfile, 0, '')
#
o2tf.OpenMPIInit(DEBUGON, options.nodelist, logfile, 'ssh')
#
ret = o2tf.openmpi_run(DEBUGON, procs, 
	str('%s -d %s %s -i %s %s %s 2>&1 | tee -a %s' % (cmd, 
	dlmfs, 
	hbdev, 
	count, 
	domain,
	lockname,
	options.logfile)), 
	options.nodelist, 
	'ssh',
	options.interface,
	options.logfile,
	'WAIT')
if not ret:
	o2tf.printlog('run_lvb_torture: execution successful.',
		logfile, 0, '')
else:
	o2tf.printlog('run_lvb_torture: execution failed.',
		logfile, 0, '')
	sys.exit(1)
Beispiel #27
0
	o2tf.printlog('cross-delete: RUN# %s of %s' % (y+1, count),
		logfile,
		3,
		'=')
	BuildCrList(nodelist, nodelen, dirlist, dirlen)
	BuildDelList(nodelist, dirlist)
#
	if DEBUGON:
		cmdline = os.path.join(config.BINDIR, 'crdel_gen_files.py -D')
	else:
		cmdline = os.path.join(config.BINDIR, 'crdel_gen_files.py')
	ret = o2tf.openmpi_run( DEBUGON, nproc, str('%s -s %s -l %s -t %s' % \
		(cmdline, stagedir,
		options.logfile,
		tarfile) ),
		','.join(nodelist),
		'ssh',
		options.interface,
		logfile,
		'WAIT')
	if not ret:
		o2tf.printlog('cross_delete: RUN# %s extraction successful.'\
			% (y+1), logfile, 0, '')
	else:
		o2tf.printlog('cross_delete: RUN# %s extraction failed.' \
			% (y+1), logfile, 0, '')
		Cleanup(1)
	if DEBUGON:
		cmdline = os.path.join(config.BINDIR, 'crdel_del_files.py -D')
	else:
		cmdline = os.path.join(config.BINDIR, 'crdel_del_files.py')
	o2tf.printlog('run_write_torture: main - current directory %s' % os.getcwd(),
		logfile, 0, '')
	o2tf.printlog('run_write_torture: main - cmd = %s' % cmd,
		logfile, 0, '')
	o2tf.printlog('run_write_torture: main - blocksize = %s' % options.blocksize,
		logfile, 0, '')
#
for z in range(options.count):
	o2tf.printlog('run_write_torture: Running test# %s' % z, 
	logfile, 0, '')
#
	o2tf.OpenMPIInit(DEBUGON, options.nodelist, logfile, 'ssh')
	ret = o2tf.openmpi_run(DEBUGON, options.procs,
		str('%s -b %s -l %s -s %s -f %s' % (cmd, 
		options.blocksize, 
		options.logfile, 
		options.seconds, 
		os.path.join(options.directory, filename) ) ), 
		options.nodelist, 
		'ssh',
		options.interface,
		options.logfile,
		'WAIT')
	if not ret:
		o2tf.printlog('run_write_torture: main - execution successful.',
			logfile, 0, '')
	else:
		o2tf.printlog('run_write_torture: main - execution failed.',
			logfile, 0, '')
		sys.exit(1)
Beispiel #29
0
if DEBUGON:
	o2tf.printlog('run_forkwriter: main - cmd = %s' % cmd,
		logfile, 
		0, 
		'')
#
o2tf.OpenMPIInit(DEBUGON, options.nodelist, logfile, 'ssh')
#
for z in range(options.count):
	o2tf.printlog('run_forkwriter: Running test# %s of %s' % (z, options.count), 
	logfile, 
	0, 
	'')
	ret = o2tf.openmpi_run(DEBUGON, options.procs, str('%s %s %s %s %s' %
		(cmd, 
		options.filename, 
		options.count, 
		options.procs, 
		options.sleep ) ), 
		options.nodelist, 
		'ssh',
		options.logfile,
		'WAIT')
	if not ret:
		o2tf.printlog('run_forkwriter: RUN# %s execution successful.' \
		% z, logfile, 0, '')
	else:
		o2tf.printlog('run_forkwriter: RUN# %s execution failed.' % z,
			logfile, 0, '')
		sys.exit(1)