在 2012-09-18二的 09:39 -0300,Lucas Meneghel Rodrigues写道:
> On 09/18/2012 09:34 AM, Mike wrote:
> > 在 2012-09-18二的 08:35 -0300,Lucas Meneghel Rodrigues写道:
> >> On 09/18/2012 08:29 AM, Mike wrote:
> >>> Hi all
> >>> These days I setup a autotest server for test.
> >>> And I face a problem, maybe a bug.
> >>> for example , I create a new job like sleeptest.
> >>> it runs OK, so does other tests except KVM.
> >>> When I create a job of KVM test.
> >>> in Client side it will raise a error like :
> >>> /usr/local/autotest/tests/kvm/build.cfg No such
> >>> file or dir.
> >>> it is because in control file of KVM, there is a line:
> >>> kvm_test_dir = os.path.join(os.environ['AUTODIR'],'tests/kvm')
> >>> this will cause two problems :
> >>> 1. the dir in client has changed , mostly in
> >>> os.environ['AUTODIR'],'tmp/site_tests/kvm'
> >>> 2. the file build.cfg/tests.cfg, has not been fetched from the server.
> >>>      but client has parsed the control file and can't find these files.
> >>> So it will cause failure when run the test case.
> >>>
> >>> I will attach the log file, and need any one to fix it :)
> >>
> >> This is expected behavior. The KVM test user is supposed to copy the
> >> sample config files to actual config files:
> >>
> >> https://github.com/autotest/autotest/wiki/VirtTestDocumentation#wiki-id2
> >>
> >> Once you run the get_started.py script, the config files will be there,
> >> therefore the kvm test will run. So I consider this NOTABUG, since to
> >> this point, we still couldn't automate *setup* of the KVM test (meaning
> >> the tester has to read docs and set up test environment).
> >>
> > Hi Lucas
> > I think you don't catch what I exactly mean. Maybe because my poor
> > English:)
> >
> > I mean when the server setup the remote client, the client machine will
> > not find the build.cfg before get it. Actually , I always run the
> > get_started.py script when first setup the autotest.
> >
> > What I mean is the client machine need to parse the control file , but
> > build.cfg/tests.cfg haven't been fetched to the client machine for
> > remote(Server) at that time. So it will cause the error what I say:)
> 
> I run an autotest server that syncs with the -next branch every night to 
> catch such regressions, running the virt tests, and I've never seen this 
> issue. I'd have to think what is wrong in your setup...
> 
I have resetup for many times....
and when I run other tests it's OK...

the kvm error log :
09/18 11:19:40 DEBUG|base_utils:0077| Running
'ls /usr/local/autotest/packages.checksum'
09/18 11:19:40 INFO |harness_au:0105| Fetching packages.checksum from
autoserv to /usr/local/autotest/packages.checksum
09/18 11:19:40 DEBUG|base_packa:0700| packages.checksum could not be
fetched from autoserv://
09/18 11:19:40 ERROR|base_packa:0705| packages.checksum could not be
fetched from any of the repos ['autoserv://']
09/18 11:19:40 DEBUG|  base_job:0349| Persistent state client.steps now
set to [([], 'step_init', (), {})]
09/18 11:19:40 DEBUG|  base_job:0349| Persistent state client.steps now
set to []
09/18 11:19:40 DEBUG|  base_job:0349| Persistent state client.steps now
set to [([], 'step0', (), {})]
09/18 11:19:41 DEBUG|  base_job:0349| Persistent state client.steps now
set to []
09/18 11:19:41 ERROR|       job:1341| JOB ERROR: Unhandled IOError:
[Errno 2] No such file or directory:
'/usr/local/autotest/tests/kvm/build.cfg'

it means  Fetching packages.checksum failed.

I have make an experiment that , I copy the KVM dir to the client
machine:/usr/local/aototest/tests/kvm/

