On Sat, Apr 28, 2012 at 5:19 AM, Liu Sheng <[email protected]> wrote:
> Hi
> I setup an autotest server to control another machine run some tests, I create
> jobs for sleep test and dbench, they both work well. But I when I run kvm
> autotest which is I actually want to run, it seems not work. In the server's
> log it seems everything works well until the client raise AutotestRun Error:
> client job was aborted. In the client's log everything goes well until an
> IOError that can't find /usr/local/autotest/tests/kvm/build.cfg. I check the
> /usr/local/autotest/tests directory in the remote host, actually there's no
> kvm directory in it, only sleeptest, dbench directory and another download
> directory. So something wrong with my configuration or kvm autotest need some
> special settings?

You have to create the actual configuration files from the samples. In
your server, you can do a:

cd /usr/local/autotest/client/tests/kvm
./get_started.py

That will copy the .cfg.sample files to .cfg, so kvm autotest can
actually get the conf files it needs.

Now, you probably want to tweak your config files to generate a test
set that is interesting to you, so take a look at the config files,
specially tests.cfg to accomplish that.

Cheers,

Lucas

> log in client:
> ------------------
> 04/27 10:30:01 DEBUG|  base_job:0349| Persistent state client.steps now set 
> to [([], 'step_init', (), {})]
> 04/27 10:30:01 DEBUG|  base_job:0349| Persistent state client.steps now set 
> to []
> 04/27 10:30:01 DEBUG|  base_job:0349| Persistent state client.steps now set 
> to [([], 'step0', (), {})]
> 04/27 10:30:01 DEBUG|  base_job:0349| Persistent state client.steps now set 
> to []
> 04/27 10:30:01 ERROR|logging_ma:0584| ** Message: pygobject_register_sinkfunc 
> is deprecated (GstObject)
>    04/27 10:30:02 ERROR|       job:1320| JOB ERROR: Unhandled IOError: [Errno 
> 2] no such file or directory: '/usr/local/autotest/tests/kvm/build.cfg'
>    Traceback (most recent call last):
>          File "/usr/local/autotest/bin/job.py", line 1083, in _run_step_fn
>              exec('__ret = %s(*__args, **__dargs)' % fn, local_vars, 
> local_vars)
>            File "<string>", line 1, in <module>
>            File "/usr/local/autotest/control.autoserv", line 44, in step0
>              parser.parse_file(os.path.join(kvm_test_dir, "build.cfg"))
>            File "/usr/local/autotest/common_lib/cartesian_config.py", line 
> 228, in parse_file
>              self.node = self._parse(FileReader(filename), self.node)
>            File "/usr/local/autotest/common_lib/cartesian_config.py", line 
> 680, in __init__
>              StrReader.__init__(self, open(filename).read())
>          IOError: [Errno 2] no such file or directory: 
> '/usr/local/autotest/tests/kvm/build.cfg'
>
> log in server:
> --------------------
> 04/26 20:30:54 DEBUG|  base_job:0242| Value of global_properties.tag is 
> unchanged, skipping import
> 04/26 20:30:54 DEBUG|  base_job:0242| Value of 
> global_properties.last_boot_tag is unchanged, skipping import
> 04/26 20:30:54 DEBUG|  base_job:0391| Persistent state client.* deleted
> 04/26 20:30:54 ERROR|server_job:0543| Exception escaped control file, job 
> aborting:
> Traceback (most recent call last):
>      File "/usr/local/autotest/server/server_job.py", line 535, in run
>          self._execute_code(server_control_file, namespace)
>        File "/usr/local/autotest/server/server_job.py", line 1018, in 
> _execute_code
>          execfile(code_file, namespace, namespace)
>        File 
> "/usr/local/autotest/results/22-debug_user/9.3.190.254/control.srv", line 10, 
> in <module>
>          job.parallel_simple(run_client, machines)
>        File "/usr/local/autotest/server/server_job.py", line 437, in 
> parallel_simple
>          return_results=return_results)
>        File "/usr/local/autotest/server/subcommand.py", line 92, in 
> parallel_simple
>          function(arg)
>        File 
> "/usr/local/autotest/results/22-debug_user/9.3.190.254/control.srv", line 7, 
> in run_client
>          at.run(control, host=host)
>        File "/usr/local/autotest/server/autotest_remote.py", line 313, in run
>          client_disconnect_timeout)
>        File "/usr/local/autotest/server/autotest_remote.py", line 394, in 
> _do_run
>          client_disconnect_timeout=client_disconnect_timeout)
>        File "/usr/local/autotest/server/autotest_remote.py", line 741, in 
> execute_control
>          logger, client_disconnect_timeout)
>        File "/usr/local/autotest/server/autotest_remote.py", line 686, in 
> execute_section
>          raise err
> AutotestRunError: client job was aborted
>
> Thanks!
> Best Regards!
>
> Liu Sheng
>
> _______________________________________________
> Autotest mailing list
> [email protected]
> http://test.kernel.org/cgi-bin/mailman/listinfo/autotest



-- 
Lucas
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to