Hi Lucas ,

Im getting the following error while trying to execute the netperf tests on 2 
machines(client and server) using autoserv.
Attached is the control file that we are trying to execute

  Unhandled NameError: name 'parallel_simple' is not defined
19:21:33 WARNI| devl4pp-barton-linux1.austin.ibm.com : Target 
devl4pp-barton-linux1.austin.ibm.com is missing expected remote paths: 
/var/log/kern.log
19:21:34 INFO | devl4pp-barton-linux1.austin.ibm.com : INFO     ----    ----    
kernel=2.6.18-231.el5   localtime=Nov 21 19:21:34       timestamp=1290385294
19:21:35 INFO | devl4pp-barton-linux1.austin.ibm.com : Installing autotest on 
devl4pp-barton-linux1.austin.ibm.com
19:21:35 INFO | devl4pp-barton-linux1.austin.ibm.com : Using installation dir 
/usr/local/autotest
19:21:36 ERROR| devl4pp-barton-linux1.austin.ibm.com : Could not install 
autotest from repos
19:21:37 INFO | devl4pp-barton-linux1.austin.ibm.com : Installation of autotest 
completed
19:21:37 INFO | devl4pp-barton-linux1.austin.ibm.com : GOOD     ----    
Autotest.install        timestamp=1290385297    localtime=Nov 21 19:21:37
19:21:40 INFO | devl4pp-barton-linux1.austin.ibm.com : Executing 
/usr/local/autotest/bin/autotest /usr/local/autotest/control phase 0
19:21:41 WARNI| ltc-test-l4e-rhel.austin.ibm.com : Target 
ltc-test-l4e-rhel.austin.ibm.com is missing expected remote paths: 
/var/log/kern.log
19:21:50 INFO | devl4pp-barton-linux1.austin.ibm.com : START    ----    ----    
timestamp=1290413353    localtime=Nov 22 13:39:13
19:21:50 INFO | devl4pp-barton-linux1.austin.ibm.com : END ABORT        ----    
----    timestamp=1290413353    localtime=Nov 22 13:39:13       Unhandled 
NameError: name 'parallel_simple' is not defined
19:21:50 INFO | devl4pp-barton-linux1.austin.ibm.com :   Traceback (most recent 
call last):
19:21:50 INFO | devl4pp-barton-linux1.austin.ibm.com :     File 
"/usr/local/autotest/bin/job.py", line 1102, in step_engine
19:21:50 INFO | devl4pp-barton-linux1.austin.ibm.com :       
execfile(self.control, global_control_vars, global_control_vars)
19:21:50 INFO | devl4pp-barton-linux1.austin.ibm.com :     File 
"/usr/local/autotest/control.autoserv", line 46, in ?
19:21:50 INFO | devl4pp-barton-linux1.austin.ibm.com :       
parallel_simple(run_netperf2, [machines[0], machines[1]])
19:21:50 INFO | devl4pp-barton-linux1.austin.ibm.com :   NameError: name 
'parallel_simple' is not defined
19:21:51 INFO | devl4pp-barton-linux1.austin.ibm.com : END ABORT        ----    
----    timestamp=1290385311    localtime=Nov 21 19:21:51       Autotest client 
terminated unexpectedly
19:21:53 ERROR| devl4pp-barton-linux1.austin.ibm.com : function failed
Traceback (most recent call last):
  File "/home/rfolco/autotest-0.12.0/server/subcommand.py", line 178, in 
fork_start
    result = self.lambda_function()
  File "/home/rfolco/autotest-0.12.0/server/subcommand.py", line 125, in<lambda>
    self.lambda_function = lambda: func(*args)
  File "/home/rfolco/autotest-0.12.0/server/server_job.py", line 347, in wrapper
    result = function(machine)
  File 
"/home/rfolco/autotest-0.12.0/results/divya/rhel5.6-snap1/netperf2/control.srv",
 line 9, in run_client
    at.run(control, host=host, job_tag=job.tag)
  File "/home/rfolco/autotest-0.12.0/server/autotest.py", line 322, in run
    client_disconnect_timeout, job_tag)
  File "/home/rfolco/autotest-0.12.0/server/autotest.py", line 414, in _do_run
    client_disconnect_timeout=client_disconnect_timeout)
  File "/home/rfolco/autotest-0.12.0/server/autotest.py", line 773, in 
execute_control
    logger, client_disconnect_timeout)
  File "/home/rfolco/autotest-0.12.0/server/autotest.py", line 685, in 
execute_section
    raise err
AutotestRunError: client job was aborted
19:21:53 INFO | subcommand failed pid 16566
19:21:53 INFO |<function wrapper at 0x10357e30>
19:21:53 INFO | rc=1
19:21:53 INFO |
19:21:53 INFO |
19:21:53 INFO | --------------------------------------------

Thanks
Divya

AUTHOR = "Lucas Meneghel Rodrigues ([email protected])"
NAME = "Netperf2 between 2 hosts"
TEST_TYPE = "server"
TEST_CLASS = "Network"
TEST_CATEGORY = "Functional"
TIME = "SHORT"
DOC = """\
    Executes the netperf2 test between two machines, the first machine passed 
    as an argument to autoserv will be the server, the other will be the client.
"""

import socket

def run_control(machine, role):
    """
    Instantiates an SSH host from the machine list passed to autoserv,
    then runs an appropriate control file on it.
    @param machine: Hostname of the machine that will run the test.
    @param role: Netperf2 role. It can be either 'server' or 'client'
    """
    host = hosts.create_host(machine)
    control = """\
job.run_test('netperf2', server_ip='%s', client_ip='%s', role='%s', tag='%s',
             test_time=600)
""" % (socket.gethostbyname(machines[0]), socket.gethostbyname(machines[1]),
       role, role)
    at = autotest.Autotest(host)
    at.run(control)


def run_netperf2(machine):
    """
    Just goes trough the machine list and calls run_control with appropriate
    parameters.
    @param machine: Hostname of the machine that will run the test.
    """
    if machine == machines[0]:
        run_control(machine, 'server')
    elif machine == machines[1]:
        run_control(machine, 'client')


parallel_simple(run_netperf2, [machines[0], machines[1]])
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to