<br><tt><font size=2>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.</font></tt>
<br>
<br><tt><font size=2>  This fails when the test case wait for KVM_ComputerSystemModifiedIndication.</font></tt>
<br><tt><font size=2>  It passes if we only define a domain and check
the indication, that is to say,</font></tt>
<br><tt><font size=2>  we can get KVM_ComputerSystemCreatedIndication,
and test case fails on</font></tt>
<br><tt><font size=2>  KVM_ComputerSystemModifiedIndication although
the domain started successfully.</font></tt>
<br>
<br><tt><font size=2>  Here is part of log error, we can't get expected
pid for KVM_ComputerSystemModifiedIndication.</font></tt>
<br><tt><font size=2>  ERROR   - Received indication error: 256</font></tt>
<br><tt><font size=2>  ERROR   - Exception: not enough arguments
for format string</font></tt>
<br>
<br><tt><font size=2>  Do you know why it is?</font></tt>
<br><tt><font size=2> </font></tt>
<br><tt><font size=2>......</font></tt>
<br><tt><font size=2>def poll_for_ind(pid):</font></tt>
<br><tt><font size=2>    for i in range(0, 20):</font></tt>
<br><tt><font size=2>        pw = os.waitpid(pid, os.WNOHANG)</font></tt>
<br>
<br><tt><font size=2>        # If pid exits, waitpid
returns [pid, return_code]</font></tt>
<br><tt><font size=2>        # If pid is still running,
waitpid returns [0, 0]</font></tt>
<br><tt><font size=2>        # Only return a success
if waitpid returns the expected pid</font></tt>
<br><tt><font size=2>        # and the return code
is 0.</font></tt>
<br><tt><font size=2>        if pw[0] == pid and pw[1]
== 0:</font></tt>
<br><tt><font size=2>            logger.info("Great,
got indication successfuly")</font></tt>
<br><tt><font size=2>            status =
PASS</font></tt>
<br><tt><font size=2>            break</font></tt>
<br><tt><font size=2>        elif pw[1] == 0 and i
< 19:</font></tt>
<br><tt><font size=2>            if i % 10
== 0:</font></tt>
<br><tt><font size=2>               
logger.info("In child process, waiting for indication")</font></tt>
<br><tt><font size=2>            time.sleep(2)</font></tt>
<br><tt><font size=2>        else:</font></tt>
<br><tt><font size=2>            # Time is
up and waitpid never returned the expected pid</font></tt>
<br><tt><font size=2>            if pw[0]
!= pid:</font></tt>
<br><tt><font size=2>               
logger.error("Waited too long for indication")</font></tt>
<br><tt><font size=2>               
os.kill(pid, signal.SIGKILL)</font></tt>
<br><tt><font size=2>            else:</font></tt>
<br><tt><font size=2>               
logger.error("Received indication error: %d" % pw[1])</font></tt>
<br>
<br><tt><font size=2>            status =
FAIL</font></tt>
<br><tt><font size=2>            break</font></tt>
<br>
<br><tt><font size=2>    return status</font></tt>
<br><tt><font size=2>......<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>
</font></tt>