[Libvirt-cim] Re: CimTest Report on XenFV 10-04-2008

Deepti B Kalakeri deeptik at linux.vnet.ibm.com
Thu Apr 10 13:44:23 UTC 2008


Sorry Forgot the attachment for the complete result.
Also , in the test report the test cases which do not have support for 
XenFV are skipped.
Also see my comments inline for the test result.

Thanks and Regards,
Deepti.

Deepti B Kalakeri wrote:
> Hi,
>
> Please find the test case list that are failing for the XenFV below:
> Please see the attachment for the complete result.
> Total FAIL        : 14
>
> ComputerSystem - 04_defineStartVS.py: FAIL
> Thu, 10 Apr 2008 12:42:52:TEST LOG:INFO         -  
> ====04_defineStartVS.py Log====
> Thu, 10 Apr 2008 12:42:53:TEST LOG:ERROR        -  Error: property 
> values are not set for VS domguest
>
The tc are failing since they are not able to get the required property 
values set immediately.
Fixed the tc by adding logic to poll.
> ComputerSystem - 06_paused_active_suspend.py: FAIL
> Thu, 10 Apr 2008 12:42:58:TEST LOG:INFO         -  
> ====06_paused_active_suspend.py Log====
> Thu, 10 Apr 2008 12:42:59:TEST LOG:ERROR        -  Exception: (1, 
> u'CIM_ERR_FAILED: A general error occurred that is not covered by a 
> more specific error code: "Domain not running"')
> Thu, 10 Apr 2008 12:42:59:TEST LOG:ERROR        -  Unable to suspend 
> dom DomST1 using RequestedStateChange()
>
same as above.
Fixed the tc by adding logic to poll.
> ComputerSystem - 23_suspend_suspend.py: FAIL
> Thu, 10 Apr 2008 12:43:03:TEST LOG:INFO         -  
> ====23_suspend_suspend.py Log====
> Thu, 10 Apr 2008 12:43:04:TEST LOG:ERROR        -  Unexpected rc code 
> 1 and description:
> CIM_ERR_FAILED: A general error occurred that is not covered by a more 
> specific error code: "Failed to create domain"
> Thu, 10 Apr 2008 12:43:04:TEST LOG:ERROR        -  Unable to define 
> domain test_domain using DefineSystem()

>
> ComputerSystem - 27_define_suspend_errs.py: FAIL
> Thu, 10 Apr 2008 12:43:05:TEST LOG:INFO         -  
> ====27_define_suspend_errs.py Log====
> Thu, 10 Apr 2008 12:43:05:TEST LOG:ERROR        -  Unexpected rc code 
> 1 and description:
> CIM_ERR_FAILED: A general error occurred that is not covered by a more 
> specific error code: "Failed to create domain"
> Thu, 10 Apr 2008 12:43:05:TEST LOG:ERROR        -  Unable to define 
> domain test_domain using DefineSystem()
>
> ComputerSystem - 32_start_reboot.py: FAIL
> Thu, 10 Apr 2008 12:43:06:TEST LOG:INFO         -  
> ====32_start_reboot.py Log====
> Thu, 10 Apr 2008 12:43:06:TEST LOG:ERROR        -  Unexpected rc code 
> 1 and description:
> CIM_ERR_FAILED: A general error occurred that is not covered by a more 
> specific error code: "Failed to create domain"
> Thu, 10 Apr 2008 12:43:06:TEST LOG:ERROR        -  Unable to define 
> domain test_domain using DefineSystem()
>
> ComputerSystem - 33_suspend_reboot.py: FAIL
> Thu, 10 Apr 2008 12:43:08:TEST LOG:INFO         -  
> ====33_suspend_reboot.py Log====
> Thu, 10 Apr 2008 12:43:08:TEST LOG:ERROR        -  Unexpected rc code 
> 1 and description:
> CIM_ERR_FAILED: A general error occurred that is not covered by a more 
> specific error code: "Failed to create domain"
> Thu, 10 Apr 2008 12:43:08:TEST LOG:ERROR        -  Unable to define 
> domain test_domain using DefineSystem()
>
> ComputerSystem - 35_start_reset.py: FAIL
> Thu, 10 Apr 2008 12:43:09:TEST LOG:INFO         -  
> ====35_start_reset.py Log====
> Thu, 10 Apr 2008 12:43:09:TEST LOG:ERROR        -  Unexpected rc code 
> 1 and description:
> CIM_ERR_FAILED: A general error occurred that is not covered by a more 
> specific error code: "Failed to create domain"
> Thu, 10 Apr 2008 12:43:09:TEST LOG:ERROR        -  Unable to define 
> domain test_domain using DefineSystem()
>
> ComputerSystem - 40_RSC_start.py: FAIL
> Thu, 10 Apr 2008 12:43:10:TEST LOG:INFO         -  ====40_RSC_start.py 
> Log====
> Thu, 10 Apr 2008 12:43:11:TEST LOG:ERROR        -  Unexpected rc code 
> 1 and description:
> CIM_ERR_FAILED: A general error occurred that is not covered by a more 
> specific error code: "Failed to create domain"
> Thu, 10 Apr 2008 12:43:11:TEST LOG:ERROR        -  Exception: ('Unable 
> create domain %s using DefineSystem()', 'test_domain')
>
> ComputerSystemIndication - 01_created_indication.py: FAIL
> Thu, 10 Apr 2008 12:43:14:TEST LOG:INFO         -  
> ====01_created_indication.py Log====
> Thu, 10 Apr 2008 12:46:23:TEST LOG:ERROR        -  error : (110, 
> 'Connection timed out')
>
> Memory - 02_defgetmem.py: FAIL
> Thu, 10 Apr 2008 12:47:30:TEST LOG:INFO     -  ====02_defgetmem.py 
> Log====
> Thu, 10 Apr 2008 12:47:30:TEST LOG:ERROR    -  Unexpected rc code 1 
> and description:
> CIM_ERR_FAILED: A general error occurred that is not covered by a more 
> specific error code: "Failed to create domain"
> Thu, 10 Apr 2008 12:47:30:TEST LOG:ERROR    -  Exception: Unable to 
> create domain domu using DefineSys()
>
Need to look into the above tc which are failing.
> NetworkPort - 01_netport.py: FAIL
> Thu, 10 Apr 2008 12:47:35:TEST LOG:INFO         -  ====01_netport.py 
> Log====
> Thu, 10 Apr 2008 12:47:36:TEST LOG:ERROR        -  KeyError : '__eq__'
>
Test case error fixed it.
> Processor - 02_definesys_get_procs.py: FAIL
> Thu, 10 Apr 2008 12:47:45:TEST LOG:INFO         -  
> ====02_definesys_get_procs.py Log====
> Thu, 10 Apr 2008 12:47:45:TEST LOG:ERROR        -  Unexpected rc code 
> 1 and description:
> CIM_ERR_FAILED: A general error occurred that is not covered by a more 
> specific error code: "Failed to create domain"
> Thu, 10 Apr 2008 12:47:45:TEST LOG:ERROR        -  Exception: Unable 
> create domain test_domain using DefineSystem()
>
> VirtualSystemManagementService - 01_definesystem_name.py: FAIL
> Thu, 10 Apr 2008 12:49:09:TEST LOG:INFO         -  
> ====01_definesystem_name.py Log====
> Thu, 10 Apr 2008 12:49:09:TEST LOG:ERROR        -  Unexpected rc code 
> 1 and description:
> CIM_ERR_FAILED: A general error occurred that is not covered by a more 
> specific error code: "Failed to create domain"
>
Need to look into the above tc which are failing.
> VirtualSystemManagementService - 05_destroysystem_neg.py: FAIL
> Thu, 10 Apr 2008 12:49:17:TEST LOG:INFO         -  
> ====05_destroysystem_neg.py Log====
> Thu, 10 Apr 2008 12:49:17:TEST LOG:ERROR        -  
> destroy_fail>>nonexistent: Got rc: 2, but we expect 4
> Thu, 10 Apr 2008 12:49:17:TEST LOG:ERROR        -  
> destroy_fail>>nonexistent: Got rc: 2, but we expect 4
>
The error code returned was mismatching. Fixed it.
I have a doubt here though.

The part of the code in Virt_VirtualSystemManagementService.c which is 
checked here does seem to handle all the error condition.
 520 error:
 521         if (rc == IM_RC_SYS_NOT_FOUND)
 522                 cu_statusf(_BROKER, &status,
 523                            CMPI_RC_ERR_FAILED,
 524                            "Failed to find domain");
 525         else if (rc == IM_RC_OK)
 526                 status = (CMPIStatus){CMPI_RC_OK, NULL};
 527
The tc does should have got the "Failed to find domain" error when a 
nonexisting domain is passed, but this is not so because the part of the 
code which is used to check this does not set
the rc to IM_RC_SYS_NOT_FOUND before junping to error , see the code below.

        // Make sure system exists and destroy it.
        if (!domain_exists(conn, dom_name))
                goto error;

>
> Thanks and Regards,
> Deepti.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: April10-report-complete
URL: <http://listman.redhat.com/archives/libvirt-cim/attachments/20080410/76a02856/attachment.ksh>


More information about the Libvirt-cim mailing list