and then I see the log is :
09/18 13:37:50 DEBUG|base_utils:0077| Running
'ls /usr/local/autotest/packages.checksum'
09/18 13:37:50 INFO |harness_au:0105| Fetching packages.checksum from
autoserv to /usr/local/autotest/packages.checksum
09/18 13:37:50 DEBUG|base_packa:0700| packages.checksum could not be
fetched from autoserv://
09/18 13:37:50 ERROR|base_packa:0705| packages.checksum could not be
fetched from any of the repos ['autoserv://']
09/18 13:37:50 DEBUG|  base_job:0349| Persistent state client.steps now
set to [([], 'step_init', (), {})]
09/18 13:37:50 DEBUG|  base_job:0349| Persistent state client.steps now
set to []
09/18 13:37:50 DEBUG|  base_job:0349| Persistent state client.steps now
set to [([], 'step0', (), {})]
09/18 13:37:51 DEBUG|  base_job:0349| Persistent state client.steps now
set to []
09/18 13:37:51 INFO |utils_misc:1573| Test    1:
scsi.smp2.spapr-vlan.Fedora.16.ppc64.boot
09/18 13:37:51 INFO |utils_misc:1573| Test    2:
scsi.smp2.spapr-vlan.Fedora.16.ppc64.shutdown
09/18 13:37:51 DEBUG|base_utils:0077| Running 'mkdir
-p /usr/local/autotest/tmp/packages'
09/18 13:37:51 DEBUG|base_utils:0077| Running
'ls /usr/local/autotest/tmp'
09/18 13:37:51 DEBUG|base_utils:0077| Running
'ls /usr/local/autotest/tmp/packages'
09/18 13:37:51 DEBUG|base_utils:0077| Running
'ls /usr/local/autotest/packages.checksum'
09/18 13:37:51 DEBUG|base_utils:0077| Running 'ls /usr/local/autotest'
09/18 13:37:51 DEBUG|base_utils:0077| Running
'ls /usr/local/autotest/packages.checksum'
09/18 13:37:51 INFO |harness_au:0105| Fetching packages.checksum from
autoserv to /usr/local/autotest/packages.checksum
09/18 13:37:51 DEBUG|base_packa:0700| packages.checksum could not be
fetched from autoserv://
09/18 13:37:51 ERROR|base_packa:0705| packages.checksum could not be
fetched from any of the repos ['autoserv://']
09/18 13:37:51 INFO |harness_au:0105| Fetching profiler-kvm_stat.tar.bz2
from autoserv
to /usr/local/autotest/tmp/packages/profiler-kvm_stat.tar.bz2
09/18 13:37:51 DEBUG|harness_au:0108| Successfully fetched
profiler-kvm_stat.tar.bz2 from autoserv
09/18 13:37:51 DEBUG|base_utils:0077| Running
'md5sum /usr/local/autotest/tmp/packages/profiler-kvm_stat.tar.bz2 '
09/18 13:37:51 DEBUG|base_utils:0077| Running
'ls /usr/local/autotest/packages.checksum'
09/18 13:37:51 DEBUG|base_utils:0077| Running 'ls /usr/local/autotest'
09/18 13:37:51 DEBUG|base_utils:0077| Running
'ls /usr/local/autotest/packages.checksum'
09/18 13:37:51 INFO |harness_au:0105| Fetching packages.checksum from
autoserv to /usr/local/autotest/packages.checksum
09/18 13:37:51 DEBUG|base_packa:0700| packages.checksum could not be
fetched from autoserv://
09/18 13:37:51 ERROR|base_packa:0705| packages.checksum could not be
fetched from any of the repos ['autoserv://']
09/18 13:37:51 DEBUG|base_utils:0077| Running
'ls /usr/local/autotest/profilers/kvm_stat'
09/18 13:37:51 DEBUG|base_utils:0077| Running 'rm
-rf /usr/local/autotest/profilers/kvm_stat'
09/18 13:37:51 DEBUG|base_utils:0077| Running 'mkdir
-p /usr/local/autotest/profilers/kvm_stat'
09/18 13:37:51 DEBUG|base_utils:0077| Running 'tar
xjf /usr/local/autotest/tmp/packages/profiler-kvm_stat.tar.bz2
-C /usr/local/autotest/profilers/kvm_stat'
09/18 13:37:51 DEBUG|base_utils:0077| Running
'md5sum /usr/local/autotest/tmp/packages/profiler-kvm_stat.tar.bz2 '
09/18 13:37:51 DEBUG|base_utils:0077| Running 'echo
"d053137016ceb40e3d2337d5830e5c2a"
> /usr/local/autotest/profilers/kvm_stat/.checksum '
09/18 13:37:51 ERROR|  kvm_stat:0031| Command kvm_stat not present
09/18 13:37:51 INFO |       job:0210|   START
kvm.scsi.smp2.spapr-vlan.Fedora.16.ppc64.boot
kvm.scsi.smp2.spapr-vlan.Fedora.16.ppc64.boot   timestamp=1347946671
localtime=Sep 18 13:37:51       
09/18 13:37:51 DEBUG|  base_job:0349| Persistent state
client._record_indent now set to 2
09/18 13:37:51 DEBUG|  base_job:0349| Persistent state
client.unexpected_reboot now set to
('kvm.scsi.smp2.spapr-vlan.Fedora.16.ppc64.boot',
'kvm.scsi.smp2.spapr-vlan.Fedora.16.ppc64.boot')
09/18 13:37:51 DEBUG|base_utils:0077| Running 'mkdir
-p /usr/local/autotest/tmp/packages'
09/18 13:37:51 DEBUG|base_utils:0077| Running
'ls /usr/local/autotest/tmp'
09/18 13:37:51 DEBUG|base_utils:0077| Running
'ls /usr/local/autotest/tmp/packages'
09/18 13:37:51 INFO |harness_au:0105| Fetching test-kvm.tar.bz2 from
autoserv to /usr/local/autotest/tmp/packages/test-kvm.tar.bz2
09/18 13:37:52 DEBUG|harness_au:0108| Successfully fetched
test-kvm.tar.bz2 from autoserv


and it appears for many times

09/18 13:37:51 INFO |harness_au:0105| Fetching packages.checksum from
autoserv to /usr/local/autotest/packages.checksum
09/18 13:37:51 DEBUG|base_packa:0700| packages.checksum could not be
fetched from autoserv://
09/18 13:37:51 ERROR|base_packa:0705| packages.checksum could not be
fetched from any of the repos ['autoserv://']

I don't know why
> >> Cheers,
> >>
> >> Lucas
> >>
> >>
> >
> >
> 


_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel

Reply via email to