<br><tt><font size=2>libvirt-cim-bounces@redhat.com wrote on 2008-09-04
14:53:21:<br>
<br>
> <br>
> libvirt-cim-bounces@redhat.com wrote on 2008-09-03 23:29:56:<br>
> <br>
> > >  > FAIL Test Summary:<br>
> > >  > ComputerSystemIndication - 01_created_indication.py:
FAIL<br>
> > >  <br>
> > >   Kaitlin - I remember you say that your follow patch
will fix <br>
> > > ComputerSystemIndication for KVM<br>
> > >   several days ago, any update?<br>
> > <br>
> > Yes, those patches were checked in some time ago.<br>
> > <br>
> > <br>
> > >  > --------------------------------------------------------------------<br>
> > >  > ComputerSystemIndication - 01_created_indication.py:
FAIL<br>
> > >  > ERROR            
     - Exception: not enough arguments for format <br>
> > > string<br>
> > >  > Got indication: KVM_ComputerSystemCreatedIndication<br>
> > >  > ERROR            
     - Received indication error: 256<br>
> > >  > ERROR            
     - Exception: not enough arguments for format <br>
> > > string<br>
> > >  > Got indication: KVM_ComputerSystemCreatedIndication<br>
> > >  > ERROR            
     - Received indication error: 256<br>
> > >  > --------------------------------------------------------------------<br>
> > <br>
> > This looks like the test case encountered some kind of error,
but it was <br>
> > unable to print the error message because there weren't enough
arguments <br>
> > to format the string. <br>
> <br>
>   This fails when the test case wait for KVM_ComputerSystemModifiedIndication.<br>
>   It passes if we only define a domain and check the indication,
<br>
> that is to say, <br>
>   we can get KVM_ComputerSystemCreatedIndication, and test case
fails on <br>
>   KVM_ComputerSystemModifiedIndication although the domain started
<br>
> successfully. <br>
> <br>
>   Here is part of log error, we can't get expected pid for <br>
> KVM_ComputerSystemModifiedIndication. <br>
>   ERROR   - Received indication error: 256 <br>
>   ERROR   - Exception: not enough arguments for format string
<br>
> <br>
>   Do you know why it is? </font></tt>
<br>
<br><tt><font size=2>   One more thing, it passes for Pegasus.<br>
>   <br>
> ...... <br>
> def poll_for_ind(pid): <br>
>     for i in range(0, 20): <br>
>         pw = os.waitpid(pid, os.WNOHANG) <br>
> <br>
>         # If pid exits, waitpid returns [pid,
return_code] <br>
>         # If pid is still running, waitpid returns
[0, 0] <br>
>         # Only return a success if waitpid returns
the expected pid <br>
>         # and the return code is 0. <br>
>         if pw[0] == pid and pw[1] == 0: <br>
>             logger.info("Great,
got indication successfuly") <br>
>             status = PASS <br>
>             break <br>
>         elif pw[1] == 0 and i < 19: <br>
>             if i % 10 == 0: <br>
>                 logger.info("In
child process, waiting for indication") <br>
>             time.sleep(2) <br>
>         else: <br>
>             # Time is up and waitpid
never returned the expected pid <br>
>             if pw[0] != pid: <br>
>                 logger.error("Waited
too long for indication") <br>
>                 os.kill(pid,
signal.SIGKILL) <br>
>             else: <br>
>                 logger.error("Received
indication error: %d" % pw[1]) <br>
> <br>
>             status = FAIL <br>
>             break <br>
> <br>
>     return status <br>
> ......<br>
> > <br>
> > Can you take a look?<br>
> > <br>
> > Thanks!<br>
> > -- <br>
> > Kaitlin Rupert<br>
> > IBM Linux Technology Center<br>
> > kaitlin@linux.vnet.ibm.com<br>
> > <br>
> > _______________________________________________<br>
> > Libvirt-cim mailing list<br>
> > Libvirt-cim@redhat.com<br>
> > https://www.redhat.com/mailman/listinfo/libvirt-cim<br>
> _______________________________________________<br>
> Libvirt-cim mailing list<br>
> Libvirt-cim@redhat.com<br>
> https://www.redhat.com/mailman/listinfo/libvirt-cim</font></tt>