From deeptik at linux.vnet.ibm.com Mon Feb 2 05:51:37 2009 From: deeptik at linux.vnet.ibm.com (Deepti B Kalakeri) Date: Mon, 02 Feb 2009 11:21:37 +0530 Subject: [Libvirt-cim] [PATCH] [TEST] #2 Update VSMS 11_define_memrasdunits.py to use cim_define() In-Reply-To: References: Message-ID: <498689E9.2080308@linux.vnet.ibm.com> +1 for me. -- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik at linux.vnet.ibm.com From deeptik at linux.vnet.ibm.com Mon Feb 2 06:41:54 2009 From: deeptik at linux.vnet.ibm.com (Deepti B Kalakeri) Date: Mon, 02 Feb 2009 12:11:54 +0530 Subject: [Libvirt-cim] Test Run Summary (Feb 02 2009): KVM on Fedora release 10 (Cambridge) with Pegasus Message-ID: <498695B2.2050604@linux.vnet.ibm.com> ================================================= Test Run Summary (Feb 02 2009): KVM on Fedora release 10 (Cambridge) with Pegasus ================================================= Distro: Fedora release 10 (Cambridge) Kernel: 2.6.27.7-134.fc10.x86_64 libvirt: Unknown Hypervisor: Unknown CIMOM: Pegasus 2.7.1 Libvirt-cim revision: 807 Libvirt-cim changeset: 189cc68a2f5a Cimtest revision: 606 Cimtest changeset: 2ef1704ac586 ================================================= FAIL : 3 XFAIL : 2 SKIP : 7 PASS : 130 ----------------- Total : 142 ================================================= FAIL Test Summary: ElementConforms - 01_forward.py: FAIL HostSystem - 03_hs_to_settdefcap.py: FAIL SettingsDefineCapabilities - 01_forward.py: FAIL ================================================= XFAIL Test Summary: ComputerSystem - 32_start_reboot.py: XFAIL ComputerSystem - 33_suspend_reboot.py: XFAIL ================================================= SKIP Test Summary: ComputerSystem - 02_nosystems.py: SKIP LogicalDisk - 02_nodevs.py: SKIP VSSD - 02_bootldr.py: SKIP VirtualSystemManagementService - 06_addresource.py: SKIP VirtualSystemMigrationService - 01_migratable_host.py: SKIP VirtualSystemMigrationService - 02_host_migrate_type.py: SKIP VirtualSystemMigrationService - 05_migratable_host_errs.py: SKIP ================================================= Full report: -------------------------------------------------------------------- AllocationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- AllocationCapabilities - 02_alloccap_gi_errs.py: PASS -------------------------------------------------------------------- ComputerSystem - 01_enum.py: PASS -------------------------------------------------------------------- ComputerSystem - 02_nosystems.py: SKIP ERROR - System has defined domains; unable to run -------------------------------------------------------------------- ComputerSystem - 03_defineVS.py: PASS -------------------------------------------------------------------- ComputerSystem - 04_defineStartVS.py: PASS -------------------------------------------------------------------- ComputerSystem - 05_activate_defined_start.py: PASS -------------------------------------------------------------------- ComputerSystem - 06_paused_active_suspend.py: PASS -------------------------------------------------------------------- ComputerSystem - 22_define_suspend.py: PASS -------------------------------------------------------------------- ComputerSystem - 23_pause_pause.py: PASS -------------------------------------------------------------------- ComputerSystem - 27_define_pause_errs.py: PASS -------------------------------------------------------------------- ComputerSystem - 32_start_reboot.py: XFAIL ERROR - Got CIM error CIM_ERR_FAILED: Unable to reboot domain: this function is not supported by the hypervisor: virDomainReboot with return code 1 ERROR - Exception: Unable reboot dom 'cs_test_domain' InvokeMethod(RequestStateChange): CIM_ERR_FAILED: Unable to reboot domain: this function is not supported by the hypervisor: virDomainReboot Bug:<00005> -------------------------------------------------------------------- ComputerSystem - 33_suspend_reboot.py: XFAIL ERROR - Got CIM error CIM_ERR_NOT_SUPPORTED: State not supported with return code 7 ERROR - Exception: Unable Suspend dom 'test_domain' InvokeMethod(RequestStateChange): CIM_ERR_NOT_SUPPORTED: State not supported Bug:<00012> -------------------------------------------------------------------- ComputerSystem - 35_start_reset.py: PASS -------------------------------------------------------------------- ComputerSystem - 40_RSC_start.py: PASS -------------------------------------------------------------------- ComputerSystem - 41_cs_to_settingdefinestate.py: PASS -------------------------------------------------------------------- ComputerSystem - 42_cs_gi_errs.py: PASS -------------------------------------------------------------------- ComputerSystemIndication - 01_created_indication.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 01_forward.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 02_reverse.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 03_reverse_errs.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 04_forward_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 01_forward.py: PASS -------------------------------------------------------------------- ElementCapabilities - 02_reverse.py: PASS -------------------------------------------------------------------- ElementCapabilities - 03_forward_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 04_reverse_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 05_hostsystem_cap.py: PASS -------------------------------------------------------------------- ElementConforms - 01_forward.py: FAIL ERROR - verify_fields() exception: u'KVM_AllocationCapabilities' ERROR - Exception: Failed to verify instance CIM_ERR_INVALID_CLASS: Linux_ComputerSystem -------------------------------------------------------------------- ElementConforms - 02_reverse.py: PASS -------------------------------------------------------------------- ElementConforms - 03_ectp_fwd_errs.py: PASS -------------------------------------------------------------------- ElementConforms - 04_ectp_rev_errs.py: PASS -------------------------------------------------------------------- ElementSettingData - 01_forward.py: PASS -------------------------------------------------------------------- ElementSettingData - 03_esd_assoc_with_rasd_errs.py: PASS -------------------------------------------------------------------- EnabledLogicalElementCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- EnabledLogicalElementCapabilities - 02_elecap_gi_errs.py: PASS -------------------------------------------------------------------- HostSystem - 01_enum.py: PASS -------------------------------------------------------------------- HostSystem - 02_hostsystem_to_rasd.py: PASS -------------------------------------------------------------------- HostSystem - 03_hs_to_settdefcap.py: FAIL ERROR - 'KVM_SettingsDefineCapabilities' returned 8 RASD objects instead of 4 CIM_ERR_INVALID_CLASS: Linux_ComputerSystem -------------------------------------------------------------------- HostSystem - 04_hs_to_EAPF.py: PASS -------------------------------------------------------------------- HostSystem - 05_hs_gi_errs.py: PASS -------------------------------------------------------------------- HostSystem - 06_hs_to_vsms.py: PASS -------------------------------------------------------------------- HostedDependency - 01_forward.py: PASS -------------------------------------------------------------------- HostedDependency - 02_reverse.py: PASS -------------------------------------------------------------------- HostedDependency - 03_enabledstate.py: PASS -------------------------------------------------------------------- HostedDependency - 04_reverse_errs.py: PASS -------------------------------------------------------------------- HostedResourcePool - 01_forward.py: PASS -------------------------------------------------------------------- HostedResourcePool - 02_reverse.py: PASS -------------------------------------------------------------------- HostedResourcePool - 03_forward_errs.py: PASS -------------------------------------------------------------------- HostedResourcePool - 04_reverse_errs.py: PASS -------------------------------------------------------------------- HostedService - 01_forward.py: PASS -------------------------------------------------------------------- HostedService - 02_reverse.py: PASS -------------------------------------------------------------------- HostedService - 03_forward_errs.py: PASS -------------------------------------------------------------------- HostedService - 04_reverse_errs.py: PASS -------------------------------------------------------------------- KVMRedirectionSAP - 01_enum_KVMredSAP.py: PASS -------------------------------------------------------------------- LogicalDisk - 01_disk.py: PASS -------------------------------------------------------------------- LogicalDisk - 02_nodevs.py: SKIP ERROR - System has defined domains; unable to run -------------------------------------------------------------------- LogicalDisk - 03_ld_gi_errs.py: PASS -------------------------------------------------------------------- Memory - 01_memory.py: PASS -------------------------------------------------------------------- Memory - 02_defgetmem.py: PASS -------------------------------------------------------------------- Memory - 03_mem_gi_errs.py: PASS -------------------------------------------------------------------- NetworkPort - 01_netport.py: PASS -------------------------------------------------------------------- NetworkPort - 02_np_gi_errors.py: PASS -------------------------------------------------------------------- NetworkPort - 03_user_netport.py: PASS -------------------------------------------------------------------- Processor - 01_processor.py: PASS -------------------------------------------------------------------- Processor - 02_definesys_get_procs.py: PASS -------------------------------------------------------------------- Processor - 03_proc_gi_errs.py: PASS -------------------------------------------------------------------- Profile - 01_enum.py: PASS -------------------------------------------------------------------- Profile - 02_profile_to_elec.py: PASS -------------------------------------------------------------------- Profile - 03_rprofile_gi_errs.py: PASS -------------------------------------------------------------------- RASD - 01_verify_rasd_fields.py: PASS -------------------------------------------------------------------- RASD - 02_enum.py: PASS -------------------------------------------------------------------- RASD - 03_rasd_errs.py: PASS -------------------------------------------------------------------- RASD - 04_disk_rasd_size.py: PASS -------------------------------------------------------------------- RASD - 05_disk_rasd_emu_type.py: PASS -------------------------------------------------------------------- RedirectionService - 01_enum_crs.py: PASS -------------------------------------------------------------------- RedirectionService - 02_enum_crscap.py: PASS -------------------------------------------------------------------- RedirectionService - 03_RedirectionSAP_errs.py: PASS -------------------------------------------------------------------- ReferencedProfile - 01_verify_refprof.py: PASS -------------------------------------------------------------------- ReferencedProfile - 02_refprofile_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 01_forward.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 02_reverse.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 03_forward_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 04_reverse_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 05_RAPF_err.py: PASS -------------------------------------------------------------------- ResourcePool - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePool - 02_rp_gi_errors.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationCapabilities - 02_rpcc_gi_errs.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 02_rcps_gi_errors.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 03_CreateResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 04_CreateChildResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 05_AddResourcesToResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 06_RemoveResourcesFromResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 07_DeleteResourcePool.py: PASS -------------------------------------------------------------------- SettingsDefine - 01_forward.py: PASS -------------------------------------------------------------------- SettingsDefine - 02_reverse.py: PASS -------------------------------------------------------------------- SettingsDefine - 03_sds_fwd_errs.py: PASS -------------------------------------------------------------------- SettingsDefine - 04_sds_rev_errs.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 01_forward.py: FAIL ERROR - KVM_SettingsDefineCapabilities returned 8 ResourcePool objects instead of 4 -------------------------------------------------------------------- SettingsDefineCapabilities - 03_forward_errs.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 04_forward_vsmsdata.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 05_reverse_vsmcap.py: PASS -------------------------------------------------------------------- SystemDevice - 01_forward.py: PASS -------------------------------------------------------------------- SystemDevice - 02_reverse.py: PASS -------------------------------------------------------------------- SystemDevice - 03_fwderrs.py: PASS -------------------------------------------------------------------- VSSD - 01_enum.py: PASS -------------------------------------------------------------------- VSSD - 02_bootldr.py: SKIP -------------------------------------------------------------------- VSSD - 03_vssd_gi_errs.py: PASS -------------------------------------------------------------------- VSSD - 04_vssd_to_rasd.py: PASS -------------------------------------------------------------------- VirtualSystemManagementCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemManagementCapabilities - 02_vsmcap_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 01_definesystem_name.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 02_destroysystem.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 03_definesystem_ess.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 04_definesystem_ers.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 05_destroysystem_neg.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 06_addresource.py: SKIP ERROR - Need to give different bridge name since it already exists -------------------------------------------------------------------- VirtualSystemManagementService - 07_addresource_neg.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 08_modifyresource.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 09_procrasd_persist.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 10_hv_version.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 11_define_memrasdunits.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 12_referenced_config.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 13_refconfig_additional_devs.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 14_define_sys_disk.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 15_mod_system_settings.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationCapabilities - 02_vsmc_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationService - 01_migratable_host.py: SKIP -------------------------------------------------------------------- VirtualSystemMigrationService - 02_host_migrate_type.py: SKIP -------------------------------------------------------------------- VirtualSystemMigrationService - 05_migratable_host_errs.py: SKIP -------------------------------------------------------------------- VirtualSystemMigrationSettingData - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationSettingData - 02_vsmsd_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 01_forward.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 02_reverse.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 03_vssdc_fwd_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 04_vssdc_rev_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotService - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotService - 02_vs_sservice_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotServiceCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotServiceCapabilities - 02_vs_sservicecap_gi_errs.py: PASS -------------------------------------------------------------------- -- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik at linux.vnet.ibm.com From deeptik at linux.vnet.ibm.com Mon Feb 2 07:16:44 2009 From: deeptik at linux.vnet.ibm.com (Deepti B Kalakeri) Date: Mon, 02 Feb 2009 12:46:44 +0530 Subject: [Libvirt-cim] Test Run Summary (Feb 02 2009): LXC on Fedora release 9.90.1 (Rawhide) with sfcb Message-ID: <49869DDC.20208@linux.vnet.ibm.com> ================================================= Test Run Summary (Feb 02 2009): LXC on Fedora release 9.90.1 (Rawhide) with sfcb ================================================= Distro: Fedora release 9.90.1 (Rawhide) Kernel: 2.6.27-0.323.rc6.fc10.x86_64 libvirt: 0.4.5 Hypervisor: QEMU 0.9.1 CIMOM: sfcb sfcbd 1.3.3preview Libvirt-cim revision: 805 Libvirt-cim changeset: c87e67c92f7c Cimtest revision: 606 Cimtest changeset: 2ef1704ac586 ================================================= FAIL : 1 XFAIL : 8 SKIP : 32 PASS : 101 ----------------- Total : 142 ================================================= FAIL Test Summary: ElementConforms - 01_forward.py: FAIL ================================================= XFAIL Test Summary: ComputerSystem - 06_paused_active_suspend.py: XFAIL ComputerSystem - 23_pause_pause.py: XFAIL ComputerSystem - 32_start_reboot.py: XFAIL ComputerSystem - 33_suspend_reboot.py: XFAIL HostSystem - 02_hostsystem_to_rasd.py: XFAIL HostedDependency - 03_enabledstate.py: XFAIL VSSD - 04_vssd_to_rasd.py: XFAIL VirtualSystemManagementService - 15_mod_system_settings.py: XFAIL ================================================= SKIP Test Summary: ComputerSystem - 02_nosystems.py: SKIP ComputerSystem - 41_cs_to_settingdefinestate.py: SKIP ComputerSystemIndication - 01_created_indication.py: SKIP ElementAllocatedFromPool - 03_reverse_errs.py: SKIP ElementAllocatedFromPool - 04_forward_errs.py: SKIP LogicalDisk - 01_disk.py: SKIP LogicalDisk - 02_nodevs.py: SKIP LogicalDisk - 03_ld_gi_errs.py: SKIP NetworkPort - 01_netport.py: SKIP NetworkPort - 02_np_gi_errors.py: SKIP NetworkPort - 03_user_netport.py: SKIP Processor - 01_processor.py: SKIP Processor - 02_definesys_get_procs.py: SKIP Processor - 03_proc_gi_errs.py: SKIP RASD - 04_disk_rasd_size.py: SKIP RASD - 05_disk_rasd_emu_type.py: SKIP ResourceAllocationFromPool - 05_RAPF_err.py: SKIP ResourcePoolConfigurationService - 03_CreateResourcePool.py: SKIP ResourcePoolConfigurationService - 04_CreateChildResourcePool.py: SKIP ResourcePoolConfigurationService - 05_AddResourcesToResourcePool.py: SKIP ResourcePoolConfigurationService - 06_RemoveResourcesFromResourcePool.py: SKIP ResourcePoolConfigurationService - 07_DeleteResourcePool.py: SKIP VSSD - 02_bootldr.py: SKIP VirtualSystemManagementService - 06_addresource.py: SKIP VirtualSystemManagementService - 08_modifyresource.py: SKIP VirtualSystemManagementService - 09_procrasd_persist.py: SKIP VirtualSystemManagementService - 11_define_memrasdunits.py: SKIP VirtualSystemManagementService - 12_referenced_config.py: SKIP VirtualSystemManagementService - 13_refconfig_additional_devs.py: SKIP VirtualSystemMigrationService - 01_migratable_host.py: SKIP VirtualSystemMigrationService - 02_host_migrate_type.py: SKIP VirtualSystemMigrationService - 05_migratable_host_errs.py: SKIP ================================================= Full report: -------------------------------------------------------------------- AllocationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- AllocationCapabilities - 02_alloccap_gi_errs.py: PASS -------------------------------------------------------------------- ComputerSystem - 01_enum.py: PASS -------------------------------------------------------------------- ComputerSystem - 02_nosystems.py: SKIP ERROR - System has defined domains; unable to run -------------------------------------------------------------------- ComputerSystem - 03_defineVS.py: PASS -------------------------------------------------------------------- ComputerSystem - 04_defineStartVS.py: PASS -------------------------------------------------------------------- ComputerSystem - 05_activate_defined_start.py: PASS -------------------------------------------------------------------- ComputerSystem - 06_paused_active_suspend.py: XFAIL ERROR - Got CIM error Unable to pause domain: this function is not supported by the hypervisor: virDomainSuspend with return code 1 ERROR - Exception variable: Unable pause dom 'DomST1' InvokeMethod(RequestStateChange): Unable to pause domain: this function is not supported by the hypervisor: virDomainSuspend Bug:<00011> -------------------------------------------------------------------- ComputerSystem - 22_define_suspend.py: PASS -------------------------------------------------------------------- ComputerSystem - 23_pause_pause.py: XFAIL ERROR - Got CIM error Unable to pause domain: this function is not supported by the hypervisor: virDomainSuspend with return code 1 ERROR - Exception: 'Unable pause dom 'cs_test_domain'' InvokeMethod(RequestStateChange): Unable to pause domain: this function is not supported by the hypervisor: virDomainSuspend Bug:<00011> -------------------------------------------------------------------- ComputerSystem - 27_define_pause_errs.py: PASS -------------------------------------------------------------------- ComputerSystem - 32_start_reboot.py: XFAIL ERROR - Got CIM error Unable to reboot domain: this function is not supported by the hypervisor: virDomainReboot with return code 1 ERROR - Exception: Unable reboot dom 'cs_test_domain' InvokeMethod(RequestStateChange): Unable to reboot domain: this function is not supported by the hypervisor: virDomainReboot Bug:<00005> -------------------------------------------------------------------- ComputerSystem - 33_suspend_reboot.py: XFAIL ERROR - Got CIM error State not supported with return code 7 ERROR - Exception: Unable Suspend dom 'test_domain' InvokeMethod(RequestStateChange): State not supported Bug:<00012> -------------------------------------------------------------------- ComputerSystem - 35_start_reset.py: PASS -------------------------------------------------------------------- ComputerSystem - 40_RSC_start.py: PASS -------------------------------------------------------------------- ComputerSystem - 41_cs_to_settingdefinestate.py: SKIP -------------------------------------------------------------------- ComputerSystem - 42_cs_gi_errs.py: PASS -------------------------------------------------------------------- ComputerSystemIndication - 01_created_indication.py: SKIP -------------------------------------------------------------------- ElementAllocatedFromPool - 01_forward.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 02_reverse.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 03_reverse_errs.py: SKIP -------------------------------------------------------------------- ElementAllocatedFromPool - 04_forward_errs.py: SKIP -------------------------------------------------------------------- ElementCapabilities - 01_forward.py: PASS -------------------------------------------------------------------- ElementCapabilities - 02_reverse.py: PASS -------------------------------------------------------------------- ElementCapabilities - 03_forward_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 04_reverse_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 05_hostsystem_cap.py: PASS -------------------------------------------------------------------- ElementConforms - 01_forward.py: FAIL ERROR - verify_fields() exception: u'LXC_AllocationCapabilities' ERROR - Exception: Failed to verify instance Class not found -------------------------------------------------------------------- ElementConforms - 02_reverse.py: PASS -------------------------------------------------------------------- ElementConforms - 03_ectp_fwd_errs.py: PASS -------------------------------------------------------------------- ElementConforms - 04_ectp_rev_errs.py: PASS -------------------------------------------------------------------- ElementSettingData - 01_forward.py: PASS -------------------------------------------------------------------- ElementSettingData - 03_esd_assoc_with_rasd_errs.py: PASS -------------------------------------------------------------------- EnabledLogicalElementCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- EnabledLogicalElementCapabilities - 02_elecap_gi_errs.py: PASS -------------------------------------------------------------------- HostSystem - 01_enum.py: PASS -------------------------------------------------------------------- HostSystem - 02_hostsystem_to_rasd.py: XFAIL ERROR - InstanceID Mismatch ERROR - Returned CrossClass_GuestDom/mouse:xen instead of CrossClass_GuestDom/mouse:usb Class not found Bug:<00009> -------------------------------------------------------------------- HostSystem - 03_hs_to_settdefcap.py: PASS -------------------------------------------------------------------- HostSystem - 04_hs_to_EAPF.py: PASS -------------------------------------------------------------------- HostSystem - 05_hs_gi_errs.py: PASS -------------------------------------------------------------------- HostSystem - 06_hs_to_vsms.py: PASS -------------------------------------------------------------------- HostedDependency - 01_forward.py: PASS -------------------------------------------------------------------- HostedDependency - 02_reverse.py: PASS -------------------------------------------------------------------- HostedDependency - 03_enabledstate.py: XFAIL ERROR - Exception: (1, u'Unable to pause domain: this function is not supported by the hypervisor: virDomainSuspend') ERROR - Failed to suspend the dom: hd_domain1 InvokeMethod(RequestStateChange): Unable to pause domain: this function is not supported by the hypervisor: virDomainSuspend Bug:<00011> -------------------------------------------------------------------- HostedDependency - 04_reverse_errs.py: PASS -------------------------------------------------------------------- HostedResourcePool - 01_forward.py: PASS -------------------------------------------------------------------- HostedResourcePool - 02_reverse.py: PASS -------------------------------------------------------------------- HostedResourcePool - 03_forward_errs.py: PASS -------------------------------------------------------------------- HostedResourcePool - 04_reverse_errs.py: PASS -------------------------------------------------------------------- HostedService - 01_forward.py: PASS -------------------------------------------------------------------- HostedService - 02_reverse.py: PASS -------------------------------------------------------------------- HostedService - 03_forward_errs.py: PASS -------------------------------------------------------------------- HostedService - 04_reverse_errs.py: PASS -------------------------------------------------------------------- KVMRedirectionSAP - 01_enum_KVMredSAP.py: PASS -------------------------------------------------------------------- LogicalDisk - 01_disk.py: SKIP -------------------------------------------------------------------- LogicalDisk - 02_nodevs.py: SKIP ERROR - System has defined domains; unable to run -------------------------------------------------------------------- LogicalDisk - 03_ld_gi_errs.py: SKIP -------------------------------------------------------------------- Memory - 01_memory.py: PASS -------------------------------------------------------------------- Memory - 02_defgetmem.py: PASS -------------------------------------------------------------------- Memory - 03_mem_gi_errs.py: PASS -------------------------------------------------------------------- NetworkPort - 01_netport.py: SKIP -------------------------------------------------------------------- NetworkPort - 02_np_gi_errors.py: SKIP -------------------------------------------------------------------- NetworkPort - 03_user_netport.py: SKIP -------------------------------------------------------------------- Processor - 01_processor.py: SKIP -------------------------------------------------------------------- Processor - 02_definesys_get_procs.py: SKIP -------------------------------------------------------------------- Processor - 03_proc_gi_errs.py: SKIP -------------------------------------------------------------------- Profile - 01_enum.py: PASS -------------------------------------------------------------------- Profile - 02_profile_to_elec.py: PASS -------------------------------------------------------------------- Profile - 03_rprofile_gi_errs.py: PASS -------------------------------------------------------------------- RASD - 01_verify_rasd_fields.py: PASS -------------------------------------------------------------------- RASD - 02_enum.py: PASS -------------------------------------------------------------------- RASD - 03_rasd_errs.py: PASS -------------------------------------------------------------------- RASD - 04_disk_rasd_size.py: SKIP -------------------------------------------------------------------- RASD - 05_disk_rasd_emu_type.py: SKIP -------------------------------------------------------------------- RedirectionService - 01_enum_crs.py: PASS -------------------------------------------------------------------- RedirectionService - 02_enum_crscap.py: PASS -------------------------------------------------------------------- RedirectionService - 03_RedirectionSAP_errs.py: PASS -------------------------------------------------------------------- ReferencedProfile - 01_verify_refprof.py: PASS -------------------------------------------------------------------- ReferencedProfile - 02_refprofile_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 01_forward.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 02_reverse.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 03_forward_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 04_reverse_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 05_RAPF_err.py: SKIP -------------------------------------------------------------------- ResourcePool - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePool - 02_rp_gi_errors.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationCapabilities - 02_rpcc_gi_errs.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 02_rcps_gi_errors.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 03_CreateResourcePool.py: SKIP -------------------------------------------------------------------- ResourcePoolConfigurationService - 04_CreateChildResourcePool.py: SKIP -------------------------------------------------------------------- ResourcePoolConfigurationService - 05_AddResourcesToResourcePool.py: SKIP -------------------------------------------------------------------- ResourcePoolConfigurationService - 06_RemoveResourcesFromResourcePool.py: SKIP -------------------------------------------------------------------- ResourcePoolConfigurationService - 07_DeleteResourcePool.py: SKIP -------------------------------------------------------------------- SettingsDefine - 01_forward.py: PASS -------------------------------------------------------------------- SettingsDefine - 02_reverse.py: PASS -------------------------------------------------------------------- SettingsDefine - 03_sds_fwd_errs.py: PASS -------------------------------------------------------------------- SettingsDefine - 04_sds_rev_errs.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 01_forward.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 03_forward_errs.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 04_forward_vsmsdata.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 05_reverse_vsmcap.py: PASS -------------------------------------------------------------------- SystemDevice - 01_forward.py: PASS -------------------------------------------------------------------- SystemDevice - 02_reverse.py: PASS -------------------------------------------------------------------- SystemDevice - 03_fwderrs.py: PASS -------------------------------------------------------------------- VSSD - 01_enum.py: PASS -------------------------------------------------------------------- VSSD - 02_bootldr.py: SKIP -------------------------------------------------------------------- VSSD - 03_vssd_gi_errs.py: PASS -------------------------------------------------------------------- VSSD - 04_vssd_to_rasd.py: XFAIL ERROR - InstanceID Mismatch ERROR - Returned VSSDC_dom/mouse:xen instead of VSSDC_dom/mouse:usb Bug:<00009> -------------------------------------------------------------------- VirtualSystemManagementCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemManagementCapabilities - 02_vsmcap_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 01_definesystem_name.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 02_destroysystem.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 03_definesystem_ess.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 04_definesystem_ers.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 05_destroysystem_neg.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 06_addresource.py: SKIP -------------------------------------------------------------------- VirtualSystemManagementService - 07_addresource_neg.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 08_modifyresource.py: SKIP -------------------------------------------------------------------- VirtualSystemManagementService - 09_procrasd_persist.py: SKIP -------------------------------------------------------------------- VirtualSystemManagementService - 10_hv_version.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 11_define_memrasdunits.py: SKIP -------------------------------------------------------------------- VirtualSystemManagementService - 12_referenced_config.py: SKIP -------------------------------------------------------------------- VirtualSystemManagementService - 13_refconfig_additional_devs.py: SKIP -------------------------------------------------------------------- VirtualSystemManagementService - 14_define_sys_disk.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 15_mod_system_settings.py: XFAIL ERROR - rstest_domain not updated properly. ERROR - Exp AutomaticRecoveryAction=3, got 2 Bug:<00008> -------------------------------------------------------------------- VirtualSystemMigrationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationCapabilities - 02_vsmc_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationService - 01_migratable_host.py: SKIP -------------------------------------------------------------------- VirtualSystemMigrationService - 02_host_migrate_type.py: SKIP -------------------------------------------------------------------- VirtualSystemMigrationService - 05_migratable_host_errs.py: SKIP -------------------------------------------------------------------- VirtualSystemMigrationSettingData - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationSettingData - 02_vsmsd_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 01_forward.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 02_reverse.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 03_vssdc_fwd_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 04_vssdc_rev_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotService - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotService - 02_vs_sservice_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotServiceCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotServiceCapabilities - 02_vs_sservicecap_gi_errs.py: PASS -------------------------------------------------------------------- -- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik at linux.vnet.ibm.com From deeptik at linux.vnet.ibm.com Mon Feb 2 07:20:38 2009 From: deeptik at linux.vnet.ibm.com (Deepti B Kalakeri) Date: Mon, 02 Feb 2009 12:50:38 +0530 Subject: [Libvirt-cim] Test Run Summary (Feb 02 2009): KVM on Fedora release 9 (Sulphur) with Pegasus Message-ID: <49869EC6.3010505@linux.vnet.ibm.com> ================================================= Test Run Summary (Feb 02 2009): KVM on Fedora release 9 (Sulphur) with Pegasus ================================================= Distro: Fedora release 9 (Sulphur) Kernel: 2.6.25.14-108.fc9.x86_64 libvirt: 0.4.4 Hypervisor: QEMU 0.9.1 CIMOM: Pegasus 2.7.0 Libvirt-cim revision: 613 Libvirt-cim changeset: 1fcf330fadf8+ Cimtest revision: 606 Cimtest changeset: 2ef1704ac586 ================================================= FAIL : 0 XFAIL : 3 SKIP : 11 PASS : 126 ----------------- Total : 140 ================================================= XFAIL Test Summary: ComputerSystem - 32_start_reboot.py: XFAIL ComputerSystem - 33_suspend_reboot.py: XFAIL VirtualSystemManagementService - 15_mod_system_settings.py: XFAIL ================================================= SKIP Test Summary: ComputerSystem - 02_nosystems.py: SKIP KVMRedirectionSAP - 01_enum_KVMredSAP.py: SKIP LogicalDisk - 02_nodevs.py: SKIP RASD - 05_disk_rasd_emu_type.py: SKIP RedirectionService - 01_enum_crs.py: SKIP RedirectionService - 02_enum_crscap.py: SKIP RedirectionService - 03_RedirectionSAP_errs.py: SKIP VSSD - 02_bootldr.py: SKIP VirtualSystemMigrationService - 01_migratable_host.py: SKIP VirtualSystemMigrationService - 02_host_migrate_type.py: SKIP VirtualSystemMigrationService - 05_migratable_host_errs.py: SKIP ================================================= Full report: -------------------------------------------------------------------- AllocationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- AllocationCapabilities - 02_alloccap_gi_errs.py: PASS -------------------------------------------------------------------- ComputerSystem - 01_enum.py: PASS -------------------------------------------------------------------- ComputerSystem - 02_nosystems.py: SKIP ERROR - System has defined domains; unable to run -------------------------------------------------------------------- ComputerSystem - 03_defineVS.py: PASS -------------------------------------------------------------------- ComputerSystem - 04_defineStartVS.py: PASS -------------------------------------------------------------------- ComputerSystem - 05_activate_defined_start.py: PASS -------------------------------------------------------------------- ComputerSystem - 06_paused_active_suspend.py: PASS -------------------------------------------------------------------- ComputerSystem - 22_define_suspend.py: PASS -------------------------------------------------------------------- ComputerSystem - 23_pause_pause.py: PASS -------------------------------------------------------------------- ComputerSystem - 27_define_pause_errs.py: PASS -------------------------------------------------------------------- ComputerSystem - 32_start_reboot.py: XFAIL ERROR - Got CIM error CIM_ERR_FAILED: Domain Operation Failed with return code 1 ERROR - Exception: Unable reboot dom 'cs_test_domain' InvokeMethod(RequestStateChange): CIM_ERR_FAILED: Domain Operation Failed Bug:<00005> -------------------------------------------------------------------- ComputerSystem - 33_suspend_reboot.py: XFAIL ERROR - Got CIM error CIM_ERR_NOT_SUPPORTED: State not supported with return code 7 ERROR - Exception: Unable Suspend dom 'test_domain' InvokeMethod(RequestStateChange): CIM_ERR_NOT_SUPPORTED: State not supported Bug:<00012> -------------------------------------------------------------------- ComputerSystem - 35_start_reset.py: PASS -------------------------------------------------------------------- ComputerSystem - 40_RSC_start.py: PASS -------------------------------------------------------------------- ComputerSystem - 41_cs_to_settingdefinestate.py: PASS -------------------------------------------------------------------- ComputerSystem - 42_cs_gi_errs.py: PASS -------------------------------------------------------------------- ComputerSystemIndication - 01_created_indication.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 01_forward.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 02_reverse.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 03_reverse_errs.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 04_forward_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 01_forward.py: PASS -------------------------------------------------------------------- ElementCapabilities - 02_reverse.py: PASS -------------------------------------------------------------------- ElementCapabilities - 03_forward_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 04_reverse_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 05_hostsystem_cap.py: PASS -------------------------------------------------------------------- ElementConforms - 01_forward.py: PASS -------------------------------------------------------------------- ElementConforms - 02_reverse.py: PASS -------------------------------------------------------------------- ElementConforms - 03_ectp_fwd_errs.py: PASS -------------------------------------------------------------------- ElementConforms - 04_ectp_rev_errs.py: PASS -------------------------------------------------------------------- ElementSettingData - 01_forward.py: PASS -------------------------------------------------------------------- ElementSettingData - 03_esd_assoc_with_rasd_errs.py: PASS -------------------------------------------------------------------- EnabledLogicalElementCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- EnabledLogicalElementCapabilities - 02_elecap_gi_errs.py: PASS -------------------------------------------------------------------- HostSystem - 01_enum.py: PASS -------------------------------------------------------------------- HostSystem - 02_hostsystem_to_rasd.py: PASS -------------------------------------------------------------------- HostSystem - 03_hs_to_settdefcap.py: PASS -------------------------------------------------------------------- HostSystem - 04_hs_to_EAPF.py: PASS -------------------------------------------------------------------- HostSystem - 05_hs_gi_errs.py: PASS -------------------------------------------------------------------- HostSystem - 06_hs_to_vsms.py: PASS -------------------------------------------------------------------- HostedDependency - 01_forward.py: PASS -------------------------------------------------------------------- HostedDependency - 02_reverse.py: PASS -------------------------------------------------------------------- HostedDependency - 03_enabledstate.py: PASS -------------------------------------------------------------------- HostedDependency - 04_reverse_errs.py: PASS -------------------------------------------------------------------- HostedResourcePool - 01_forward.py: PASS -------------------------------------------------------------------- HostedResourcePool - 02_reverse.py: PASS -------------------------------------------------------------------- HostedResourcePool - 03_forward_errs.py: PASS -------------------------------------------------------------------- HostedResourcePool - 04_reverse_errs.py: PASS -------------------------------------------------------------------- HostedService - 01_forward.py: PASS -------------------------------------------------------------------- HostedService - 02_reverse.py: PASS -------------------------------------------------------------------- HostedService - 03_forward_errs.py: PASS -------------------------------------------------------------------- HostedService - 04_reverse_errs.py: PASS -------------------------------------------------------------------- KVMRedirectionSAP - 01_enum_KVMredSAP.py: SKIP -------------------------------------------------------------------- LogicalDisk - 01_disk.py: PASS -------------------------------------------------------------------- LogicalDisk - 02_nodevs.py: SKIP ERROR - System has defined domains; unable to run -------------------------------------------------------------------- LogicalDisk - 03_ld_gi_errs.py: PASS -------------------------------------------------------------------- Memory - 01_memory.py: PASS -------------------------------------------------------------------- Memory - 02_defgetmem.py: PASS -------------------------------------------------------------------- Memory - 03_mem_gi_errs.py: PASS -------------------------------------------------------------------- NetworkPort - 01_netport.py: PASS -------------------------------------------------------------------- NetworkPort - 02_np_gi_errors.py: PASS -------------------------------------------------------------------- NetworkPort - 03_user_netport.py: PASS -------------------------------------------------------------------- Processor - 01_processor.py: PASS -------------------------------------------------------------------- Processor - 02_definesys_get_procs.py: PASS -------------------------------------------------------------------- Processor - 03_proc_gi_errs.py: PASS -------------------------------------------------------------------- Profile - 01_enum.py: PASS -------------------------------------------------------------------- Profile - 02_profile_to_elec.py: PASS -------------------------------------------------------------------- Profile - 03_rprofile_gi_errs.py: PASS -------------------------------------------------------------------- RASD - 01_verify_rasd_fields.py: PASS -------------------------------------------------------------------- RASD - 02_enum.py: PASS -------------------------------------------------------------------- RASD - 03_rasd_errs.py: PASS -------------------------------------------------------------------- RASD - 04_disk_rasd_size.py: PASS -------------------------------------------------------------------- RASD - 05_disk_rasd_emu_type.py: SKIP -------------------------------------------------------------------- RedirectionService - 01_enum_crs.py: SKIP -------------------------------------------------------------------- RedirectionService - 02_enum_crscap.py: SKIP -------------------------------------------------------------------- RedirectionService - 03_RedirectionSAP_errs.py: SKIP -------------------------------------------------------------------- ReferencedProfile - 01_verify_refprof.py: PASS -------------------------------------------------------------------- ReferencedProfile - 02_refprofile_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 01_forward.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 02_reverse.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 03_forward_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 04_reverse_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 05_RAPF_err.py: PASS -------------------------------------------------------------------- ResourcePool - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePool - 02_rp_gi_errors.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationCapabilities - 02_rpcc_gi_errs.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 02_rcps_gi_errors.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 03_CreateResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 04_CreateChildResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 05_AddResourcesToResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 06_RemoveResourcesFromResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 07_DeleteResourcePool.py: PASS -------------------------------------------------------------------- SettingsDefine - 01_forward.py: PASS -------------------------------------------------------------------- SettingsDefine - 02_reverse.py: PASS -------------------------------------------------------------------- SettingsDefine - 03_sds_fwd_errs.py: PASS -------------------------------------------------------------------- SettingsDefine - 04_sds_rev_errs.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 01_forward.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 03_forward_errs.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 04_forward_vsmsdata.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 05_reverse_vsmcap.py: PASS -------------------------------------------------------------------- SystemDevice - 01_forward.py: PASS -------------------------------------------------------------------- SystemDevice - 02_reverse.py: PASS -------------------------------------------------------------------- SystemDevice - 03_fwderrs.py: PASS -------------------------------------------------------------------- VSSD - 01_enum.py: PASS -------------------------------------------------------------------- VSSD - 02_bootldr.py: SKIP -------------------------------------------------------------------- VSSD - 03_vssd_gi_errs.py: PASS -------------------------------------------------------------------- VSSD - 04_vssd_to_rasd.py: PASS -------------------------------------------------------------------- VirtualSystemManagementCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemManagementCapabilities - 02_vsmcap_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 01_definesystem_name.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 02_destroysystem.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 03_definesystem_ess.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 04_definesystem_ers.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 05_destroysystem_neg.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 06_addresource.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 07_addresource_neg.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 08_modifyresource.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 10_hv_version.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 11_define_memrasdunits.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 13_refconfig_additional_devs.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 14_define_sys_disk.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 15_mod_system_settings.py: XFAIL ERROR - rstest_domain not updated properly. ERROR - Exp AutomaticRecoveryAction=3, got 2 Bug:<00010> -------------------------------------------------------------------- VirtualSystemMigrationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationCapabilities - 02_vsmc_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationService - 01_migratable_host.py: SKIP -------------------------------------------------------------------- VirtualSystemMigrationService - 02_host_migrate_type.py: SKIP -------------------------------------------------------------------- VirtualSystemMigrationService - 05_migratable_host_errs.py: SKIP -------------------------------------------------------------------- VirtualSystemMigrationSettingData - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationSettingData - 02_vsmsd_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 01_forward.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 02_reverse.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 03_vssdc_fwd_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 04_vssdc_rev_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotService - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotService - 02_vs_sservice_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotServiceCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotServiceCapabilities - 02_vs_sservicecap_gi_errs.py: PASS -------------------------------------------------------------------- -- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik at linux.vnet.ibm.com From deeptik at linux.vnet.ibm.com Mon Feb 2 07:34:05 2009 From: deeptik at linux.vnet.ibm.com (Deepti B Kalakeri) Date: Mon, 02 Feb 2009 13:04:05 +0530 Subject: [Libvirt-cim] Re: Test Run Summary (Feb 02 2009): KVM on Fedora release 9 (Sulphur) with Pegasus In-Reply-To: <49869EC6.3010505@linux.vnet.ibm.com> References: <49869EC6.3010505@linux.vnet.ibm.com> Message-ID: <4986A1ED.80205@linux.vnet.ibm.com> The following 2 tc's were causing segfault and the cimserver was crashing, hence ran the test without the following 2 test's: VirtualSystemManagementService - 09_procrasd_persist.py VirtualSystemManagementService - 12_referenced_config.py Error: ERROR - Exception: details (0, "The web server returned a bad status line: ''") InvokeMethod(DefineSystem): The web server returned a bad status line: '' > -- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik at linux.vnet.ibm.com From deeptik at linux.vnet.ibm.com Mon Feb 2 09:08:49 2009 From: deeptik at linux.vnet.ibm.com (Deepti B Kalakeri) Date: Mon, 02 Feb 2009 14:38:49 +0530 Subject: [Libvirt-cim] Test Run Summary (Feb 02 2009): Xen on Red Hat Enterprise Linux Server release 5.2 Beta (Tikanga) with Pegasus Message-ID: <4986B821.7080008@linux.vnet.ibm.com> ================================================ Test Run Summary (Feb 02 2009): Xen on Red Hat Enterprise Linux Server release 5.2 Beta (Tikanga) with Pegasus ================================================= Distro: Red Hat Enterprise Linux Server release 5.2 Beta (Tikanga) Kernel: 2.6.18-88.el5xen libvirt: 0.3.3 Hypervisor: Xen 3.1.0 CIMOM: Pegasus 2.7.0 Libvirt-cim revision: 807 Libvirt-cim changeset: 189cc68a2f5a Cimtest revision: 606 Cimtest changeset: 2ef1704ac586 ================================================= FAIL : 10 XFAIL : 1 SKIP : 3 PASS : 128 ----------------- Total : 142 ================================================= FAIL Test Summary: ElementConforms - 01_forward.py: FAIL HostSystem - 03_hs_to_settdefcap.py: FAIL KVMRedirectionSAP - 01_enum_KVMredSAP.py: FAIL RASD - 01_verify_rasd_fields.py: FAIL SettingsDefineCapabilities - 01_forward.py: FAIL VirtualSystemMigrationService - 02_host_migrate_type.py: FAIL VirtualSystemMigrationService - 05_migratable_host_errs.py: FAIL VirtualSystemSettingDataComponent - 02_reverse.py: FAIL VirtualSystemSettingDataComponent - 03_vssdc_fwd_errs.py: FAIL VirtualSystemSettingDataComponent - 04_vssdc_rev_errs.py: FAIL ================================================= XFAIL Test Summary: ComputerSystem - 33_suspend_reboot.py: XFAIL ================================================= SKIP Test Summary: ComputerSystem - 02_nosystems.py: SKIP LogicalDisk - 02_nodevs.py: SKIP NetworkPort - 03_user_netport.py: SKIP ================================================= Full report: -------------------------------------------------------------------- AllocationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- AllocationCapabilities - 02_alloccap_gi_errs.py: PASS -------------------------------------------------------------------- ComputerSystem - 01_enum.py: PASS -------------------------------------------------------------------- ComputerSystem - 02_nosystems.py: SKIP -------------------------------------------------------------------- ComputerSystem - 03_defineVS.py: PASS -------------------------------------------------------------------- ComputerSystem - 04_defineStartVS.py: PASS -------------------------------------------------------------------- ComputerSystem - 05_activate_defined_start.py: PASS -------------------------------------------------------------------- ComputerSystem - 06_paused_active_suspend.py: PASS -------------------------------------------------------------------- ComputerSystem - 22_define_suspend.py: PASS -------------------------------------------------------------------- ComputerSystem - 23_pause_pause.py: PASS -------------------------------------------------------------------- ComputerSystem - 27_define_pause_errs.py: PASS -------------------------------------------------------------------- ComputerSystem - 32_start_reboot.py: PASS -------------------------------------------------------------------- ComputerSystem - 33_suspend_reboot.py: XFAIL ERROR - Got CIM error CIM_ERR_NOT_SUPPORTED: State not supported with return code 7 ERROR - Exception: Unable Suspend dom 'test_domain' InvokeMethod(RequestStateChange): CIM_ERR_NOT_SUPPORTED: State not supported Bug:<00012> -------------------------------------------------------------------- ComputerSystem - 35_start_reset.py: PASS -------------------------------------------------------------------- ComputerSystem - 40_RSC_start.py: PASS -------------------------------------------------------------------- ComputerSystem - 41_cs_to_settingdefinestate.py: PASS -------------------------------------------------------------------- ComputerSystem - 42_cs_gi_errs.py: PASS -------------------------------------------------------------------- ComputerSystemIndication - 01_created_indication.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 01_forward.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 02_reverse.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 03_reverse_errs.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 04_forward_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 01_forward.py: PASS -------------------------------------------------------------------- ElementCapabilities - 02_reverse.py: PASS -------------------------------------------------------------------- ElementCapabilities - 03_forward_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 04_reverse_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 05_hostsystem_cap.py: PASS -------------------------------------------------------------------- ElementConforms - 01_forward.py: FAIL ERROR - verify_fields() exception: u'Xen_AllocationCapabilities' ERROR - Exception: Failed to verify instance CIM_ERR_INVALID_CLASS: Linux_ComputerSystem -------------------------------------------------------------------- ElementConforms - 02_reverse.py: PASS -------------------------------------------------------------------- ElementConforms - 03_ectp_fwd_errs.py: PASS -------------------------------------------------------------------- ElementConforms - 04_ectp_rev_errs.py: PASS -------------------------------------------------------------------- ElementSettingData - 01_forward.py: PASS -------------------------------------------------------------------- ElementSettingData - 03_esd_assoc_with_rasd_errs.py: PASS -------------------------------------------------------------------- EnabledLogicalElementCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- EnabledLogicalElementCapabilities - 02_elecap_gi_errs.py: PASS -------------------------------------------------------------------- HostSystem - 01_enum.py: PASS -------------------------------------------------------------------- HostSystem - 02_hostsystem_to_rasd.py: PASS -------------------------------------------------------------------- HostSystem - 03_hs_to_settdefcap.py: FAIL ERROR - 'Xen_SettingsDefineCapabilities' returned 16 RASD objects instead of 8 CIM_ERR_INVALID_CLASS: Linux_ComputerSystem -------------------------------------------------------------------- HostSystem - 04_hs_to_EAPF.py: PASS -------------------------------------------------------------------- HostSystem - 05_hs_gi_errs.py: PASS -------------------------------------------------------------------- HostSystem - 06_hs_to_vsms.py: PASS -------------------------------------------------------------------- HostedDependency - 01_forward.py: PASS -------------------------------------------------------------------- HostedDependency - 02_reverse.py: PASS -------------------------------------------------------------------- HostedDependency - 03_enabledstate.py: PASS -------------------------------------------------------------------- HostedDependency - 04_reverse_errs.py: PASS -------------------------------------------------------------------- HostedResourcePool - 01_forward.py: PASS -------------------------------------------------------------------- HostedResourcePool - 02_reverse.py: PASS -------------------------------------------------------------------- HostedResourcePool - 03_forward_errs.py: PASS -------------------------------------------------------------------- HostedResourcePool - 04_reverse_errs.py: PASS -------------------------------------------------------------------- HostedService - 01_forward.py: PASS -------------------------------------------------------------------- HostedService - 02_reverse.py: PASS -------------------------------------------------------------------- HostedService - 03_forward_errs.py: PASS -------------------------------------------------------------------- HostedService - 04_reverse_errs.py: PASS -------------------------------------------------------------------- KVMRedirectionSAP - 01_enum_KVMredSAP.py: FAIL ERROR - Exception details: 'ElementName' Value Mismatch, Expected 5949:-1, Got -1:-1 ERROR - Exception: Failed to verify information for the defined dom:test_kvmredsap_dom -------------------------------------------------------------------- LogicalDisk - 01_disk.py: PASS -------------------------------------------------------------------- LogicalDisk - 02_nodevs.py: SKIP ERROR - System has defined domains; unable to run -------------------------------------------------------------------- LogicalDisk - 03_ld_gi_errs.py: PASS -------------------------------------------------------------------- Memory - 01_memory.py: PASS -------------------------------------------------------------------- Memory - 02_defgetmem.py: PASS -------------------------------------------------------------------- Memory - 03_mem_gi_errs.py: PASS -------------------------------------------------------------------- NetworkPort - 01_netport.py: PASS -------------------------------------------------------------------- NetworkPort - 02_np_gi_errors.py: PASS -------------------------------------------------------------------- NetworkPort - 03_user_netport.py: SKIP -------------------------------------------------------------------- Processor - 01_processor.py: PASS -------------------------------------------------------------------- Processor - 02_definesys_get_procs.py: PASS -------------------------------------------------------------------- Processor - 03_proc_gi_errs.py: PASS -------------------------------------------------------------------- Profile - 01_enum.py: PASS -------------------------------------------------------------------- Profile - 02_profile_to_elec.py: PASS -------------------------------------------------------------------- Profile - 03_rprofile_gi_errs.py: PASS -------------------------------------------------------------------- RASD - 01_verify_rasd_fields.py: FAIL ERROR - (6, u'CIM_ERR_NOT_FOUND: No such instance (domguest/xvda)') ERROR - Enum RASDs failed -------------------------------------------------------------------- RASD - 02_enum.py: PASS -------------------------------------------------------------------- RASD - 03_rasd_errs.py: PASS -------------------------------------------------------------------- RASD - 04_disk_rasd_size.py: PASS -------------------------------------------------------------------- RASD - 05_disk_rasd_emu_type.py: PASS -------------------------------------------------------------------- RedirectionService - 01_enum_crs.py: PASS -------------------------------------------------------------------- RedirectionService - 02_enum_crscap.py: PASS -------------------------------------------------------------------- RedirectionService - 03_RedirectionSAP_errs.py: PASS -------------------------------------------------------------------- ReferencedProfile - 01_verify_refprof.py: PASS -------------------------------------------------------------------- ReferencedProfile - 02_refprofile_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 01_forward.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 02_reverse.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 03_forward_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 04_reverse_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 05_RAPF_err.py: PASS -------------------------------------------------------------------- ResourcePool - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePool - 02_rp_gi_errors.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationCapabilities - 02_rpcc_gi_errs.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 02_rcps_gi_errors.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 03_CreateResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 04_CreateChildResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 05_AddResourcesToResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 06_RemoveResourcesFromResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 07_DeleteResourcePool.py: PASS -------------------------------------------------------------------- SettingsDefine - 01_forward.py: PASS -------------------------------------------------------------------- SettingsDefine - 02_reverse.py: PASS -------------------------------------------------------------------- SettingsDefine - 03_sds_fwd_errs.py: PASS -------------------------------------------------------------------- SettingsDefine - 04_sds_rev_errs.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 01_forward.py: FAIL ERROR - Xen_SettingsDefineCapabilities returned 16 ResourcePool objects instead of 8 -------------------------------------------------------------------- SettingsDefineCapabilities - 03_forward_errs.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 04_forward_vsmsdata.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 05_reverse_vsmcap.py: PASS -------------------------------------------------------------------- SystemDevice - 01_forward.py: PASS -------------------------------------------------------------------- SystemDevice - 02_reverse.py: PASS -------------------------------------------------------------------- SystemDevice - 03_fwderrs.py: PASS -------------------------------------------------------------------- VSSD - 01_enum.py: PASS -------------------------------------------------------------------- VSSD - 02_bootldr.py: PASS -------------------------------------------------------------------- VSSD - 03_vssd_gi_errs.py: PASS -------------------------------------------------------------------- VSSD - 04_vssd_to_rasd.py: PASS -------------------------------------------------------------------- VirtualSystemManagementCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemManagementCapabilities - 02_vsmcap_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 01_definesystem_name.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 02_destroysystem.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 03_definesystem_ess.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 04_definesystem_ers.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 05_destroysystem_neg.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 06_addresource.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 07_addresource_neg.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 08_modifyresource.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 09_procrasd_persist.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 10_hv_version.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 11_define_memrasdunits.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 12_referenced_config.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 13_refconfig_additional_devs.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 14_define_sys_disk.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 15_mod_system_settings.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationCapabilities - 02_vsmc_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationService - 01_migratable_host.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationService - 02_host_migrate_type.py: FAIL ERROR - EnabledState is 9 instead of 2. ERROR - Try to increase the timeout and run the test again ERROR - Error start domain dom_migrate -------------------------------------------------------------------- VirtualSystemMigrationService - 05_migratable_host_errs.py: FAIL ERROR - Error create domain dom_migration -------------------------------------------------------------------- VirtualSystemMigrationSettingData - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationSettingData - 02_vsmsd_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 01_forward.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 02_reverse.py: FAIL ERROR - Failed to create the dom: VSSDC_dom -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 03_vssdc_fwd_errs.py: FAIL ERROR - Unable to create domain domu1 -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 04_vssdc_rev_errs.py: FAIL ERROR - Unable to create domain domu1 -------------------------------------------------------------------- VirtualSystemSnapshotService - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotService - 02_vs_sservice_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotServiceCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotServiceCapabilities - 02_vs_sservicecap_gi_errs.py: PASS -------------------------------------------------------------------- -- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik at linux.vnet.ibm.com From deeptik at linux.vnet.ibm.com Mon Feb 2 09:38:44 2009 From: deeptik at linux.vnet.ibm.com (Deepti B Kalakeri) Date: Mon, 02 Feb 2009 15:08:44 +0530 Subject: [Libvirt-cim] Re: Test Run Summary (Feb 02 2009): Xen on Red Hat Enterprise Linux Server release 5.2 Beta (Tikanga) with Pegasus In-Reply-To: <4986B821.7080008@linux.vnet.ibm.com> References: <4986B821.7080008@linux.vnet.ibm.com> Message-ID: <4986BF24.1060701@linux.vnet.ibm.com> Deepti B Kalakeri wrote: > ================================================ > Test Run Summary (Feb 02 2009): Xen on Red Hat Enterprise Linux Server > release 5.2 Beta (Tikanga) with Pegasus > ================================================= > Distro: Red Hat Enterprise Linux Server release 5.2 Beta (Tikanga) > Kernel: 2.6.18-88.el5xen > libvirt: 0.3.3 > Hypervisor: Xen 3.1.0 > CIMOM: Pegasus 2.7.0 > Libvirt-cim revision: 807 > Libvirt-cim changeset: 189cc68a2f5a > Cimtest revision: 606 > Cimtest changeset: 2ef1704ac586 > ================================================= > FAIL : 10 > XFAIL : 1 > SKIP : 3 > PASS : 128 > ----------------- > Total : 142 > ================================================= > FAIL Test Summary: > ElementConforms - 01_forward.py: FAIL > HostSystem - 03_hs_to_settdefcap.py: FAIL SettingsDefineCapabilities - 01_forward.py: FAIL The above tc fails on the KVM with current sources, these tc fails because of the new patches. Needs to be fixed. > KVMRedirectionSAP - 01_enum_KVMredSAP.py: FAIL The tc passes for KVM but fails for Xen. The guest with the assigned portnum passed as part of the Graphics tags is not getting assigned and hence the tc is failing. This tc fails and needs to be fixed. > RASD - 01_verify_rasd_fields.py: FAIL > The tc passed when the run manually. > VirtualSystemMigrationService - 02_host_migrate_type.py: FAIL > VirtualSystemMigrationService - 05_migratable_host_errs.py: FAIL > VirtualSystemSettingDataComponent - 02_reverse.py: FAIL > VirtualSystemSettingDataComponent - 03_vssdc_fwd_errs.py: FAIL > VirtualSystemSettingDataComponent - 04_vssdc_rev_errs.py: FAIL > The common thing in the test case is that all these test cases failed to use vxml.create(). Using the xml from these tests and running the virsh create on the xml fails with the following error: libvir: Xen Daemon error : POST operation failed: (xend.err 'Device 0 (vkbd) could not be connected. Hotplug scripts not working.') Starting the xend/libvirtd might sometimes help, but otherwise the error goes only when the machine is rebooted. These tests fail because of this problem intermittently and are not regular failures. When I changed cxml.create() to cxml.cim_define() cxml.start() one of the test VirtualSystemSettingDataComponent/02_reverse.py passed. Using cim_define() and cim.start() should help and fix the tests. -- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik at linux.vnet.ibm.com From deeptik at linux.vnet.ibm.com Mon Feb 2 12:04:48 2009 From: deeptik at linux.vnet.ibm.com (Deepti B. Kalakeri) Date: Mon, 02 Feb 2009 04:04:48 -0800 Subject: [Libvirt-cim] [PATCH] [TEST] Fixing the EAFP/01_forward.py and VSSDC/02_reverse.py by using cim_define() and cim_start() Message-ID: # HG changeset patch # User Deepti B. Kalakeri # Date 1233576225 28800 # Node ID aa594a83ba23554622b360346bb18088d510e293 # Parent 2ef1704ac58621c6e35bf604a32dd311e3bc6a3a [TEST] Fixing the EAFP/01_forward.py and VSSDC/02_reverse.py by using cim_define() and cim_start(). Common changes to EAFP/01_forward.py and VSSDC/02_reverse.py: ------------------------------------------------------------- Modified the tc to use cim_define() and cim_start() instead of create() which was causing the tc to fail with Xen. Changes to EAFP/01_forward.py: ------------------------------ 1) Added try, except block. Changes to VSSDC/02_reverse.py: ------------------------------- 1) Removed unnecessary Global import statement. 2) Did some Indentation changes to the tc to fit 80 columns. The test cases can be further improved in the next cycle to make use of EnumInstances() and compare_all_prop() to reduce the code and make it look more cleaner. Tested for Xen with current sources. Signed-off-by: Deepti B. Kalakeri diff -r 2ef1704ac586 -r aa594a83ba23 suites/libvirt-cim/cimtest/ElementAllocatedFromPool/01_forward.py --- a/suites/libvirt-cim/cimtest/ElementAllocatedFromPool/01_forward.py Fri Jan 30 13:05:27 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ElementAllocatedFromPool/01_forward.py Mon Feb 02 04:03:45 2009 -0800 @@ -96,7 +96,6 @@ def get_pool_details(server, virt, vsxml key_list = {"InstanceID" : k} inst = get_inst(server, virt, cn, key_list) if inst is None: - vsxml.destroy(server) return FAIL, gi_inst_list cn = get_typed_class(virt, cn) gi_inst_list[cn] = { 'InstanceID' : inst.InstanceID, @@ -127,9 +126,11 @@ def verify_eafp_values(server, virt, in_ if assoc_eafp_info['InstanceID'] != gi_inst['InstanceID']: field_err(assoc_eafp_info, gi_inst, 'InstanceID') return FAIL + if assoc_eafp_info['PoolID'] != gi_inst['PoolID']: field_err(assoc_eafp_info, gi_inst, 'PoolID') return FAIL + except Exception, detail: logger.error(CIM_ERROR_ASSOCIATORS, an) logger.error("Exception: %s", detail) @@ -156,31 +157,40 @@ def main(): vsxml = virt_type(test_dom, vcpus = test_vcpus, mac = test_mac, disk = test_disk) - ret = vsxml.create(server) + ret = vsxml.cim_define(server) if not ret: - logger.error("Failed to Create the dom: '%s'", test_dom) + logger.error("Failed to define the dom: '%s'", test_dom) return FAIL - - mem_cn = get_typed_class(virt, "Memory") - ldlist = { - mem_cn : "%s/%s" % (test_dom, "mem"), - } - if virt != 'LXC': - disk_cn = get_typed_class(virt, "LogicalDisk") - net_cn = get_typed_class(virt, "NetworkPort") - proc_cn = get_typed_class(virt, "Processor") - ldlist[disk_cn] = "%s/%s" % (test_dom, test_disk) - ldlist[net_cn] = "%s/%s" % (test_dom, test_mac) - ldlist[proc_cn] = "%s/%s" % (test_dom, "0") + status = vsxml.cim_start(server) + if status != PASS: + logger.error("Failed to start the dom: '%s'", test_dom) + vsxml.undefine(server) + return FAIL + try: + mem_cn = get_typed_class(virt, "Memory") + ldlist = { mem_cn : "%s/%s" % (test_dom, "mem") } - status, gi_inst_list = get_pool_details(server, virt, vsxml, - default_pool_name) - if status != PASS: - return status - - status = verify_eafp_values(server, virt, ldlist, gi_inst_list) + if virt != 'LXC': + disk_cn = get_typed_class(virt, "LogicalDisk") + net_cn = get_typed_class(virt, "NetworkPort") + proc_cn = get_typed_class(virt, "Processor") + ldlist[disk_cn] = "%s/%s" % (test_dom, test_disk) + ldlist[net_cn] = "%s/%s" % (test_dom, test_mac) + ldlist[proc_cn] = "%s/%s" % (test_dom, "0") + + status, gi_inst_list = get_pool_details(server, virt, vsxml, + default_pool_name) + if status != PASS: + raise Exception("Failed to get pool details") + + status = verify_eafp_values(server, virt, ldlist, gi_inst_list) + except Exception, details: + logger.error("Exception details : %s", details) + vsxml.destroy(server) + vsxml.undefine(server) + return status if __name__ == "__main__": diff -r 2ef1704ac586 -r aa594a83ba23 suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/02_reverse.py --- a/suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/02_reverse.py Fri Jan 30 13:05:27 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/02_reverse.py Mon Feb 02 04:03:45 2009 -0800 @@ -47,13 +47,12 @@ import sys import sys from XenKvmLib import enumclass from VirtLib import utils -from CimTest import Globals from XenKvmLib import assoc from XenKvmLib.test_doms import destroy_and_undefine_all from XenKvmLib import vxml from XenKvmLib.classes import get_typed_class from XenKvmLib.rasd import InstId_err -from CimTest.Globals import logger +from CimTest.Globals import logger, CIM_ERROR_ASSOCIATORS from XenKvmLib.const import do_main from CimTest.ReturnCodes import PASS, FAIL @@ -157,16 +156,24 @@ def main(): test_disk = "xvdb" else: test_disk = "hdb" + virt_xml = vxml.get_class(options.virt) if options.virt == 'LXC': cxml = virt_xml(test_dom) else: - cxml = virt_xml(test_dom, vcpus = test_vcpus, mac = test_mac, disk = test_disk) - ret = cxml.create(options.ip) + cxml = virt_xml(test_dom, vcpus = test_vcpus, + mac = test_mac, disk = test_disk) + + ret = cxml.cim_define(options.ip) if not ret: - logger.error("Failed to create the dom: %s", test_dom) - status = FAIL - return status + logger.error("Failed to define the dom: %s", test_dom) + return FAIL + + ret = cxml.cim_start(options.ip) + if ret != PASS: + cxml.undefine(options.ip) + logger.error("Failed to start the dom: %s", test_dom) + return ret if options.virt == "XenFV": instIdval = "Xen:%s" % test_dom @@ -179,10 +186,10 @@ def main(): assoc_info = assoc.AssociatorNames(options.ip, an, cn, InstanceID = instIdval) status = assoc_values(options.ip, assoc_info, options.virt) + except Exception, detail : - logger.error(Globals.CIM_ERROR_ASSOCIATORS, - 'VirtualSystemSettingDataComponent') - logger.error("Exception : %s" % detail) + logger.error(CIM_ERROR_ASSOCIATORS, an) + logger.error("Exception : %s", detail) status = FAIL cxml.destroy(options.ip) From deeptik at linux.vnet.ibm.com Mon Feb 2 12:29:01 2009 From: deeptik at linux.vnet.ibm.com (Deepti B. Kalakeri) Date: Mon, 02 Feb 2009 04:29:01 -0800 Subject: [Libvirt-cim] [PATCH] [TEST] Fixed VSSD/03_vssdc_fwd_errs.py tc by using cim_define() and cim_start() Message-ID: <48a13c2a3f549ed5c93e.1233577741@elm3b43.beaverton.ibm.com> # HG changeset patch # User Deepti B. Kalakeri # Date 1233577717 28800 # Node ID 48a13c2a3f549ed5c93e9e0d99d9399b63c3ec0f # Parent aa594a83ba23554622b360346bb18088d510e293 [TEST] Fixed VSSD/03_vssdc_fwd_errs.py tc by using cim_define() and cim_start(). Also, fixed indentation in the tc to fit the 80 columns. Tested for Xen with current sources. Signed-off-by: Deepti B. Kalakeri diff -r aa594a83ba23 -r 48a13c2a3f54 suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/03_vssdc_fwd_errs.py --- a/suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/03_vssdc_fwd_errs.py Mon Feb 02 04:03:45 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/03_vssdc_fwd_errs.py Mon Feb 02 04:28:37 2009 -0800 @@ -71,10 +71,11 @@ test_vcpus = 1 test_vcpus = 1 expr_values = { - "INVALID_InstID_Keyname" : { 'rc' : pywbem.CIM_ERR_FAILED, \ - 'desc' : 'Missing InstanceID' }, \ - "INVALID_InstID_Keyval" : { 'rc' : pywbem.CIM_ERR_NOT_FOUND, \ - 'desc' : 'No such instance (INVALID_InstID_Keyval)'} + "INVALID_InstID_Keyname" : { 'rc' : pywbem.CIM_ERR_FAILED, + 'desc' : 'Missing InstanceID' }, + "INVALID_InstID_Keyval" : { 'rc' : pywbem.CIM_ERR_NOT_FOUND, + 'desc' : 'No such instance '\ + '(INVALID_InstID_Keyval)'} } def try_invalid_assoc(classname, name_val, i, field, virt="Xen"): @@ -96,41 +97,46 @@ def try_invalid_assoc(classname, name_va @do_main(sup_types) def main(): options = main.options - if not options.ip: - parser.print_help() - return FAIL - + virt = options.virt status = PASS destroy_and_undefine_all(options.ip) - if options.virt == "Xen": + if virt == "Xen": test_disk = "xvda" else: test_disk = "hda" - virt_xml = vxml.get_class(options.virt) - if options.virt == 'LXC': + virt_xml = vxml.get_class(virt) + if virt == 'LXC': cxml = virt_xml(test_dom) else: - cxml = virt_xml(test_dom, vcpus = test_vcpus, mac = test_mac, disk = test_disk) - ret = cxml.create(options.ip) + cxml = virt_xml(test_dom, vcpus = test_vcpus, + mac = test_mac, disk = test_disk) + + ret = cxml.cim_define(options.ip) if not ret: - logger.error('Unable to create domain %s' % test_dom) + logger.error('Unable to define domain %s' % test_dom) + return FAIL + + status = cxml.cim_start(options.ip) + if status != PASS: + cxml.undefine(options.ip) + logger.error('Unable to start domain %s' % test_dom) return FAIL global conn - conn = assoc.myWBEMConnection('http://%s' % options.ip, (CIM_USER, \ - CIM_PASS), CIM_NS) - disk_rasd = get_typed_class(options.virt, 'DiskResourceAllocationSettingData') - mem_rasd = get_typed_class(options.virt, 'MemResourceAllocationSettingData') - net_rasd = get_typed_class(options.virt, 'NetResourceAllocationSettingData') - proc_rasd = get_typed_class(options.virt, 'ProcResourceAllocationSettingData') + conn = assoc.myWBEMConnection('http://%s' % options.ip, (CIM_USER, + CIM_PASS), CIM_NS) + disk_rasd = get_typed_class(virt, 'DiskResourceAllocationSettingData') + mem_rasd = get_typed_class(virt, 'MemResourceAllocationSettingData') + net_rasd = get_typed_class(virt, 'NetResourceAllocationSettingData') + proc_rasd = get_typed_class(virt, 'ProcResourceAllocationSettingData') class_id = { - disk_rasd : test_disk, \ - mem_rasd : 'mem', \ - net_rasd : test_mac, \ + disk_rasd : test_disk, + mem_rasd : 'mem', + net_rasd : test_mac, proc_rasd : '0' } @@ -140,7 +146,7 @@ def main(): devid = "%s/%s" % (test_dom, devid) name_val = ['InstanceID', devid] for i in range(len(tc_scen)): - retval = try_invalid_assoc(classname, name_val, i, tc_scen[i], options.virt) + retval = try_invalid_assoc(classname, name_val, i, tc_scen[i], virt) if retval != PASS: status = retval From deeptik at linux.vnet.ibm.com Mon Feb 2 12:46:24 2009 From: deeptik at linux.vnet.ibm.com (Deepti B. Kalakeri) Date: Mon, 02 Feb 2009 04:46:24 -0800 Subject: [Libvirt-cim] [PATCH] [TEST] Fixed VSSD/04_vssdc_rev_errs.py tc by using cim_define() and cim_start() Message-ID: <4124eabc89cabd32e3fe.1233578784@elm3b43.beaverton.ibm.com> # HG changeset patch # User Deepti B. Kalakeri # Date 1233578723 28800 # Node ID 4124eabc89cabd32e3fe905194a55dac0c949249 # Parent 48a13c2a3f549ed5c93e9e0d99d9399b63c3ec0f [TEST] Fixed VSSD/04_vssdc_rev_errs.py tc by using cim_define() and cim_start(). Also, fixed indentation in the tc to fit the 80 columns. Tested for Xen with current sources. Signed-off-by: Deepti B. Kalakeri diff -r 48a13c2a3f54 -r 4124eabc89ca suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/04_vssdc_rev_errs.py --- a/suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/04_vssdc_rev_errs.py Mon Feb 02 04:28:37 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/04_vssdc_rev_errs.py Mon Feb 02 04:45:23 2009 -0800 @@ -69,13 +69,13 @@ from CimTest.Globals import CIM_USER, CI sup_types = ['Xen', 'XenFV', 'KVM', 'LXC'] -test_dom = "domu1" +test_dom = "domu1" expr_values = { - "INVALID_InstID_Keyname" : { 'rc' : pywbem.CIM_ERR_NOT_FOUND, \ - 'desc' : 'No such instance (InstanceID)' }, \ - "INVALID_InstID_Keyval" : { 'rc' : pywbem.CIM_ERR_NOT_FOUND, \ - 'desc' : 'No such instance (InstanceID)'} + "INVALID_InstID_Keyname" : { 'rc' : pywbem.CIM_ERR_NOT_FOUND, + 'desc' : 'No such instance (InstanceID)' }, + "INVALID_InstID_Keyval" : { 'rc' : pywbem.CIM_ERR_NOT_FOUND, + 'desc' : 'No such instance (InstanceID)'} } def try_invalid_assoc(name_val, i, field, virt="Xen"): @@ -87,8 +87,8 @@ def try_invalid_assoc(name_val, i, field for j in range(len(name_val)/2): k = j * 2 keys[name_val[k]] = name_val[k+1] - ret_val = try_assoc(conn, classname, ac_classname, keys, field_name=field, \ - expr_values=expr_values[field], bug_no='') + ret_val = try_assoc(conn, classname, ac_classname, keys, field_name=field, + expr_values=expr_values[field], bug_no='') if ret_val != PASS: logger.error("------ FAILED: %s %s------", classname, field) name_val[i] = temp @@ -98,36 +98,41 @@ def try_invalid_assoc(name_val, i, field @do_main(sup_types) def main(): options = main.options - if not options.ip: - parser.print_help() - return FAIL + virt = options.virt status = PASS destroy_and_undefine_all(options.ip) - virt_xml = vxml.get_class(options.virt) + virt_xml = vxml.get_class(virt) cxml = virt_xml(test_dom) - ret = cxml.create(options.ip) + + ret = cxml.cim_define(options.ip) if not ret: - logger.error('Unable to create domain %s' % test_dom) + logger.error('Unable to define domain %s' % test_dom) + return FAIL + + status = cxml.cim_start(options.ip) + if status != PASS: + cxml.undefine(options.ip) + logger.error('Unable to start domain %s' % test_dom) return FAIL global conn - conn = assoc.myWBEMConnection('http://%s' % options.ip, (CIM_USER, \ - CIM_PASS), CIM_NS) + conn = assoc.myWBEMConnection('http://%s' % options.ip, (CIM_USER, + CIM_PASS), CIM_NS) tc_scen = ['INVALID_InstID_Keyname', 'INVALID_InstID_Keyval'] - if options.virt == "Xen" or options.virt == "XenFV": + if virt == "Xen" or virt == "XenFV": inst_id = "Xen:%s" % test_dom else: - inst_id = "%s:%s" % (options.virt, test_dom) + inst_id = "%s:%s" % (virt, test_dom) name_val = ['InstanceID', inst_id] for i in range(len(tc_scen)): - retval = try_invalid_assoc(name_val, i, tc_scen[i], options.virt) + retval = try_invalid_assoc(name_val, i, tc_scen[i], virt) if retval != PASS: status = retval From kaitlin at linux.vnet.ibm.com Mon Feb 2 19:38:02 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Mon, 02 Feb 2009 11:38:02 -0800 Subject: [Libvirt-cim] Re: Test Run Summary (Feb 02 2009): Xen on Red Hat Enterprise Linux Server release 5.2 Beta (Tikanga) with Pegasus In-Reply-To: <4986BF24.1060701@linux.vnet.ibm.com> References: <4986B821.7080008@linux.vnet.ibm.com> <4986BF24.1060701@linux.vnet.ibm.com> Message-ID: <49874B9A.40305@linux.vnet.ibm.com> >> VirtualSystemMigrationService - 02_host_migrate_type.py: FAIL >> VirtualSystemMigrationService - 05_migratable_host_errs.py: FAIL >> VirtualSystemSettingDataComponent - 02_reverse.py: FAIL >> VirtualSystemSettingDataComponent - 03_vssdc_fwd_errs.py: FAIL >> VirtualSystemSettingDataComponent - 04_vssdc_rev_errs.py: FAIL >> > The common thing in the test case is that all these test cases failed to > use vxml.create(). > > Using the xml from these tests and running the virsh create on the xml > fails with the following error: > libvir: Xen Daemon error : POST operation failed: (xend.err 'Device 0 > (vkbd) could not be connected. Hotplug scripts not working.') > > Starting the xend/libvirtd might sometimes help, but otherwise the error > goes only when the machine is rebooted. > > These tests fail because of this problem intermittently and are not > regular failures. > When I changed cxml.create() to cxml.cim_define() cxml.start() one of > the test VirtualSystemSettingDataComponent/02_reverse.py passed. > Using cim_define() and cim.start() should help and fix the tests. > Thanks for looking into this. We should be moving away from create() anyway, so it'll be good to modify these tests. -- Kaitlin Rupert IBM Linux Technology Center kaitlin at linux.vnet.ibm.com From kaitlin at linux.vnet.ibm.com Mon Feb 2 19:39:37 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Mon, 02 Feb 2009 11:39:37 -0800 Subject: [Libvirt-cim] Re: Test Run Summary (Feb 02 2009): KVM on Fedora release 9 (Sulphur) with Pegasus In-Reply-To: <4986A1ED.80205@linux.vnet.ibm.com> References: <49869EC6.3010505@linux.vnet.ibm.com> <4986A1ED.80205@linux.vnet.ibm.com> Message-ID: <49874BF9.8020901@linux.vnet.ibm.com> Deepti B Kalakeri wrote: > The following 2 tc's were causing segfault and the cimserver was > crashing, hence ran the test without the following 2 test's: > > VirtualSystemManagementService - 09_procrasd_persist.py > VirtualSystemManagementService - 12_referenced_config.py > > Error: > ERROR - Exception: details (0, "The web server returned a bad status > line: ''") > InvokeMethod(DefineSystem): The web server returned a bad status line: '' > >> > Any idea why these tests are crashing the CIMOM? -- Kaitlin Rupert IBM Linux Technology Center kaitlin at linux.vnet.ibm.com From kaitlin at linux.vnet.ibm.com Mon Feb 2 20:04:14 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Mon, 02 Feb 2009 12:04:14 -0800 Subject: [Libvirt-cim] [PATCH] [TEST] Update VSMS 03_definesystem_ess.py to use cim_define() Message-ID: # HG changeset patch # User Kaitlin Rupert # Date 1233604950 28800 # Node ID fa1424f9b3f4ae005b4fcc34e18858035cc8f102 # Parent 912b7615d48c8303fd3daa6e55669c6d66af23e4 [TEST] Update VSMS 03_definesystem_ess.py to use cim_define() Signed-off-by: Kaitlin Rupert diff -r 912b7615d48c -r fa1424f9b3f4 suites/libvirt-cim/cimtest/VirtualSystemManagementService/03_definesystem_ess.py --- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/03_definesystem_ess.py Mon Feb 02 04:45:23 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/03_definesystem_ess.py Mon Feb 02 12:02:30 2009 -0800 @@ -23,17 +23,14 @@ # import sys -import pywbem -from VirtLib import utils -from XenKvmLib import vsms -from XenKvmLib.test_doms import undefine_test_domain -from XenKvmLib.common_util import create_using_definesystem +from pywbem import CIM_ERR_FAILED from CimTest.Globals import logger from XenKvmLib.const import do_main from CimTest.ReturnCodes import PASS, FAIL +from XenKvmLib.vxml import get_class sup_types = ['Xen', 'KVM', 'XenFV', 'LXC'] -exp_rc = 1 #CMPI_RC_ERR_FAILED +exp_rc = CIM_ERR_FAILED exp_desc = 'Unable to parse embedded object' @do_main(sup_types) @@ -42,25 +39,31 @@ dname = 'test_domain' - vssd, rasd = vsms.default_vssd_rasd_str(dom_name=dname, virt=options.virt) + cxml = get_class(options.virt)(dname) + cxml.set_sys_settings("wrong") - params = {'vssd' : 'wrong', - 'rasd' : rasd - } + ret = cxml.cim_define(options.ip) + if ret: + logger.error('DefineSystem should NOT return OK with a wrong ss input') + status = FAIL - exp_err = {'exp_rc' : exp_rc, - 'exp_desc' : exp_desc - } + try: + if int(cxml.err_rc) != exp_rc: + raise Exception("Got rc: %d, exp %d." % (int(cxml.err_rc), exp_rc)) - rc = create_using_definesystem(dname, options.ip, params, ref_config=' ', - exp_err=exp_err, virt=options.virt) + if cxml.err_desc.find(exp_desc) < 0: + raise Exception("Got desc: '%s', exp '%s'" % (cxml.err_desc, + exp_desc)) - if rc != PASS: - logger.error('DefineSystem should NOT return OK with a wrong ss input') + status = PASS - undefine_test_domain(dname, options.ip, virt=options.virt) + except Exception, details: + logger.error(details) + status = FAIL - return rc + cxml.undefine(options.ip) + + return status if __name__ == "__main__": sys.exit(main()) From kaitlin at linux.vnet.ibm.com Mon Feb 2 20:06:33 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Mon, 02 Feb 2009 12:06:33 -0800 Subject: [Libvirt-cim] [PATCH] [TEST] Update VSMS 12_referenced_config.py to use cim_() function Message-ID: <4327fd7361d8107c8f7f.1233605193@localhost.localdomain> # HG changeset patch # User Kaitlin Rupert # Date 1233605070 28800 # Node ID 4327fd7361d8107c8f7fc827d62162e9151ff6dd # Parent fa1424f9b3f4ae005b4fcc34e18858035cc8f102 [TEST] Update VSMS 12_referenced_config.py to use cim_() function. Also re-wrote part of this test to fix the overall test flow. Signed-off-by: Kaitlin Rupert diff -r fa1424f9b3f4 -r 4327fd7361d8 suites/libvirt-cim/cimtest/VirtualSystemManagementService/12_referenced_config.py --- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/12_referenced_config.py Mon Feb 02 12:02:30 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/12_referenced_config.py Mon Feb 02 12:04:30 2009 -0800 @@ -21,19 +21,15 @@ # import sys -import pywbem -from XenKvmLib.common_util import create_using_definesystem, \ - call_request_state_change, \ - poll_for_state_change, get_cs_instance -from XenKvmLib import vsms -from VirtLib import utils +from XenKvmLib.common_util import get_cs_instance from CimTest.Globals import logger from XenKvmLib.const import do_main from CimTest.ReturnCodes import FAIL, PASS -from XenKvmLib.test_doms import destroy_and_undefine_domain -from XenKvmLib.classes import get_typed_class +from XenKvmLib.classes import get_typed_class, inst_to_mof from XenKvmLib.assoc import AssociatorNames from XenKvmLib.test_xml import dumpxml +from XenKvmLib.vxml import get_class +from XenKvmLib.rasd import get_default_rasds sup_types = ['Xen', 'XenFV', 'KVM'] test_dom = 'rstest_domain' @@ -41,21 +37,13 @@ mac = "aa:aa:aa:00:00:00" -REQUESTED_STATE = 2 -TIME = "00000000000000.000000:000" - -def setup_first_guest(ip, virt): - status = create_using_definesystem(test_dom, ip, virt=virt) - if status != PASS: +def setup_first_guest(ip, virt, cxml): + ret = cxml.cim_define(ip) + if not ret: logger.error("Unable to define %s using DefineSystem()" % test_dom) return FAIL - rc = call_request_state_change(test_dom, ip, REQUESTED_STATE, TIME, virt) - if rc != 0: - logger.error("Unable to start %s" % test_dom) - return FAIL - - status, cs = poll_for_state_change(ip, virt, test_dom, REQUESTED_STATE) + status = cxml.cim_start(ip) if status != PASS: logger.error("Unable to start %s" % test_dom) return FAIL @@ -70,7 +58,7 @@ cn = "ComputerSystem" ccn = get_typed_class(virt, cn) an = get_typed_class(virt, 'SettingsDefineState') - vssd = AssociatorNames(ip, an, ccn, Name = test_dom, CreationClassName = ccn) + vssd = AssociatorNames(ip, an, ccn, Name=test_dom, CreationClassName=ccn) if len(vssd) != 1: logger.error("Returned %i vssd insts for '%s'", len(vssd), test_dom) @@ -78,26 +66,33 @@ return vssd[0] -def get_vssd_rasd(virt): - vssd, def_rasd = vsms.default_vssd_rasd_str(dom_name=test_dom2, - net_type='network', - net_mac=mac, virt=virt) +def setup_second_guest(ip, virt, cxml2, ref): + nrasd_cn = get_typed_class(virt, "NetResourceAllocationSettingData") - rasd = [] - for inst in def_rasd: - cn = get_typed_class(virt, "NetResourceAllocationSettingData") - if cn in inst: - rasd.append(inst) + rasds = get_default_rasds(ip, virt) - params = {} + rasd_list = {} - if len(rasd) != 1: - return params + for rasd in rasds: + if rasd.classname == nrasd_cn: + rasd['Address'] = mac + rasd['NetworkType'] = "network" + rasd_list[nrasd_cn] = inst_to_mof(rasd) + else: + rasd_list[rasd.classname] = None - params['vssd'] = vssd - params['rasd'] = rasd + if rasd_list[nrasd_cn] is None: + logger.error("Unable to get template NetRASD") + return FAIL - return params + cxml2.set_res_settings(rasd_list) + + ret = cxml2.cim_define(ip, ref_conf=ref) + if not ret: + logger.error("Unable to define %s using DefineSystem()" % test_dom2) + return FAIL + + return PASS def get_dom_macs(server, dom, virt): mac_list = [] @@ -118,8 +113,10 @@ def main(): options = main.options + cxml = get_class(options.virt)(test_dom) + cxml2 = get_class(options.virt)(test_dom2) try: - status = setup_first_guest(options.ip, options.virt) + status = setup_first_guest(options.ip, options.virt, cxml) if status != PASS: raise Exception("Unable to start %s" % test_dom) @@ -127,14 +124,7 @@ if ref is None: raise Exception("Unable to get %s reference" % test_dom) - define_params = get_vssd_rasd(options.virt) - if len(define_params) != 2: - raise Exception("Unable to build VSSD and RASD instances for %s" % \ - test_dom2) - - status = create_using_definesystem(test_dom2, options.ip, - params=define_params, ref_config=ref, - virt=options.virt) + status = setup_second_guest(options.ip, options.virt, cxml2, ref) if status != PASS: raise Exception("Unable to define %s" % test_dom2) @@ -159,8 +149,9 @@ logger.error(details) status = FAIL - destroy_and_undefine_domain(test_dom, options.ip, options.virt) - destroy_and_undefine_domain(test_dom2, options.ip, options.virt) + cxml.cim_destroy(options.ip) + cxml.undefine(options.ip) + cxml2.undefine(options.ip) return status From kaitlin at linux.vnet.ibm.com Mon Feb 2 20:08:12 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Mon, 02 Feb 2009 12:08:12 -0800 Subject: [Libvirt-cim] [PATCH] [TEST] Update VSMS 14_define_sys_disk.py to use cim_define() Message-ID: # HG changeset patch # User Kaitlin Rupert # Date 1233605202 28800 # Node ID f9b044c4d5ddeed5b2383186ebfb9337b102ba5d # Parent 4327fd7361d8107c8f7fc827d62162e9151ff6dd [TEST] Update VSMS 14_define_sys_disk.py to use cim_define() Signed-off-by: Kaitlin Rupert diff -r 4327fd7361d8 -r f9b044c4d5dd suites/libvirt-cim/cimtest/VirtualSystemManagementService/14_define_sys_disk.py --- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/14_define_sys_disk.py Mon Feb 02 12:04:30 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/14_define_sys_disk.py Mon Feb 02 12:06:42 2009 -0800 @@ -25,14 +25,11 @@ from VirtLib.utils import run_remote from CimTest.Globals import logger from CimTest.ReturnCodes import FAIL, PASS -from XenKvmLib.common_util import create_using_definesystem -from XenKvmLib.test_doms import destroy_and_undefine_domain from XenKvmLib.classes import get_typed_class, inst_to_mof from XenKvmLib.rasd import get_default_rasds -from XenKvmLib.vsms import get_vssd_mof -from XenKvmLib.const import get_provider_version from XenKvmLib.const import do_main, _image_dir, f9_changeset, \ - KVM_default_disk_dev + KVM_default_disk_dev, get_provider_version +from XenKvmLib.vxml import get_class sup_types = ['Xen', 'XenFV', 'KVM', 'LXC'] test_dom = 'rstest_disk_domain' @@ -50,28 +47,24 @@ return path -def get_vssd_rasd(ip, virt, addr, disk_type): - vssd = get_vssd_mof(virt, test_dom) +def get_rasd_list(ip, virt, addr, disk_type): + drasd_cn = get_typed_class(virt, "DiskResourceAllocationSettingData") rasds = get_default_rasds(ip, virt) - rasd_list = [] + rasd_list = {} for rasd in rasds: - if 'DiskPool' in rasd['PoolID']: + if rasd.classname == drasd_cn: if disk_type != "" and rasd['Caption'] != disk_type: continue rasd['Address'] = addr curr_cim_rev, changeset = get_provider_version(virt, ip) if changeset == f9_changeset and virt == 'KVM': rasd['VirtualDevice'] = KVM_default_disk_dev - rasd_list.append(inst_to_mof(rasd)) + rasd_list[rasd.classname] = inst_to_mof(rasd) - params = { 'vssd' : vssd, - 'rasd' : rasd_list - } - - return params + return rasd_list @do_main(sup_types) def main(): @@ -84,21 +77,24 @@ else: disk_cap = "" + cxml = get_class(options.virt)(test_dom) + try: addr = make_long_disk_path(options.ip) if addr is None: raise Exception("Unable to create large disk image") - define_params = get_vssd_rasd(options.ip, options.virt, addr, disk_cap) - if len(define_params) != 2: - raise Exception("Unable to get VSSD and RASDs for %s" % test_dom) + rasd_list = get_rasd_list(options.ip, options.virt, addr, disk_cap) + if len(rasd_list) < 1: + raise Exception("Unable to get template RASDs for %s" % test_dom) - status = create_using_definesystem(test_dom, options.ip, - params=define_params, ref_config="", - virt=options.virt) - if status != PASS: + cxml.set_res_settings(rasd_list) + ret = cxml.cim_define(options.ip) + if not ret: raise Exception("Unable to define %s" % test_dom) + status = PASS + except Exception, details: logger.error(details) status = FAIL @@ -106,7 +102,7 @@ if os.path.exists(addr): os.remove(addr) - destroy_and_undefine_domain(test_dom, options.ip, options.virt) + cxml.undefine(options.ip) return status From rmaciel at linux.vnet.ibm.com Mon Feb 2 20:25:49 2009 From: rmaciel at linux.vnet.ibm.com (Richard Maciel) Date: Mon, 02 Feb 2009 18:25:49 -0200 Subject: [Libvirt-cim] [PATCH] Add a migration_tester.py tool In-Reply-To: <6fa1f52dc8298b4d643f.1232582103@localhost.localdomain> References: <6fa1f52dc8298b4d643f.1232582103@localhost.localdomain> Message-ID: <498756CD.2030806@linux.vnet.ibm.com> Comment #1: At the example you type the name of the testing tool as migrate_tester.py when actually the patch adds a migration_tester.py. Comment #2: The provided command line (even after the name fix) doesn't work. When executing it the following message is received as response: Must specify virtualization type So, it is missing the -v switch Comment #3: Make it clear that the user and password info are for the host you're currently logged into Comment #4: Also make it clear that the test assumes the user logged into the current machine can log into the target machine thru ssh key authentication. Kaitlin Rupert wrote: > # HG changeset patch > # User Kaitlin Rupert > # Date 1232519221 28800 > # Node ID 6fa1f52dc8298b4d643fc94bb3f91715cc40dd58 > # Parent e4f4e7c64325395494355516d4c111977f5b451a > Add a migration_tester.py tool. > > This can be used to drive migration between two different hosts. > > How to call the tester: > > python tools/migrate_tester.py -u user -p pass -s fqdn:port -t fqdn guest_name > > Ex: > python tools/migrate_tester.py -u root -p mypass -s my_host.my_domain.com:5988 -t my_target.my_domain.com my_guest > > Signed-off-by: Kaitlin Rupert > > diff -r e4f4e7c64325 -r 6fa1f52dc829 tools/migration_tester.py > --- /dev/null Thu Jan 01 00:00:00 1970 +0000 > +++ b/tools/migration_tester.py Tue Jan 20 22:27:01 2009 -0800 > @@ -0,0 +1,301 @@ > +#!/usr/bin/python > +# > +# Copyright IBM Corp. 2009 > +# > +# Authors: > +# Kaitlin Rupert > +# > +# This library is free software; you can redistribute it and/or > +# modify it under the terms of the GNU Lesser General Public > +# License as published by the Free Software Foundation; either > +# version 2.1 of the License, or (at your option) any later version. > +# > +# This library is distributed in the hope that it will be useful, > +# but WITHOUT ANY WARRANTY; without even the implied warranty of > +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU > +# Lesser General Public License for more details. > +# > +# You should have received a copy of the GNU Lesser General Public > +# License along with this library; if not, write to the Free Software > +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA > +# > + > +import sys > +import time > +from optparse import OptionParser > +from pywbem import WBEMConnection, CIMInstanceName, CIMInstance, CIMError > + > +CIM_MIGRATE_OTHER=1 > +CIM_MIGRATE_LIVE=2 > +CIM_MIGRATE_RESUME=3 > +CIM_MIGRATE_RESTART=4 > + > +CIM_MIGRATE_URI_OTHER=1 > +CIM_MIGRATE_URI_SSH=2 > +CIM_MIGRATE_URI_TLS=3 > +CIM_MIGRATE_URI_TLS_STRICT=4 > +CIM_MIGRATE_URI_TCP=5 > +CIM_MIGRATE_URI_UNIX=6 > + > +CIM_JOBSTATE_COMPLETE=7 > + > +class CIMClassMOF: > + > + __supported_types = [int, str, bool] > + > + def __init__(self, attrs = None): > + """attrs should be dict > + """ > + > + if attrs != None: > + self.__dict__.update(attrs) > + > + def mof(self): > + """mof() > + > + Return value is a string, containing the mof representation of the > + object. > + > + Attribute types supported are : int, str, bool. > + > + Attributes with unsupported types will be silently ignored when > + converting to mof representation. > + """ > + > + mof_str = "instance of " + self.__class__.__name__ + " {\n" > + for key, value in self.__dict__.items(): > + value_type = type(value) > + if value_type not in self.__supported_types: > + continue > + > + mof_str += "%s = " % key > + if value_type == int: > + mof_str += "%d" % value > + elif value_type == bool: > + mof_str += str(value).lower() > + else: > + mof_str += '"%s"' % value > + mof_str += ";\n" > + > + mof_str += "};" > + return mof_str > + > + def __str__(self): > + return self.mof() > + > +class CIM_VirtualSystemMigrationSettingData(CIMClassMOF): > + def __init__(self, type, priority): > + self.InstanceID = 'MigrationSettingData' > + self.CreationClassName = self.__class__.__name__ > + self.MigrationType = type > + self.Priority = priority > + > +class Xen_VirtualSystemMigrationSettingData(CIM_VirtualSystemMigrationSettingData): > + def __init__(self, type, priority): > + CIM_VirtualSystemMigrationSettingData.__init__(self, type, priority) > + > +class KVM_VirtualSystemMigrationSettingData(CIM_VirtualSystemMigrationSettingData): > + def __init__(self, type, priority): > + CIM_VirtualSystemMigrationSettingData.__init__(self, type, priority) > + > +def get_guest_ref(guest, virt): > + guest_cn = "%s_ComputerSystem" % virt > + > + keys = { 'Name' : guest, > + 'CreationClassName' : guest_cn > + } > + > + try: > + cs_ref = CIMInstanceName(guest_cn, keybindings=keys) > + > + except CIMError, (err_no, desc): > + print err_no, desc > + return None > + > + return cs_ref > + > +def get_msd(mtype, virt): > + if mtype == "live": > + mtype = CIM_MIGRATE_LIVE > + elif mtype == "resume": > + mtype = CIM_MIGRATE_RESUME > + elif mtype == "restart": > + mtype = CIM_MIGRATE_RESTART > + else: > + mtype = CIM_MIGRATE_OTHER > + > + try: > + vsmsd_cn_base = "_VirtualSystemMigrationSettingData" > + msd = eval(virt + vsmsd_cn_base)(type=mtype, priority=0) > + > + except CIMError, (err_no, desc): > + print err_no, desc > + return None > + > + return msd.mof() > + > +def check_migrate(s_conn, cs_ref, ip, msd, virt): > + vsms_cn = "%s_VirtualSystemMigrationService" % virt > + try: > + if msd == None: > + res = s_conn.InvokeMethod("CheckVirtualSystemIsMigratableToHost", > + vsms_cn, > + ComputerSystem=cs_ref, > + DestinationHost=ip) > + else: > + res = s_conn.InvokeMethod("CheckVirtualSystemIsMigratableToHost", > + vsms_cn, > + ComputerSystem=cs_ref, > + DestinationHost=ip, > + MigrationSettingData=msd) > + > + if res == None or res[1]['IsMigratable'] != True: > + print "Migration check failed." > + return 1 > + > + except CIMError, (err_no, desc): > + print err_no, desc > + return 1 > + > + return 0 > + > +def get_job_inst(s_conn, job_ref): > + try: > + inst = s_conn.GetInstance(job_ref) > + > + except CIMError, (err_no, desc): > + print err_no, desc > + return None > + > + return inst > + > +def poll_for_job_status(s_conn, job_ref): > + > + job_inst = get_job_inst(s_conn, job_ref) > + if not job_inst: > + print "Unable to get job instance" > + return 1 > + > + try: > + while job_inst['JobState'] != CIM_JOBSTATE_COMPLETE: > + time.sleep(3) > + job_inst = get_job_inst(s_conn, job_ref) > + if not job_inst: > + print "Unable to get job instance" > + return 1 > + > + if job_inst['Status'] != "Completed": > + print "Migrate job failed: %s" % job_inst['Status'] > + return 1 > + except KeyboardInterrupt: > + print "Migrate job took too long" > + return 1 > + > + print "Migrate job succeeded: %s" % job_inst['Status'] > + return 0 > + > +def migrate_host(s_conn, cs_ref, dest, msd, virt): > + vsms_cn = "%s_VirtualSystemMigrationService" % virt > + > + try: > + if msd == None: > + job = s_conn.InvokeMethod("MigrateVirtualSystemToHost", > + vsms_cn, > + ComputerSystem=cs_ref, > + DestinationHost=dest) > + else: > + job = s_conn.InvokeMethod("MigrateVirtualSystemToHost", > + vsms_cn, > + ComputerSystem=cs_ref, > + DestinationHost=dest, > + MigrationSettingData=msd) > + > + if len(job) < 1: > + print "No job returned from migrate call" > + return 1 > + > + status = poll_for_job_status(s_conn, job[1]['Job']) > + > + except CIMError, (err_no, desc): > + print err_no, desc > + return 1 > + > + return 0 > + > +def main(): > + usage = "usage: %prog [options] \nex: %prog my.target.com" > + parser = OptionParser(usage) > + > + parser.add_option("-s", "--src-url", dest="s_url", default="localhost:5988", > + help="URL of CIMOM to connect to (host:port)") > + parser.add_option("-t", "--target-url", dest="t_url", > + default="localhost:5988", > + help="URL of CIMOM to connect to (host:port)") > + parser.add_option("-N", "--ns", dest="ns", default="root/virt", > + help="Namespace (default is root/virt)") > + parser.add_option("-u", "--user", dest="username", default=None, > + help="HTTP Auth username") > + parser.add_option("-p", "--pass", dest="password", default=None, > + help="HTTP Auth password") > + parser.add_option("-v", "--virt-type", dest="virt", default=None, > + help="Virtualization type [ Xen | KVM ]") > + parser.add_option("--migration-type", dest="type", default=None, > + help="Migration type: [ live | resume | restart ]") > + parser.add_option("--disable-check", dest="disable_ck", action="store_true", > + help="Disable migration pre-check") > + > + (options, args) = parser.parse_args() > + > + if len(args) == 0: > + print "Fatal: no guest specified." > + sys.exit(1) > + > + guest_name = args[0] > + > + if ":" in options.s_url: > + (sysname, port) = options.s_url.split(":") > + else: > + sysname = options.s_url > + > + if ":" in options.t_url: > + (t_sysname, port) = options.t_url.split(":") > + else: > + t_sysname = options.t_url > + > + src_conn = WBEMConnection('http://%s' % sysname, > + (options.username, options.password), options.ns) > + > + guest_ref = get_guest_ref(guest_name, options.virt) > + if guest_ref == None: > + return 1 > + > + if options.virt == None: > + print "Must specify virtualization type" > + return 1 > + > + if options.virt != "Xen": > + print "Only Xen migration is currently supported" > + return 1 > + > + if options.type != None: > + msd = get_msd(options.type, options.virt) > + if msd == None: > + return 1 > + else: > + print "Using default MigrationSettingData" > + msd = None > + > + if not options.disable_ck: > + status = check_migrate(src_conn, guest_ref, t_sysname, msd, > + options.virt) > + if status == 1: > + return 1 > + > + print "Migrating %s.. this will take some time." % guest_name > + status = migrate_host(src_conn, guest_ref, t_sysname, msd, options.virt) > + return status > + > +if __name__=="__main__": > + sys.exit(main()) > + > + > > _______________________________________________ > Libvirt-cim mailing list > Libvirt-cim at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-cim -- Richard Maciel, MSc IBM Linux Technology Center rmaciel at linux.vnet.ibm.com From deeptik at linux.vnet.ibm.com Tue Feb 3 04:33:14 2009 From: deeptik at linux.vnet.ibm.com (Deepti B Kalakeri) Date: Tue, 03 Feb 2009 10:03:14 +0530 Subject: [Libvirt-cim] Re: Test Run Summary (Feb 02 2009): KVM on Fedora release 9 (Sulphur) with Pegasus In-Reply-To: <49874BF9.8020901@linux.vnet.ibm.com> References: <49869EC6.3010505@linux.vnet.ibm.com> <4986A1ED.80205@linux.vnet.ibm.com> <49874BF9.8020901@linux.vnet.ibm.com> Message-ID: <4987C90A.609@linux.vnet.ibm.com> Kaitlin Rupert wrote: > Deepti B Kalakeri wrote: >> The following 2 tc's were causing segfault and the cimserver was >> crashing, hence ran the test without the following 2 test's: >> >> VirtualSystemManagementService - 09_procrasd_persist.py >> VirtualSystemManagementService - 12_referenced_config.py >> >> Error: >> ERROR - Exception: details (0, "The web server returned a bad >> status line: ''") >> InvokeMethod(DefineSystem): The web server returned a bad status >> line: '' >> >>> >> > > Any idea why these tests are crashing the CIMOM? I had not found enough time to verify this yesterday. I will be looking into this today. -- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik at linux.vnet.ibm.com From deeptik at linux.vnet.ibm.com Tue Feb 3 07:39:53 2009 From: deeptik at linux.vnet.ibm.com (Deepti B. Kalakeri) Date: Mon, 02 Feb 2009 23:39:53 -0800 Subject: [Libvirt-cim] [PATCH] [TEST]Fixing VSMS/05_migratable_host_errs.py tc by modifying it to use cim_define() and cim_start() Message-ID: <847fc58984293f69ef35.1233646793@elm3b43.beaverton.ibm.com> # HG changeset patch # User Deepti B. Kalakeri # Date 1233646768 28800 # Node ID 847fc58984293f69ef35a4c5294737cf1f8e7156 # Parent 912b7615d48c8303fd3daa6e55669c6d66af23e4 [TEST]Fixing VSMS/05_migratable_host_errs.py tc by modifying it to use cim_define() and cim_start(). Also, 1) removed unnecessary import statements, Exception block. 2) Used meaningful variable names 3) Indented the tc to fit in 80 columns. 4) Added the missing destroy and undefine() calls. Tested for Xen with current sources. Signed-off-by: Deepti B. Kalakeri diff -r 912b7615d48c -r 847fc5898429 suites/libvirt-cim/cimtest/VirtualSystemMigrationService/05_migratable_host_errs.py --- a/suites/libvirt-cim/cimtest/VirtualSystemMigrationService/05_migratable_host_errs.py Mon Feb 02 04:45:23 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemMigrationService/05_migratable_host_errs.py Mon Feb 02 23:39:28 2009 -0800 @@ -21,14 +21,12 @@ # import sys -import pywbem from pywbem.cim_obj import CIMInstanceName -from VirtLib import utils from XenKvmLib import vxml from XenKvmLib import vsmigrations from CimTest.Globals import logger from XenKvmLib.const import do_main -from CimTest.ReturnCodes import PASS, FAIL, XFAIL +from CimTest.ReturnCodes import PASS, FAIL sup_types = ['Xen', 'XenFV'] @@ -39,49 +37,57 @@ exp_desc = 'Missing key (Name) in Comput @do_main(sup_types) def main(): options = main.options + server = options.ip virt_xml = vxml.get_class(options.virt) cxml = virt_xml(test_dom) - ret = cxml.create(options.ip) + ret = cxml.cim_define(server) if not ret: - logger.error("Error create domain %s" % test_dom ) + logger.error("Error define domain %s" % test_dom ) return FAIL + status = cxml.cim_start(server) + if status != PASS: + cxml.undefine(server) + logger.error("Error start domain %s" % test_dom ) + return status + status = FAIL - rc = -1 + mig_successful = False try: - service = vsmigrations.Xen_VirtualSystemMigrationService(options.ip) + service = vsmigrations.Xen_VirtualSystemMigrationService(server) except Exception: - logger.error("Error when go to the class of Xen_VirtualSystemMigrationService") + logger.error("Error using Xen_VirtualSystemMigrationService") + cxml.destroy(server) + cxml.undefine(server) return FAIL classname = 'Xen_ComputerSystem' - cs_ref = CIMInstanceName(classname, keybindings = { - 'Wrong':test_dom, - 'CreationClassName':classname}) + cs_ref = CIMInstanceName(classname, + keybindings = { 'Wrong':test_dom, + 'CreationClassName':classname}) try: service.CheckVirtualSystemIsMigratableToHost(ComputerSystem=cs_ref, - DestinationHost=options.ip) + DestinationHost=server) service.MigrateVirtualSystemToHost(ComputerSystem=cs_ref, - DestinationHost=options.ip) - rc = 0 - except pywbem.CIMError, (rc, desc): + DestinationHost=server) + mig_successful = True + except Exception, (rc, desc): if rc == exp_rc and desc.find(exp_desc) >= 0: - logger.info('Got expected rc code and error string.') + logger.info('Got expected rc code :%s', rc) + logger.info('Got expected error string:%s', desc) status = PASS else: - logger.error('Unexpected rc code %s and description:\n %s' % (rc, desc)) - except Exception, details: - logger.error('Unknown exception happened') - logger.error(details) + logger.error('Unexpected rc code %s and description: %s', rc, desc) - if rc == 0: - logger.error('Migrate to host method should NOT return OK with a wrong key input') + if mig_successful == True: + logger.error('Migrate to host method should NOT return OK ' + 'since wrong key was supplied') - cxml.destroy(options.ip) - cxml.undefine(options.ip) + cxml.destroy(server) + cxml.undefine(server) return status From deeptik at linux.vnet.ibm.com Tue Feb 3 07:25:24 2009 From: deeptik at linux.vnet.ibm.com (Deepti B Kalakeri) Date: Tue, 03 Feb 2009 12:55:24 +0530 Subject: [Libvirt-cim] [PATCH] [TEST] Update VSMS 03_definesystem_ess.py to use cim_define() In-Reply-To: References: Message-ID: <4987F164.6030903@linux.vnet.ibm.com> +1 -- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik at linux.vnet.ibm.com From deeptik at linux.vnet.ibm.com Tue Feb 3 08:51:06 2009 From: deeptik at linux.vnet.ibm.com (Deepti B Kalakeri) Date: Tue, 03 Feb 2009 14:21:06 +0530 Subject: [Libvirt-cim] [PATCH] [TEST] Update VSMS 12_referenced_config.py to use cim_() function In-Reply-To: <4327fd7361d8107c8f7f.1233605193@localhost.localdomain> References: <4327fd7361d8107c8f7f.1233605193@localhost.localdomain> Message-ID: <4988057A.4040303@linux.vnet.ibm.com> Kaitlin Rupert wrote: > # HG changeset patch > # User Kaitlin Rupert > # Date 1233605070 28800 > # Node ID 4327fd7361d8107c8f7fc827d62162e9151ff6dd > # Parent fa1424f9b3f4ae005b4fcc34e18858035cc8f102 > [TEST] Update VSMS 12_referenced_config.py to use cim_() function. > > Also re-wrote part of this test to fix the overall test flow. > > Signed-off-by: Kaitlin Rupert > > diff -r fa1424f9b3f4 -r 4327fd7361d8 suites/libvirt-cim/cimtest/VirtualSystemManagementService/12_referenced_config.py > --- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/12_referenced_config.py Mon Feb 02 12:02:30 2009 -0800 > +++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/12_referenced_config.py Mon Feb 02 12:04:30 2009 -0800 > @@ -21,19 +21,15 @@ > # > > import sys > -import pywbem > -from XenKvmLib.common_util import create_using_definesystem, \ > - call_request_state_change, \ > - poll_for_state_change, get_cs_instance > -from XenKvmLib import vsms > -from VirtLib import utils > +from XenKvmLib.common_util import get_cs_instance > from CimTest.Globals import logger > from XenKvmLib.const import do_main > from CimTest.ReturnCodes import FAIL, PASS > -from XenKvmLib.test_doms import destroy_and_undefine_domain > -from XenKvmLib.classes import get_typed_class > +from XenKvmLib.classes import get_typed_class, inst_to_mof > from XenKvmLib.assoc import AssociatorNames > from XenKvmLib.test_xml import dumpxml > +from XenKvmLib.vxml import get_class > +from XenKvmLib.rasd import get_default_rasds > > sup_types = ['Xen', 'XenFV', 'KVM'] > test_dom = 'rstest_domain' > @@ -41,21 +37,13 @@ > > mac = "aa:aa:aa:00:00:00" > > -REQUESTED_STATE = 2 > -TIME = "00000000000000.000000:000" > - > -def setup_first_guest(ip, virt): > - status = create_using_definesystem(test_dom, ip, virt=virt) > - if status != PASS: > +def setup_first_guest(ip, virt, cxml): > + ret = cxml.cim_define(ip) > + if not ret: > logger.error("Unable to define %s using DefineSystem()" % test_dom) > return FAIL > > - rc = call_request_state_change(test_dom, ip, REQUESTED_STATE, TIME, virt) > - if rc != 0: > - logger.error("Unable to start %s" % test_dom) > - return FAIL > - > - status, cs = poll_for_state_change(ip, virt, test_dom, REQUESTED_STATE) > + status = cxml.cim_start(ip) > if status != PASS: > logger.error("Unable to start %s" % test_dom) > return FAIL > @@ -70,7 +58,7 @@ > cn = "ComputerSystem" > ccn = get_typed_class(virt, cn) > an = get_typed_class(virt, 'SettingsDefineState') > - vssd = AssociatorNames(ip, an, ccn, Name = test_dom, CreationClassName = ccn) > + vssd = AssociatorNames(ip, an, ccn, Name=test_dom, CreationClassName=ccn) > Before the call to AssociatorNames() we call get_cs_instance(test_dom, ip, virt) whose return values are never used. Either we can remove the call to get_cs_instance() OR check the EnabledState value for the guest to be set to running and also use cs.CreationClassName as parameter to be passed as part of the AssociatorNames. > if len(vssd) != 1: > logger.error("Returned %i vssd insts for '%s'", len(vssd), test_dom) > @@ -78,26 +66,33 @@ > > return vssd[0] > > -def get_vssd_rasd(virt): > - vssd, def_rasd = vsms.default_vssd_rasd_str(dom_name=test_dom2, > - net_type='network', > - net_mac=mac, virt=virt) > +def setup_second_guest(ip, virt, cxml2, ref): > + nrasd_cn = get_typed_class(virt, "NetResourceAllocationSettingData") > > - rasd = [] > - for inst in def_rasd: > - cn = get_typed_class(virt, "NetResourceAllocationSettingData") > - if cn in inst: > - rasd.append(inst) > + rasds = get_default_rasds(ip, virt) > > - params = {} > + rasd_list = {} > > - if len(rasd) != 1: > - return params > + for rasd in rasds: > + if rasd.classname == nrasd_cn: > + rasd['Address'] = mac > + rasd['NetworkType'] = "network" > + rasd_list[nrasd_cn] = inst_to_mof(rasd) > + else: > + rasd_list[rasd.classname] = None > > - params['vssd'] = vssd > - params['rasd'] = rasd > + if rasd_list[nrasd_cn] is None: > + logger.error("Unable to get template NetRASD") > + return FAIL > > - return params > + cxml2.set_res_settings(rasd_list) > + > + ret = cxml2.cim_define(ip, ref_conf=ref) > + if not ret: > + logger.error("Unable to define %s using DefineSystem()" % test_dom2) > + return FAIL > + > + return PASS > > def get_dom_macs(server, dom, virt): > mac_list = [] > @@ -118,8 +113,10 @@ > def main(): > options = main.options > > + cxml = get_class(options.virt)(test_dom) > + cxml2 = get_class(options.virt)(test_dom2) > try: > - status = setup_first_guest(options.ip, options.virt) > + status = setup_first_guest(options.ip, options.virt, cxml) > if status != PASS: > raise Exception("Unable to start %s" % test_dom) > > @@ -127,14 +124,7 @@ > if ref is None: > raise Exception("Unable to get %s reference" % test_dom) > > - define_params = get_vssd_rasd(options.virt) > - if len(define_params) != 2: > - raise Exception("Unable to build VSSD and RASD instances for %s" % \ > - test_dom2) > - > - status = create_using_definesystem(test_dom2, options.ip, > - params=define_params, ref_config=ref, > - virt=options.virt) > + status = setup_second_guest(options.ip, options.virt, cxml2, ref) > if status != PASS: > raise Exception("Unable to define %s" % test_dom2) > > @@ -159,8 +149,9 @@ > logger.error(details) > status = FAIL > > - destroy_and_undefine_domain(test_dom, options.ip, options.virt) > - destroy_and_undefine_domain(test_dom2, options.ip, options.virt) > + cxml.cim_destroy(options.ip) > we should call cxml.cim_destroy() when setup_first_guest() is successful only. > + cxml.undefine(options.ip) > + cxml2.undefine(options.ip) > > Similarly call to cxml2.undefine is unnecessary when setup_second_guest() fails. > return status > > > _______________________________________________ > Libvirt-cim mailing list > Libvirt-cim at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-cim > -- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik at linux.vnet.ibm.com From deeptik at linux.vnet.ibm.com Tue Feb 3 09:28:46 2009 From: deeptik at linux.vnet.ibm.com (Deepti B Kalakeri) Date: Tue, 03 Feb 2009 14:58:46 +0530 Subject: [Libvirt-cim] [PATCH] [TEST] Update VSMS 14_define_sys_disk.py to use cim_define() In-Reply-To: References: Message-ID: <49880E4E.2030507@linux.vnet.ibm.com> Kaitlin Rupert wrote: > # HG changeset patch > # User Kaitlin Rupert > # Date 1233605202 28800 > # Node ID f9b044c4d5ddeed5b2383186ebfb9337b102ba5d > # Parent 4327fd7361d8107c8f7fc827d62162e9151ff6dd > [TEST] Update VSMS 14_define_sys_disk.py to use cim_define() > > Signed-off-by: Kaitlin Rupert > > diff -r 4327fd7361d8 -r f9b044c4d5dd suites/libvirt-cim/cimtest/VirtualSystemManagementService/14_define_sys_disk.py > --- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/14_define_sys_disk.py Mon Feb 02 12:04:30 2009 -0800 > +++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/14_define_sys_disk.py Mon Feb 02 12:06:42 2009 -0800 > @@ -25,14 +25,11 @@ > from VirtLib.utils import run_remote > from CimTest.Globals import logger > from CimTest.ReturnCodes import FAIL, PASS > -from XenKvmLib.common_util import create_using_definesystem > -from XenKvmLib.test_doms import destroy_and_undefine_domain > from XenKvmLib.classes import get_typed_class, inst_to_mof > from XenKvmLib.rasd import get_default_rasds > -from XenKvmLib.vsms import get_vssd_mof > -from XenKvmLib.const import get_provider_version > from XenKvmLib.const import do_main, _image_dir, f9_changeset, \ > - KVM_default_disk_dev > + KVM_default_disk_dev, get_provider_version > +from XenKvmLib.vxml import get_class > > sup_types = ['Xen', 'XenFV', 'KVM', 'LXC'] > test_dom = 'rstest_disk_domain' > @@ -50,28 +47,24 @@ > > return path > > -def get_vssd_rasd(ip, virt, addr, disk_type): > - vssd = get_vssd_mof(virt, test_dom) > +def get_rasd_list(ip, virt, addr, disk_type): > + drasd_cn = get_typed_class(virt, "DiskResourceAllocationSettingData") > > rasds = get_default_rasds(ip, virt) > > - rasd_list = [] > + rasd_list = {} > > for rasd in rasds: > - if 'DiskPool' in rasd['PoolID']: > + if rasd.classname == drasd_cn: > if disk_type != "" and rasd['Caption'] != disk_type: > continue > rasd['Address'] = addr > curr_cim_rev, changeset = get_provider_version(virt, ip) > if changeset == f9_changeset and virt == 'KVM': > rasd['VirtualDevice'] = KVM_default_disk_dev > - rasd_list.append(inst_to_mof(rasd)) > + rasd_list[rasd.classname] = inst_to_mof(rasd) > > - params = { 'vssd' : vssd, > - 'rasd' : rasd_list > - } > - > - return params > + return rasd_list > > @do_main(sup_types) > def main(): > @@ -84,21 +77,24 @@ > else: > disk_cap = "" > > + cxml = get_class(options.virt)(test_dom) > + > try: > addr = make_long_disk_path(options.ip) > if addr is None: > raise Exception("Unable to create large disk image") > You can immediately return from here instead of raising an Exception. Also if you raise an exception then calling cxml.undefine(options.ip) is not needed as we would have not defined the guest. > - define_params = get_vssd_rasd(options.ip, options.virt, addr, disk_cap) > - if len(define_params) != 2: > - raise Exception("Unable to get VSSD and RASDs for %s" % test_dom) > + rasd_list = get_rasd_list(options.ip, options.virt, addr, disk_cap) > + if len(rasd_list) < 1: > + raise Exception("Unable to get template RASDs for %s" % test_dom) > > - status = create_using_definesystem(test_dom, options.ip, > - params=define_params, ref_config="", > - virt=options.virt) > - if status != PASS: > + cxml.set_res_settings(rasd_list) > + ret = cxml.cim_define(options.ip) > + if not ret: > raise Exception("Unable to define %s" % test_dom) > same here. > + status = PASS > + > except Exception, details: > logger.error(details) > status = FAIL > @@ -106,7 +102,7 @@ > if os.path.exists(addr): > os.remove(addr) > > - destroy_and_undefine_domain(test_dom, options.ip, options.virt) > + cxml.undefine(options.ip) > > return status > > > _______________________________________________ > Libvirt-cim mailing list > Libvirt-cim at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-cim > -- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik at linux.vnet.ibm.com From deeptik at linux.vnet.ibm.com Tue Feb 3 09:59:36 2009 From: deeptik at linux.vnet.ibm.com (Deepti B Kalakeri) Date: Tue, 03 Feb 2009 15:29:36 +0530 Subject: [Libvirt-cim] [PATCH] [TEST] Update VSMS 14_define_sys_disk.py to use cim_define() In-Reply-To: <49880E4E.2030507@linux.vnet.ibm.com> References: <49880E4E.2030507@linux.vnet.ibm.com> Message-ID: <49881588.6000501@linux.vnet.ibm.com> Also, can you include a small description at the beginning of the tc. Deepti B Kalakeri wrote: > > > Kaitlin Rupert wrote: >> # HG changeset patch >> # User Kaitlin Rupert >> # Date 1233605202 28800 >> # Node ID f9b044c4d5ddeed5b2383186ebfb9337b102ba5d >> # Parent 4327fd7361d8107c8f7fc827d62162e9151ff6dd >> [TEST] Update VSMS 14_define_sys_disk.py to use cim_define() >> >> Signed-off-by: Kaitlin Rupert >> >> diff -r 4327fd7361d8 -r f9b044c4d5dd >> suites/libvirt-cim/cimtest/VirtualSystemManagementService/14_define_sys_disk.py >> >> --- >> a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/14_define_sys_disk.py >> Mon Feb 02 12:04:30 2009 -0800 >> +++ >> b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/14_define_sys_disk.py >> Mon Feb 02 12:06:42 2009 -0800 >> @@ -25,14 +25,11 @@ >> from VirtLib.utils import run_remote >> from CimTest.Globals import logger >> from CimTest.ReturnCodes import FAIL, PASS >> -from XenKvmLib.common_util import create_using_definesystem >> -from XenKvmLib.test_doms import destroy_and_undefine_domain >> from XenKvmLib.classes import get_typed_class, inst_to_mof >> from XenKvmLib.rasd import get_default_rasds >> -from XenKvmLib.vsms import get_vssd_mof >> -from XenKvmLib.const import get_provider_version >> from XenKvmLib.const import do_main, _image_dir, f9_changeset, \ >> - KVM_default_disk_dev >> + KVM_default_disk_dev, get_provider_version >> +from XenKvmLib.vxml import get_class >> >> sup_types = ['Xen', 'XenFV', 'KVM', 'LXC'] >> test_dom = 'rstest_disk_domain' >> @@ -50,28 +47,24 @@ >> >> return path >> >> -def get_vssd_rasd(ip, virt, addr, disk_type): >> - vssd = get_vssd_mof(virt, test_dom) >> +def get_rasd_list(ip, virt, addr, disk_type): >> + drasd_cn = get_typed_class(virt, >> "DiskResourceAllocationSettingData") >> >> rasds = get_default_rasds(ip, virt) >> >> - rasd_list = [] >> + rasd_list = {} >> for rasd in rasds: >> - if 'DiskPool' in rasd['PoolID']: >> + if rasd.classname == drasd_cn: >> if disk_type != "" and rasd['Caption'] != disk_type: >> continue >> rasd['Address'] = addr >> curr_cim_rev, changeset = get_provider_version(virt, ip) >> if changeset == f9_changeset and virt == 'KVM': >> rasd['VirtualDevice'] = KVM_default_disk_dev >> - rasd_list.append(inst_to_mof(rasd)) >> + rasd_list[rasd.classname] = inst_to_mof(rasd) >> >> - params = { 'vssd' : vssd, >> - 'rasd' : rasd_list - } >> - >> - return params + return rasd_list >> @do_main(sup_types) >> def main(): >> @@ -84,21 +77,24 @@ >> else: >> disk_cap = "" >> + cxml = get_class(options.virt)(test_dom) >> + >> try: >> addr = make_long_disk_path(options.ip) >> if addr is None: >> raise Exception("Unable to create large disk image") >> > You can immediately return from here instead of raising an Exception. > Also if you raise an exception then calling > > cxml.undefine(options.ip) is not needed as we would have not defined > the guest. > > >> - define_params = get_vssd_rasd(options.ip, options.virt, >> addr, disk_cap) >> - if len(define_params) != 2: >> - raise Exception("Unable to get VSSD and RASDs for %s" % >> test_dom) >> + rasd_list = get_rasd_list(options.ip, options.virt, addr, >> disk_cap) >> + if len(rasd_list) < 1: >> + raise Exception("Unable to get template RASDs for %s" % >> test_dom) >> >> - status = create_using_definesystem(test_dom, options.ip, >> - params=define_params, >> ref_config="", >> - virt=options.virt) >> - if status != PASS: >> + cxml.set_res_settings(rasd_list) >> + ret = cxml.cim_define(options.ip) >> + if not ret: >> raise Exception("Unable to define %s" % test_dom) >> > same here. >> + status = PASS >> + >> except Exception, details: >> logger.error(details) >> status = FAIL >> @@ -106,7 +102,7 @@ >> if os.path.exists(addr): >> os.remove(addr) >> >> - destroy_and_undefine_domain(test_dom, options.ip, options.virt) >> + cxml.undefine(options.ip) >> >> return status >> >> _______________________________________________ >> Libvirt-cim mailing list >> Libvirt-cim at redhat.com >> https://www.redhat.com/mailman/listinfo/libvirt-cim >> > -- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik at linux.vnet.ibm.com From deeptik at linux.vnet.ibm.com Tue Feb 3 09:59:21 2009 From: deeptik at linux.vnet.ibm.com (Deepti B Kalakeri) Date: Tue, 03 Feb 2009 15:29:21 +0530 Subject: [Libvirt-cim] [PATCH] [TEST] Update VSMS 12_referenced_config.py to use cim_() function In-Reply-To: <4988057A.4040303@linux.vnet.ibm.com> References: <4327fd7361d8107c8f7f.1233605193@localhost.localdomain> <4988057A.4040303@linux.vnet.ibm.com> Message-ID: <49881579.4070909@linux.vnet.ibm.com> Also, can you include a small description at the beginning of the tc. Deepti B Kalakeri wrote: > > > Kaitlin Rupert wrote: >> # HG changeset patch >> # User Kaitlin Rupert >> # Date 1233605070 28800 >> # Node ID 4327fd7361d8107c8f7fc827d62162e9151ff6dd >> # Parent fa1424f9b3f4ae005b4fcc34e18858035cc8f102 >> [TEST] Update VSMS 12_referenced_config.py to use cim_() function. >> >> Also re-wrote part of this test to fix the overall test flow. >> >> Signed-off-by: Kaitlin Rupert >> >> diff -r fa1424f9b3f4 -r 4327fd7361d8 >> suites/libvirt-cim/cimtest/VirtualSystemManagementService/12_referenced_config.py >> >> --- >> a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/12_referenced_config.py >> Mon Feb 02 12:02:30 2009 -0800 >> +++ >> b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/12_referenced_config.py >> Mon Feb 02 12:04:30 2009 -0800 >> @@ -21,19 +21,15 @@ >> # >> >> import sys >> -import pywbem >> -from XenKvmLib.common_util import create_using_definesystem, \ >> - call_request_state_change, \ >> - poll_for_state_change, >> get_cs_instance >> -from XenKvmLib import vsms >> -from VirtLib import utils +from XenKvmLib.common_util import >> get_cs_instance >> from CimTest.Globals import logger >> from XenKvmLib.const import do_main >> from CimTest.ReturnCodes import FAIL, PASS >> -from XenKvmLib.test_doms import destroy_and_undefine_domain -from >> XenKvmLib.classes import get_typed_class >> +from XenKvmLib.classes import get_typed_class, inst_to_mof >> from XenKvmLib.assoc import AssociatorNames >> from XenKvmLib.test_xml import dumpxml >> +from XenKvmLib.vxml import get_class >> +from XenKvmLib.rasd import get_default_rasds >> >> sup_types = ['Xen', 'XenFV', 'KVM'] >> test_dom = 'rstest_domain' >> @@ -41,21 +37,13 @@ >> >> mac = "aa:aa:aa:00:00:00" >> >> -REQUESTED_STATE = 2 >> -TIME = "00000000000000.000000:000" >> - >> -def setup_first_guest(ip, virt): >> - status = create_using_definesystem(test_dom, ip, virt=virt) >> - if status != PASS: >> +def setup_first_guest(ip, virt, cxml): >> + ret = cxml.cim_define(ip) >> + if not ret: >> logger.error("Unable to define %s using DefineSystem()" % >> test_dom) >> return FAIL >> >> - rc = call_request_state_change(test_dom, ip, REQUESTED_STATE, >> TIME, virt) >> - if rc != 0: >> - logger.error("Unable to start %s" % test_dom) >> - return FAIL >> - >> - status, cs = poll_for_state_change(ip, virt, test_dom, >> REQUESTED_STATE) >> + status = cxml.cim_start(ip) >> if status != PASS: >> logger.error("Unable to start %s" % test_dom) >> return FAIL >> @@ -70,7 +58,7 @@ >> cn = "ComputerSystem" >> ccn = get_typed_class(virt, cn) >> an = get_typed_class(virt, 'SettingsDefineState') >> - vssd = AssociatorNames(ip, an, ccn, Name = test_dom, >> CreationClassName = ccn) >> + vssd = AssociatorNames(ip, an, ccn, Name=test_dom, >> CreationClassName=ccn) >> > Before the call to AssociatorNames() we call get_cs_instance(test_dom, > ip, virt) whose return values are never used. > Either we can remove the call to get_cs_instance() > > OR > > check the EnabledState value for the guest to be set to running and > also use cs.CreationClassName as parameter to be passed as part of the > AssociatorNames. >> if len(vssd) != 1: >> logger.error("Returned %i vssd insts for '%s'", len(vssd), >> test_dom) >> @@ -78,26 +66,33 @@ >> >> return vssd[0] >> >> -def get_vssd_rasd(virt): >> - vssd, def_rasd = vsms.default_vssd_rasd_str(dom_name=test_dom2, >> - net_type='network', >> - net_mac=mac, virt=virt) >> +def setup_second_guest(ip, virt, cxml2, ref): >> + nrasd_cn = get_typed_class(virt, >> "NetResourceAllocationSettingData") >> >> - rasd = [] >> - for inst in def_rasd: >> - cn = get_typed_class(virt, "NetResourceAllocationSettingData") >> - if cn in inst: >> - rasd.append(inst) >> + rasds = get_default_rasds(ip, virt) >> >> - params = {} + rasd_list = {} >> >> - if len(rasd) != 1: >> - return params + for rasd in rasds: >> + if rasd.classname == nrasd_cn: >> + rasd['Address'] = mac >> + rasd['NetworkType'] = "network" + >> rasd_list[nrasd_cn] = inst_to_mof(rasd) >> + else: >> + rasd_list[rasd.classname] = None >> >> - params['vssd'] = vssd >> - params['rasd'] = rasd >> + if rasd_list[nrasd_cn] is None: >> + logger.error("Unable to get template NetRASD") >> + return FAIL >> >> - return params + cxml2.set_res_settings(rasd_list) >> + >> + ret = cxml2.cim_define(ip, ref_conf=ref) >> + if not ret: >> + logger.error("Unable to define %s using DefineSystem()" % >> test_dom2) >> + return FAIL >> + >> + return PASS >> def get_dom_macs(server, dom, virt): >> mac_list = [] >> @@ -118,8 +113,10 @@ >> def main(): >> options = main.options >> >> + cxml = get_class(options.virt)(test_dom) >> + cxml2 = get_class(options.virt)(test_dom2) >> try: >> - status = setup_first_guest(options.ip, options.virt) >> + status = setup_first_guest(options.ip, options.virt, cxml) >> if status != PASS: >> raise Exception("Unable to start %s" % test_dom) >> >> @@ -127,14 +124,7 @@ >> if ref is None: >> raise Exception("Unable to get %s reference" % test_dom) >> >> - define_params = get_vssd_rasd(options.virt) >> - if len(define_params) != 2: >> - raise Exception("Unable to build VSSD and RASD instances >> for %s" % \ >> - test_dom2) >> - >> - status = create_using_definesystem(test_dom2, options.ip, >> - params=define_params, >> ref_config=ref, >> - virt=options.virt) >> + status = setup_second_guest(options.ip, options.virt, cxml2, >> ref) >> if status != PASS: >> raise Exception("Unable to define %s" % test_dom2) >> >> @@ -159,8 +149,9 @@ >> logger.error(details) >> status = FAIL >> >> - destroy_and_undefine_domain(test_dom, options.ip, options.virt) >> - destroy_and_undefine_domain(test_dom2, options.ip, options.virt) >> + cxml.cim_destroy(options.ip) >> > we should call cxml.cim_destroy() when setup_first_guest() is > successful only. >> + cxml.undefine(options.ip) >> + cxml2.undefine(options.ip) >> >> > Similarly call to cxml2.undefine is unnecessary when > setup_second_guest() fails. > > >> return status >> >> _______________________________________________ >> Libvirt-cim mailing list >> Libvirt-cim at redhat.com >> https://www.redhat.com/mailman/listinfo/libvirt-cim >> > -- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik at linux.vnet.ibm.com From deeptik at linux.vnet.ibm.com Tue Feb 3 10:21:29 2009 From: deeptik at linux.vnet.ibm.com (Deepti B Kalakeri) Date: Tue, 03 Feb 2009 15:51:29 +0530 Subject: [Libvirt-cim] Re: Test Run Summary (Feb 02 2009): KVM on Fedora release 9 (Sulphur) with Pegasus In-Reply-To: <4987C90A.609@linux.vnet.ibm.com> References: <49869EC6.3010505@linux.vnet.ibm.com> <4986A1ED.80205@linux.vnet.ibm.com> <49874BF9.8020901@linux.vnet.ibm.com> <4987C90A.609@linux.vnet.ibm.com> Message-ID: <49881AA9.4060208@linux.vnet.ibm.com> Deepti B Kalakeri wrote: > > > Kaitlin Rupert wrote: >> Deepti B Kalakeri wrote: >>> The following 2 tc's were causing segfault and the cimserver was >>> crashing, hence ran the test without the following 2 test's: >>> >>> VirtualSystemManagementService - 09_procrasd_persist.py >>> VirtualSystemManagementService - 12_referenced_config.py >>> >>> Error: >>> ERROR - Exception: details (0, "The web server returned a bad >>> status line: ''") >>> InvokeMethod(DefineSystem): The web server returned a bad status >>> line: '' >>> >>>> >>> >> >> Any idea why these tests are crashing the CIMOM? > I had not found enough time to verify this yesterday. > I will be looking into this today. The above test cases were failing because GraphicsRASD information was passed to the DefineSystem() call. The changes for GraphicsRASD is not present in the rpm based libvirt-cim which includes the changes up till revision 613. But the changes for the GraphicsRASD is available in libvirt-cim >= 763. This is a test case issue and will send out a patch fixing this issue. -- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik at linux.vnet.ibm.com From kaitlin at linux.vnet.ibm.com Tue Feb 3 18:20:06 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Tue, 03 Feb 2009 10:20:06 -0800 Subject: [Libvirt-cim] [PATCH] [TEST] #2 Update VSMS 12_referenced_config.py to use cim_() function Message-ID: # HG changeset patch # User Kaitlin Rupert # Date 1233682625 28800 # Node ID b5e7e1cf87f88b2baa21645b5d2bed2286ffb0ca # Parent fa1424f9b3f4ae005b4fcc34e18858035cc8f102 [TEST] #2 Update VSMS 12_referenced_config.py to use cim_() function. Also re-wrote part of this test to fix the overall test flow. Updates: -Added comment -Ensured cleanup only occurs when guest has been started / defined -Use cs instance Name and CCN Signed-off-by: Kaitlin Rupert diff -r fa1424f9b3f4 -r b5e7e1cf87f8 suites/libvirt-cim/cimtest/VirtualSystemManagementService/12_referenced_config.py --- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/12_referenced_config.py Mon Feb 02 12:02:30 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/12_referenced_config.py Tue Feb 03 09:37:05 2009 -0800 @@ -19,21 +19,27 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # +# Purpose: +# Verify DefineSystem() properly uses the settings of the referenced passed in +# for the ReferenceConfiguration parameter. +# +# Steps: +# 1) Define and start a guest +# 2) Get the reference of the guest +# 3) Define a second guest using the reference of the first guest +# 4) Verify the settings of the second guest + import sys -import pywbem -from XenKvmLib.common_util import create_using_definesystem, \ - call_request_state_change, \ - poll_for_state_change, get_cs_instance -from XenKvmLib import vsms -from VirtLib import utils +from XenKvmLib.common_util import get_cs_instance from CimTest.Globals import logger from XenKvmLib.const import do_main from CimTest.ReturnCodes import FAIL, PASS -from XenKvmLib.test_doms import destroy_and_undefine_domain -from XenKvmLib.classes import get_typed_class +from XenKvmLib.classes import get_typed_class, inst_to_mof from XenKvmLib.assoc import AssociatorNames from XenKvmLib.test_xml import dumpxml +from XenKvmLib.vxml import get_class +from XenKvmLib.rasd import get_default_rasds sup_types = ['Xen', 'XenFV', 'KVM'] test_dom = 'rstest_domain' @@ -41,36 +47,27 @@ mac = "aa:aa:aa:00:00:00" -REQUESTED_STATE = 2 -TIME = "00000000000000.000000:000" +def setup_first_guest(ip, virt, cxml): + ret = cxml.cim_define(ip) + if not ret: + logger.error("Unable to define %s using DefineSystem()" % test_dom) + return FAIL, None -def setup_first_guest(ip, virt): - status = create_using_definesystem(test_dom, ip, virt=virt) - if status != PASS: - logger.error("Unable to define %s using DefineSystem()" % test_dom) - return FAIL - - rc = call_request_state_change(test_dom, ip, REQUESTED_STATE, TIME, virt) - if rc != 0: - logger.error("Unable to start %s" % test_dom) - return FAIL - - status, cs = poll_for_state_change(ip, virt, test_dom, REQUESTED_STATE) + status = cxml.cim_start(ip) if status != PASS: logger.error("Unable to start %s" % test_dom) - return FAIL + return FAIL, "define" - return PASS + return PASS, "start" def get_vssd_ref(ip, virt): rc, cs = get_cs_instance(test_dom, ip, virt) if rc != 0: return None - cn = "ComputerSystem" - ccn = get_typed_class(virt, cn) an = get_typed_class(virt, 'SettingsDefineState') - vssd = AssociatorNames(ip, an, ccn, Name = test_dom, CreationClassName = ccn) + vssd = AssociatorNames(ip, an, cs.CreationClassName, Name=cs.Name, + CreationClassName=cs.CreationClassName) if len(vssd) != 1: logger.error("Returned %i vssd insts for '%s'", len(vssd), test_dom) @@ -78,26 +75,33 @@ return vssd[0] -def get_vssd_rasd(virt): - vssd, def_rasd = vsms.default_vssd_rasd_str(dom_name=test_dom2, - net_type='network', - net_mac=mac, virt=virt) +def setup_second_guest(ip, virt, cxml2, ref): + nrasd_cn = get_typed_class(virt, "NetResourceAllocationSettingData") - rasd = [] - for inst in def_rasd: - cn = get_typed_class(virt, "NetResourceAllocationSettingData") - if cn in inst: - rasd.append(inst) + rasds = get_default_rasds(ip, virt) - params = {} + rasd_list = {} - if len(rasd) != 1: - return params + for rasd in rasds: + if rasd.classname == nrasd_cn: + rasd['Address'] = mac + rasd['NetworkType'] = "network" + rasd_list[nrasd_cn] = inst_to_mof(rasd) + else: + rasd_list[rasd.classname] = None - params['vssd'] = vssd - params['rasd'] = rasd + if rasd_list[nrasd_cn] is None: + logger.error("Unable to get template NetRASD") + return FAIL - return params + cxml2.set_res_settings(rasd_list) + + ret = cxml2.cim_define(ip, ref_conf=ref) + if not ret: + logger.error("Unable to define %s using DefineSystem()" % test_dom2) + return FAIL, None + + return PASS, "define" def get_dom_macs(server, dom, virt): mac_list = [] @@ -117,33 +121,34 @@ @do_main(sup_types) def main(): options = main.options + virt = options.virt + ip = options.ip + + cxml = get_class(virt)(test_dom) + cxml2 = get_class(virt)(test_dom2) + + guest1_setup = None + guest2_setup = None try: - status = setup_first_guest(options.ip, options.virt) + status, guest1_setup = setup_first_guest(ip, virt, cxml) if status != PASS: raise Exception("Unable to start %s" % test_dom) - ref = get_vssd_ref(options.ip, options.virt) + ref = get_vssd_ref(ip, virt) if ref is None: raise Exception("Unable to get %s reference" % test_dom) - define_params = get_vssd_rasd(options.virt) - if len(define_params) != 2: - raise Exception("Unable to build VSSD and RASD instances for %s" % \ - test_dom2) - - status = create_using_definesystem(test_dom2, options.ip, - params=define_params, ref_config=ref, - virt=options.virt) + status, guest2_setup = setup_second_guest(ip, virt, cxml2, ref) if status != PASS: raise Exception("Unable to define %s" % test_dom2) - dom1_mac_list = get_dom_macs(options.ip, test_dom, options.virt) + dom1_mac_list = get_dom_macs(ip, test_dom, virt) if len(dom1_mac_list) != 1: raise Exception("%s has %d macs, expected 1" % (test_dom, len(dom1_mac_list))) - dom2_mac_list = get_dom_macs(options.ip, test_dom2, options.virt) + dom2_mac_list = get_dom_macs(ip, test_dom2, virt) if len(dom2_mac_list) != 2: raise Exception("%s has %d macs, expected 2" % (test_dom2, len(dom2_mac_list))) @@ -159,8 +164,14 @@ logger.error(details) status = FAIL - destroy_and_undefine_domain(test_dom, options.ip, options.virt) - destroy_and_undefine_domain(test_dom2, options.ip, options.virt) + if guest1_setup == "start": + cxml.cim_destroy(ip) + + if guest1_setup == "define": + cxml.undefine(ip) + + if guest2_setup == "define": + cxml2.undefine(ip) return status From kaitlin at linux.vnet.ibm.com Tue Feb 3 18:23:21 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Tue, 03 Feb 2009 10:23:21 -0800 Subject: [Libvirt-cim] [PATCH] [TEST] Update VSMS 14_define_sys_disk.py to use cim_define() In-Reply-To: <49880E4E.2030507@linux.vnet.ibm.com> References: <49880E4E.2030507@linux.vnet.ibm.com> Message-ID: <49888B99.6030302@linux.vnet.ibm.com> >> try: >> addr = make_long_disk_path(options.ip) >> if addr is None: >> raise Exception("Unable to create large disk image") >> > You can immediately return from here instead of raising an Exception. > Also if you raise an exception then calling > > cxml.undefine(options.ip) is not needed as we would have not defined the > guest. > > >> - define_params = get_vssd_rasd(options.ip, options.virt, addr, >> disk_cap) >> - if len(define_params) != 2: >> - raise Exception("Unable to get VSSD and RASDs for %s" % >> test_dom) >> + rasd_list = get_rasd_list(options.ip, options.virt, addr, >> disk_cap) >> + if len(rasd_list) < 1: >> + raise Exception("Unable to get template RASDs for %s" % >> test_dom) >> >> - status = create_using_definesystem(test_dom, options.ip, >> - params=define_params, >> ref_config="", >> - virt=options.virt) >> - if status != PASS: >> + cxml.set_res_settings(rasd_list) >> + ret = cxml.cim_define(options.ip) >> + if not ret: >> raise Exception("Unable to define %s" % test_dom) >> > same here. Instead of returning immediately, I've added a flag to indicate whether the guest should be undefined or not. -- Kaitlin Rupert IBM Linux Technology Center kaitlin at linux.vnet.ibm.com From kaitlin at linux.vnet.ibm.com Tue Feb 3 18:29:59 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Tue, 03 Feb 2009 10:29:59 -0800 Subject: [Libvirt-cim] [PATCH] [TEST] #2 Update VSMS 14_define_sys_disk.py to use cim_define() Message-ID: # HG changeset patch # User Kaitlin Rupert # Date 1233685686 28800 # Node ID b1a757aa7efce7839998c49412f45d8c7f1596fa # Parent b5e7e1cf87f88b2baa21645b5d2bed2286ffb0ca [TEST] #2 Update VSMS 14_define_sys_disk.py to use cim_define() Updates: -Added comment to describe test -Added flag to indicate whether guest should be undefined Signed-off-by: Kaitlin Rupert diff -r b5e7e1cf87f8 -r b1a757aa7efc suites/libvirt-cim/cimtest/VirtualSystemManagementService/14_define_sys_disk.py --- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/14_define_sys_disk.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/14_define_sys_disk.py Tue Feb 03 10:28:06 2009 -0800 @@ -18,6 +18,14 @@ # You should have received a copy of the GNU General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# Purpose: +# Verify providers support disk images with long paths / names +# +# Steps: +# 1) Create a disk image with a long path +# 2) Build RASD parameters, making sure to specify disk image created in step 1 +# 3) Verify guest is defined properly # import sys @@ -25,14 +33,11 @@ from VirtLib.utils import run_remote from CimTest.Globals import logger from CimTest.ReturnCodes import FAIL, PASS -from XenKvmLib.common_util import create_using_definesystem -from XenKvmLib.test_doms import destroy_and_undefine_domain from XenKvmLib.classes import get_typed_class, inst_to_mof from XenKvmLib.rasd import get_default_rasds -from XenKvmLib.vsms import get_vssd_mof -from XenKvmLib.const import get_provider_version from XenKvmLib.const import do_main, _image_dir, f9_changeset, \ - KVM_default_disk_dev + KVM_default_disk_dev, get_provider_version +from XenKvmLib.vxml import get_class sup_types = ['Xen', 'XenFV', 'KVM', 'LXC'] test_dom = 'rstest_disk_domain' @@ -50,28 +55,24 @@ return path -def get_vssd_rasd(ip, virt, addr, disk_type): - vssd = get_vssd_mof(virt, test_dom) +def get_rasd_list(ip, virt, addr, disk_type): + drasd_cn = get_typed_class(virt, "DiskResourceAllocationSettingData") rasds = get_default_rasds(ip, virt) - rasd_list = [] + rasd_list = {} for rasd in rasds: - if 'DiskPool' in rasd['PoolID']: + if rasd.classname == drasd_cn: if disk_type != "" and rasd['Caption'] != disk_type: continue rasd['Address'] = addr curr_cim_rev, changeset = get_provider_version(virt, ip) if changeset == f9_changeset and virt == 'KVM': rasd['VirtualDevice'] = KVM_default_disk_dev - rasd_list.append(inst_to_mof(rasd)) + rasd_list[rasd.classname] = inst_to_mof(rasd) - params = { 'vssd' : vssd, - 'rasd' : rasd_list - } - - return params + return rasd_list @do_main(sup_types) def main(): @@ -84,21 +85,27 @@ else: disk_cap = "" + cxml = get_class(options.virt)(test_dom) + + guest_defined = False + try: addr = make_long_disk_path(options.ip) if addr is None: raise Exception("Unable to create large disk image") - define_params = get_vssd_rasd(options.ip, options.virt, addr, disk_cap) - if len(define_params) != 2: - raise Exception("Unable to get VSSD and RASDs for %s" % test_dom) + rasd_list = get_rasd_list(options.ip, options.virt, addr, disk_cap) + if len(rasd_list) < 1: + raise Exception("Unable to get template RASDs for %s" % test_dom) - status = create_using_definesystem(test_dom, options.ip, - params=define_params, ref_config="", - virt=options.virt) - if status != PASS: + cxml.set_res_settings(rasd_list) + ret = cxml.cim_define(options.ip) + if not ret: raise Exception("Unable to define %s" % test_dom) + status = PASS + guest_defined = True + except Exception, details: logger.error(details) status = FAIL @@ -106,7 +113,8 @@ if os.path.exists(addr): os.remove(addr) - destroy_and_undefine_domain(test_dom, options.ip, options.virt) + if guest_defined == True: + cxml.undefine(options.ip) return status From kaitlin at linux.vnet.ibm.com Tue Feb 3 18:51:08 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Tue, 03 Feb 2009 10:51:08 -0800 Subject: [Libvirt-cim] [PATCH] (#2) Add a migration_tester.py tool Message-ID: <61209742da1d511a4b45.1233687068@localhost.localdomain> # HG changeset patch # User Kaitlin Rupert # Date 1232519221 28800 # Node ID 61209742da1d511a4b453d38432c2eeb35639a83 # Parent 189cc68a2f5a3251be1204bdaddfd90bb8740789 (#2) Add a migration_tester.py tool. This can be used to drive migration between two different hosts. How to call the tester: python tools/migration_tester.py -u root -p pass -s fqdn:port -t fqdn -v virt_type guest_name --migration-type type Ex: python tools/migration_tester.py -u root -p pass -s source.myhost.com:5988 -t target.myhost.com -v Xen my_guest --migration-type live Updates: -Added comment at the beginning of the tool that describes the usage -Improved the descriptions for username and password for the OptionParser -Fixed some errors in the usage description in the commit log Signed-off-by: Kaitlin Rupert diff -r 189cc68a2f5a -r 61209742da1d tools/migration_tester.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tools/migration_tester.py Tue Jan 20 22:27:01 2009 -0800 @@ -0,0 +1,310 @@ +#!/usr/bin/python +# +# Copyright IBM Corp. 2009 +# +# Authors: +# Kaitlin Rupert +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# Usage: python tools/migration_tester.py -u root -p pass +# -s source.myhost.com:5988 -t target.myhost.com -v Xen guest +# --migration-type live +# +# Note: Be sure you can authenticate via ssh into the target machine prior +# to running the test. +# +# You can set up ssh keys, or you will be prompted for the password +# of the target machine + +import sys +import time +from optparse import OptionParser +from pywbem import WBEMConnection, CIMInstanceName, CIMInstance, CIMError + +CIM_MIGRATE_OTHER=1 +CIM_MIGRATE_LIVE=2 +CIM_MIGRATE_RESUME=3 +CIM_MIGRATE_RESTART=4 + +CIM_MIGRATE_URI_OTHER=1 +CIM_MIGRATE_URI_SSH=2 +CIM_MIGRATE_URI_TLS=3 +CIM_MIGRATE_URI_TLS_STRICT=4 +CIM_MIGRATE_URI_TCP=5 +CIM_MIGRATE_URI_UNIX=6 + +CIM_JOBSTATE_COMPLETE=7 + +class CIMClassMOF: + + __supported_types = [int, str, bool] + + def __init__(self, attrs = None): + """attrs should be dict + """ + + if attrs != None: + self.__dict__.update(attrs) + + def mof(self): + """mof() + + Return value is a string, containing the mof representation of the + object. + + Attribute types supported are : int, str, bool. + + Attributes with unsupported types will be silently ignored when + converting to mof representation. + """ + + mof_str = "instance of " + self.__class__.__name__ + " {\n" + for key, value in self.__dict__.items(): + value_type = type(value) + if value_type not in self.__supported_types: + continue + + mof_str += "%s = " % key + if value_type == int: + mof_str += "%d" % value + elif value_type == bool: + mof_str += str(value).lower() + else: + mof_str += '"%s"' % value + mof_str += ";\n" + + mof_str += "};" + return mof_str + + def __str__(self): + return self.mof() + +class CIM_VirtualSystemMigrationSettingData(CIMClassMOF): + def __init__(self, type, priority): + self.InstanceID = 'MigrationSettingData' + self.CreationClassName = self.__class__.__name__ + self.MigrationType = type + self.Priority = priority + +class Xen_VirtualSystemMigrationSettingData(CIM_VirtualSystemMigrationSettingData): + def __init__(self, type, priority): + CIM_VirtualSystemMigrationSettingData.__init__(self, type, priority) + +class KVM_VirtualSystemMigrationSettingData(CIM_VirtualSystemMigrationSettingData): + def __init__(self, type, priority): + CIM_VirtualSystemMigrationSettingData.__init__(self, type, priority) + +def get_guest_ref(guest, virt): + guest_cn = "%s_ComputerSystem" % virt + + keys = { 'Name' : guest, + 'CreationClassName' : guest_cn + } + + try: + cs_ref = CIMInstanceName(guest_cn, keybindings=keys) + + except CIMError, (err_no, desc): + print err_no, desc + return None + + return cs_ref + +def get_msd(mtype, virt): + if mtype == "live": + mtype = CIM_MIGRATE_LIVE + elif mtype == "resume": + mtype = CIM_MIGRATE_RESUME + elif mtype == "restart": + mtype = CIM_MIGRATE_RESTART + else: + mtype = CIM_MIGRATE_OTHER + + try: + vsmsd_cn_base = "_VirtualSystemMigrationSettingData" + msd = eval(virt + vsmsd_cn_base)(type=mtype, priority=0) + + except CIMError, (err_no, desc): + print err_no, desc + return None + + return msd.mof() + +def check_migrate(s_conn, cs_ref, ip, msd, virt): + vsms_cn = "%s_VirtualSystemMigrationService" % virt + try: + if msd == None: + res = s_conn.InvokeMethod("CheckVirtualSystemIsMigratableToHost", + vsms_cn, + ComputerSystem=cs_ref, + DestinationHost=ip) + else: + res = s_conn.InvokeMethod("CheckVirtualSystemIsMigratableToHost", + vsms_cn, + ComputerSystem=cs_ref, + DestinationHost=ip, + MigrationSettingData=msd) + + if res == None or res[1]['IsMigratable'] != True: + print "Migration check failed." + return 1 + + except CIMError, (err_no, desc): + print err_no, desc + return 1 + + return 0 + +def get_job_inst(s_conn, job_ref): + try: + inst = s_conn.GetInstance(job_ref) + + except CIMError, (err_no, desc): + print err_no, desc + return None + + return inst + +def poll_for_job_status(s_conn, job_ref): + + job_inst = get_job_inst(s_conn, job_ref) + if not job_inst: + print "Unable to get job instance" + return 1 + + try: + while job_inst['JobState'] != CIM_JOBSTATE_COMPLETE: + time.sleep(3) + job_inst = get_job_inst(s_conn, job_ref) + if not job_inst: + print "Unable to get job instance" + return 1 + + if job_inst['Status'] != "Completed": + print "Migrate job failed: %s" % job_inst['Status'] + return 1 + except KeyboardInterrupt: + print "Migrate job took too long" + return 1 + + print "Migrate job succeeded: %s" % job_inst['Status'] + return 0 + +def migrate_host(s_conn, cs_ref, dest, msd, virt): + vsms_cn = "%s_VirtualSystemMigrationService" % virt + + try: + if msd == None: + job = s_conn.InvokeMethod("MigrateVirtualSystemToHost", + vsms_cn, + ComputerSystem=cs_ref, + DestinationHost=dest) + else: + job = s_conn.InvokeMethod("MigrateVirtualSystemToHost", + vsms_cn, + ComputerSystem=cs_ref, + DestinationHost=dest, + MigrationSettingData=msd) + + if len(job) < 1: + print "No job returned from migrate call" + return 1 + + status = poll_for_job_status(s_conn, job[1]['Job']) + + except CIMError, (err_no, desc): + print err_no, desc + return 1 + + return 0 + +def main(): + usage = "usage: %prog [options] \nex: %prog my.target.com" + parser = OptionParser(usage) + + parser.add_option("-s", "--src-url", dest="s_url", default="localhost:5988", + help="URL of CIMOM to connect to (host:port)") + parser.add_option("-t", "--target-url", dest="t_url", + default="localhost:5988", + help="URL of CIMOM to connect to (host:port)") + parser.add_option("-N", "--ns", dest="ns", default="root/virt", + help="Namespace (default is root/virt)") + parser.add_option("-u", "--user", dest="username", default=None, + help="Auth username for CIMOM on source system") + parser.add_option("-p", "--pass", dest="password", default=None, + help="Auth password for CIMOM on source system") + parser.add_option("-v", "--virt-type", dest="virt", default=None, + help="Virtualization type [ Xen | KVM ]") + parser.add_option("--migration-type", dest="type", default=None, + help="Migration type: [ live | resume | restart ]") + parser.add_option("--disable-check", dest="disable_ck", action="store_true", + help="Disable migration pre-check") + + (options, args) = parser.parse_args() + + if len(args) == 0: + print "Fatal: no guest specified." + sys.exit(1) + + guest_name = args[0] + + if ":" in options.s_url: + (sysname, port) = options.s_url.split(":") + else: + sysname = options.s_url + + if ":" in options.t_url: + (t_sysname, port) = options.t_url.split(":") + else: + t_sysname = options.t_url + + src_conn = WBEMConnection('http://%s' % sysname, + (options.username, options.password), options.ns) + + guest_ref = get_guest_ref(guest_name, options.virt) + if guest_ref == None: + return 1 + + if options.virt == None: + print "Must specify virtualization type" + return 1 + + if options.virt != "Xen": + print "Only Xen migration is currently supported" + return 1 + + if options.type != None: + msd = get_msd(options.type, options.virt) + if msd == None: + return 1 + else: + print "Using default MigrationSettingData" + msd = None + + if not options.disable_ck: + status = check_migrate(src_conn, guest_ref, t_sysname, msd, + options.virt) + if status == 1: + return 1 + + print "Migrating %s.. this will take some time." % guest_name + status = migrate_host(src_conn, guest_ref, t_sysname, msd, options.virt) + return status + +if __name__=="__main__": + sys.exit(main()) + + From kaitlin at linux.vnet.ibm.com Tue Feb 3 18:56:19 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Tue, 03 Feb 2009 10:56:19 -0800 Subject: [Libvirt-cim] [PATCH] Add KVM_MigrationJob class. Also fix migration uri Message-ID: # HG changeset patch # User Kaitlin Rupert # Date 1233687128 28800 # Node ID b8851323371c301a6357039b892bb8c1527a6b7d # Parent 66e981e897ec37e8452c14a253c13db18c7a1952 Add KVM_MigrationJob class. Also fix migration uri. The trailing slash (/) causes an error with the qemu connection type. Signed-off-by: Kaitlin Rupert diff -r 66e981e897ec -r b8851323371c schema/VSMigrationService.mof --- a/schema/VSMigrationService.mof Tue Feb 03 10:52:06 2009 -0800 +++ b/schema/VSMigrationService.mof Tue Feb 03 10:52:08 2009 -0800 @@ -68,6 +68,9 @@ class Xen_MigrationJob : CIM_ConcreteJob { }; +class KVM_MigrationJob : CIM_ConcreteJob { +}; + [Provider("cmpi::Virt_VSMigrationService")] class Xen_VirtualSystemMigrationService : CIM_VirtualSystemMigrationService { }; diff -r 66e981e897ec -r b8851323371c src/Virt_VSMigrationService.c --- a/src/Virt_VSMigrationService.c Tue Feb 03 10:52:06 2009 -0800 +++ b/src/Virt_VSMigrationService.c Tue Feb 03 10:52:08 2009 -0800 @@ -185,7 +185,15 @@ goto out; } - rc = asprintf(&uri, "%s+%s://%s/system/%s", prefix, tport, dest, param); + rc = asprintf(&uri, "%s+%s://%s/system", prefix, tport, dest); + if (rc == -1) { + uri = NULL; + goto out; + } + + if (!STREQC(param, "")) + rc = asprintf(&uri, "%s/%s", uri, param); + if (rc == -1) uri = NULL; From kaitlin at linux.vnet.ibm.com Tue Feb 3 21:20:59 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Tue, 03 Feb 2009 13:20:59 -0800 Subject: [Libvirt-cim] Test Run Summary (Jan 19 2009): KVM on Fedora release 9.90.1 (Rawhide) with sfcb In-Reply-To: <4974540C.6060702@linux.vnet.ibm.com> References: <4974540C.6060702@linux.vnet.ibm.com> Message-ID: <4988B53B.1050907@linux.vnet.ibm.com> > sfcb log says a sigsev: > -#- Virt_ComputerSystemIndicationProvider - 10624 provider exiting due > to a SIGSEGV signal > > Debugging there, a backtrace shows me a null mi->ft in > stdi_enable_indications() yet same pointer in sfcb's stack is valid: > (gdb) bt > #0 stdi_enable_indications (mi=0xbfb3e778, ctx=0xb801f0b8) at > std_indication.c:270 > #1 0xb7fc137c in enableIndications (hdr=0x80625c0, info=0x805b0d0, > requestor=-75) at providerDrv.c:2192 > #2 0xb7fc2d80 in processProviderInvocationRequestsThread > (prms=0x805a8d0) at providerDrv.c:2585 > #3 0xb7fc3514 in processProviderInvocationRequests (name=0x8050720 > "Virt_ComputerSystemIndicationProvider") at providerDrv.c:2700 > #4 0xb7fb523c in getProcess (info=0x80507a8, proc=0xbfb3ef14) at > providerDrv.c:602 > #5 0xb7fb5709 in forkProvider (info=0x80507a8, req=0x805abb0, msg=0x0) > at providerDrv.c:653 > #6 0xb7fadc9d in lookupProviderList (type=4, requestor=0xbfb3f018, > req=0x805abb0) at providerMgr.c:368 > #7 0xb7fae3eb in processIndProviderList (requestor=0xbfb3f018, > req=0x805abb0) at providerMgr.c:449 > #8 0xb7fb025e in processProviderMgrRequests () at providerMgr.c:857 > #9 0x0804aa14 in main (argc=3, argv=0xbfb3f154) at sfcBroker.c:791 > (gdb) p *mi > $5 = {hdl = 0x0, ft = 0x0} > (gdb) up > #1 0xb7fc137c in enableIndications (hdr=0x80625c0, info=0x805b0d0, > requestor=-75) at providerDrv.c:2192 > 2192 info->indicationMI->ft->enableIndications(info->indicationMI,ctx); > (gdb) p *(info->indicationMI) > $6 = {hdl = 0xb801f0a0, ft = 0xb801f180} > (gdb) Yes, this is really odd. The info is correct in sfcb's stack: (gdb) up #1 0xb7ff437c in enableIndications (hdr=0x805f2b8, info=0x805a900, requestor=-75) at providerDrv.c:2192 2192 info->indicationMI->ft->enableIndications(info->indicationMI,ctx); (gdb) p *(info->indicationMI) $4 = {hdl = 0xb80530a0, ft = 0xb8053180} (gdb) p info->indicationMI->ft $5 = (CMPIIndicationMIFT *) 0xb8053180 (gdb) p info->indicationMI->ft->miName $6 = 0xb8050b44 "IndicationVirt_ComputerSystemIndicationProvider" I put a break statement on the following line in libcmpiutil in stdi_enable_indications(): _ctx = (struct std_indication_ctx *)mi->hdl; The contents of mi were already blown at that point. We're not doing any kind of manipulation on mi, so I suspect that sfcb is handing us a bogus mi pointer. I'm not sure how that is happening though. -- Kaitlin Rupert IBM Linux Technology Center kaitlin at linux.vnet.ibm.com From kaitlin at linux.vnet.ibm.com Tue Feb 3 22:36:12 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Tue, 03 Feb 2009 14:36:12 -0800 Subject: [Libvirt-cim] [PATCH] Set the properties of the SDC ref VSMigrationCap --> VSMigrationSD Message-ID: <3df2b62291003e0b446f.1233700572@localhost.localdomain> # HG changeset patch # User Kaitlin Rupert # Date 1233700560 28800 # Node ID 3df2b62291003e0b446f7721c0f7b8b55279f142 # Parent b8851323371c301a6357039b892bb8c1527a6b7d Set the properties of the SDC ref VSMigrationCap --> VSMigrationSD Set the PropertyPolicy, ValueRole, and ValueRange property values to indicate the VSMigrationSD instance returned is the default instance. Signed-off-by: Kaitlin Rupert diff -r b8851323371c -r 3df2b6229100 src/Virt_SettingsDefineCapabilities.c --- a/src/Virt_SettingsDefineCapabilities.c Tue Feb 03 10:52:08 2009 -0800 +++ b/src/Virt_SettingsDefineCapabilities.c Tue Feb 03 14:36:00 2009 -0800 @@ -1119,6 +1119,32 @@ return ref_inst; } +static CMPIInstance *make_ref_msd(const CMPIObjectPath *source_ref, + const CMPIInstance *target_inst, + struct std_assoc_info *info, + struct std_assoc *assoc) +{ + CMPIInstance *ref_inst = NULL; + uint16_t ppolicy = SDC_POLICY_INDEPENDENT; + uint16_t valuerole = SDC_ROLE_DEFAULT; + uint16_t valuerange = SDC_RANGE_POINT; + + ref_inst = make_reference(_BROKER, + source_ref, + target_inst, + info, + assoc); + + CMSetProperty(ref_inst, "ValueRole", + (CMPIValue *)&valuerole, CMPI_uint16); + CMSetProperty(ref_inst, "ValueRange", + (CMPIValue *)&valuerange, CMPI_uint16); + CMSetProperty(ref_inst, "PropertyPolicy", + (CMPIValue *)&ppolicy, CMPI_uint16); + + return ref_inst; +} + LIBVIRT_CIM_DEFAULT_MAKEREF() static char* group_component[] = { @@ -1207,7 +1233,7 @@ .assoc_class = (char**)&assoc_classname, .handler = migrate_cap_to_vsmsd, - .make_ref = make_ref + .make_ref = make_ref_msd }; static struct std_assoc _vsmsd_to_migrate_cap = { From deeptik at linux.vnet.ibm.com Wed Feb 4 06:57:48 2009 From: deeptik at linux.vnet.ibm.com (Deepti B Kalakeri) Date: Wed, 04 Feb 2009 12:27:48 +0530 Subject: [Libvirt-cim] [PATCH] [TEST] #2 Update VSMS 12_referenced_config.py to use cim_() function In-Reply-To: References: Message-ID: <49893C6C.6050205@linux.vnet.ibm.com> +1 Kaitlin Rupert wrote: > # HG changeset patch > # User Kaitlin Rupert > # Date 1233682625 28800 > # Node ID b5e7e1cf87f88b2baa21645b5d2bed2286ffb0ca > # Parent fa1424f9b3f4ae005b4fcc34e18858035cc8f102 > [TEST] #2 Update VSMS 12_referenced_config.py to use cim_() function. > > Also re-wrote part of this test to fix the overall test flow. > > Updates: > -Added comment > -Ensured cleanup only occurs when guest has been started / defined > -Use cs instance Name and CCN > > Thanks for the description here =) > Signed-off-by: Kaitlin Rupert > > diff -r fa1424f9b3f4 -r b5e7e1cf87f8 suites/libvirt-cim/cimtest/VirtualSystemManagementService/12_referenced_config.py > --- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/12_referenced_config.py Mon Feb 02 12:02:30 2009 -0800 > +++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/12_referenced_config.py Tue Feb 03 09:37:05 2009 -0800 > @@ -19,21 +19,27 @@ > # License along with this library; if not, write to the Free Software > # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA > # > +# Purpose: > +# Verify DefineSystem() properly uses the settings of the referenced passed in > +# for the ReferenceConfiguration parameter. > +# > +# Steps: > +# 1) Define and start a guest > +# 2) Get the reference of the guest > +# 3) Define a second guest using the reference of the first guest > +# 4) Verify the settings of the second guest > + > > import sys > -import pywbem > -from XenKvmLib.common_util import create_using_definesystem, \ > - call_request_state_change, \ > - poll_for_state_change, get_cs_instance > -from XenKvmLib import vsms > -from VirtLib import utils > +from XenKvmLib.common_util import get_cs_instance > from CimTest.Globals import logger > from XenKvmLib.const import do_main > from CimTest.ReturnCodes import FAIL, PASS > -from XenKvmLib.test_doms import destroy_and_undefine_domain > -from XenKvmLib.classes import get_typed_class > +from XenKvmLib.classes import get_typed_class, inst_to_mof > from XenKvmLib.assoc import AssociatorNames > from XenKvmLib.test_xml import dumpxml > +from XenKvmLib.vxml import get_class > +from XenKvmLib.rasd import get_default_rasds > > sup_types = ['Xen', 'XenFV', 'KVM'] > test_dom = 'rstest_domain' > @@ -41,36 +47,27 @@ > > mac = "aa:aa:aa:00:00:00" > > -REQUESTED_STATE = 2 > -TIME = "00000000000000.000000:000" > +def setup_first_guest(ip, virt, cxml): > + ret = cxml.cim_define(ip) > + if not ret: > + logger.error("Unable to define %s using DefineSystem()" % test_dom) > + return FAIL, None > > -def setup_first_guest(ip, virt): > - status = create_using_definesystem(test_dom, ip, virt=virt) > - if status != PASS: > - logger.error("Unable to define %s using DefineSystem()" % test_dom) > - return FAIL > - > - rc = call_request_state_change(test_dom, ip, REQUESTED_STATE, TIME, virt) > - if rc != 0: > - logger.error("Unable to start %s" % test_dom) > - return FAIL > - > - status, cs = poll_for_state_change(ip, virt, test_dom, REQUESTED_STATE) > + status = cxml.cim_start(ip) > if status != PASS: > logger.error("Unable to start %s" % test_dom) > - return FAIL > + return FAIL, "define" > > - return PASS > + return PASS, "start" > > def get_vssd_ref(ip, virt): > rc, cs = get_cs_instance(test_dom, ip, virt) > if rc != 0: > return None > > - cn = "ComputerSystem" > - ccn = get_typed_class(virt, cn) > an = get_typed_class(virt, 'SettingsDefineState') > - vssd = AssociatorNames(ip, an, ccn, Name = test_dom, CreationClassName = ccn) > + vssd = AssociatorNames(ip, an, cs.CreationClassName, Name=cs.Name, > + CreationClassName=cs.CreationClassName) > > if len(vssd) != 1: > logger.error("Returned %i vssd insts for '%s'", len(vssd), test_dom) > @@ -78,26 +75,33 @@ > > return vssd[0] > > -def get_vssd_rasd(virt): > - vssd, def_rasd = vsms.default_vssd_rasd_str(dom_name=test_dom2, > - net_type='network', > - net_mac=mac, virt=virt) > +def setup_second_guest(ip, virt, cxml2, ref): > + nrasd_cn = get_typed_class(virt, "NetResourceAllocationSettingData") > > - rasd = [] > - for inst in def_rasd: > - cn = get_typed_class(virt, "NetResourceAllocationSettingData") > - if cn in inst: > - rasd.append(inst) > + rasds = get_default_rasds(ip, virt) > > - params = {} > + rasd_list = {} > > - if len(rasd) != 1: > - return params > + for rasd in rasds: > + if rasd.classname == nrasd_cn: > + rasd['Address'] = mac > + rasd['NetworkType'] = "network" > + rasd_list[nrasd_cn] = inst_to_mof(rasd) > + else: > + rasd_list[rasd.classname] = None > > - params['vssd'] = vssd > - params['rasd'] = rasd > + if rasd_list[nrasd_cn] is None: > + logger.error("Unable to get template NetRASD") > + return FAIL > > - return params > + cxml2.set_res_settings(rasd_list) > + > + ret = cxml2.cim_define(ip, ref_conf=ref) > + if not ret: > + logger.error("Unable to define %s using DefineSystem()" % test_dom2) > + return FAIL, None > + > + return PASS, "define" > > def get_dom_macs(server, dom, virt): > mac_list = [] > @@ -117,33 +121,34 @@ > @do_main(sup_types) > def main(): > options = main.options > + virt = options.virt > + ip = options.ip > + > + cxml = get_class(virt)(test_dom) > + cxml2 = get_class(virt)(test_dom2) > + > + guest1_setup = None > + guest2_setup = None > > try: > - status = setup_first_guest(options.ip, options.virt) > + status, guest1_setup = setup_first_guest(ip, virt, cxml) > if status != PASS: > raise Exception("Unable to start %s" % test_dom) > > - ref = get_vssd_ref(options.ip, options.virt) > + ref = get_vssd_ref(ip, virt) > if ref is None: > raise Exception("Unable to get %s reference" % test_dom) > > - define_params = get_vssd_rasd(options.virt) > - if len(define_params) != 2: > - raise Exception("Unable to build VSSD and RASD instances for %s" % \ > - test_dom2) > - > - status = create_using_definesystem(test_dom2, options.ip, > - params=define_params, ref_config=ref, > - virt=options.virt) > + status, guest2_setup = setup_second_guest(ip, virt, cxml2, ref) > if status != PASS: > raise Exception("Unable to define %s" % test_dom2) > > - dom1_mac_list = get_dom_macs(options.ip, test_dom, options.virt) > + dom1_mac_list = get_dom_macs(ip, test_dom, virt) > if len(dom1_mac_list) != 1: > raise Exception("%s has %d macs, expected 1" % (test_dom, > len(dom1_mac_list))) > > - dom2_mac_list = get_dom_macs(options.ip, test_dom2, options.virt) > + dom2_mac_list = get_dom_macs(ip, test_dom2, virt) > if len(dom2_mac_list) != 2: > raise Exception("%s has %d macs, expected 2" % (test_dom2, > len(dom2_mac_list))) > @@ -159,8 +164,14 @@ > logger.error(details) > status = FAIL > > - destroy_and_undefine_domain(test_dom, options.ip, options.virt) > - destroy_and_undefine_domain(test_dom2, options.ip, options.virt) > + if guest1_setup == "start": > + cxml.cim_destroy(ip) > + > + if guest1_setup == "define": > + cxml.undefine(ip) > + > + if guest2_setup == "define": > + cxml2.undefine(ip) > > return status > > > _______________________________________________ > Libvirt-cim mailing list > Libvirt-cim at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-cim > -- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik at linux.vnet.ibm.com From deeptik at linux.vnet.ibm.com Wed Feb 4 07:12:31 2009 From: deeptik at linux.vnet.ibm.com (Deepti B Kalakeri) Date: Wed, 04 Feb 2009 12:42:31 +0530 Subject: [Libvirt-cim] [PATCH] [TEST] #2 Update VSMS 14_define_sys_disk.py to use cim_define() In-Reply-To: References: Message-ID: <49893FDF.70506@linux.vnet.ibm.com> Kaitlin Rupert wrote: > # HG changeset patch > # User Kaitlin Rupert > # Date 1233685686 28800 > # Node ID b1a757aa7efce7839998c49412f45d8c7f1596fa > # Parent b5e7e1cf87f88b2baa21645b5d2bed2286ffb0ca > [TEST] #2 Update VSMS 14_define_sys_disk.py to use cim_define() > > Updates: > -Added comment to describe test > -Added flag to indicate whether guest should be undefined > > Signed-off-by: Kaitlin Rupert > > diff -r b5e7e1cf87f8 -r b1a757aa7efc suites/libvirt-cim/cimtest/VirtualSystemManagementService/14_define_sys_disk.py > --- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/14_define_sys_disk.py Tue Feb 03 09:37:05 2009 -0800 > +++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/14_define_sys_disk.py Tue Feb 03 10:28:06 2009 -0800 > @@ -18,6 +18,14 @@ > # You should have received a copy of the GNU General Public > # License along with this library; if not, write to the Free Software > # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA > +# > +# Purpose: > +# Verify providers support disk images with long paths / names > +# > +# Steps: > +# 1) Create a disk image with a long path > +# 2) Build RASD parameters, making sure to specify disk image created in step 1 > +# 3) Verify guest is defined properly > # > > Thanks for the description. The point 3 is missing from the tc. We need to verify for the correctness of the defined guest, we need to verify the disk path that was supplied and atleast the InstanceID using the DiskRASD before undefining the guest. Sorry for missing this in the earlier review. > import sys > @@ -25,14 +33,11 @@ > from VirtLib.utils import run_remote > from CimTest.Globals import logger > from CimTest.ReturnCodes import FAIL, PASS > -from XenKvmLib.common_util import create_using_definesystem > -from XenKvmLib.test_doms import destroy_and_undefine_domain > from XenKvmLib.classes import get_typed_class, inst_to_mof > from XenKvmLib.rasd import get_default_rasds > -from XenKvmLib.vsms import get_vssd_mof > -from XenKvmLib.const import get_provider_version > from XenKvmLib.const import do_main, _image_dir, f9_changeset, \ > - KVM_default_disk_dev > + KVM_default_disk_dev, get_provider_version > +from XenKvmLib.vxml import get_class > > sup_types = ['Xen', 'XenFV', 'KVM', 'LXC'] > test_dom = 'rstest_disk_domain' > @@ -50,28 +55,24 @@ > > return path > > -def get_vssd_rasd(ip, virt, addr, disk_type): > - vssd = get_vssd_mof(virt, test_dom) > +def get_rasd_list(ip, virt, addr, disk_type): > + drasd_cn = get_typed_class(virt, "DiskResourceAllocationSettingData") > > rasds = get_default_rasds(ip, virt) > > - rasd_list = [] > + rasd_list = {} > > for rasd in rasds: > - if 'DiskPool' in rasd['PoolID']: > + if rasd.classname == drasd_cn: > if disk_type != "" and rasd['Caption'] != disk_type: > continue > rasd['Address'] = addr > curr_cim_rev, changeset = get_provider_version(virt, ip) > if changeset == f9_changeset and virt == 'KVM': > rasd['VirtualDevice'] = KVM_default_disk_dev > - rasd_list.append(inst_to_mof(rasd)) > + rasd_list[rasd.classname] = inst_to_mof(rasd) > > - params = { 'vssd' : vssd, > - 'rasd' : rasd_list > - } > - > - return params > + return rasd_list > > @do_main(sup_types) > def main(): > @@ -84,21 +85,27 @@ > else: > disk_cap = "" > > + cxml = get_class(options.virt)(test_dom) > + > + guest_defined = False > + > try: > addr = make_long_disk_path(options.ip) > if addr is None: > raise Exception("Unable to create large disk image") > > - define_params = get_vssd_rasd(options.ip, options.virt, addr, disk_cap) > - if len(define_params) != 2: > - raise Exception("Unable to get VSSD and RASDs for %s" % test_dom) > + rasd_list = get_rasd_list(options.ip, options.virt, addr, disk_cap) > + if len(rasd_list) < 1: > + raise Exception("Unable to get template RASDs for %s" % test_dom) > > - status = create_using_definesystem(test_dom, options.ip, > - params=define_params, ref_config="", > - virt=options.virt) > - if status != PASS: > + cxml.set_res_settings(rasd_list) > + ret = cxml.cim_define(options.ip) > + if not ret: > raise Exception("Unable to define %s" % test_dom) > > + status = PASS > + guest_defined = True > + > except Exception, details: > logger.error(details) > status = FAIL > @@ -106,7 +113,8 @@ > if os.path.exists(addr): > os.remove(addr) > > - destroy_and_undefine_domain(test_dom, options.ip, options.virt) > + if guest_defined == True: > + cxml.undefine(options.ip) > > return status > > > _______________________________________________ > Libvirt-cim mailing list > Libvirt-cim at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-cim > -- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik at linux.vnet.ibm.com From deeptik at linux.vnet.ibm.com Wed Feb 4 09:34:37 2009 From: deeptik at linux.vnet.ibm.com (Deepti B. Kalakeri) Date: Wed, 04 Feb 2009 01:34:37 -0800 Subject: [Libvirt-cim] [PATCH] [TEST] Fixing VSMS/09_procrasd_persist.py tc Message-ID: <5e1c6b862cd74b564513.1233740077@elm3b43.beaverton.ibm.com> # HG changeset patch # User Deepti B. Kalakeri # Date 1233740067 28800 # Node ID 5e1c6b862cd74b56451397df81818d7afea68ff2 # Parent 912b7615d48c8303fd3daa6e55669c6d66af23e4 [TEST] Fixing VSMS/09_procrasd_persist.py tc. 1) Added description to the tc. 2) Removed unnecessary import stmts 3) Changed the tc to use cim_define() 4) Added the check to verify the VirtualQuantity 5) Aligned the tc to fit in 80 columns Tested for KVM/Xen/LXC with current sources, KVM with F9 rpm. Signed-off-by: Deepti B. Kalakeri diff -r 912b7615d48c -r 5e1c6b862cd7 suites/libvirt-cim/cimtest/VirtualSystemManagementService/09_procrasd_persist.py --- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/09_procrasd_persist.py Mon Feb 02 04:45:23 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/09_procrasd_persist.py Wed Feb 04 01:34:27 2009 -0800 @@ -19,50 +19,68 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # +# Purpose: +# Verify DefineSystem() properly uses the ProcRASD setting passed in +# as part of the ResourceSeting property. +# +# Steps: +# 1) Get the default rasds +# 2) Set the ProcRASD VirtualQuantity, Weight, Limit, InstanceID values +# 3) Define the guest using the configuration +# 4) Verify the proc settings of the guest +# import sys -import pywbem -from XenKvmLib.common_util import call_request_state_change, \ - poll_for_state_change -from XenKvmLib import vsms +from pywbem.cim_types import Uint64, Uint32 +from XenKvmLib.vxml import get_class from XenKvmLib.enumclass import GetInstance -from XenKvmLib.common_util import get_typed_class -from VirtLib import utils +from XenKvmLib.classes import get_typed_class, inst_to_mof from CimTest.Globals import logger from XenKvmLib.const import do_main from CimTest.ReturnCodes import FAIL, PASS -from XenKvmLib.test_doms import destroy_and_undefine_domain +from XenKvmLib.rasd import get_default_rasds sup_types = ['Xen', 'XenFV', 'KVM'] -default_dom = 'rstest_domain' +test_dom = 'procrasd_persist' -nvcpu = 2 +nvcpu = 3 weight = 124 -limit = 256 +limit = 512 -REQUESTED_STATE = 2 -TIME = "00000000000000.000000:000" +def setup_guest(ip, virt, cxml, prasd_cn): + rasds = get_default_rasds(ip, virt) + rasd_list= { prasd_cn : None } + + for rasd in rasds: + if rasd.classname == prasd_cn: + rasd['InstanceID'] = '%s/proc' %test_dom + rasd['VirtualQuantity'] = Uint64(nvcpu) + rasd['Weight'] = Uint32(weight) + rasd['Limit'] = Uint64(limit) + rasd_list[prasd_cn] = inst_to_mof(rasd) -def setup_rasd_mof(ip, vtype): - vssd, rasd = vsms.default_vssd_rasd_str(default_dom, virt=vtype) + if rasd_list[prasd_cn] is None: + logger.error("Unable to set template ProcRASD") + return FAIL - class_pasd = vsms.get_pasd_class(vtype) - proc_inst = class_pasd(default_dom, nvcpu, weight, limit) - proc_mof = proc_inst.mof() + cxml.set_res_settings(rasd_list) + ret = cxml.cim_define(ip) + if not ret: + logger.error("Unable to define %s ", test_dom) + return FAIL - for i in range(len(rasd)): - if "ProcResourceAllocationSettingData" in rasd[i]: - rasd[i] = proc_mof - return PASS, vssd, rasd + return PASS - return FAIL, vssd, rasd - -def check_proc_sched(server, virt): +def check_proc_sched(server, virt, cn_name): try: - key_list = {"InstanceID" : '%s/proc' %default_dom} - cn_name = get_typed_class(virt, 'ProcResourceAllocationSettingData') + key_list = {"InstanceID" : '%s/proc' %test_dom} proc = GetInstance(server, cn_name, key_list) + if proc.VirtualQuantity != nvcpu: + logger.error("VirtualQuantity is %i, expected %i", + proc.VirtualQuantity, nvcpu) + return FAIL + if proc.Limit != limit: logger.error("Limit is %i, expected %i", proc.Limit, limit) return FAIL @@ -79,32 +97,20 @@ def check_proc_sched(server, virt): @do_main(sup_types) def main(): - options = main.options + options = main.options + virt = options.virt + server = options.ip + + cxml = get_class(virt)(test_dom) + prasd_cn = get_typed_class(virt, "ProcResourceAllocationSettingData") + try: + status = setup_guest(server, virt, cxml, prasd_cn) + if status != PASS: + return status - status, vssd, rasd = setup_rasd_mof(options.ip, options.virt) - if status != PASS: - return status - - try: - service = vsms.get_vsms_class(options.virt)(options.ip) - service.DefineSystem(SystemSettings=vssd, - ResourceSettings=rasd, - ReferenceConfiguration=' ') - - rc = call_request_state_change(default_dom, options.ip, - REQUESTED_STATE, TIME, options.virt) - if rc != 0: - raise Exception("Unable to start %s using RequestedStateChange()" % - default_dom) - - status, dom_cs = poll_for_state_change(options.ip, options.virt, - default_dom, REQUESTED_STATE) + status = check_proc_sched(server, virt, prasd_cn) if status != PASS: - raise Exception("%s didn't change state as expected" % default_dom) - - status = check_proc_sched(options.ip, options.virt) - if status != PASS: - raise Exception("%s CPU scheduling not set properly", default_dom) + raise Exception("'%s' CPU scheduling not set properly" % test_dom) status = PASS @@ -112,8 +118,7 @@ def main(): logger.error("Exception: details %s", details) status = FAIL - destroy_and_undefine_domain(default_dom, options.ip, options.virt) - +# cxml.undefine(server) return status if __name__ == "__main__": From rmaciel at linux.vnet.ibm.com Wed Feb 4 14:17:30 2009 From: rmaciel at linux.vnet.ibm.com (Richard Maciel) Date: Wed, 04 Feb 2009 12:17:30 -0200 Subject: [Libvirt-cim] [PATCH] (#2) Add a migration_tester.py tool In-Reply-To: <61209742da1d511a4b45.1233687068@localhost.localdomain> References: <61209742da1d511a4b45.1233687068@localhost.localdomain> Message-ID: <4989A37A.1070304@linux.vnet.ibm.com> +1 Kaitlin Rupert wrote: > # HG changeset patch > # User Kaitlin Rupert > # Date 1232519221 28800 > # Node ID 61209742da1d511a4b453d38432c2eeb35639a83 > # Parent 189cc68a2f5a3251be1204bdaddfd90bb8740789 > (#2) Add a migration_tester.py tool. > > This can be used to drive migration between two different hosts. > > How to call the tester: > > python tools/migration_tester.py -u root -p pass -s fqdn:port -t fqdn -v virt_type guest_name --migration-type type > > Ex: > python tools/migration_tester.py -u root -p pass -s source.myhost.com:5988 -t target.myhost.com -v Xen my_guest --migration-type live > > Updates: > -Added comment at the beginning of the tool that describes the usage > -Improved the descriptions for username and password for the OptionParser > -Fixed some errors in the usage description in the commit log > > Signed-off-by: Kaitlin Rupert > > diff -r 189cc68a2f5a -r 61209742da1d tools/migration_tester.py > --- /dev/null Thu Jan 01 00:00:00 1970 +0000 > +++ b/tools/migration_tester.py Tue Jan 20 22:27:01 2009 -0800 > @@ -0,0 +1,310 @@ > +#!/usr/bin/python > +# > +# Copyright IBM Corp. 2009 > +# > +# Authors: > +# Kaitlin Rupert > +# > +# This library is free software; you can redistribute it and/or > +# modify it under the terms of the GNU Lesser General Public > +# License as published by the Free Software Foundation; either > +# version 2.1 of the License, or (at your option) any later version. > +# > +# This library is distributed in the hope that it will be useful, > +# but WITHOUT ANY WARRANTY; without even the implied warranty of > +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU > +# Lesser General Public License for more details. > +# > +# You should have received a copy of the GNU Lesser General Public > +# License along with this library; if not, write to the Free Software > +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA > +# > +# Usage: python tools/migration_tester.py -u root -p pass > +# -s source.myhost.com:5988 -t target.myhost.com -v Xen guest > +# --migration-type live > +# > +# Note: Be sure you can authenticate via ssh into the target machine prior > +# to running the test. > +# > +# You can set up ssh keys, or you will be prompted for the password > +# of the target machine > + > +import sys > +import time > +from optparse import OptionParser > +from pywbem import WBEMConnection, CIMInstanceName, CIMInstance, CIMError > + > +CIM_MIGRATE_OTHER=1 > +CIM_MIGRATE_LIVE=2 > +CIM_MIGRATE_RESUME=3 > +CIM_MIGRATE_RESTART=4 > + > +CIM_MIGRATE_URI_OTHER=1 > +CIM_MIGRATE_URI_SSH=2 > +CIM_MIGRATE_URI_TLS=3 > +CIM_MIGRATE_URI_TLS_STRICT=4 > +CIM_MIGRATE_URI_TCP=5 > +CIM_MIGRATE_URI_UNIX=6 > + > +CIM_JOBSTATE_COMPLETE=7 > + > +class CIMClassMOF: > + > + __supported_types = [int, str, bool] > + > + def __init__(self, attrs = None): > + """attrs should be dict > + """ > + > + if attrs != None: > + self.__dict__.update(attrs) > + > + def mof(self): > + """mof() > + > + Return value is a string, containing the mof representation of the > + object. > + > + Attribute types supported are : int, str, bool. > + > + Attributes with unsupported types will be silently ignored when > + converting to mof representation. > + """ > + > + mof_str = "instance of " + self.__class__.__name__ + " {\n" > + for key, value in self.__dict__.items(): > + value_type = type(value) > + if value_type not in self.__supported_types: > + continue > + > + mof_str += "%s = " % key > + if value_type == int: > + mof_str += "%d" % value > + elif value_type == bool: > + mof_str += str(value).lower() > + else: > + mof_str += '"%s"' % value > + mof_str += ";\n" > + > + mof_str += "};" > + return mof_str > + > + def __str__(self): > + return self.mof() > + > +class CIM_VirtualSystemMigrationSettingData(CIMClassMOF): > + def __init__(self, type, priority): > + self.InstanceID = 'MigrationSettingData' > + self.CreationClassName = self.__class__.__name__ > + self.MigrationType = type > + self.Priority = priority > + > +class Xen_VirtualSystemMigrationSettingData(CIM_VirtualSystemMigrationSettingData): > + def __init__(self, type, priority): > + CIM_VirtualSystemMigrationSettingData.__init__(self, type, priority) > + > +class KVM_VirtualSystemMigrationSettingData(CIM_VirtualSystemMigrationSettingData): > + def __init__(self, type, priority): > + CIM_VirtualSystemMigrationSettingData.__init__(self, type, priority) > + > +def get_guest_ref(guest, virt): > + guest_cn = "%s_ComputerSystem" % virt > + > + keys = { 'Name' : guest, > + 'CreationClassName' : guest_cn > + } > + > + try: > + cs_ref = CIMInstanceName(guest_cn, keybindings=keys) > + > + except CIMError, (err_no, desc): > + print err_no, desc > + return None > + > + return cs_ref > + > +def get_msd(mtype, virt): > + if mtype == "live": > + mtype = CIM_MIGRATE_LIVE > + elif mtype == "resume": > + mtype = CIM_MIGRATE_RESUME > + elif mtype == "restart": > + mtype = CIM_MIGRATE_RESTART > + else: > + mtype = CIM_MIGRATE_OTHER > + > + try: > + vsmsd_cn_base = "_VirtualSystemMigrationSettingData" > + msd = eval(virt + vsmsd_cn_base)(type=mtype, priority=0) > + > + except CIMError, (err_no, desc): > + print err_no, desc > + return None > + > + return msd.mof() > + > +def check_migrate(s_conn, cs_ref, ip, msd, virt): > + vsms_cn = "%s_VirtualSystemMigrationService" % virt > + try: > + if msd == None: > + res = s_conn.InvokeMethod("CheckVirtualSystemIsMigratableToHost", > + vsms_cn, > + ComputerSystem=cs_ref, > + DestinationHost=ip) > + else: > + res = s_conn.InvokeMethod("CheckVirtualSystemIsMigratableToHost", > + vsms_cn, > + ComputerSystem=cs_ref, > + DestinationHost=ip, > + MigrationSettingData=msd) > + > + if res == None or res[1]['IsMigratable'] != True: > + print "Migration check failed." > + return 1 > + > + except CIMError, (err_no, desc): > + print err_no, desc > + return 1 > + > + return 0 > + > +def get_job_inst(s_conn, job_ref): > + try: > + inst = s_conn.GetInstance(job_ref) > + > + except CIMError, (err_no, desc): > + print err_no, desc > + return None > + > + return inst > + > +def poll_for_job_status(s_conn, job_ref): > + > + job_inst = get_job_inst(s_conn, job_ref) > + if not job_inst: > + print "Unable to get job instance" > + return 1 > + > + try: > + while job_inst['JobState'] != CIM_JOBSTATE_COMPLETE: > + time.sleep(3) > + job_inst = get_job_inst(s_conn, job_ref) > + if not job_inst: > + print "Unable to get job instance" > + return 1 > + > + if job_inst['Status'] != "Completed": > + print "Migrate job failed: %s" % job_inst['Status'] > + return 1 > + except KeyboardInterrupt: > + print "Migrate job took too long" > + return 1 > + > + print "Migrate job succeeded: %s" % job_inst['Status'] > + return 0 > + > +def migrate_host(s_conn, cs_ref, dest, msd, virt): > + vsms_cn = "%s_VirtualSystemMigrationService" % virt > + > + try: > + if msd == None: > + job = s_conn.InvokeMethod("MigrateVirtualSystemToHost", > + vsms_cn, > + ComputerSystem=cs_ref, > + DestinationHost=dest) > + else: > + job = s_conn.InvokeMethod("MigrateVirtualSystemToHost", > + vsms_cn, > + ComputerSystem=cs_ref, > + DestinationHost=dest, > + MigrationSettingData=msd) > + > + if len(job) < 1: > + print "No job returned from migrate call" > + return 1 > + > + status = poll_for_job_status(s_conn, job[1]['Job']) > + > + except CIMError, (err_no, desc): > + print err_no, desc > + return 1 > + > + return 0 > + > +def main(): > + usage = "usage: %prog [options] \nex: %prog my.target.com" > + parser = OptionParser(usage) > + > + parser.add_option("-s", "--src-url", dest="s_url", default="localhost:5988", > + help="URL of CIMOM to connect to (host:port)") > + parser.add_option("-t", "--target-url", dest="t_url", > + default="localhost:5988", > + help="URL of CIMOM to connect to (host:port)") > + parser.add_option("-N", "--ns", dest="ns", default="root/virt", > + help="Namespace (default is root/virt)") > + parser.add_option("-u", "--user", dest="username", default=None, > + help="Auth username for CIMOM on source system") > + parser.add_option("-p", "--pass", dest="password", default=None, > + help="Auth password for CIMOM on source system") > + parser.add_option("-v", "--virt-type", dest="virt", default=None, > + help="Virtualization type [ Xen | KVM ]") > + parser.add_option("--migration-type", dest="type", default=None, > + help="Migration type: [ live | resume | restart ]") > + parser.add_option("--disable-check", dest="disable_ck", action="store_true", > + help="Disable migration pre-check") > + > + (options, args) = parser.parse_args() > + > + if len(args) == 0: > + print "Fatal: no guest specified." > + sys.exit(1) > + > + guest_name = args[0] > + > + if ":" in options.s_url: > + (sysname, port) = options.s_url.split(":") > + else: > + sysname = options.s_url > + > + if ":" in options.t_url: > + (t_sysname, port) = options.t_url.split(":") > + else: > + t_sysname = options.t_url > + > + src_conn = WBEMConnection('http://%s' % sysname, > + (options.username, options.password), options.ns) > + > + guest_ref = get_guest_ref(guest_name, options.virt) > + if guest_ref == None: > + return 1 > + > + if options.virt == None: > + print "Must specify virtualization type" > + return 1 > + > + if options.virt != "Xen": > + print "Only Xen migration is currently supported" > + return 1 > + > + if options.type != None: > + msd = get_msd(options.type, options.virt) > + if msd == None: > + return 1 > + else: > + print "Using default MigrationSettingData" > + msd = None > + > + if not options.disable_ck: > + status = check_migrate(src_conn, guest_ref, t_sysname, msd, > + options.virt) > + if status == 1: > + return 1 > + > + print "Migrating %s.. this will take some time." % guest_name > + status = migrate_host(src_conn, guest_ref, t_sysname, msd, options.virt) > + return status > + > +if __name__=="__main__": > + sys.exit(main()) > + > + > > _______________________________________________ > Libvirt-cim mailing list > Libvirt-cim at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-cim -- Richard Maciel, MSc IBM Linux Technology Center rmaciel at linux.vnet.ibm.com From kaitlin at linux.vnet.ibm.com Wed Feb 4 16:35:13 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Wed, 04 Feb 2009 08:35:13 -0800 Subject: [Libvirt-cim] [PATCH] Enable KVM migration migration support in the migration_tester.py tool Message-ID: <1f683477de1b1ba4bab6.1233765313@localhost.localdomain> # HG changeset patch # User Kaitlin Rupert # Date 1233765304 28800 # Node ID 1f683477de1b1ba4bab65011aaee78b23d0778a5 # Parent 61209742da1d511a4b453d38432c2eeb35639a83 Enable KVM migration migration support in the migration_tester.py tool. Also advertise the "other" migration type in the option parser. Signed-off-by: Kaitlin Rupert diff -r 61209742da1d -r 1f683477de1b tools/migration_tester.py --- a/tools/migration_tester.py Tue Jan 20 22:27:01 2009 -0800 +++ b/tools/migration_tester.py Wed Feb 04 08:35:04 2009 -0800 @@ -249,7 +249,7 @@ parser.add_option("-v", "--virt-type", dest="virt", default=None, help="Virtualization type [ Xen | KVM ]") parser.add_option("--migration-type", dest="type", default=None, - help="Migration type: [ live | resume | restart ]") + help="Migration type:[ live | resume | restart | other ]") parser.add_option("--disable-check", dest="disable_ck", action="store_true", help="Disable migration pre-check") @@ -282,10 +282,6 @@ print "Must specify virtualization type" return 1 - if options.virt != "Xen": - print "Only Xen migration is currently supported" - return 1 - if options.type != None: msd = get_msd(options.type, options.virt) if msd == None: From kaitlin at linux.vnet.ibm.com Wed Feb 4 17:34:05 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Wed, 04 Feb 2009 09:34:05 -0800 Subject: [Libvirt-cim] [PATCH] [TEST] #2 Update VSMS 14_define_sys_disk.py to use cim_define() In-Reply-To: <49893FDF.70506@linux.vnet.ibm.com> References: <49893FDF.70506@linux.vnet.ibm.com> Message-ID: <4989D18D.7040901@linux.vnet.ibm.com> >> +# +# Purpose: >> +# Verify providers support disk images with long paths / names >> +# >> +# Steps: >> +# 1) Create a disk image with a long path >> +# 2) Build RASD parameters, making sure to specify disk image >> created in step 1 >> +# 3) Verify guest is defined properly >> # >> >> > Thanks for the description. > The point 3 is missing from the tc. > We need to verify for the correctness of the defined guest, we need to > verify the disk path that was supplied and atleast the InstanceID using > the DiskRASD before undefining the guest. > Sorry for missing this in the earlier review. Ah, good point. What I meant in the comment was - just verify the guest is created. The bug this test case is covering was that the DefineSystem() call was failing because the path name was too long. However, adding some additional verification to this test is a good idea. -- Kaitlin Rupert IBM Linux Technology Center kaitlin at linux.vnet.ibm.com From kaitlin at linux.vnet.ibm.com Wed Feb 4 20:17:12 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Wed, 04 Feb 2009 12:17:12 -0800 Subject: [Libvirt-cim] [PATCH] [TEST] Fixing VSMS/09_procrasd_persist.py tc In-Reply-To: <5e1c6b862cd74b564513.1233740077@elm3b43.beaverton.ibm.com> References: <5e1c6b862cd74b564513.1233740077@elm3b43.beaverton.ibm.com> Message-ID: <4989F7C8.8000408@linux.vnet.ibm.com> > +# Purpose: > +# Verify DefineSystem() properly uses the ProcRASD setting passed in > +# as part of the ResourceSeting property. The purpose is to verify that the values for limit and weight are persisted properly. When the guest is defined, the weight and limit values are written to a file. When we do a GetInstance() on the ProcRASD, the file is read to get the weight/limit values for each guest. > > @@ -112,8 +118,7 @@ def main(): > logger.error("Exception: details %s", details) > status = FAIL > > - destroy_and_undefine_domain(default_dom, options.ip, options.virt) > - > +# cxml.undefine(server) Uncomment this. -- Kaitlin Rupert IBM Linux Technology Center kaitlin at linux.vnet.ibm.com From kaitlin at linux.vnet.ibm.com Wed Feb 4 23:18:07 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Wed, 04 Feb 2009 15:18:07 -0800 Subject: [Libvirt-cim] [PATCH] [TEST] #3 Update VSMS 14_define_sys_disk.py to use cim_define() Message-ID: <2d445349b1e6fc2dff2f.1233789487@localhost.localdomain> # HG changeset patch # User Kaitlin Rupert # Date 1233789475 28800 # Node ID 2d445349b1e6fc2dff2f86e12566a0e55259b44a # Parent edfa908a60d058c7f1ba7394bd1d818999802287 [TEST] #3 Update VSMS 14_define_sys_disk.py to use cim_define() Updates from 2 to 3: -Verify the Address attribute of the DiskRASD for the guest is the same address specified during the define call. Updates form 1 to 2: -Added comment to describe test -Added flag to indicate whether guest should be undefined Signed-off-by: Kaitlin Rupert diff -r edfa908a60d0 -r 2d445349b1e6 suites/libvirt-cim/cimtest/VirtualSystemManagementService/14_define_sys_disk.py --- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/14_define_sys_disk.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/14_define_sys_disk.py Wed Feb 04 15:17:55 2009 -0800 @@ -18,6 +18,14 @@ # You should have received a copy of the GNU General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# Purpose: +# Verify providers support disk images with long paths / names +# +# Steps: +# 1) Create a disk image with a long path +# 2) Build RASD parameters, making sure to specify disk image created in step 1 +# 3) Verify guest is defined properly # import sys @@ -25,14 +33,13 @@ from VirtLib.utils import run_remote from CimTest.Globals import logger from CimTest.ReturnCodes import FAIL, PASS -from XenKvmLib.common_util import create_using_definesystem -from XenKvmLib.test_doms import destroy_and_undefine_domain from XenKvmLib.classes import get_typed_class, inst_to_mof from XenKvmLib.rasd import get_default_rasds -from XenKvmLib.vsms import get_vssd_mof -from XenKvmLib.const import get_provider_version from XenKvmLib.const import do_main, _image_dir, f9_changeset, \ - KVM_default_disk_dev + KVM_default_disk_dev, get_provider_version +from XenKvmLib.vxml import get_class +from XenKvmLib.common_util import parse_instance_id +from XenKvmLib.enumclass import EnumInstances sup_types = ['Xen', 'XenFV', 'KVM', 'LXC'] test_dom = 'rstest_disk_domain' @@ -50,28 +57,58 @@ return path -def get_vssd_rasd(ip, virt, addr, disk_type): - vssd = get_vssd_mof(virt, test_dom) +def get_rasd_list(ip, virt, addr, disk_type): + drasd_cn = get_typed_class(virt, "DiskResourceAllocationSettingData") rasds = get_default_rasds(ip, virt) - rasd_list = [] + rasd_list = {} for rasd in rasds: - if 'DiskPool' in rasd['PoolID']: + if rasd.classname == drasd_cn: if disk_type != "" and rasd['Caption'] != disk_type: continue rasd['Address'] = addr curr_cim_rev, changeset = get_provider_version(virt, ip) if changeset == f9_changeset and virt == 'KVM': rasd['VirtualDevice'] = KVM_default_disk_dev - rasd_list.append(inst_to_mof(rasd)) + rasd_list[rasd.classname] = inst_to_mof(rasd) - params = { 'vssd' : vssd, - 'rasd' : rasd_list - } + return rasd_list - return params +def verify_disk_path(ip, virt, addr, guest_name): + inst = None + + try: + drasd_cn = get_typed_class(virt, 'DiskResourceAllocationSettingData') + enum_list = EnumInstances(ip, drasd_cn) + + if enum_list < 1: + raise Exception("No %s instances returned" % drasd_cn) + + for rasd in enum_list: + guest, dev, status = parse_instance_id(rasd.InstanceID) + if status != PASS: + raise Exception("Unable to parse InstanceID: %s" % \ + rasd.InstanceID) + + if guest == guest_name: + inst = rasd + break + + if inst is None: + raise Exception("%s instance for %s not found" % (drasd_cn, + guest_name)) + + if inst.Address != addr: + raise Exception("%s instance for %s not found" % (drasd_cn, + guest_name)) + + except Exception, details: + logger.error(details) + return FAIL + + return PASS @do_main(sup_types) def main(): @@ -84,20 +121,29 @@ else: disk_cap = "" + cxml = get_class(options.virt)(test_dom) + + guest_defined = False + try: addr = make_long_disk_path(options.ip) if addr is None: raise Exception("Unable to create large disk image") - define_params = get_vssd_rasd(options.ip, options.virt, addr, disk_cap) - if len(define_params) != 2: - raise Exception("Unable to get VSSD and RASDs for %s" % test_dom) + rasd_list = get_rasd_list(options.ip, options.virt, addr, disk_cap) + if len(rasd_list) < 1: + raise Exception("Unable to get template RASDs for %s" % test_dom) - status = create_using_definesystem(test_dom, options.ip, - params=define_params, ref_config="", - virt=options.virt) + cxml.set_res_settings(rasd_list) + ret = cxml.cim_define(options.ip) + if not ret: + raise Exception("Unable to define %s" % test_dom) + + guest_defined = True + + status = verify_disk_path(options.ip, options.virt, addr, test_dom) if status != PASS: - raise Exception("Unable to define %s" % test_dom) + raise Exception("Failed to verify disk path for %s" % test_dom) except Exception, details: logger.error(details) @@ -106,7 +152,8 @@ if os.path.exists(addr): os.remove(addr) - destroy_and_undefine_domain(test_dom, options.ip, options.virt) + if guest_defined == True: + cxml.undefine(options.ip) return status From deeptik at linux.vnet.ibm.com Thu Feb 5 04:54:03 2009 From: deeptik at linux.vnet.ibm.com (Deepti B Kalakeri) Date: Thu, 05 Feb 2009 10:24:03 +0530 Subject: [Libvirt-cim] [PATCH] [TEST] #3 Update VSMS 14_define_sys_disk.py to use cim_define() In-Reply-To: <2d445349b1e6fc2dff2f.1233789487@localhost.localdomain> References: <2d445349b1e6fc2dff2f.1233789487@localhost.localdomain> Message-ID: <498A70EB.5020806@linux.vnet.ibm.com> Kaitlin Rupert wrote: > # HG changeset patch > # User Kaitlin Rupert > # Date 1233789475 28800 > # Node ID 2d445349b1e6fc2dff2f86e12566a0e55259b44a > # Parent edfa908a60d058c7f1ba7394bd1d818999802287 > [TEST] #3 Update VSMS 14_define_sys_disk.py to use cim_define() > > Updates from 2 to 3: > -Verify the Address attribute of the DiskRASD for the guest is the same > address specified during the define call. > > Updates form 1 to 2: > -Added comment to describe test > -Added flag to indicate whether guest should be undefined > > Signed-off-by: Kaitlin Rupert > > diff -r edfa908a60d0 -r 2d445349b1e6 suites/libvirt-cim/cimtest/VirtualSystemManagementService/14_define_sys_disk.py > --- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/14_define_sys_disk.py Tue Feb 03 09:37:05 2009 -0800 > +++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/14_define_sys_disk.py Wed Feb 04 15:17:55 2009 -0800 > @@ -18,6 +18,14 @@ > # You should have received a copy of the GNU General Public > # License along with this library; if not, write to the Free Software > # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA > +# > +# Purpose: > +# Verify providers support disk images with long paths / names > +# > +# Steps: > +# 1) Create a disk image with a long path > +# 2) Build RASD parameters, making sure to specify disk image created in step 1 > +# 3) Verify guest is defined properly > # > > import sys > @@ -25,14 +33,13 @@ > from VirtLib.utils import run_remote > from CimTest.Globals import logger > from CimTest.ReturnCodes import FAIL, PASS > -from XenKvmLib.common_util import create_using_definesystem > -from XenKvmLib.test_doms import destroy_and_undefine_domain > from XenKvmLib.classes import get_typed_class, inst_to_mof > from XenKvmLib.rasd import get_default_rasds > -from XenKvmLib.vsms import get_vssd_mof > -from XenKvmLib.const import get_provider_version > from XenKvmLib.const import do_main, _image_dir, f9_changeset, \ > - KVM_default_disk_dev > + KVM_default_disk_dev, get_provider_version > +from XenKvmLib.vxml import get_class > +from XenKvmLib.common_util import parse_instance_id > +from XenKvmLib.enumclass import EnumInstances > > sup_types = ['Xen', 'XenFV', 'KVM', 'LXC'] > test_dom = 'rstest_disk_domain' > @@ -50,28 +57,58 @@ > > return path > > -def get_vssd_rasd(ip, virt, addr, disk_type): > - vssd = get_vssd_mof(virt, test_dom) > +def get_rasd_list(ip, virt, addr, disk_type): > + drasd_cn = get_typed_class(virt, "DiskResourceAllocationSettingData") > > rasds = get_default_rasds(ip, virt) > > - rasd_list = [] > + rasd_list = {} > > for rasd in rasds: > - if 'DiskPool' in rasd['PoolID']: > + if rasd.classname == drasd_cn: > if disk_type != "" and rasd['Caption'] != disk_type: > continue > rasd['Address'] = addr > curr_cim_rev, changeset = get_provider_version(virt, ip) > if changeset == f9_changeset and virt == 'KVM': > rasd['VirtualDevice'] = KVM_default_disk_dev > - rasd_list.append(inst_to_mof(rasd)) > + rasd_list[rasd.classname] = inst_to_mof(rasd) > > - params = { 'vssd' : vssd, > - 'rasd' : rasd_list > - } > + return rasd_list > > - return params > +def verify_disk_path(ip, virt, addr, guest_name): > + inst = None > + > + try: > + drasd_cn = get_typed_class(virt, 'DiskResourceAllocationSettingData') > + enum_list = EnumInstances(ip, drasd_cn) > GetInstance of the DiskRASD would be much more simpler than EnumInstances. Any reason behind using EnumInstances instead . > + > + if enum_list < 1: > + raise Exception("No %s instances returned" % drasd_cn) > + > + for rasd in enum_list: > + guest, dev, status = parse_instance_id(rasd.InstanceID) > + if status != PASS: > + raise Exception("Unable to parse InstanceID: %s" % \ > + rasd.InstanceID) > + > + if guest == guest_name: > + inst = rasd > + break > + > + if inst is None: > + raise Exception("%s instance for %s not found" % (drasd_cn, > + guest_name)) > + > + if inst.Address != addr: > + raise Exception("%s instance for %s not found" % (drasd_cn, > + guest_name)) > + > + except Exception, details: > + logger.error(details) > + return FAIL > + > + return PASS > > @do_main(sup_types) > def main(): > @@ -84,20 +121,29 @@ > else: > disk_cap = "" > > + cxml = get_class(options.virt)(test_dom) > + > + guest_defined = False > + > try: > addr = make_long_disk_path(options.ip) > if addr is None: > raise Exception("Unable to create large disk image") > > - define_params = get_vssd_rasd(options.ip, options.virt, addr, disk_cap) > - if len(define_params) != 2: > - raise Exception("Unable to get VSSD and RASDs for %s" % test_dom) > + rasd_list = get_rasd_list(options.ip, options.virt, addr, disk_cap) > + if len(rasd_list) < 1: > + raise Exception("Unable to get template RASDs for %s" % test_dom) > > - status = create_using_definesystem(test_dom, options.ip, > - params=define_params, ref_config="", > - virt=options.virt) > + cxml.set_res_settings(rasd_list) > + ret = cxml.cim_define(options.ip) > + if not ret: > + raise Exception("Unable to define %s" % test_dom) > + > + guest_defined = True > + > + status = verify_disk_path(options.ip, options.virt, addr, test_dom) > if status != PASS: > - raise Exception("Unable to define %s" % test_dom) > + raise Exception("Failed to verify disk path for %s" % test_dom) > > except Exception, details: > logger.error(details) > @@ -106,7 +152,8 @@ > if os.path.exists(addr): > os.remove(addr) > > - destroy_and_undefine_domain(test_dom, options.ip, options.virt) > + if guest_defined == True: > + cxml.undefine(options.ip) > > return status > > > _______________________________________________ > Libvirt-cim mailing list > Libvirt-cim at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-cim > -- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik at linux.vnet.ibm.com From yunguol at cn.ibm.com Thu Feb 5 05:55:28 2009 From: yunguol at cn.ibm.com (yunguol at cn.ibm.com) Date: Wed, 04 Feb 2009 21:55:28 -0800 Subject: [Libvirt-cim] [PATCH] [TEST]Fix HostSystem/03_hs_to_settdefcap.py with appropriate number of RASD objects for different platforms Message-ID: <722d799284c3e5777c9e.1233813328@elm3b197.beaverton.ibm.com> # HG changeset patch # User Guolian Yun # Date 1233813279 28800 # Node ID 722d799284c3e5777c9ea4abd692e4cb36d9d233 # Parent edfa908a60d058c7f1ba7394bd1d818999802287 [TEST]Fix HostSystem/03_hs_to_settdefcap.py with appropriate number of RASD objects for different platforms Update the number of returned RASD objects to 16 for Xen, 8 for KVM Tested for KVM/Xen/LXC with current sources, KVM with F9 rpm. Signed-off-by: Guolian Yun diff -r edfa908a60d0 -r 722d799284c3 suites/libvirt-cim/cimtest/HostSystem/03_hs_to_settdefcap.py --- a/suites/libvirt-cim/cimtest/HostSystem/03_hs_to_settdefcap.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/HostSystem/03_hs_to_settdefcap.py Wed Feb 04 21:54:39 2009 -0800 @@ -219,6 +219,9 @@ # For Diskpool, we have info 1 for each of Min, Max, # default, Increment and 1 for each of PV and FV # hence 4 * 2 = 8 records + exp_len = 16 + elif 'DiskPool' in ap['InstanceID'] and virt == 'KVM' and \ + curr_cim_rev >= libvirt_rasd_template_changes: exp_len = 8 else: exp_len = 4 From yunguol at cn.ibm.com Thu Feb 5 06:01:27 2009 From: yunguol at cn.ibm.com (yunguol at cn.ibm.com) Date: Wed, 04 Feb 2009 22:01:27 -0800 Subject: [Libvirt-cim] [PATCH] [TEST] Fix SettingsDefineCapabilities/01_forward.py with appropriate RASD objects for different platforms Message-ID: <7ee851d72773c1739064.1233813687@elm3b197.beaverton.ibm.com> # HG changeset patch # User Guolian Yun # Date 1233813653 28800 # Node ID 7ee851d72773c17390641ee50ec20387f9af08d1 # Parent edfa908a60d058c7f1ba7394bd1d818999802287 [TEST] Fix SettingsDefineCapabilities/01_forward.py with appropriate RASD objects for different platforms Update the number of returned RASD objects to 16 for Xen, 8 for KVM Tested for KVM/Xen/LXC with current sources, KVM with F9 rpm. Signed-off-by: Guolian Yun diff -r edfa908a60d0 -r 7ee851d72773 suites/libvirt-cim/cimtest/SettingsDefineCapabilities/01_forward.py --- a/suites/libvirt-cim/cimtest/SettingsDefineCapabilities/01_forward.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/SettingsDefineCapabilities/01_forward.py Wed Feb 04 22:00:53 2009 -0800 @@ -176,6 +176,9 @@ # For Diskpool, we have info 1 for each of Min, Max, # default, Increment and 1 for each of PV and FV # hence 4 * 2 = 8 records + exp_len = 16 + elif 'DiskPool' in instid and virt == 'KVM' and \ + curr_cim_rev >= libvirt_rasd_template_changes: exp_len = 8 else: exp_len = 4 From yunguol at cn.ibm.com Thu Feb 5 08:53:31 2009 From: yunguol at cn.ibm.com (yunguol at cn.ibm.com) Date: Thu, 05 Feb 2009 00:53:31 -0800 Subject: [Libvirt-cim] [PATCH] [TEST] Update test cases to follow the new coding style Message-ID: <4bb5b4c89bfddc67ef48.1233824011@elm3b197.beaverton.ibm.com> # HG changeset patch # User Guolian Yun # Date 1233823927 28800 # Node ID 4bb5b4c89bfddc67ef4872bda474356df4e1694a # Parent edfa908a60d058c7f1ba7394bd1d818999802287 [TEST] Update test cases to follow the new coding style 1) Use commas instead of percent signs when passing parameters to logger.error() and logger.info() 2) Use percents When passing parameters to Exception() Tested for KVM/LXC with current sources Signed-off-by: Guolian Yun diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/AllocationCapabilities/01_enum.py --- a/suites/libvirt-cim/cimtest/AllocationCapabilities/01_enum.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/AllocationCapabilities/01_enum.py Thu Feb 05 00:52:07 2009 -0800 @@ -76,13 +76,13 @@ for inst in ac: id = inst.InstanceID if pools[id].ResourceType != inst.ResourceType: - logger.error("%s ResourceType %s, Pool ResourceType %s" % (cn, - inst.ResourceType, pools[id].ResourceType)) + logger.error("%s ResourceType %s, Pool ResourceType %s", + cn, inst.ResourceType, pools[id].ResourceType) return FAIL except Exception, details: - logger.error("%s returned instance with unexpected InstanceID %s" % (cn, - details)) + logger.error("%s returned instance with unexpected InstanceID %s", + cn, details) return FAIL return PASS @@ -106,7 +106,7 @@ return status if len(ac) != len(pools): - logger.error("%d %s insts != %d pool insts" % (len(ac), cn, len(pools))) + logger.error("%d %s insts != %d pool insts", len(ac), cn, len(pools)) return FAIL status = compare_pool_to_ac(ac, pools, cn) diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/AllocationCapabilities/02_alloccap_gi_errs.py --- a/suites/libvirt-cim/cimtest/AllocationCapabilities/02_alloccap_gi_errs.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/AllocationCapabilities/02_alloccap_gi_errs.py Thu Feb 05 00:52:07 2009 -0800 @@ -62,7 +62,7 @@ for ac in enum_list: pool, id, status = parse_instance_id(ac.InstanceID) if status != PASS: - logger.error("Unable to parse InstanceID: %s" % ac.InstanceID) + logger.error("Unable to parse InstanceID: %s", ac.InstanceID) return ac_ids, FAIL ac_ids.append("%s/invalid_id" % pool) diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/ComputerSystem/01_enum.py --- a/suites/libvirt-cim/cimtest/ComputerSystem/01_enum.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ComputerSystem/01_enum.py Thu Feb 05 00:52:07 2009 -0800 @@ -49,12 +49,12 @@ del live_cs[idx] except ValueError, detail: Globals.logger.error("Provider reports system `%s', \ -but virsh does not" % name) +but virsh does not", name) status = FAIL for system in live_cs: Globals.logger.error("Provider does not report system `%s', \ -but virsh does" % system) +but virsh does", system) status = FAIL except IndexError, detail: diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/ComputerSystem/02_nosystems.py --- a/suites/libvirt-cim/cimtest/ComputerSystem/02_nosystems.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ComputerSystem/02_nosystems.py Thu Feb 05 00:52:07 2009 -0800 @@ -60,7 +60,7 @@ return FAIL if len(cs) != 0: - logger.error("%s returned %d instead of empty list" % (cn, len(cs))) + logger.error("%s returned %d instead of empty list", cn, len(cs)) status = FAIL else: status = PASS diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/ComputerSystem/03_defineVS.py --- a/suites/libvirt-cim/cimtest/ComputerSystem/03_defineVS.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ComputerSystem/03_defineVS.py Thu Feb 05 00:52:07 2009 -0800 @@ -46,7 +46,7 @@ cxml = vxml.get_class(options.virt)(test_dom) rc = cxml.cim_define(options.ip) if not rc: - Globals.logger.error(VIRSH_ERROR_DEFINE % test_dom) + Globals.logger.error(VIRSH_ERROR_DEFINE, test_dom) return status cs_class = get_typed_class(options.virt, 'ComputerSystem') @@ -74,7 +74,7 @@ Globals.logger.error("Exception: %s", detail) if status != PASS : - Globals.logger.error("Error: property values are not set for VS %s" % test_dom) + Globals.logger.error("Error: property values are not set for VS %s", test_dom) cxml.undefine(options.ip) return status diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/ComputerSystem/04_defineStartVS.py --- a/suites/libvirt-cim/cimtest/ComputerSystem/04_defineStartVS.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ComputerSystem/04_defineStartVS.py Thu Feb 05 00:52:07 2009 -0800 @@ -47,12 +47,12 @@ try: ret = cxml.cim_define(options.ip) if not ret: - logger.error("Unable to define %s" % test_dom) + logger.error("Unable to define %s", test_dom) return FAIL status = cxml.cim_start(options.ip) if status != PASS: - logger.error("Failed to Start the dom: %s" % test_dom) + logger.error("Failed to Start the dom: %s", test_dom) logger.error("Property values not set properly for %s", test_dom) except Exception, detail: diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/ComputerSystem/05_activate_defined_start.py --- a/suites/libvirt-cim/cimtest/ComputerSystem/05_activate_defined_start.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ComputerSystem/05_activate_defined_start.py Thu Feb 05 00:52:07 2009 -0800 @@ -70,7 +70,7 @@ raise Exception("%s not in expected state" % test_dom) except Exception, detail: - logger.error("Exception: %s" % detail) + logger.error("Exception: %s", detail) status = FAIL cxml.cim_destroy(options.ip) diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/ComputerSystem/06_paused_active_suspend.py --- a/suites/libvirt-cim/cimtest/ComputerSystem/06_paused_active_suspend.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ComputerSystem/06_paused_active_suspend.py Thu Feb 05 00:52:07 2009 -0800 @@ -77,7 +77,7 @@ raise Exception("%s not in expected state" % test_dom) except Exception, detail: - logger.error("Exception variable: %s" % detail) + logger.error("Exception variable: %s", detail) status = FAIL cxml.destroy(server) diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/ComputerSystem/22_define_suspend.py --- a/suites/libvirt-cim/cimtest/ComputerSystem/22_define_suspend.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ComputerSystem/22_define_suspend.py Thu Feb 05 00:52:07 2009 -0800 @@ -53,14 +53,14 @@ # suspend the vs status = cxml.cim_suspend(options.ip) if status != PASS: - logger.info("Suspending defined %s failed, as expected" % test_dom) + logger.info("Suspending defined %s failed, as expected", test_dom) status = PASS else: raise Exception("Suspending defined %s should have failed" % \ test_dom) except Exception, detail: - logger.error("Error: %s" % detail) + logger.error("Error: %s", detail) status = FAIL cxml.undefine(options.ip) diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/ComputerSystem/41_cs_to_settingdefinestate.py --- a/suites/libvirt-cim/cimtest/ComputerSystem/41_cs_to_settingdefinestate.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ComputerSystem/41_cs_to_settingdefinestate.py Thu Feb 05 00:52:07 2009 -0800 @@ -121,7 +121,7 @@ for rasd in rasd_list: guest, dev, status = parse_instance_id(rasd.InstanceID) if status != PASS: - logger.error("Unable to parse InstanceID: %s" % rasd.InstanceID) + logger.error("Unable to parse InstanceID: %s", rasd.InstanceID) return rasd_insts, FAIL if guest == test_dom: @@ -272,7 +272,7 @@ status, cs_assoc_info = get_associators_info(server, cn, an, cs_class, instid) if status != PASS: - raise Exception("Failed to get assoc info for dom: %s", test_dom) + raise Exception("Failed to get assoc info for dom: %s" % test_dom) # verify the results of SettingsDefineState with the cs_values list # that was built using the output of the GetInstance on ComputerSystem. diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/ComputerSystemIndication/01_created_indication.py --- a/suites/libvirt-cim/cimtest/ComputerSystemIndication/01_created_indication.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ComputerSystemIndication/01_created_indication.py Thu Feb 05 00:52:07 2009 -0800 @@ -58,7 +58,7 @@ dict['default_sysname'], port) sub.subscribe(dict['default_url'], dict['default_auth']) - logger.info("Watching for %s" % iname) + logger.info("Watching for %s", iname) ind_names[ind] = ind_name sub_list[ind] = sub @@ -98,12 +98,12 @@ if str(sub.server.indications[0]) == ind_name: sub.unsubscribe(dict['default_auth']) - logger.info("Cancelling subscription for %s" % ind_name) + logger.info("Cancelling subscription for %s", ind_name) return PASS else: sub.server.indications.remove(sub.server.indications[0]) - logger.error("Did not recieve indication %s" % ind_name) + logger.error("Did not recieve indication %s", ind_name) return FAIL def poll_for_ind(pid, ind_name): @@ -129,7 +129,7 @@ logger.error("Waited too long for %s indication", ind_name) kill(pid, SIGKILL) else: - logger.error("Received indication error: %d" % pw[1]) + logger.error("Received indication error: %d", pw[1]) status = FAIL break @@ -174,13 +174,13 @@ raise Exception(details) except Exception, details: - logger.error("Exception: %s" % details) + logger.error("Exception: %s", details) status = FAIL #Make sure all subscriptions are really unsubscribed for ind, sub in sub_list.iteritems(): sub.unsubscribe(dict['default_auth']) - logger.info("Cancelling subscription for %s" % ind_names[ind]) + logger.info("Cancelling subscription for %s", ind_names[ind]) cxml.undefine(ip) diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/ElementAllocatedFromPool/01_forward.py --- a/suites/libvirt-cim/cimtest/ElementAllocatedFromPool/01_forward.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ElementAllocatedFromPool/01_forward.py Thu Feb 05 00:52:07 2009 -0800 @@ -67,11 +67,11 @@ inst = GetInstance(server, cn_name, key_list) except Exception, details: - logger.error("Exception %s" % details) + logger.error("Exception %s", details) return None if inst is None: - logger.error("Expected at least one %s instance" % cn_name) + logger.error("Expected at least one %s instance", cn_name) return None return inst diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/ElementCapabilities/01_forward.py --- a/suites/libvirt-cim/cimtest/ElementCapabilities/01_forward.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ElementCapabilities/01_forward.py Thu Feb 05 00:52:07 2009 -0800 @@ -130,7 +130,7 @@ elec = assoc.AssociatorNames(server, an, ccn, Name = system, CreationClassName = ccn) except Exception: - logger.error(CIM_ERROR_ASSOCIATORNAMES % system) + logger.error(CIM_ERROR_ASSOCIATORNAMES, system) cxml.undefine(server) return FAIL diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/ElementCapabilities/02_reverse.py --- a/suites/libvirt-cim/cimtest/ElementCapabilities/02_reverse.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ElementCapabilities/02_reverse.py Thu Feb 05 00:52:07 2009 -0800 @@ -57,7 +57,7 @@ def filter(list, cn, exp_result): new_list = assoc.filter_by_result_class(list, cn) if len(new_list) != exp_result: - logger.error("Expected %d host, got %d" % (exp_result, len(new_list))) + logger.error("Expected %d host, got %d", exp_result, len(new_list)) return FAIL, new_list return PASS, new_list @@ -154,7 +154,7 @@ cxml = virtxml(test_dom) ret = cxml.cim_define(options.ip) if not ret: - logger.error("Failed to define the dom: %s" % test_dom) + logger.error("Failed to define the dom: %s", test_dom) return FAIL cs = domain_list(options.ip, options.virt) diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/ElementCapabilities/03_forward_errs.py --- a/suites/libvirt-cim/cimtest/ElementCapabilities/03_forward_errs.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ElementCapabilities/03_forward_errs.py Thu Feb 05 00:52:07 2009 -0800 @@ -51,14 +51,14 @@ logger.info("Got expected rc code and error string") status = PASS else: - logger.error("Unexpected rc code %s and description %s\n" %(rc, desc)) + logger.error("Unexpected rc code %s and description %s\n", rc, desc) except Exception, details: logger.error("Unknown exception happened") logger.error(details) if rc == 0: logger.error("ElementCapabilities associator should NOT return excepted \ - result with a wrong key name and value of %s input" % ref_class) + result with a wrong key name and value of %s input", ref_class) status = FAIL return status diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/ElementCapabilities/04_reverse_errs.py --- a/suites/libvirt-cim/cimtest/ElementCapabilities/04_reverse_errs.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ElementCapabilities/04_reverse_errs.py Thu Feb 05 00:52:07 2009 -0800 @@ -50,14 +50,14 @@ logger.info("Got expected rc code and error string") status = PASS else: - logger.error("Unexpected rc code %s and description %s\n" %(rc, desc)) + logger.error("Unexpected rc code %s and description %s\n", rc, desc) except Exception, details: logger.error("Unknown exception happened") logger.error(details) if rc == 0: logger.error("ElementCapabilities associator should NOT return excepted result \ - with a wrong key name and value of %s input" % ref_class) + with a wrong key name and value of %s input", ref_class) status = FAIL return status diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/ElementCapabilities/05_hostsystem_cap.py --- a/suites/libvirt-cim/cimtest/ElementCapabilities/05_hostsystem_cap.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ElementCapabilities/05_hostsystem_cap.py Thu Feb 05 00:52:07 2009 -0800 @@ -76,7 +76,7 @@ break if ret != PASS: - logger.error("%s with %s was not returned" % (cn, exp_val)) + logger.error("%s with %s was not returned", cn, exp_val) status = FAIL return status, inst diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/ElementConforms/01_forward.py --- a/suites/libvirt-cim/cimtest/ElementConforms/01_forward.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ElementConforms/01_forward.py Thu Feb 05 00:52:07 2009 -0800 @@ -151,13 +151,13 @@ cxml = virt_xml(test_dom) ret = cxml.cim_define(server) if not ret: - logger.error('Unable to define domain %s' % test_dom) + logger.error('Unable to define domain %s', test_dom) return FAIL ret = cxml.start(server) if not ret: cxml.undefine(server) - logger.error('Unable to start domain %s' % test_dom) + logger.error('Unable to start domain %s', test_dom) return FAIL prev_namespace = Globals.CIM_NS @@ -201,7 +201,7 @@ raise Exception("%s items weren't returned: %s" % (key, list)) except Exception, detail: - logger.error("Exception: %s" % detail) + logger.error("Exception: %s", detail) status = FAIL Globals.CIM_NS = prev_namespace diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/ElementConforms/02_reverse.py --- a/suites/libvirt-cim/cimtest/ElementConforms/02_reverse.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ElementConforms/02_reverse.py Thu Feb 05 00:52:07 2009 -0800 @@ -93,7 +93,7 @@ ret = cxml.cim_define(server) if not ret: - logger.error("ERROR: Failed to Define the dom: %s" % test_dom) + logger.error("ERROR: Failed to Define the dom: %s", test_dom) return status inst_list = {} @@ -102,7 +102,7 @@ if rc != 0: cs = libvirt_cached_data_poll(server, virt, test_dom) if sys is None: - logger.error("Instance for %s not created" % test_dom) + logger.error("Instance for %s not created", test_dom) cxml.undefine(server) return FAIL @@ -116,7 +116,7 @@ return status except Exception, details: - logger.error("DEBUG Exception: %s" % details) + logger.error("DEBUG Exception: %s", details) cxml.undefine(server) return FAIL diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/ElementConforms/03_ectp_fwd_errs.py --- a/suites/libvirt-cim/cimtest/ElementConforms/03_ectp_fwd_errs.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ElementConforms/03_ectp_fwd_errs.py Thu Feb 05 00:52:07 2009 -0800 @@ -84,7 +84,7 @@ ret_val = try_assoc(conn, classname, ac_classname, keys, field_name=field, \ expr_values=expr_values[field], bug_no="") if ret_val != PASS: - logger.error("------ FAILED: %s------" % field) + logger.error("------ FAILED: %s------", field) name_val[i] = temp return ret_val diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/ElementConforms/04_ectp_rev_errs.py --- a/suites/libvirt-cim/cimtest/ElementConforms/04_ectp_rev_errs.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ElementConforms/04_ectp_rev_errs.py Thu Feb 05 00:52:07 2009 -0800 @@ -125,7 +125,7 @@ ret_val = try_assoc(conn, classname, ac_classname, keys, field_name=field, \ expr_values=expr_values[field], bug_no="") if ret_val != PASS: - logger.error("------ FAILED: %s------" % field) + logger.error("------ FAILED: %s------", field) name_val[i] = temp return ret_val @@ -142,7 +142,7 @@ cxml = virt_xml(test_dom) ret = cxml.cim_define(options.ip) if not ret: - logger.error('Unable to define domain %s' % test_dom) + logger.error('Unable to define domain %s', test_dom) return FAIL hs = get_typed_class(options.virt, "HostSystem") diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/ElementSettingData/01_forward.py --- a/suites/libvirt-cim/cimtest/ElementSettingData/01_forward.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ElementSettingData/01_forward.py Thu Feb 05 00:52:07 2009 -0800 @@ -72,11 +72,11 @@ inst = GetInstance(ip, cn, key_list) except Exception, details: - logger.error("Exception %s" % details) + logger.error("Exception %s", details) return None if inst is None: - logger.error("Expected at least one %s instance" % cn) + logger.error("Expected at least one %s instance", cn) return None return inst @@ -167,7 +167,7 @@ for cn, inst in inst_list.iteritems(): status = test_assoc(options.ip, esd_cn, cn, options.virt, inst) if status != PASS: - logger.error("Unable to get %s insts from %s" % (cn, esd_cn)) + logger.error("Unable to get %s insts from %s", cn, esd_cn) break cxml.undefine(options.ip) diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/ElementSettingData/03_esd_assoc_with_rasd_errs.py --- a/suites/libvirt-cim/cimtest/ElementSettingData/03_esd_assoc_with_rasd_errs.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ElementSettingData/03_esd_assoc_with_rasd_errs.py Thu Feb 05 00:52:07 2009 -0800 @@ -88,7 +88,7 @@ cxml = virtxml(test_dom, mac = test_mac) ret = cxml.create(options.ip) if not ret: - logger.error("Failed to Create the dom: %s" % test_dom) + logger.error("Failed to Create the dom: %s", test_dom) status = FAIL return status if options.virt == "XenFV": diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/HostSystem/01_enum.py --- a/suites/libvirt-cim/cimtest/HostSystem/01_enum.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/HostSystem/01_enum.py Thu Feb 05 00:52:07 2009 -0800 @@ -50,7 +50,7 @@ try: hs = enumclass.EnumInstances(options.ip, name) except Exception, details: - logger.error("%s %s: %s" % (CIM_ERROR_ENUMERATE, name, details)) + logger.error("%s %s: %s", CIM_ERROR_ENUMERATE, name, details) status = FAIL if ret == PASS: @@ -60,25 +60,25 @@ else: if linux_cs.CreationClassName != 'Linux_ComputerSystem'\ or linux_cs.Name != host: - logger.error("Exp Linux_ComputerSystem, got %s" \ - % linux_cs.CreationClassName) - logger.error("Exp %s, got %s" % (host, system.Name)) + logger.error("Exp Linux_ComputerSystem, got %s", + linux_cs.CreationClassName) + logger.error("Exp %s, got %s", host, system.Name) return FAIL else: return PASS else: if len(hs) != 1: - logger.error("Expected 1 %s instance returned" % name) + logger.error("Expected 1 %s instance returned", name) return FAIL system = hs[0] if system.CreationClassName != name or system.Name != host: - logger.error("Exp %s, got %s" % (name, system.CreationClassName)) - logger.error("Exp %s, got %s" % (host, system.Name)) + logger.error("Exp %s, got %s", name, system.CreationClassName) + logger.error("Exp %s, got %s", host, system.Name) status = FAIL else: - logger.info("%s is %s" % (name, host)) + logger.info("%s is %s", name, host) status = PASS return status diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/HostSystem/02_hostsystem_to_rasd.py --- a/suites/libvirt-cim/cimtest/HostSystem/02_hostsystem_to_rasd.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/HostSystem/02_hostsystem_to_rasd.py Thu Feb 05 00:52:07 2009 -0800 @@ -96,7 +96,7 @@ return status, vsxml_info def print_err(err, detail, cn): - logger.error(err % cn) + logger.error(err, cn) logger.error("Exception: %s", detail) def get_inst_from_list(server, cn, cs_list, filter_name, exp_val, vsxml): @@ -109,7 +109,7 @@ break if ret != PASS: - logger.error("%s with %s was not returned" % (cn, exp_val)) + logger.error("%s with %s was not returned", cn, exp_val) vsxml.undefine(server) status = FAIL @@ -165,7 +165,7 @@ SystemCreationClassName = sccn) if len(assoc_info) != 1: - logger.error("%s returned %i %s objects" % (an, len(assoc_info), cn)) + logger.error("%s returned %i %s objects", an, len(assoc_info), cn) status = FAIL break index = (len(assoc_info) - 1) diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/HostSystem/03_hs_to_settdefcap.py --- a/suites/libvirt-cim/cimtest/HostSystem/03_hs_to_settdefcap.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/HostSystem/03_hs_to_settdefcap.py Thu Feb 05 00:52:07 2009 -0800 @@ -73,7 +73,7 @@ return status, vsxml def print_err(err, detail, cn): - logger.error(err % cn) + logger.error(err, cn) logger.error("Exception: %s", detail) def get_inst_from_list(cn, qcn, list, filter, exp_val): @@ -82,7 +82,7 @@ inst = None if len(list) < 1: - logger.error("%s returned %i %s objects" % (qcn, len(list), cn)) + logger.error("%s returned %i %s objects", qcn, len(list), cn) return FAIL, None for inst in list: @@ -92,7 +92,7 @@ if ret != PASS: status = FAIL - logger.error("%s with %s was not returned" % (cn, exp_val)) + logger.error("%s with %s was not returned", cn, exp_val) return status, inst @@ -107,7 +107,7 @@ logger.error("Hostname mismatch") except Exception, detail: - logger.error("Exception in %s : %s" % (cn, detail)) + logger.error("Exception in %s : %s", cn, detail) status = FAIL return status, host_inst.Name, host_inst.CreationClassName @@ -236,7 +236,7 @@ if status != PASS: return status else: - logger.error("Unexpected instance type %s" % cn) + logger.error("Unexpected instance type %s", cn) return FAIL except Exception, detail: @@ -248,10 +248,10 @@ def check_rasd_vals(inst, rt): try: if inst['ResourceType'] != rt: - logger.error("In ResourceType for %s " % rt) + logger.error("In ResourceType for %s ", rt) return FAIL except Exception, detail: - logger.error("Error checking RASD attribute values %s" % detail) + logger.error("Error checking RASD attribute values %s", detail) return FAIL return PASS diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/HostSystem/04_hs_to_EAPF.py --- a/suites/libvirt-cim/cimtest/HostSystem/04_hs_to_EAPF.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/HostSystem/04_hs_to_EAPF.py Thu Feb 05 00:52:07 2009 -0800 @@ -194,8 +194,8 @@ def check_len(an, assoc_list_info, qcn, exp_len): if len(assoc_list_info) < exp_len: - logger.error("%s returned %i %s objects" % (an, - len(assoc_list_info), qcn)) + logger.error("%s returned %i %s objects", + an, len(assoc_list_info), qcn) return FAIL return PASS diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/HostSystem/06_hs_to_vsms.py --- a/suites/libvirt-cim/cimtest/HostSystem/06_hs_to_vsms.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/HostSystem/06_hs_to_vsms.py Thu Feb 05 00:52:07 2009 -0800 @@ -56,7 +56,7 @@ sup_types = ['Xen', 'KVM', 'XenFV', 'LXC'] def print_err(err, detail, cn): - logger.error(err % cn) + logger.error(err, cn) logger.error("Exception: %s", detail) def print_field_error(fieldname, ret_value, exp_value): @@ -76,7 +76,7 @@ # When no records are found. if ret != PASS: - logger.error("%s with %s was not returned" % (cn, exp_val)) + logger.error("%s with %s was not returned", cn, exp_val) status = FAIL return status, inst diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/HostedDependency/02_reverse.py --- a/suites/libvirt-cim/cimtest/HostedDependency/02_reverse.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/HostedDependency/02_reverse.py Thu Feb 05 00:52:07 2009 -0800 @@ -72,12 +72,12 @@ ret = cxml.cim_define(server) if not ret: - logger.error("Failed to define the dom: %s" % test_dom) + logger.error("Failed to define the dom: %s", test_dom) return FAIL rc = call_request_state_change(test_dom, server, 2, TIME, virt) if rc != 0: - logger.error("Failed to start the dom: %s" % test_dom) + logger.error("Failed to start the dom: %s", test_dom) cxml.undefine(server) return FAIL @@ -126,7 +126,7 @@ if guest["Name"] in cs_names: cs_names.remove(guest["Name"]) else: - logger.error("HostedDependency returned unexpected guest %s" % + logger.error("HostedDependency returned unexpected guest %s", guest["Name"]) status = FAIL @@ -140,7 +140,7 @@ # not being returned by HostedDependency for guest in cs_names: - logger.error("HostedDependency did not return expected guest %s" % + logger.error("HostedDependency did not return expected guest %s", guest["Name"]) status = FAIL diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/HostedDependency/03_enabledstate.py --- a/suites/libvirt-cim/cimtest/HostedDependency/03_enabledstate.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/HostedDependency/03_enabledstate.py Thu Feb 05 00:52:07 2009 -0800 @@ -80,7 +80,7 @@ except Exception, detail: logger.error(CIM_ERROR_GETINSTANCE, 'ComputerSystem') - logger.error("Exception: %s" % detail) + logger.error("Exception: %s", detail) status = FAIL return status, dom_field_list @@ -113,18 +113,18 @@ ret = cxml.cim_define(server) if not ret: - logger.error("Failed to define the dom: %s" % test_dom) + logger.error("Failed to define the dom: %s", test_dom) return FAIL rc = call_request_state_change(test_dom, server, 2, TIME, virt) if rc != 0: - logger.error("Failed to start the dom: %s" % test_dom) + logger.error("Failed to start the dom: %s", test_dom) cxml.undefine(server) return FAIL rc = call_request_state_change(test_dom, server, 9, TIME, virt) if rc != 0: - logger.error("Failed to suspend the dom: %s" % test_dom) + logger.error("Failed to suspend the dom: %s", test_dom) cxml.destroy(server) cxml.undefine(server) @@ -181,7 +181,7 @@ except Exception, detail: logger.error(CIM_ERROR_ASSOCIATORS,'HostedDependency') - logger.error("Exception: %s" % detail) + logger.error("Exception: %s", detail) status = FAIL cxml.destroy(server) diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/HostedDependency/04_reverse_errs.py --- a/suites/libvirt-cim/cimtest/HostedDependency/04_reverse_errs.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/HostedDependency/04_reverse_errs.py Thu Feb 05 00:52:07 2009 -0800 @@ -91,7 +91,7 @@ ret = cxml.create(server) if not ret: - logger.error("Failed to Create the dom: %s" % test_dom) + logger.error("Failed to Create the dom: %s", test_dom) return FAIL conn = assoc.myWBEMConnection('http://%s' % server, diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/HostedResourcePool/01_forward.py --- a/suites/libvirt-cim/cimtest/HostedResourcePool/01_forward.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/HostedResourcePool/01_forward.py Thu Feb 05 00:52:07 2009 -0800 @@ -58,7 +58,7 @@ Name = host_sys, CreationClassName = host_cn) except Exception, details: - logger.error(Globals.CIM_ERROR_ASSOCIATORNAMES % assoc_cn) + logger.error(Globals.CIM_ERROR_ASSOCIATORNAMES, assoc_cn) logger.error("Exception:", details) return FAIL diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/HostedResourcePool/02_reverse.py --- a/suites/libvirt-cim/cimtest/HostedResourcePool/02_reverse.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/HostedResourcePool/02_reverse.py Thu Feb 05 00:52:07 2009 -0800 @@ -64,7 +64,7 @@ try: assoc_host = AssociatorNames(options.ip, assoc_cn, k, InstanceID=v) except Exception: - logger.error(Globals.CIM_ERROR_ASSOCIATORNAMES % assoc_cn) + logger.error(Globals.CIM_ERROR_ASSOCIATORNAMES, assoc_cn) return FAIL if len(assoc_host) == 1: if assoc_host[0].keybindings['Name'] != host_sys: diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/HostedService/01_forward.py --- a/suites/libvirt-cim/cimtest/HostedService/01_forward.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/HostedService/01_forward.py Thu Feb 05 00:52:07 2009 -0800 @@ -58,7 +58,7 @@ Name = host_name) except Exception, deatils: - logger.error(Globals.CIM_ERROR_ASSOCIATORNAMES % host_name) + logger.error(Globals.CIM_ERROR_ASSOCIATORNAMES, host_name) logger.error("Exception: details %s", details) return FAIL diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/LogicalDisk/01_disk.py --- a/suites/libvirt-cim/cimtest/LogicalDisk/01_disk.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/LogicalDisk/01_disk.py Thu Feb 05 00:52:07 2009 -0800 @@ -58,11 +58,11 @@ status = 0 if dev.Name != test_dev: - logger.error("Name should be `%s' instead of `%s'" % (test_dev, dev.Name)) + logger.error("Name should be `%s' instead of `%s'", test_dev, dev.Name) status = 1 if status == 0: - logger.info("Checked device %s" % dev.Name) + logger.info("Checked device %s", dev.Name) vsxml.undefine(options.ip) diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/LogicalDisk/02_nodevs.py --- a/suites/libvirt-cim/cimtest/LogicalDisk/02_nodevs.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/LogicalDisk/02_nodevs.py Thu Feb 05 00:52:07 2009 -0800 @@ -69,7 +69,7 @@ return FAIL if len(devs) != 0: - logger.error("%s returned %d instead of empty list" % (cn, len(devs))) + logger.error("%s returned %d instead of empty list", cn, len(devs)) status = FAIL else: status = PASS diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/Memory/01_memory.py --- a/suites/libvirt-cim/cimtest/Memory/01_memory.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/Memory/01_memory.py Thu Feb 05 00:52:07 2009 -0800 @@ -63,11 +63,11 @@ capacity = dev.ConsumableBlocks * dev.BlockSize / 1024 if capacity != alloc_mem: - logger.error("Capacity should be %i MB instead of %i MB" % (alloc_mem, capacity)) + logger.error("Capacity should be %i MB instead of %i MB", alloc_mem, capacity) status = 1 if status == 0: - logger.info("Checked memory capacity: %s MB" % capacity) + logger.info("Checked memory capacity: %s MB", capacity) vsxml.undefine(options.ip) return status diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/Memory/02_defgetmem.py --- a/suites/libvirt-cim/cimtest/Memory/02_defgetmem.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/Memory/02_defgetmem.py Thu Feb 05 00:52:07 2009 -0800 @@ -76,7 +76,7 @@ raise Exception("Memory inst for %s not as expected." % default_dom) except Exception, detail: - logger.error("Exception: %s" % detail) + logger.error("Exception: %s", detail) status = FAIL cxml.undefine(options.ip) diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/NetworkPort/01_netport.py --- a/suites/libvirt-cim/cimtest/NetworkPort/01_netport.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/NetworkPort/01_netport.py Thu Feb 05 00:52:07 2009 -0800 @@ -80,12 +80,12 @@ dev = GetInstance(options.ip, net_class, key_list) except Exception, detail: - logger.error("Exception: %s" % detail) + logger.error("Exception: %s", detail) vsxml.undefine(options.ip) return FAIL if dev.DeviceID == None: - logger.error("Error retrieving instance for devid %s" % devid) + logger.error("Error retrieving instance for devid %s", devid) vsxml.undefine(options.ip) return FAIL @@ -94,23 +94,23 @@ link_tech = get_linktech(options.ip, options.virt) if dev.LinkTechnology != link_tech: - logger.error("LinkTechnology should be set to `%i' instead of `%s'" % \ - (link_tech, dev.LinkTechnology)) + logger.error("LinkTechnology should be set to `%i' instead of `%s'", + link_tech, dev.LinkTechnology) status = FAIL addrs = dev.NetworkAddresses if len(addrs) != 1: - logger.error("Too many NetworkAddress entries (%i instead of %i)" % \ - (len(addrs), 1)) + logger.error("Too many NetworkAddress entries (%i instead of %i)", + len(addrs), 1) status = FAIL if addrs[0] != test_mac: - logger.error("MAC address reported incorrectly (%s instead of %s)" % \ - (addrs[0], test_mac)) + logger.error("MAC address reported incorrectly (%s instead of %s)", + addrs[0], test_mac) status = FAIL if status == FAIL: - logger.error("Checked interface %s" % test_mac) + logger.error("Checked interface %s", test_mac) vsxml.undefine(options.ip) diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/NetworkPort/03_user_netport.py --- a/suites/libvirt-cim/cimtest/NetworkPort/03_user_netport.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/NetworkPort/03_user_netport.py Thu Feb 05 00:52:07 2009 -0800 @@ -45,7 +45,7 @@ cxml = KVMXML(test_dom, mac = test_mac, ntype='user') ret = cxml.cim_define(options.ip) if not ret: - logger.error('Unable to define domain %s' % test_dom) + logger.error('Unable to define domain %s', test_dom) return FAIL devid = "%s/%s" % (test_dom, test_mac) @@ -59,7 +59,7 @@ try: dev = GetInstance(options.ip, 'KVM_NetworkPort', key_list) except Exception, detail: - logger.error("Exception: %s" % detail) + logger.error("Exception: %s", detail) cxml.undefine(options.ip) return FAIL @@ -73,17 +73,17 @@ addrs = dev.NetworkAddresses if len(addrs) != 1: - logger.error("Too many NetworkAddress entries (%i instead of %i)" % \ - (len(addrs), 1)) + logger.error("Too many NetworkAddress entries (%i instead of %i)", + len(addrs), 1) status = FAIL if addrs[0] != test_mac: - logger.error("MAC address reported incorrectly (%s instead of %s)" % \ - (addrs[0], test_mac)) + logger.error("MAC address reported incorrectly (%s instead of %s)", + addrs[0], test_mac) status = FAIL if status == FAIL: - logger.error("Checked interface %s" % test_mac) + logger.error("Checked interface %s", test_mac) cxml.undefine(options.ip) return status diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/Processor/01_processor.py --- a/suites/libvirt-cim/cimtest/Processor/01_processor.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/Processor/01_processor.py Thu Feb 05 00:52:07 2009 -0800 @@ -64,11 +64,11 @@ try: dev = GetInstance(options.ip, proc_class, key_list) if dev.DeviceID == devid: - logger.info("Checked device %s" % devid) + logger.info("Checked device %s", devid) else: - logger.error("Mismatching device, returned %s instead %s" % (dev.DeviceID, devid)) + logger.error("Mismatching device, returned %s instead %s", dev.DeviceID, devid) except Exception, details: - logger.error("Error check device %s: %s" % (devid, details)) + logger.error("Error check device %s: %s", devid, details) status = 1 vsxml.stop(options.ip) diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/Processor/02_definesys_get_procs.py --- a/suites/libvirt-cim/cimtest/Processor/02_definesys_get_procs.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/Processor/02_definesys_get_procs.py Thu Feb 05 00:52:07 2009 -0800 @@ -86,7 +86,7 @@ % default_dom) except Exception, detail: - logger.error("Exception: %s" % detail) + logger.error("Exception: %s", detail) status = FAIL cxml.undefine(options.ip) diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/Profile/01_enum.py --- a/suites/libvirt-cim/cimtest/Profile/01_enum.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/Profile/01_enum.py Thu Feb 05 00:52:07 2009 -0800 @@ -66,16 +66,16 @@ x.RegisteredName, x.RegisteredVersion] for x in proflist] for exp_prof in explist: if exp_prof in checklist: - logger.info("Profile %s found" % exp_prof[0]) + logger.info("Profile %s found", exp_prof[0]) else: - logger.error("Profile %s is not found" % exp_prof[0]) + logger.error("Profile %s is not found", exp_prof[0]) status = FAIL break if status == PASS: - logger.info("Properties check for %s passed" % cn) + logger.info("Properties check for %s passed", cn) else: - logger.error("Properties check for %s failed" % cn) + logger.error("Properties check for %s failed", cn) return status if __name__ == "__main__": diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/Profile/02_profile_to_elec.py --- a/suites/libvirt-cim/cimtest/Profile/02_profile_to_elec.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/Profile/02_profile_to_elec.py Thu Feb 05 00:52:07 2009 -0800 @@ -63,18 +63,18 @@ rc = csxml_info.cim_define(server) if not rc: - logger.error("Unable define domain %s using DefineSystem() " % test_dom) + logger.error("Unable define domain %s using DefineSystem() ", test_dom) status = FAIL except Exception, detail: - logger.error("Exception defining domain %s" % test_dom) + logger.error("Exception defining domain %s", test_dom) logger.error("Exception: %s", detail) status = FAIL return status, csxml_info def print_err(err, detail, cn): - logger.error(err % cn) + logger.error(err, cn) logger.error("Exception: %s", detail) def get_expected_inst(cn, list, property, exp): @@ -84,7 +84,7 @@ return PASS, x except Exception: pass - logger.error("%s with %s was not returned" % (cn, exp)) + logger.error("%s with %s was not returned", cn, exp) return FAIL, None diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/RedirectionService/03_RedirectionSAP_errs.py --- a/suites/libvirt-cim/cimtest/RedirectionService/03_RedirectionSAP_errs.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/RedirectionService/03_RedirectionSAP_errs.py Thu Feb 05 00:52:07 2009 -0800 @@ -140,7 +140,7 @@ if status != PASS: - logger.error(" -------------- FAILED %s ----------- : " % test_val) + logger.error(" -------------- FAILED %s ----------- : ", test_val) break cxml.cim_destroy(options.ip) diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/ResourceAllocationFromPool/01_forward.py --- a/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/01_forward.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/01_forward.py Thu Feb 05 00:52:07 2009 -0800 @@ -82,7 +82,7 @@ for rasd in rasd_list: guest, dev, status = parse_instance_id(rasd.InstanceID) if status != PASS: - logger.error("Unable to parse InstanceID: %s" % rasd.InstanceID) + logger.error("Unable to parse InstanceID: %s", rasd.InstanceID) return rasd_insts, FAIL if guest == guest_name: @@ -108,7 +108,7 @@ for inst in list: guest, id, status = parse_instance_id(inst.InstanceID) if status != PASS: - logger.error("Unable to parse InstanceID: %s" % inst.InstanceID) + logger.error("Unable to parse InstanceID: %s", inst.InstanceID) return None, FAIL if id == exp_id: @@ -169,8 +169,8 @@ if rasd['InstanceID'] == exp_rasd.InstanceID: status = PASS else: - logger.info("Got %s instead of %s" % (rasd['InstanceID'], - exp_rasd.InstanceID)) + logger.info("Got %s instead of %s", rasd['InstanceID'], + exp_rasd.InstanceID) status = FAIL if status != PASS: diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/ResourceAllocationFromPool/02_reverse.py --- a/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/02_reverse.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/02_reverse.py Thu Feb 05 00:52:07 2009 -0800 @@ -81,7 +81,7 @@ for rasd in rasd_list: guest, dev, status = parse_instance_id(rasd.InstanceID) if status != PASS: - logger.error("Unable to parse InstanceID: %s" % rasd.InstanceID) + logger.error("Unable to parse InstanceID: %s", rasd.InstanceID) return rasd_insts, FAIL if guest == guest_name: @@ -107,7 +107,7 @@ for inst in list: guest, id, status = parse_instance_id(inst.InstanceID) if status != PASS: - logger.error("Unable to parse InstanceID: %s" % inst.InstanceID) + logger.error("Unable to parse InstanceID: %s", inst.InstanceID) return None, FAIL if id == exp_id: diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/ResourceAllocationFromPool/03_forward_errs.py --- a/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/03_forward_errs.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/03_forward_errs.py Thu Feb 05 00:52:07 2009 -0800 @@ -65,13 +65,15 @@ logger.info("Got excepted rc code and error string") status = PASS else: - logger.error("Unexpected rc code %s and description %s\n" %(rc, desc)) + logger.error("Unexpected rc code %s and description %s\n", rc, desc) except Exception, details: logger.error("Unknown exception happened") logger.error(details) if rc == 0: - logger.error("ResourceAllocationFromPool associator should NOT return excepted result with a wrong InstanceID value of %s input" %k) + logger.error("ResourceAllocationFromPool associator should NOT \ + return excepted result with a wrong InstanceID \ + value of %s input", k) status = FAIL return status diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/ResourceAllocationFromPool/04_reverse_errs.py --- a/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/04_reverse_errs.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/04_reverse_errs.py Thu Feb 05 00:52:07 2009 -0800 @@ -63,13 +63,16 @@ logger.info("Got excepted rc code and error string") status = PASS else: - logger.error("Unexpected rc code %s and description %s\n" %(rc, desc)) + logger.error("Unexpected rc code %s and description %s\n", + rc, desc) except Exception, details: logger.error("Unknown exception happened") logger.error(details) if rc == 0: - logger.error("ResourceAllocationSettingData should NOT return excepted result with a wrong InstanceID value of %s input" %k) + logger.error("ResourceAllocationSettingData should NOT return \ + excepted result with a wrong InstanceID \ + value of %s input", k) status = FAIL return status diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/ResourceAllocationFromPool/05_RAPF_err.py --- a/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/05_RAPF_err.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/05_RAPF_err.py Thu Feb 05 00:52:07 2009 -0800 @@ -101,7 +101,7 @@ ret = PASS if ret != PASS: - logger.error("%s with %s was not returned" % (classname, exp_val)) + logger.error("%s with %s was not returned", classname, exp_val) vsxml.undefine(server) status = FAIL diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/ResourcePool/01_enum.py --- a/suites/libvirt-cim/cimtest/ResourcePool/01_enum.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ResourcePool/01_enum.py Thu Feb 05 00:52:07 2009 -0800 @@ -79,8 +79,8 @@ def verify_fields(pool_list, poolname, cn): status = PASS if len(poolname) < 1: - logger.error("%s return %i instances, expected atleast 1 instance" \ - % (cn, len(poolname))) + logger.error("%s return %i instances, expected atleast 1 instance", + cn, len(poolname)) return FAIL exp_value = pool_list[cn][0] for i in range(0, len(poolname)): @@ -119,14 +119,14 @@ try: mempool = EnumInstances(ip, mp) except Exception: - logger.error(Globals.CIM_ERROR_ENUMERATE % mp) + logger.error(Globals.CIM_ERROR_ENUMERATE, mp) return FAIL status = verify_fields(pool_list, mempool, mp) try: propool = EnumInstances(ip, pp) except Exception: - logger.error(Globals.CIM_ERROR_ENUMERATE % pp) + logger.error(Globals.CIM_ERROR_ENUMERATE, pp) return FAIL status = verify_fields(pool_list, propool, pp) @@ -134,14 +134,14 @@ try: diskpool = EnumInstances(ip, dp) except Exception: - logger.error(Globals.CIM_ERROR_ENUMERATE % dp) + logger.error(Globals.CIM_ERROR_ENUMERATE, dp) return FAIL status = verify_fields(pool_list, diskpool, dp) try: netpool = EnumInstances(ip, np) except Exception: - logger.error(Globals.CIM_ERROR_ENUMERATE % np) + logger.error(Globals.CIM_ERROR_ENUMERATE, np) return FAIL status = verify_fields(pool_list, netpool, np) diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/ResourcePoolConfigurationCapabilities/01_enum.py --- a/suites/libvirt-cim/cimtest/ResourcePoolConfigurationCapabilities/01_enum.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ResourcePoolConfigurationCapabilities/01_enum.py Thu Feb 05 00:52:07 2009 -0800 @@ -43,7 +43,7 @@ if len(rpcc) != 1: Globals.logger.error("%s_ResourcePoolConfigurationCapabilities return %i instances, \ - excepted only 1 instance" % (options.virt, len(rpcc))) + excepted only 1 instance", options.virt, len(rpcc)) return FAIL if rpcc[0].InstanceID != "RPCC": Globals.logger.error("error result of enum ResourcePoolConfigurationCapabilities") diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/01_enum.py --- a/suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/01_enum.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/01_enum.py Thu Feb 05 00:52:07 2009 -0800 @@ -51,7 +51,7 @@ try: rpcservice = rpcs.enumerate(server, classname) except Exception: - logger.error(Globals.CIM_ERROR_ENUMERATE % classname) + logger.error(Globals.CIM_ERROR_ENUMERATE, classname) return FAIL valid_service = {"Name" : "RPCS", diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/04_CreateChildResourcePool.py --- a/suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/04_CreateChildResourcePool.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/04_CreateChildResourcePool.py Thu Feb 05 00:52:07 2009 -0800 @@ -72,8 +72,8 @@ logger.info("Error string is '%s'", desc) return PASS else: - logger.error("Unexpected rc code %s and description %s\n" \ - %(err_no, desc)) + logger.error("Unexpected rc code %s and description %s\n", + err_no, desc) return FAIL logger.error("The execution should not have reached here!!") diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/05_AddResourcesToResourcePool.py --- a/suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/05_AddResourcesToResourcePool.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/05_AddResourcesToResourcePool.py Thu Feb 05 00:52:07 2009 -0800 @@ -72,8 +72,8 @@ logger.info("Error string is '%s'", desc) return PASS else: - logger.error("Unexpected rc code %s and description %s\n" \ - %(err_no, desc)) + logger.error("Unexpected rc code %s and description %s\n", + err_no, desc) print desc return XFAIL_RC(bug) diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/06_RemoveResourcesFromResourcePool.py --- a/suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/06_RemoveResourcesFromResourcePool.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/06_RemoveResourcesFromResourcePool.py Thu Feb 05 00:52:07 2009 -0800 @@ -70,8 +70,8 @@ logger.info("Error string is '%s'", desc) return PASS else: - logger.error("Unexpected rc code %s and description %s\n" \ - %(err_no, desc)) + logger.error("Unexpected rc code %s and description %s\n", + err_no, desc) return FAIL logger.error("The execution should not have reached here!!") diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/07_DeleteResourcePool.py --- a/suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/07_DeleteResourcePool.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/07_DeleteResourcePool.py Thu Feb 05 00:52:07 2009 -0800 @@ -66,8 +66,8 @@ logger.info("Error string is '%s'", desc) return PASS else: - logger.error("Unexpected rc code %s and description %s\n" \ - %(err_no, desc)) + logger.error("Unexpected rc code %s and description %s\n", + err_no, desc) return FAIL logger.error("The execution should not have reached here!!") diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/SettingsDefine/01_forward.py --- a/suites/libvirt-cim/cimtest/SettingsDefine/01_forward.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/SettingsDefine/01_forward.py Thu Feb 05 00:52:07 2009 -0800 @@ -77,7 +77,7 @@ for dev in dev_list: guest, dev_id, status = parse_instance_id(dev.DeviceID) if status != PASS: - logger.error("Unable to parse InstanceID: %s" % dev.DeviceID) + logger.error("Unable to parse InstanceID: %s", dev.DeviceID) return dev_insts, FAIL if guest == guest_name: @@ -102,7 +102,7 @@ for rasd in rasd_list: guest, dev, status = parse_instance_id(rasd.InstanceID) if status != PASS: - logger.error("Unable to parse InstanceID: %s" % rasd.InstanceID) + logger.error("Unable to parse InstanceID: %s", rasd.InstanceID) return rasd_insts, FAIL if guest == guest_name: @@ -126,8 +126,8 @@ if rasd['InstanceID'] == exp_rasd.InstanceID: status = PASS else: - logger.info("Got %s instead of %s" % (rasd['InstanceID'], - exp_rasd.InstanceID)) + logger.info("Got %s instead of %s", rasd['InstanceID'], + exp_rasd.InstanceID) status = FAIL if status != PASS: diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/SettingsDefine/02_reverse.py --- a/suites/libvirt-cim/cimtest/SettingsDefine/02_reverse.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/SettingsDefine/02_reverse.py Thu Feb 05 00:52:07 2009 -0800 @@ -104,7 +104,7 @@ for rasd in rasd_list: guest, dev, status = parse_instance_id(rasd.InstanceID) if status != PASS: - logger.error("Unable to parse InstanceID: %s" % rasd.InstanceID) + logger.error("Unable to parse InstanceID: %s", rasd.InstanceID) return rasd_insts, FAIL if guest == guest_name: @@ -124,7 +124,7 @@ for dev in dev_list: guest, dev_id, status = parse_instance_id(dev.DeviceID) if status != PASS: - logger.error("Unable to parse InstanceID: %s" % dev.DeviceID) + logger.error("Unable to parse InstanceID: %s", dev.DeviceID) return dev_insts, FAIL if guest == guest_name: diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/SettingsDefine/03_sds_fwd_errs.py --- a/suites/libvirt-cim/cimtest/SettingsDefine/03_sds_fwd_errs.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/SettingsDefine/03_sds_fwd_errs.py Thu Feb 05 00:52:07 2009 -0800 @@ -200,7 +200,7 @@ ret_val = try_assoc(conn, classname, ac_classname, keys, field_name=field, expr_values=expr_values[field], bug_no='') if ret_val != PASS: - logger.error("------ FAILED: %s------" % field) + logger.error("------ FAILED: %s------", field) name_val[i] = temp return ret_val diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/SettingsDefineCapabilities/01_forward.py --- a/suites/libvirt-cim/cimtest/SettingsDefineCapabilities/01_forward.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/SettingsDefineCapabilities/01_forward.py Thu Feb 05 00:52:07 2009 -0800 @@ -82,7 +82,7 @@ try: instance = enumclass.GetInstance(ip, pool_class, key_list) except Exception, detail: - logger.error(CIM_ERROR_GETINSTANCE, '%s' % pool_class) + logger.error(CIM_ERROR_GETINSTANCE, '%s', pool_class) logger.error("Exception: %s", detail) sys.exit(FAIL) return instance diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/SystemDevice/01_forward.py --- a/suites/libvirt-cim/cimtest/SystemDevice/01_forward.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/SystemDevice/01_forward.py Thu Feb 05 00:52:07 2009 -0800 @@ -63,7 +63,7 @@ ret = cxml.create(server) if not ret: - logger.error('Unable to create domain %s' % test_dom) + logger.error('Unable to create domain %s', test_dom) return FAIL sd_classname = get_typed_class(virt, 'SystemDevice') diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/SystemDevice/02_reverse.py --- a/suites/libvirt-cim/cimtest/SystemDevice/02_reverse.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/SystemDevice/02_reverse.py Thu Feb 05 00:52:07 2009 -0800 @@ -63,7 +63,7 @@ try: devs = enumclass.EnumInstances(options.ip, cn) except Exception, detail: - logger.error("Exception: %s" % detail) + logger.error("Exception: %s", detail) cxml.destroy(options.ip) cxml.undefine(options.ip) return FAIL @@ -81,7 +81,7 @@ SystemName=dev.SystemName, SystemCreationClassName=dev.SystemCreationClassName) except Exception, detail: - logger.error("Exception: %s" % detail) + logger.error("Exception: %s", detail) cxml.destroy(options.ip) cxml.undefine(options.ip) return FAIL @@ -92,7 +92,7 @@ cxml.undefine(options.ip) return FAIL elif len(systems) != 1: - logger.error("%s systems returned, expected 1" % len(systems)) + logger.error("%s systems returned, expected 1", len(systems)) cxml.destroy(options.ip) cxml.undefine(options.ip) return FAIL @@ -106,9 +106,9 @@ if system.Name == test_dom: status = PASS - logger.info("Examined %s %s" % (system.Name, dev.DeviceID)) + logger.info("Examined %s %s", system.Name, dev.DeviceID) else: - logger.error("Association returned wrong system: %s" % + logger.error("Association returned wrong system: %s", system.Name) cxml.destroy(options.ip) diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/SystemDevice/03_fwderrs.py --- a/suites/libvirt-cim/cimtest/SystemDevice/03_fwderrs.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/SystemDevice/03_fwderrs.py Thu Feb 05 00:52:07 2009 -0800 @@ -101,7 +101,7 @@ names[item] = ("DeviceID" , dev.DeviceID ) except Exception, details: - logger.info("Exception %s for class %s" % (details , item)) + logger.info("Exception %s for class %s", details , item) return FAIL if len(name) <=0 or len(names) <= 0: @@ -150,10 +150,10 @@ if ((rc != exp_rc1 and desc.find(exp_desc1) <= 0) and (rc != exp_rc2 and desc.find(exp_desc2) <= 0)): status = FAIL - logger.info("Class = %s , key = %s , keyval = %s " \ - % (item, i , keyval)) - logger.info("Unexpected rc %s and desc %s for %s" - % (rc, desc, item)) + logger.info("Class = %s , key = %s , keyval = %s ", + item, i, keyval) + logger.info("Unexpected rc %s and desc %s for %s", + rc, desc, item) except Exception, details: logger.info("Unknown exception happened") @@ -162,8 +162,8 @@ if rc == 0: logger.info("Success returned for wrong key and ID") - logger.info("Class = %s , key = %s , keyval = %s " % - (item, i , keyval)) + logger.info("Class = %s , key = %s , keyval = %s ", + item, i , keyval) return XFAIL_RC(bug) except Exception, details: diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/VSSD/01_enum.py --- a/suites/libvirt-cim/cimtest/VSSD/01_enum.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VSSD/01_enum.py Thu Feb 05 00:52:07 2009 -0800 @@ -67,28 +67,28 @@ break if found == 1: if vssd.ElementName != test_dom: - logger.error("Invalid ElementName- expecting %s, go %s" % + logger.error("Invalid ElementName- expecting %s, go %s", test_dom, vssd.ElementName) vsxml.undefine(options.ip) return FAIL - logger.info("Examining VSSD class for the Guest %s" % test_dom) + logger.info("Examining VSSD class for the Guest %s", test_dom) try: name = vssd.ElementName idx = live_cs.index(name) del live_cs[idx] except BaseException, details: - logger.error("Exception %s" % details) - logger.error("Provider reports VSSD `%s', but xm does not" % + logger.error("Exception %s", details) + logger.error("Provider reports VSSD `%s', but xm does not", vssd.ElementName) status = FAIL else: - logger.error("Missing VSSD instance for the system %s " % test_dom) + logger.error("Missing VSSD instance for the system %s ", test_dom) status = FAIL except BaseException, details: - logger.error("Exception %s" % details) + logger.error("Exception %s", details) status = FAIL vsxml.undefine(options.ip) diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/VSSD/02_bootldr.py --- a/suites/libvirt-cim/cimtest/VSSD/02_bootldr.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VSSD/02_bootldr.py Thu Feb 05 00:52:07 2009 -0800 @@ -66,14 +66,14 @@ name = system.ElementName if name == test_dom : if system.Bootloader == bootldr : - logger.info("BootLoader for domain %s is %s" % (name, bootldr )) + logger.info("BootLoader for domain %s is %s", name, bootldr) status = 0 else: - logger.error("Bootloader is not set for VS %s" % test_dom) + logger.error("Bootloader is not set for VS %s", test_dom) status = 1 except Exception, detail : - logger.error("Exception : %s" % detail) + logger.error("Exception : %s", detail) status = 1 xmlfile.undefine(options.ip) diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/VSSD/04_vssd_to_rasd.py --- a/suites/libvirt-cim/cimtest/VSSD/04_vssd_to_rasd.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VSSD/04_vssd_to_rasd.py Thu Feb 05 00:52:07 2009 -0800 @@ -101,7 +101,7 @@ # When no records are found. if ret != PASS: - logger.error("%s with %s was not returned" % (classname, exp_val)) + logger.error("%s with %s was not returned", classname, exp_val) status = FAIL # We expect only one record to be returned. @@ -153,7 +153,7 @@ InstanceID = instIdval) if len(vssdc_assoc_info) == 1 and \ vssdc_assoc_info[0].classname == 'LXC_MemResourceAllocationSettingData': - logger.info("%s returned expect objects" % assoc_cname) + logger.info("%s returned expect objects", assoc_cname) elif len(vssdc_assoc_info) < 4: logger.error("%s returned %i %s objects, expected 4", assoc_cname, len(vssdc_assoc_info), qcn) @@ -161,7 +161,7 @@ except Exception, details: logger.error(CIM_ERROR_ASSOCIATORS, assoc_cname) - logger.error("Exception : %s" % details) + logger.error("Exception : %s", details) status = FAIL return status, vssdc_assoc_info @@ -202,7 +202,7 @@ logger.error("Mistmatching %s values", CCName ) break except Exception, detail : - logger.error("Exception in verify_rasd_values function: %s" % detail) + logger.error("Exception in verify_rasd_values function: %s", detail) status = FAIL return status diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/VirtualSystemManagementService/01_definesystem_name.py --- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/01_definesystem_name.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/01_definesystem_name.py Thu Feb 05 00:52:07 2009 -0800 @@ -39,12 +39,12 @@ ret = cxml.cim_define(options.ip) if not ret: - logger.error("Unable to define %s" % default_dom) + logger.error("Unable to define %s", default_dom) return FAIL status = cxml.cim_start(options.ip) if status != PASS: - logger.error("Failed to start the defined domain: %s" % default_dom) + logger.error("Failed to start the defined domain: %s", default_dom) cxml.cim_destroy(options.ip) cxml.undefine(options.ip) diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/VirtualSystemManagementService/02_destroysystem.py --- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/02_destroysystem.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/02_destroysystem.py Thu Feb 05 00:52:07 2009 -0800 @@ -76,7 +76,7 @@ list_after = domain_list(options.ip, options.virt) if default_dom in list_after: - logger.error("Domain %s not destroyed: provider didn't return error" % \ + logger.error("Domain %s not destroyed: provider didn't return error", default_dom) cleanup_env(options.ip, cxml) status = FAIL diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/VirtualSystemManagementService/05_destroysystem_neg.py --- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/05_destroysystem_neg.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/05_destroysystem_neg.py Thu Feb 05 00:52:07 2009 -0800 @@ -73,7 +73,7 @@ logger.info('Got expected error desc: %s',err_desc) return PASS - logger.error('destroy_fail>> %s: Error executing DestroySystem' % tc) + logger.error('destroy_fail>> %s: Error executing DestroySystem', tc) logger.error(details) return FAIL diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/VirtualSystemManagementService/07_addresource_neg.py --- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/07_addresource_neg.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/07_addresource_neg.py Thu Feb 05 00:52:07 2009 -0800 @@ -57,7 +57,7 @@ bad_inst = 'instance of what ever { dd = 3; //\ ]&' ret = service.AddResourceSettings(AffectedConfiguration=vssd_ref, ResourceSettings=[bad_inst]) - logger.info('ret[0] = %s' % ret[0]) + logger.info('ret[0] = %s', ret[0]) if ret[0] == None: logger.error('AddRS should NOT return OK with wrong RS input') rc = 0 @@ -66,8 +66,8 @@ logger.info('Got expected rc code and error string.') status = PASS else: - logger.error('Unexpected rc code %s and description:\n %s' % - (rc, desc)) + logger.error('Unexpected rc code %s and description:\n %s', + rc, desc) status = FAIL except Exception, details: logger.error('Error invoking AddRS') diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/VirtualSystemManagementService/09_procrasd_persist.py --- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/09_procrasd_persist.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/09_procrasd_persist.py Thu Feb 05 00:52:07 2009 -0800 @@ -104,7 +104,7 @@ status = check_proc_sched(options.ip, options.virt) if status != PASS: - raise Exception("%s CPU scheduling not set properly", default_dom) + raise Exception("%s CPU scheduling not set properly" % default_dom) status = PASS diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/VirtualSystemManagementService/10_hv_version.py --- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/10_hv_version.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/10_hv_version.py Thu Feb 05 00:52:07 2009 -0800 @@ -50,14 +50,14 @@ local_ver = get_hv_ver(options.ip, options.virt) if cim_ver != local_ver: - logger.error("CIM says version is `%s', but libvirt says `%s'" \ - % (cim_ver, local_ver)) + logger.error("CIM says version is `%s', but libvirt says `%s'", + cim_ver, local_ver) if options.virt == 'LXC': return XFAIL_RC(bug_libvirt) else: return FAIL else: - logger.info("Verified %s == %s" % (cim_ver, local_ver)) + logger.info("Verified %s == %s", cim_ver, local_ver) except Exception, details: logger.error(details) return FAIL diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/VirtualSystemManagementService/11_define_memrasdunits.py --- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/11_define_memrasdunits.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/11_define_memrasdunits.py Thu Feb 05 00:52:07 2009 -0800 @@ -67,7 +67,7 @@ ret = cxml.cim_define(options.ip) if not ret: - logger.error("DefineSystem with (%s) units failed" % units) + logger.error("DefineSystem with (%s) units failed", units) return FAIL return PASS @@ -94,10 +94,10 @@ cim_kb = int(the_rasd["VirtualQuantity"]) if cim_kb != mem_kb: - logger.error("CIM reports %i KB instead of %i KB" % (cim_kb, mem_kb)) + logger.error("CIM reports %i KB instead of %i KB", cim_kb, mem_kb) return FAIL - logger.info("Verified %i KB" % mem_kb) + logger.info("Verified %i KB", mem_kb) return PASS diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/VirtualSystemManagementService/12_referenced_config.py --- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/12_referenced_config.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/12_referenced_config.py Thu Feb 05 00:52:07 2009 -0800 @@ -50,12 +50,12 @@ def setup_first_guest(ip, virt, cxml): ret = cxml.cim_define(ip) if not ret: - logger.error("Unable to define %s using DefineSystem()" % test_dom) + logger.error("Unable to define %s using DefineSystem()", test_dom) return FAIL, None status = cxml.cim_start(ip) if status != PASS: - logger.error("Unable to start %s" % test_dom) + logger.error("Unable to start %s", test_dom) return FAIL, "define" return PASS, "start" @@ -98,7 +98,7 @@ ret = cxml2.cim_define(ip, ref_conf=ref) if not ret: - logger.error("Unable to define %s using DefineSystem()" % test_dom2) + logger.error("Unable to define %s using DefineSystem()", test_dom2) return FAIL, None return PASS, "define" diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/VirtualSystemManagementService/13_refconfig_additional_devs.py --- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/13_refconfig_additional_devs.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/13_refconfig_additional_devs.py Thu Feb 05 00:52:07 2009 -0800 @@ -60,33 +60,33 @@ def verify_no_dups(ip, virt, cxml, dom): if cxml.xml_get_disk_source() != cxml.dasd.Address: - logger.error("%s: Exp disk source %s" % (dom, cxml.dasd.Address)) + logger.error("%s: Exp disk source %s", dom, cxml.dasd.Address) return FAIL if cxml.xml_get_disk_dev() != cxml.dasd.VirtualDevice: - logger.error("%s: Exp disk dev %s" % (dom, cxml.dasd.VirtualDevice)) + logger.error("%s: Exp disk dev %s", dom, cxml.dasd.VirtualDevice) return FAIL if cxml.xml_get_net_type() != cxml.nasd.NetworkType: - logger.error("%s: Exp net type %d" % (dom, cxml.nasd.NetworkType)) + logger.error("%s: Exp net type %d", dom, cxml.nasd.NetworkType) return FAIL if cxml.xml_get_net_mac() != cxml.nasd.Address: - logger.error("%s: Exp net mac %s" % (dom, cxml.nasd.Address)) + logger.error("%s: Exp net mac %s", dom, cxml.nasd.Address) return FAIL vcpus = cxml.xml_get_vcpu() if not vcpus.isdigit(): - logger.error("Unable to get vcpus value for %s" % dom) + logger.error("Unable to get vcpus value for %s", dom) return FAIL if int(vcpus) != cxml.pasd.VirtualQuantity: - logger.error("%s: Exp vcpus %s" % (dom, cxml.pasd.VirtualQuantity)) + logger.error("%s: Exp vcpus %s", dom, cxml.pasd.VirtualQuantity) return FAIL mem = cxml.xml_get_mem() if not mem.isdigit(): - logger.error("Unable to get mem value for %s" % dom) + logger.error("Unable to get mem value for %s", dom) return FAIL if cxml.masd.AllocationUnits == "Bytes": @@ -107,7 +107,7 @@ exp_mem <<= shift if int(mem) != exp_mem: - logger.error("%s: Exp mem %s" % (dom, exp_mem)) + logger.error("%s: Exp mem %s", dom, exp_mem) return FAIL return PASS @@ -123,7 +123,7 @@ try: rc = cxml.cim_define(options.ip) if not rc: - logger.error("Unable define domain %s" % test_dom) + logger.error("Unable define domain %s", test_dom) raise Exception("Unable to define domain %s" % test_dom) ref = get_vssd_ref(options.ip, options.virt) @@ -132,7 +132,7 @@ rc = cxml2.cim_define(options.ip, ref_conf=ref) if not rc: - logger.error("Unable define domain %s" % test_dom2) + logger.error("Unable define domain %s", test_dom2) raise Exception("Unable to define %s" % test_dom2) rc = call_request_state_change(test_dom2, options.ip, diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/VirtualSystemMigrationService/01_migratable_host.py --- a/suites/libvirt-cim/cimtest/VirtualSystemMigrationService/01_migratable_host.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemMigrationService/01_migratable_host.py Thu Feb 05 00:52:07 2009 -0800 @@ -48,7 +48,7 @@ cxml = virt_xml(guest_name) ret = cxml.create(ip) if not ret: - logger.error("Error create domain %s" % guest_name) + logger.error("Error create domain %s", guest_name) return FAIL, None, cxml status, dom_cs = poll_for_state_change(ip, virt, guest_name, @@ -104,8 +104,8 @@ status, ret = migrate_guest_to_host(service, cs_ref, target_ip) if status == FAIL: - logger.error("MigrateVirtualSystemToHost: unexpected list length %s" - % len(ret)) + logger.error("MigrateVirtualSystemToHost: unexpected list length %s", + len(ret)) cxml.destroy(options.ip) cxml.undefine(options.ip) return status diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/VirtualSystemMigrationService/02_host_migrate_type.py --- a/suites/libvirt-cim/cimtest/VirtualSystemMigrationService/02_host_migrate_type.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemMigrationService/02_host_migrate_type.py Thu Feb 05 00:52:07 2009 -0800 @@ -46,7 +46,7 @@ cxml = virt_xml(guest_name) cxml.cim_define(ip) except Exception: - logger.error("Error define domain %s" % guest_name) + logger.error("Error define domain %s", guest_name) return FAIL, None classname = 'Xen_ComputerSystem' @@ -106,7 +106,7 @@ return FAIL, None except Exception: - logger.error("Error start domain %s" % guest_name) + logger.error("Error start domain %s", guest_name) return FAIL, None return PASS, cxml @@ -156,11 +156,11 @@ break logger.info("Migrating guest with the following options:") - logger.info("%s" % item) + logger.info("%s", item) status, ret = migrate_guest_to_host(service, cs_ref, target_ip, item) if status == FAIL: - logger.error("MigrateVirtualSystemToHost: unexpected list length %s" - % len(ret)) + logger.error("MigrateVirtualSystemToHost: unexpected list length %s", + len(ret)) cxml.destroy(options.ip) cxml.undefine(options.ip) return status diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/VirtualSystemMigrationService/05_migratable_host_errs.py --- a/suites/libvirt-cim/cimtest/VirtualSystemMigrationService/05_migratable_host_errs.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemMigrationService/05_migratable_host_errs.py Thu Feb 05 00:52:07 2009 -0800 @@ -43,13 +43,13 @@ cxml = virt_xml(test_dom) ret = cxml.cim_define(server) if not ret: - logger.error("Error define domain %s" % test_dom ) + logger.error("Error define domain %s", test_dom ) return FAIL status = cxml.cim_start(server) if status != PASS: cxml.undefine(server) - logger.error("Error start domain %s" % test_dom ) + logger.error("Error start domain %s", test_dom ) return status status = FAIL diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/01_forward.py --- a/suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/01_forward.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/01_forward.py Thu Feb 05 00:52:07 2009 -0800 @@ -116,16 +116,16 @@ try: if len(assoc_info) != 1: - logger.error("%s returned %i resource objects for '%s'" % \ - (an, len(assoc_info), cn)) + logger.error("%s returned %i resource objects for '%s'", + an, len(assoc_info), cn) return FAIL status = compare_all_prop(assoc_info[0], vssd) if status != PASS: logger.error("Properties of inst returned by %s didn't \ - match expected" % assoc_info[0].classname) + match expected", assoc_info[0].classname) return FAIL except Exception, detail : - logger.error("Exception in assoc_values function: %s" % detail) + logger.error("Exception in assoc_values function: %s", detail) return FAIL return PASS @@ -166,12 +166,12 @@ try: vssd = enumclass.GetInstance(options.ip, vssd_cn, key_list) if vssd is None: - logger.error("VSSD instance for %s not found" % test_dom) + logger.error("VSSD instance for %s not found", test_dom) cxml.undefine(options.ip) return FAIL except Exception, detail : logger.error(Globals.CIM_ERROR_GETINSTANCE, vssd_cn) - logger.error("Exception : %s" % detail) + logger.error("Exception : %s", detail) cxml.undefine(options.ip) return FAIL @@ -191,7 +191,7 @@ except Exception, detail : logger.error(Globals.CIM_ERROR_ASSOCIATORS, an) - logger.error("Exception : %s" % detail) + logger.error("Exception : %s", detail) status = FAIL cxml.undefine(options.ip) diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/02_reverse.py --- a/suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/02_reverse.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/02_reverse.py Thu Feb 05 00:52:07 2009 -0800 @@ -70,7 +70,7 @@ return FAIL except Exception, detail : - logger.error("Exception evaluating InstanceID: %s" % detail) + logger.error("Exception evaluating InstanceID: %s", detail) return FAIL return PASS @@ -139,7 +139,7 @@ break except Exception, detail : - logger.error("Exception in assoc_values function: %s" % detail) + logger.error("Exception in assoc_values function: %s", detail) status = FAIL return status diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/03_vssdc_fwd_errs.py --- a/suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/03_vssdc_fwd_errs.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/03_vssdc_fwd_errs.py Thu Feb 05 00:52:07 2009 -0800 @@ -116,13 +116,13 @@ ret = cxml.cim_define(options.ip) if not ret: - logger.error('Unable to define domain %s' % test_dom) + logger.error('Unable to define domain %s', test_dom) return FAIL status = cxml.cim_start(options.ip) if status != PASS: cxml.undefine(options.ip) - logger.error('Unable to start domain %s' % test_dom) + logger.error('Unable to start domain %s', test_dom) return FAIL global conn diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/04_vssdc_rev_errs.py --- a/suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/04_vssdc_rev_errs.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/04_vssdc_rev_errs.py Thu Feb 05 00:52:07 2009 -0800 @@ -109,13 +109,13 @@ ret = cxml.cim_define(options.ip) if not ret: - logger.error('Unable to define domain %s' % test_dom) + logger.error('Unable to define domain %s', test_dom) return FAIL status = cxml.cim_start(options.ip) if status != PASS: cxml.undefine(options.ip) - logger.error('Unable to start domain %s' % test_dom) + logger.error('Unable to start domain %s', test_dom) return FAIL global conn From yunguol at cn.ibm.com Thu Feb 5 09:07:14 2009 From: yunguol at cn.ibm.com (yunguol at cn.ibm.com) Date: Thu, 05 Feb 2009 01:07:14 -0800 Subject: [Libvirt-cim] [PATCH] [TEST] Update tests to meet 80-char width limit Message-ID: <66c41a4a47c1410fdf6b.1233824834@elm3b197.beaverton.ibm.com> # HG changeset patch # User Guolian Yun # Date 1233824793 28800 # Node ID 66c41a4a47c1410fdf6be8bf46cc4c6bdafd7971 # Parent edfa908a60d058c7f1ba7394bd1d818999802287 [TEST] Update tests to meet 80-char width limit 1) Split lines to 80-char width limit Tested for KVM/LXC with current sources Signed-off-by: Guolian Yun diff -r edfa908a60d0 -r 66c41a4a47c1 suites/libvirt-cim/cimtest/ResourceAllocationFromPool/03_forward_errs.py --- a/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/03_forward_errs.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/03_forward_errs.py Thu Feb 05 01:06:33 2009 -0800 @@ -55,10 +55,9 @@ instanceref = CIMInstanceName(k, keybindings = {"InstanceID" : v}) names = [] - + rafp = get_typed_class(options.virt, "ResourceAllocationFromPool") try: - names = conn.AssociatorNames(instanceref, - AssocClass = get_typed_class(options.virt, "ResourceAllocationFromPool")) + names = conn.AssociatorNames(instanceref, AssocClass = rafp) rc = 0 except pywbem.CIMError, (rc, desc): if rc == exp_rc and desc.find(exp_desc) >= 0: diff -r edfa908a60d0 -r 66c41a4a47c1 suites/libvirt-cim/cimtest/ResourceAllocationFromPool/04_reverse_errs.py --- a/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/04_reverse_errs.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/04_reverse_errs.py Thu Feb 05 01:06:33 2009 -0800 @@ -53,10 +53,9 @@ instanceref = CIMInstanceName(k, keybindings = {"InstanceID" : v}) names = [] - + rafp = get_typed_class(options.virt, "ResourceAllocationFromPool") try: - names = conn.AssociatorNames(instanceref, - AssocClass = get_typed_class(options.virt, "ResourceAllocationFromPool")) + names = conn.AssociatorNames(instanceref, AssocClass = rafp) rc = 0 except pywbem.CIMError, (rc, desc): if rc == exp_rc and desc.find(exp_desc) >= 0: diff -r edfa908a60d0 -r 66c41a4a47c1 suites/libvirt-cim/cimtest/VirtualSystemMigrationSettingData/01_enum.py --- a/suites/libvirt-cim/cimtest/VirtualSystemMigrationSettingData/01_enum.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemMigrationSettingData/01_enum.py Thu Feb 05 01:06:33 2009 -0800 @@ -39,7 +39,8 @@ def main(): options = main.options # Expected results from enumeration - cn = get_typed_class(options.virt, "VirtualSystemMigrationSettingData") + cn = get_typed_class(options.virt, + "VirtualSystemMigrationSettingData") instid = 'MigrationSettingData' MType = 2 #[CIM_MIGRATE_LIVE] priority = 0 diff -r edfa908a60d0 -r 66c41a4a47c1 suites/libvirt-cim/cimtest/VirtualSystemSnapshotService/01_enum.py --- a/suites/libvirt-cim/cimtest/VirtualSystemSnapshotService/01_enum.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemSnapshotService/01_enum.py Thu Feb 05 01:06:33 2009 -0800 @@ -72,7 +72,9 @@ return FAIL if verify_vs_sservice['SystemCreationClassName'] != classname: - print_error('SystemCreationClassName', verify_vs_sservice['SystemCreationClassName'], classname) + print_error('SystemCreationClassName', + verify_vs_sservice['SystemCreationClassName'], + classname) return FAIL return PASS From yunguol at cn.ibm.com Thu Feb 5 09:20:20 2009 From: yunguol at cn.ibm.com (yunguol at cn.ibm.com) Date: Thu, 05 Feb 2009 01:20:20 -0800 Subject: [Libvirt-cim] [PATCH] [TEST Split lines to 80-char width limit in SettingsDefineCapabilities/01_forward.py Message-ID: <3fc2b8a203339c6a59b5.1233825620@elm3b197.beaverton.ibm.com> # HG changeset patch # User Guolian Yun # Date 1233825583 28800 # Node ID 3fc2b8a203339c6a59b5f0e2a159e3e0a802ea6d # Parent edfa908a60d058c7f1ba7394bd1d818999802287 [TEST Split lines to 80-char width limit in SettingsDefineCapabilities/01_forward.py This tc fails because of the number of RASD objects, I've sent a patch with fix Tested for KVM/LXC with current sources Signed-off-by: Guolian Yun diff -r edfa908a60d0 -r 3fc2b8a20333 suites/libvirt-cim/cimtest/SettingsDefineCapabilities/01_forward.py --- a/suites/libvirt-cim/cimtest/SettingsDefineCapabilities/01_forward.py Tue Feb 03 09:37:05 2009 -0800 +++ b/suites/libvirt-cim/cimtest/SettingsDefineCapabilities/01_forward.py Thu Feb 05 01:19:43 2009 -0800 @@ -92,10 +92,15 @@ Creating the lists that will be used for comparisons. """ + memrasd = get_typed_class(virt, "MemResourceAllocationSettingData") + diskrasd = get_typed_class(virt, "DiskResourceAllocationSettingData") + netrasd = get_typed_class(virt, "NetResourceAllocationSettingData") + procrasd = get_typed_class(virt, "ProcResourceAllocationSettingData") + if virt == 'LXC': instlist = [ pool[1].InstanceID ] - cllist = [ get_typed_class(virt, "MemResourceAllocationSettingData") ] - rtype = { get_typed_class(virt, "MemResourceAllocationSettingData") : 4 } + cllist = [ memrasd ] + rtype = { memrasd : 4 } else: instlist = [ pool[0].InstanceID, @@ -103,17 +108,12 @@ pool[2].InstanceID, pool[3].InstanceID ] - cllist = [ - get_typed_class(virt, "DiskResourceAllocationSettingData"), - get_typed_class(virt, "MemResourceAllocationSettingData"), - get_typed_class(virt, "NetResourceAllocationSettingData"), - get_typed_class(virt, "ProcResourceAllocationSettingData") - ] + cllist = [ diskrasd, memrasd, netrasd, procrasd ] rtype = { - get_typed_class(virt, "DiskResourceAllocationSettingData") : 17, - get_typed_class(virt, "MemResourceAllocationSettingData") : 4, - get_typed_class(virt, "NetResourceAllocationSettingData") : 10, - get_typed_class(virt, "ProcResourceAllocationSettingData") : 3 + diskrasd : 17, + memrasd : 4, + netrasd : 10, + procrasd : 3 } rangelist = { "Default" : 0, From yunguol at cn.ibm.com Thu Feb 5 09:11:38 2009 From: yunguol at cn.ibm.com (Guo Lian Yun) Date: Thu, 5 Feb 2009 17:11:38 +0800 Subject: [Libvirt-cim] [PATCH] [TEST] Add CodyingSystem and SubmittingPatches files In-Reply-To: <497685FE.7040108@linux.vnet.ibm.com> Message-ID: libvirt-cim-bounces at redhat.com wrote on 2009-01-21 10:18:38: > Guo Lian Yun wrote: > > > > libvirt-cim-bounces at redhat.com wrote on 2009-01-20 01:01:13: > > > > > > Good. When this patch is applied, I think we should check all the > > > > libraries and test cases > > > > present to make them follow this coding style. Then we can cook > > up new > > > > tc. > > > > > > > > > > Sure. Daisy, if you'd like to look into this, that would be great. > > Thanks! > > > > I'd like to do this. But Spring Festival (Traditional Chinese New > > Year) is coming and I will > > have a vacation from Jan 21 to Feb 03. If it isn't tight on time, I > > will look > > into this when I'm back. > > No problem - sounds like a good plan to me. > I've checked test cases present and updated them to follow below coding styles: 1) Split lines to meet 80-char width limit 2) Use commas instead of percent signs when passing parameters to logger.error() and logger.info() 3) Use percents when passing parameters to Exception() On the next, I will check and update libraries present to follow above coding styles. Thoughts? Thanks! > -- > Kaitlin Rupert > IBM Linux Technology Center > kaitlin at linux.vnet.ibm.com > > _______________________________________________ > Libvirt-cim mailing list > Libvirt-cim at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-cim -------------- next part -------------- An HTML attachment was scrubbed... URL: From deeptik at linux.vnet.ibm.com Thu Feb 5 13:14:53 2009 From: deeptik at linux.vnet.ibm.com (Deepti B Kalakeri) Date: Thu, 05 Feb 2009 18:44:53 +0530 Subject: [Libvirt-cim] [PATCH] [TEST] Add CodyingSystem and SubmittingPatches files In-Reply-To: References: Message-ID: <498AE64D.7050509@linux.vnet.ibm.com> Guo Lian Yun wrote: > > libvirt-cim-bounces at redhat.com wrote on 2009-01-21 10:18:38: > > > Guo Lian Yun wrote: > > > > > > libvirt-cim-bounces at redhat.com wrote on 2009-01-20 01:01:13: > > > > > > > > Good. When this patch is applied, I think we should check > all the > > > > > libraries and test cases > > > > > present to make them follow this coding style. Then we can > cook > > > up new > > > > > tc. > > > > > > > > > > > > > Sure. Daisy, if you'd like to look into this, that would be > great. > > > Thanks! > > > > > > I'd like to do this. But Spring Festival (Traditional Chinese New > > > Year) is coming and I will > > > have a vacation from Jan 21 to Feb 03. If it isn't tight on time, I > > > will look > > > into this when I'm back. > > > > No problem - sounds like a good plan to me. > > > I've checked test cases present and updated them to follow below > coding styles: > > 1) Split lines to meet 80-char width limit > 2) Use commas instead of percent signs when passing parameters to > logger.error() and logger.info() > 3) Use percents when passing parameters to Exception() > > On the next, I will check and update libraries present to follow > above coding styles. > Thoughts? That sounds really good. > > Thanks! > > > -- > > Kaitlin Rupert > > IBM Linux Technology Center > > kaitlin at linux.vnet.ibm.com > > > > _______________________________________________ > > Libvirt-cim mailing list > > Libvirt-cim at redhat.com > > https://www.redhat.com/mailman/listinfo/libvirt-cim > ------------------------------------------------------------------------ > > _______________________________________________ > Libvirt-cim mailing list > Libvirt-cim at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-cim -- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik at linux.vnet.ibm.com From kaitlin at linux.vnet.ibm.com Thu Feb 5 23:19:46 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Thu, 05 Feb 2009 15:19:46 -0800 Subject: [Libvirt-cim] [PATCH] [TEST] #3 Update VSMS 14_define_sys_disk.py to use cim_define() In-Reply-To: <498A70EB.5020806@linux.vnet.ibm.com> References: <2d445349b1e6fc2dff2f.1233789487@localhost.localdomain> <498A70EB.5020806@linux.vnet.ibm.com> Message-ID: <498B7412.9090804@linux.vnet.ibm.com> >> >> - params = { 'vssd' : vssd, >> - 'rasd' : rasd_list - } >> + return rasd_list >> - return params +def verify_disk_path(ip, virt, addr, guest_name): >> + inst = None >> + >> + try: >> + drasd_cn = get_typed_class(virt, >> 'DiskResourceAllocationSettingData') >> + enum_list = EnumInstances(ip, drasd_cn) >> > GetInstance of the DiskRASD would be much more simpler than EnumInstances. > Any reason behind using EnumInstances instead . Using GetInstance() means that you have to know how the InstanceID of the reference you're querying is formatted. The only reason we know how the InstanceID is formatted is because we know how the providers work =) The idea behind CIM is that you don't have to know how the underlying implementation works in order to get information from the providers. So a CIM client shouldn't need to know how we format our InstanceIDs in order to use our providers. I'm not sure how often CIM clients build their own references. In reality, they should be using the references the providers return. They shouldn't be building their own (like we do in cimtest's GetInstance() call). So I try to use EnumInstances() to avoid building my own reference. This forces the providers to return the references for me. cimtest's GetInstance() function really should only take a reference as a parameter instead of taking keys and doing a call to CIMInstanceName(). But faking a reference can be useful in some situations. =) I'm inclined to leave this as is unless you think it'd be easier to read / maintain with GetInstance() in place of EnumInstances(). -- Kaitlin Rupert IBM Linux Technology Center kaitlin at linux.vnet.ibm.com From kaitlin at linux.vnet.ibm.com Thu Feb 5 23:22:46 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Thu, 05 Feb 2009 15:22:46 -0800 Subject: [Libvirt-cim] [PATCH] [TEST]Fix HostSystem/03_hs_to_settdefcap.py with appropriate number of RASD objects for different platforms In-Reply-To: <722d799284c3e5777c9e.1233813328@elm3b197.beaverton.ibm.com> References: <722d799284c3e5777c9e.1233813328@elm3b197.beaverton.ibm.com> Message-ID: <498B74C6.4030700@linux.vnet.ibm.com> > > diff -r edfa908a60d0 -r 722d799284c3 suites/libvirt-cim/cimtest/HostSystem/03_hs_to_settdefcap.py > --- a/suites/libvirt-cim/cimtest/HostSystem/03_hs_to_settdefcap.py Tue Feb 03 09:37:05 2009 -0800 > +++ b/suites/libvirt-cim/cimtest/HostSystem/03_hs_to_settdefcap.py Wed Feb 04 21:54:39 2009 -0800 > @@ -219,6 +219,9 @@ > # For Diskpool, we have info 1 for each of Min, Max, > # default, Increment and 1 for each of PV and FV > # hence 4 * 2 = 8 records > + exp_len = 16 > + elif 'DiskPool' in ap['InstanceID'] and virt == 'KVM' and \ > + curr_cim_rev >= libvirt_rasd_template_changes: > exp_len = 8 These changes were made in rev 805. So using libvirt_rasd_template_changes won't work here. -- Kaitlin Rupert IBM Linux Technology Center kaitlin at linux.vnet.ibm.com From kaitlin at linux.vnet.ibm.com Thu Feb 5 23:25:55 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Thu, 05 Feb 2009 15:25:55 -0800 Subject: [Libvirt-cim] [PATCH] [TEST] Fix SettingsDefineCapabilities/01_forward.py with appropriate RASD objects for different platforms In-Reply-To: <7ee851d72773c1739064.1233813687@elm3b197.beaverton.ibm.com> References: <7ee851d72773c1739064.1233813687@elm3b197.beaverton.ibm.com> Message-ID: <498B7583.2010500@linux.vnet.ibm.com> yunguol at cn.ibm.com wrote: > # HG changeset patch > # User Guolian Yun > # Date 1233813653 28800 > # Node ID 7ee851d72773c17390641ee50ec20387f9af08d1 > # Parent edfa908a60d058c7f1ba7394bd1d818999802287 > [TEST] Fix SettingsDefineCapabilities/01_forward.py with appropriate RASD objects for different platforms > > Update the number of returned RASD objects to 16 for Xen, 8 for KVM > > Tested for KVM/Xen/LXC with current sources, KVM with F9 rpm. > > Signed-off-by: Guolian Yun > > diff -r edfa908a60d0 -r 7ee851d72773 suites/libvirt-cim/cimtest/SettingsDefineCapabilities/01_forward.py > --- a/suites/libvirt-cim/cimtest/SettingsDefineCapabilities/01_forward.py Tue Feb 03 09:37:05 2009 -0800 > +++ b/suites/libvirt-cim/cimtest/SettingsDefineCapabilities/01_forward.py Wed Feb 04 22:00:53 2009 -0800 > @@ -176,6 +176,9 @@ > # For Diskpool, we have info 1 for each of Min, Max, > # default, Increment and 1 for each of PV and FV > # hence 4 * 2 = 8 records > + exp_len = 16 You need 2 branches here - The value needs to be 8 for: rev >= 707 and rev < 805 It needs to be 16 if rev >= 805. > + elif 'DiskPool' in instid and virt == 'KVM' and \ > + curr_cim_rev >= libvirt_rasd_template_changes: > exp_len = 8 Same here - the change was made in version 805. -- Kaitlin Rupert IBM Linux Technology Center kaitlin at linux.vnet.ibm.com From kaitlin at linux.vnet.ibm.com Thu Feb 5 23:26:15 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Thu, 05 Feb 2009 15:26:15 -0800 Subject: [Libvirt-cim] [PATCH] [TEST]Fix HostSystem/03_hs_to_settdefcap.py with appropriate number of RASD objects for different platforms In-Reply-To: <498B74C6.4030700@linux.vnet.ibm.com> References: <722d799284c3e5777c9e.1233813328@elm3b197.beaverton.ibm.com> <498B74C6.4030700@linux.vnet.ibm.com> Message-ID: <498B7597.9040108@linux.vnet.ibm.com> Kaitlin Rupert wrote: >> >> diff -r edfa908a60d0 -r 722d799284c3 >> suites/libvirt-cim/cimtest/HostSystem/03_hs_to_settdefcap.py >> --- a/suites/libvirt-cim/cimtest/HostSystem/03_hs_to_settdefcap.py >> Tue Feb 03 09:37:05 2009 -0800 >> +++ b/suites/libvirt-cim/cimtest/HostSystem/03_hs_to_settdefcap.py >> Wed Feb 04 21:54:39 2009 -0800 >> @@ -219,6 +219,9 @@ >> # For Diskpool, we have info 1 for each of Min, Max, >> # default, Increment and 1 for each of PV and FV >> # hence 4 * 2 = 8 records >> + exp_len = 16 You need 2 branches here - The value needs to be 8 for: rev >= 707 and rev < 805 It needs to be 16 if rev >= 805. >> + elif 'DiskPool' in ap['InstanceID'] and virt == 'KVM' and \ >> + curr_cim_rev >= libvirt_rasd_template_changes: >> exp_len = 8 > > These changes were made in rev 805. So using > libvirt_rasd_template_changes won't work here. > -- Kaitlin Rupert IBM Linux Technology Center kaitlin at linux.vnet.ibm.com From kaitlin at linux.vnet.ibm.com Fri Feb 6 01:02:05 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Thu, 05 Feb 2009 17:02:05 -0800 Subject: [Libvirt-cim] [PATCH] [TEST] Update test cases to follow the new coding style In-Reply-To: <4bb5b4c89bfddc67ef48.1233824011@elm3b197.beaverton.ibm.com> References: <4bb5b4c89bfddc67ef48.1233824011@elm3b197.beaverton.ibm.com> Message-ID: <498B8C0D.6040205@linux.vnet.ibm.com> > diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/ElementCapabilities/05_hostsystem_cap.py > --- a/suites/libvirt-cim/cimtest/ElementCapabilities/05_hostsystem_cap.py Tue Feb 03 09:37:05 2009 -0800 > +++ b/suites/libvirt-cim/cimtest/ElementCapabilities/05_hostsystem_cap.py Thu Feb 05 00:52:07 2009 -0800 Can you fix the logger() call on line 62? > @@ -76,7 +76,7 @@ > break > > if ret != PASS: > - logger.error("%s with %s was not returned" % (cn, exp_val)) > + logger.error("%s with %s was not returned", cn, exp_val) > status = FAIL > > return status, inst > diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt-cim/cimtest/HostSystem/04_hs_to_EAPF.py > --- a/suites/libvirt-cim/cimtest/HostSystem/04_hs_to_EAPF.py Tue Feb 03 09:37:05 2009 -0800 > +++ b/suites/libvirt-cim/cimtest/HostSystem/04_hs_to_EAPF.py Thu Feb 05 00:52:07 2009 -0800 > @@ -194,8 +194,8 @@ Can you fix the logger() call on line 73? -- Kaitlin Rupert IBM Linux Technology Center kaitlin at linux.vnet.ibm.com From kaitlin at linux.vnet.ibm.com Fri Feb 6 01:07:30 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Thu, 05 Feb 2009 17:07:30 -0800 Subject: [Libvirt-cim] [PATCH] [TEST] Update tests to meet 80-char width limit In-Reply-To: <66c41a4a47c1410fdf6b.1233824834@elm3b197.beaverton.ibm.com> References: <66c41a4a47c1410fdf6b.1233824834@elm3b197.beaverton.ibm.com> Message-ID: <498B8D52.9080404@linux.vnet.ibm.com> > > diff -r edfa908a60d0 -r 66c41a4a47c1 suites/libvirt-cim/cimtest/ResourceAllocationFromPool/03_forward_errs.py > --- a/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/03_forward_errs.py Tue Feb 03 09:37:05 2009 -0800 > +++ b/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/03_forward_errs.py Thu Feb 05 01:06:33 2009 -0800 > @@ -55,10 +55,9 @@ Can you fix line 67 > diff -r edfa908a60d0 -r 66c41a4a47c1 suites/libvirt-cim/cimtest/ResourceAllocationFromPool/04_reverse_errs.py > --- a/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/04_reverse_errs.py Tue Feb 03 09:37:05 2009 -0800 > +++ b/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/04_reverse_errs.py Thu Feb 05 01:06:33 2009 -0800 > @@ -53,10 +53,9 @@ Can you fix lines 45 - 48 > diff -r edfa908a60d0 -r 66c41a4a47c1 suites/libvirt-cim/cimtest/VirtualSystemMigrationSettingData/01_enum.py > --- a/suites/libvirt-cim/cimtest/VirtualSystemMigrationSettingData/01_enum.py Tue Feb 03 09:37:05 2009 -0800 > +++ b/suites/libvirt-cim/cimtest/VirtualSystemMigrationSettingData/01_enum.py Thu Feb 05 01:06:33 2009 -0800 > @@ -39,7 +39,8 @@ Can you also fix line 56 > diff -r edfa908a60d0 -r 66c41a4a47c1 suites/libvirt-cim/cimtest/VirtualSystemSnapshotService/01_enum.py > --- a/suites/libvirt-cim/cimtest/VirtualSystemSnapshotService/01_enum.py Tue Feb 03 09:37:05 2009 -0800 > +++ b/suites/libvirt-cim/cimtest/VirtualSystemSnapshotService/01_enum.py Thu Feb 05 01:06:33 2009 -0800 Can you also fix lines 58 and 63 -- Kaitlin Rupert IBM Linux Technology Center kaitlin at linux.vnet.ibm.com From deeptik at linux.vnet.ibm.com Fri Feb 6 07:13:53 2009 From: deeptik at linux.vnet.ibm.com (Deepti B Kalakeri) Date: Fri, 06 Feb 2009 12:43:53 +0530 Subject: [Libvirt-cim] [PATCH] [TEST Split lines to 80-char width limit in SettingsDefineCapabilities/01_forward.py In-Reply-To: <3fc2b8a203339c6a59b5.1233825620@elm3b197.beaverton.ibm.com> References: <3fc2b8a203339c6a59b5.1233825620@elm3b197.beaverton.ibm.com> Message-ID: <498BE331.4030302@linux.vnet.ibm.com> yunguol at cn.ibm.com wrote: > # HG changeset patch > # User Guolian Yun > # Date 1233825583 28800 > # Node ID 3fc2b8a203339c6a59b5f0e2a159e3e0a802ea6d > # Parent edfa908a60d058c7f1ba7394bd1d818999802287 > [TEST Split lines to 80-char width limit in SettingsDefineCapabilities/01_forward.py > > This tc fails because of the number of RASD objects, I've sent a patch with fix > Tested for KVM/LXC with current sources > > Signed-off-by: Guolian Yun > > diff -r edfa908a60d0 -r 3fc2b8a20333 suites/libvirt-cim/cimtest/SettingsDefineCapabilities/01_forward.py > --- a/suites/libvirt-cim/cimtest/SettingsDefineCapabilities/01_forward.py Tue Feb 03 09:37:05 2009 -0800 > +++ b/suites/libvirt-cim/cimtest/SettingsDefineCapabilities/01_forward.py Thu Feb 05 01:19:43 2009 -0800 > @@ -92,10 +92,15 @@ > Creating the lists that will be used for comparisons. > """ > > + memrasd = get_typed_class(virt, "MemResourceAllocationSettingData") > + diskrasd = get_typed_class(virt, "DiskResourceAllocationSettingData") > + netrasd = get_typed_class(virt, "NetResourceAllocationSettingData") > + procrasd = get_typed_class(virt, "ProcResourceAllocationSettingData") > + > Daisy, Instead of manually adding the vaious RASD's we could probably use the enum_rasds here. The advantage will be that we need not have to be bothered to add a new RASD when that happens. There are # of test cases which require something similar to what you have modified here. For ex: you can refer the SettingsDefine/02_reverse.py tc as a reference. > if virt == 'LXC': > instlist = [ pool[1].InstanceID ] > - cllist = [ get_typed_class(virt, "MemResourceAllocationSettingData") ] > - rtype = { get_typed_class(virt, "MemResourceAllocationSettingData") : 4 } > + cllist = [ memrasd ] > + rtype = { memrasd : 4 } > else: > instlist = [ > pool[0].InstanceID, > @@ -103,17 +108,12 @@ > pool[2].InstanceID, > pool[3].InstanceID > ] > - cllist = [ > - get_typed_class(virt, "DiskResourceAllocationSettingData"), > - get_typed_class(virt, "MemResourceAllocationSettingData"), > - get_typed_class(virt, "NetResourceAllocationSettingData"), > - get_typed_class(virt, "ProcResourceAllocationSettingData") > - ] > + cllist = [ diskrasd, memrasd, netrasd, procrasd ] > rtype = { > - get_typed_class(virt, "DiskResourceAllocationSettingData") : 17, > - get_typed_class(virt, "MemResourceAllocationSettingData") : 4, > - get_typed_class(virt, "NetResourceAllocationSettingData") : 10, > - get_typed_class(virt, "ProcResourceAllocationSettingData") : 3 > + diskrasd : 17, > + memrasd : 4, > + netrasd : 10, > + procrasd : 3 > } > rangelist = { > "Default" : 0, > > _______________________________________________ > Libvirt-cim mailing list > Libvirt-cim at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-cim > -- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik at linux.vnet.ibm.com From yunguol at cn.ibm.com Fri Feb 6 08:42:54 2009 From: yunguol at cn.ibm.com (yunguol at cn.ibm.com) Date: Fri, 06 Feb 2009 00:42:54 -0800 Subject: [Libvirt-cim] [PATCH] [TEST] #2 Fix SettingsDefineCapabilities/01_forward.py with appropriate RASD objects for different platforms Message-ID: <8e2da1911b925709fa5c.1233909774@elm3b197.beaverton.ibm.com> # HG changeset patch # User Guolian Yun # Date 1233909739 28800 # Node ID 8e2da1911b925709fa5ce13d651236fbf73560d2 # Parent 3fc2b8a203339c6a59b5f0e2a159e3e0a802ea6d [TEST] #2 Fix SettingsDefineCapabilities/01_forward.py with appropriate RASD objects for different platforms Updates form 1 to 2: Add two branches of returned RASD objects number: 1) The valule to be 8 for Xen when rev >= 707 and rev < 805 2) The value to be 16 for Xen when rev >= 805 3) The value to be 8 for KVM when rev >= 805 Tested for KVM/Xen/LXC with current sources, KVM with F9 rpm. Signed-off-by: Guolian Yun diff -r 3fc2b8a20333 -r 8e2da1911b92 suites/libvirt-cim/cimtest/SettingsDefineCapabilities/01_forward.py --- a/suites/libvirt-cim/cimtest/SettingsDefineCapabilities/01_forward.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/SettingsDefineCapabilities/01_forward.py Fri Feb 06 00:42:19 2009 -0800 @@ -67,6 +67,7 @@ platform_sup = ['Xen', 'KVM', 'XenFV', 'LXC'] libvirt_rasd_template_changes = 707 +libvirt_rasd_new_changes = 805 memid = "MemoryPool/0" procid = "ProcessorPool/0" @@ -172,10 +173,17 @@ curr_cim_rev, changeset = get_provider_version(virt, server) if 'DiskPool' in instid and (virt =='Xen' or virt == 'XenFV') and \ - curr_cim_rev >= libvirt_rasd_template_changes: + curr_cim_rev >= libvirt_rasd_template_changes and \ + curr_cim_rev < libvirt_rasd_new_changes: # For Diskpool, we have info 1 for each of Min, Max, # default, Increment and 1 for each of PV and FV # hence 4 * 2 = 8 records + exp_len = 8 + elif 'DiskPool' in instid and (virt =='Xen' or virt == 'XenFV') and \ + curr_cim_rev >= libvirt_rasd_new_changes: + exp_len = 16 + elif 'DiskPool' in instid and virt == 'KVM' and \ + curr_cim_rev >= libvirt_rasd_new_changes: exp_len = 8 else: exp_len = 4 From yunguol at cn.ibm.com Fri Feb 6 08:51:11 2009 From: yunguol at cn.ibm.com (yunguol at cn.ibm.com) Date: Fri, 06 Feb 2009 00:51:11 -0800 Subject: [Libvirt-cim] [PATCH] [TEST] #2 Fix HostSystem/03_hs_to_settdefcap.py with appropriate number of RASD objects for different platforms Message-ID: # HG changeset patch # User Guolian Yun # Date 1233910246 28800 # Node ID fb2454096e6662ae955d703c958947659c34256f # Parent 3fc2b8a203339c6a59b5f0e2a159e3e0a802ea6d [TEST] #2 Fix HostSystem/03_hs_to_settdefcap.py with appropriate number of RASD objects for different platforms Updates from 1 to 2: Add two branches of returned RASD objects number: 1) The valule to be 8 for Xen when rev >= 707 and rev < 805 2) The value to be 16 for Xen when rev >= 805 3) The value to be 8 for KVM when rev >= 805 Tested for KVM/Xen/LXC with current sources, KVM with F9 rpm. Signed-off-by: Guolian Yun diff -r 3fc2b8a20333 -r fb2454096e66 suites/libvirt-cim/cimtest/HostSystem/03_hs_to_settdefcap.py --- a/suites/libvirt-cim/cimtest/HostSystem/03_hs_to_settdefcap.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/HostSystem/03_hs_to_settdefcap.py Fri Feb 06 00:50:46 2009 -0800 @@ -56,6 +56,7 @@ test_dom = "domgst_test" test_vcpus = 1 libvirt_rasd_template_changes = 707 +libvirt_rasd_new_changes = 805 def setup_env(server, virt="Xen"): status = PASS @@ -215,10 +216,17 @@ curr_cim_rev, changeset = get_provider_version(virt, server) if 'DiskPool' in ap['InstanceID'] and virt =='Xen' and \ - curr_cim_rev >= libvirt_rasd_template_changes: + curr_cim_rev >= libvirt_rasd_template_changes and \ + curr_cim_rev < libvirt_rasd_new_changes: # For Diskpool, we have info 1 for each of Min, Max, # default, Increment and 1 for each of PV and FV # hence 4 * 2 = 8 records + exp_len = 8 + elif 'DiskPool' in ap['InstanceID'] and virt == 'Xen' and \ + curr_cim_rev >= libvirt_rasd_new_changes: + exp_len = 16 + elif 'DiskPool' in ap['InstanceID'] and virt == 'KVM' and \ + curr_cim_rev >= libvirt_rasd_new_changes: exp_len = 8 else: exp_len = 4 From yunguol at cn.ibm.com Fri Feb 6 08:33:57 2009 From: yunguol at cn.ibm.com (Guo Lian Yun) Date: Fri, 6 Feb 2009 16:33:57 +0800 Subject: [Libvirt-cim] [PATCH] [TEST]Fix HostSystem/03_hs_to_settdefcap.py with appropriate number of RASD objects for different platforms In-Reply-To: <498B7597.9040108@linux.vnet.ibm.com> Message-ID: libvirt-cim-bounces at redhat.com wrote on 2009-02-06 07:26:15: > Kaitlin Rupert wrote: > >> > >> diff -r edfa908a60d0 -r 722d799284c3 > >> suites/libvirt-cim/cimtest/HostSystem/03_hs_to_settdefcap.py > >> --- a/suites/libvirt-cim/cimtest/HostSystem/03_hs_to_settdefcap.py > >> Tue Feb 03 09:37:05 2009 -0800 > >> +++ b/suites/libvirt-cim/cimtest/HostSystem/03_hs_to_settdefcap.py > >> Wed Feb 04 21:54:39 2009 -0800 > >> @@ -219,6 +219,9 @@ > >> # For Diskpool, we have info 1 for each of Min, Max, > >> # default, Increment and 1 for each of PV and FV > >> # hence 4 * 2 = 8 records > >> + exp_len = 16 > > You need 2 branches here - The value needs to be 8 for: rev >= 707 and > rev < 805 > > It needs to be 16 if rev >= 805. > > >> + elif 'DiskPool' in ap['InstanceID'] and virt == 'KVM' and \ > >> + curr_cim_rev >= libvirt_rasd_template_changes: > >> exp_len = 8 > > > > These changes were made in rev 805. So using > > libvirt_rasd_template_changes won't work here. > > I fixed it on #2 patch as follows: Add two branches of returned RASD objects number: 1) The valule to be 8 for Xen when rev >= 707 and rev < 805 2) The value to be 16 for Xen when rev >= 805 3) The value to be 8 for KVM when rev >= 805 > > > > -- > Kaitlin Rupert > IBM Linux Technology Center > kaitlin at linux.vnet.ibm.com > > _______________________________________________ > Libvirt-cim mailing list > Libvirt-cim at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-cim -------------- next part -------------- An HTML attachment was scrubbed... URL: From yunguol at cn.ibm.com Fri Feb 6 08:37:33 2009 From: yunguol at cn.ibm.com (Guo Lian Yun) Date: Fri, 6 Feb 2009 16:37:33 +0800 Subject: [Libvirt-cim] [PATCH] [TEST] Fix SettingsDefineCapabilities/01_forward.py with appropriate RASD objects for different platforms In-Reply-To: <498B7583.2010500@linux.vnet.ibm.com> Message-ID: libvirt-cim-bounces at redhat.com wrote on 2009-02-06 07:25:55: > yunguol at cn.ibm.com wrote: > > # HG changeset patch > > # User Guolian Yun > > # Date 1233813653 28800 > > # Node ID 7ee851d72773c17390641ee50ec20387f9af08d1 > > # Parent edfa908a60d058c7f1ba7394bd1d818999802287 > > [TEST] Fix SettingsDefineCapabilities/01_forward.py with > appropriate RASD objects for different platforms > > > > Update the number of returned RASD objects to 16 for Xen, 8 for KVM > > > > Tested for KVM/Xen/LXC with current sources, KVM with F9 rpm. > > > > Signed-off-by: Guolian Yun > > > > diff -r edfa908a60d0 -r 7ee851d72773 suites/libvirt- > cim/cimtest/SettingsDefineCapabilities/01_forward.py > > --- a/suites/libvirt- > cim/cimtest/SettingsDefineCapabilities/01_forward.py Tue Feb 03 > 09:37:05 2009 -0800 > > +++ b/suites/libvirt- > cim/cimtest/SettingsDefineCapabilities/01_forward.py Wed Feb 04 > 22:00:53 2009 -0800 > > @@ -176,6 +176,9 @@ > > # For Diskpool, we have info 1 for each of Min, Max, > > # default, Increment and 1 for each of PV and FV > > # hence 4 * 2 = 8 records > > + exp_len = 16 > > You need 2 branches here - The value needs to be 8 for: rev >= 707 and > rev < 805 > > It needs to be 16 if rev >= 805. > > > + elif 'DiskPool' in instid and virt == 'KVM' and \ > > + curr_cim_rev >= libvirt_rasd_template_changes: > > exp_len = 8 > > Same here - the change was made in version 805. I fixed it on #2 patch, the same as HostSystem/03_hs_to_settdefcap.py. Thanks! > > -- > Kaitlin Rupert > IBM Linux Technology Center > kaitlin at linux.vnet.ibm.com > > _______________________________________________ > Libvirt-cim mailing list > Libvirt-cim at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-cim -------------- next part -------------- An HTML attachment was scrubbed... URL: From yunguol at cn.ibm.com Fri Feb 6 09:45:21 2009 From: yunguol at cn.ibm.com (yunguol at cn.ibm.com) Date: Fri, 06 Feb 2009 01:45:21 -0800 Subject: [Libvirt-cim] [PATCH] [TESt]dfs Message-ID: <80572f08898a6924079f.1233913521@elm3b197.beaverton.ibm.com> # HG changeset patch # User Guolian Yun # Date 1233913510 28800 # Node ID 80572f08898a6924079f0446f724e34e0fe4ff18 # Parent 3fc2b8a203339c6a59b5f0e2a159e3e0a802ea6d [TESt]dfs diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/AllocationCapabilities/01_enum.py --- a/suites/libvirt-cim/cimtest/AllocationCapabilities/01_enum.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/AllocationCapabilities/01_enum.py Fri Feb 06 01:45:10 2009 -0800 @@ -76,13 +76,13 @@ for inst in ac: id = inst.InstanceID if pools[id].ResourceType != inst.ResourceType: - logger.error("%s ResourceType %s, Pool ResourceType %s" % (cn, - inst.ResourceType, pools[id].ResourceType)) + logger.error("%s ResourceType %s, Pool ResourceType %s", + cn, inst.ResourceType, pools[id].ResourceType) return FAIL except Exception, details: - logger.error("%s returned instance with unexpected InstanceID %s" % (cn, - details)) + logger.error("%s returned instance with unexpected InstanceID %s", + cn, details) return FAIL return PASS @@ -106,7 +106,7 @@ return status if len(ac) != len(pools): - logger.error("%d %s insts != %d pool insts" % (len(ac), cn, len(pools))) + logger.error("%d %s insts != %d pool insts", len(ac), cn, len(pools)) return FAIL status = compare_pool_to_ac(ac, pools, cn) diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/AllocationCapabilities/02_alloccap_gi_errs.py --- a/suites/libvirt-cim/cimtest/AllocationCapabilities/02_alloccap_gi_errs.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/AllocationCapabilities/02_alloccap_gi_errs.py Fri Feb 06 01:45:10 2009 -0800 @@ -62,7 +62,7 @@ for ac in enum_list: pool, id, status = parse_instance_id(ac.InstanceID) if status != PASS: - logger.error("Unable to parse InstanceID: %s" % ac.InstanceID) + logger.error("Unable to parse InstanceID: %s", ac.InstanceID) return ac_ids, FAIL ac_ids.append("%s/invalid_id" % pool) diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/ComputerSystem/01_enum.py --- a/suites/libvirt-cim/cimtest/ComputerSystem/01_enum.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ComputerSystem/01_enum.py Fri Feb 06 01:45:10 2009 -0800 @@ -49,12 +49,12 @@ del live_cs[idx] except ValueError, detail: Globals.logger.error("Provider reports system `%s', \ -but virsh does not" % name) +but virsh does not", name) status = FAIL for system in live_cs: Globals.logger.error("Provider does not report system `%s', \ -but virsh does" % system) +but virsh does", system) status = FAIL except IndexError, detail: diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/ComputerSystem/02_nosystems.py --- a/suites/libvirt-cim/cimtest/ComputerSystem/02_nosystems.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ComputerSystem/02_nosystems.py Fri Feb 06 01:45:10 2009 -0800 @@ -60,7 +60,7 @@ return FAIL if len(cs) != 0: - logger.error("%s returned %d instead of empty list" % (cn, len(cs))) + logger.error("%s returned %d instead of empty list", cn, len(cs)) status = FAIL else: status = PASS diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/ComputerSystem/03_defineVS.py --- a/suites/libvirt-cim/cimtest/ComputerSystem/03_defineVS.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ComputerSystem/03_defineVS.py Fri Feb 06 01:45:10 2009 -0800 @@ -46,7 +46,7 @@ cxml = vxml.get_class(options.virt)(test_dom) rc = cxml.cim_define(options.ip) if not rc: - Globals.logger.error(VIRSH_ERROR_DEFINE % test_dom) + Globals.logger.error(VIRSH_ERROR_DEFINE, test_dom) return status cs_class = get_typed_class(options.virt, 'ComputerSystem') @@ -74,7 +74,7 @@ Globals.logger.error("Exception: %s", detail) if status != PASS : - Globals.logger.error("Error: property values are not set for VS %s" % test_dom) + Globals.logger.error("Error: property values are not set for VS %s", test_dom) cxml.undefine(options.ip) return status diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/ComputerSystem/04_defineStartVS.py --- a/suites/libvirt-cim/cimtest/ComputerSystem/04_defineStartVS.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ComputerSystem/04_defineStartVS.py Fri Feb 06 01:45:10 2009 -0800 @@ -47,12 +47,12 @@ try: ret = cxml.cim_define(options.ip) if not ret: - logger.error("Unable to define %s" % test_dom) + logger.error("Unable to define %s", test_dom) return FAIL status = cxml.cim_start(options.ip) if status != PASS: - logger.error("Failed to Start the dom: %s" % test_dom) + logger.error("Failed to Start the dom: %s", test_dom) logger.error("Property values not set properly for %s", test_dom) except Exception, detail: diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/ComputerSystem/05_activate_defined_start.py --- a/suites/libvirt-cim/cimtest/ComputerSystem/05_activate_defined_start.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ComputerSystem/05_activate_defined_start.py Fri Feb 06 01:45:10 2009 -0800 @@ -70,7 +70,7 @@ raise Exception("%s not in expected state" % test_dom) except Exception, detail: - logger.error("Exception: %s" % detail) + logger.error("Exception: %s", detail) status = FAIL cxml.cim_destroy(options.ip) diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/ComputerSystem/06_paused_active_suspend.py --- a/suites/libvirt-cim/cimtest/ComputerSystem/06_paused_active_suspend.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ComputerSystem/06_paused_active_suspend.py Fri Feb 06 01:45:10 2009 -0800 @@ -77,7 +77,7 @@ raise Exception("%s not in expected state" % test_dom) except Exception, detail: - logger.error("Exception variable: %s" % detail) + logger.error("Exception variable: %s", detail) status = FAIL cxml.destroy(server) diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/ComputerSystem/22_define_suspend.py --- a/suites/libvirt-cim/cimtest/ComputerSystem/22_define_suspend.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ComputerSystem/22_define_suspend.py Fri Feb 06 01:45:10 2009 -0800 @@ -53,14 +53,14 @@ # suspend the vs status = cxml.cim_suspend(options.ip) if status != PASS: - logger.info("Suspending defined %s failed, as expected" % test_dom) + logger.info("Suspending defined %s failed, as expected", test_dom) status = PASS else: raise Exception("Suspending defined %s should have failed" % \ test_dom) except Exception, detail: - logger.error("Error: %s" % detail) + logger.error("Error: %s", detail) status = FAIL cxml.undefine(options.ip) diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/ComputerSystem/41_cs_to_settingdefinestate.py --- a/suites/libvirt-cim/cimtest/ComputerSystem/41_cs_to_settingdefinestate.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ComputerSystem/41_cs_to_settingdefinestate.py Fri Feb 06 01:45:10 2009 -0800 @@ -121,7 +121,7 @@ for rasd in rasd_list: guest, dev, status = parse_instance_id(rasd.InstanceID) if status != PASS: - logger.error("Unable to parse InstanceID: %s" % rasd.InstanceID) + logger.error("Unable to parse InstanceID: %s", rasd.InstanceID) return rasd_insts, FAIL if guest == test_dom: @@ -272,7 +272,7 @@ status, cs_assoc_info = get_associators_info(server, cn, an, cs_class, instid) if status != PASS: - raise Exception("Failed to get assoc info for dom: %s", test_dom) + raise Exception("Failed to get assoc info for dom: %s" % test_dom) # verify the results of SettingsDefineState with the cs_values list # that was built using the output of the GetInstance on ComputerSystem. diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/ComputerSystemIndication/01_created_indication.py --- a/suites/libvirt-cim/cimtest/ComputerSystemIndication/01_created_indication.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ComputerSystemIndication/01_created_indication.py Fri Feb 06 01:45:10 2009 -0800 @@ -58,7 +58,7 @@ dict['default_sysname'], port) sub.subscribe(dict['default_url'], dict['default_auth']) - logger.info("Watching for %s" % iname) + logger.info("Watching for %s", iname) ind_names[ind] = ind_name sub_list[ind] = sub @@ -98,12 +98,12 @@ if str(sub.server.indications[0]) == ind_name: sub.unsubscribe(dict['default_auth']) - logger.info("Cancelling subscription for %s" % ind_name) + logger.info("Cancelling subscription for %s", ind_name) return PASS else: sub.server.indications.remove(sub.server.indications[0]) - logger.error("Did not recieve indication %s" % ind_name) + logger.error("Did not recieve indication %s", ind_name) return FAIL def poll_for_ind(pid, ind_name): @@ -129,7 +129,7 @@ logger.error("Waited too long for %s indication", ind_name) kill(pid, SIGKILL) else: - logger.error("Received indication error: %d" % pw[1]) + logger.error("Received indication error: %d", pw[1]) status = FAIL break @@ -174,13 +174,13 @@ raise Exception(details) except Exception, details: - logger.error("Exception: %s" % details) + logger.error("Exception: %s", details) status = FAIL #Make sure all subscriptions are really unsubscribed for ind, sub in sub_list.iteritems(): sub.unsubscribe(dict['default_auth']) - logger.info("Cancelling subscription for %s" % ind_names[ind]) + logger.info("Cancelling subscription for %s", ind_names[ind]) cxml.undefine(ip) diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/ElementAllocatedFromPool/01_forward.py --- a/suites/libvirt-cim/cimtest/ElementAllocatedFromPool/01_forward.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ElementAllocatedFromPool/01_forward.py Fri Feb 06 01:45:10 2009 -0800 @@ -67,11 +67,11 @@ inst = GetInstance(server, cn_name, key_list) except Exception, details: - logger.error("Exception %s" % details) + logger.error("Exception %s", details) return None if inst is None: - logger.error("Expected at least one %s instance" % cn_name) + logger.error("Expected at least one %s instance", cn_name) return None return inst diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/ElementCapabilities/01_forward.py --- a/suites/libvirt-cim/cimtest/ElementCapabilities/01_forward.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ElementCapabilities/01_forward.py Fri Feb 06 01:45:10 2009 -0800 @@ -130,7 +130,7 @@ elec = assoc.AssociatorNames(server, an, ccn, Name = system, CreationClassName = ccn) except Exception: - logger.error(CIM_ERROR_ASSOCIATORNAMES % system) + logger.error(CIM_ERROR_ASSOCIATORNAMES, system) cxml.undefine(server) return FAIL diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/ElementCapabilities/02_reverse.py --- a/suites/libvirt-cim/cimtest/ElementCapabilities/02_reverse.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ElementCapabilities/02_reverse.py Fri Feb 06 01:45:10 2009 -0800 @@ -57,7 +57,7 @@ def filter(list, cn, exp_result): new_list = assoc.filter_by_result_class(list, cn) if len(new_list) != exp_result: - logger.error("Expected %d host, got %d" % (exp_result, len(new_list))) + logger.error("Expected %d host, got %d", exp_result, len(new_list)) return FAIL, new_list return PASS, new_list @@ -154,7 +154,7 @@ cxml = virtxml(test_dom) ret = cxml.cim_define(options.ip) if not ret: - logger.error("Failed to define the dom: %s" % test_dom) + logger.error("Failed to define the dom: %s", test_dom) return FAIL cs = domain_list(options.ip, options.virt) diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/ElementCapabilities/03_forward_errs.py --- a/suites/libvirt-cim/cimtest/ElementCapabilities/03_forward_errs.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ElementCapabilities/03_forward_errs.py Fri Feb 06 01:45:10 2009 -0800 @@ -51,14 +51,14 @@ logger.info("Got expected rc code and error string") status = PASS else: - logger.error("Unexpected rc code %s and description %s\n" %(rc, desc)) + logger.error("Unexpected rc code %s and description %s\n", rc, desc) except Exception, details: logger.error("Unknown exception happened") logger.error(details) if rc == 0: logger.error("ElementCapabilities associator should NOT return excepted \ - result with a wrong key name and value of %s input" % ref_class) + result with a wrong key name and value of %s input", ref_class) status = FAIL return status diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/ElementCapabilities/04_reverse_errs.py --- a/suites/libvirt-cim/cimtest/ElementCapabilities/04_reverse_errs.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ElementCapabilities/04_reverse_errs.py Fri Feb 06 01:45:10 2009 -0800 @@ -50,14 +50,14 @@ logger.info("Got expected rc code and error string") status = PASS else: - logger.error("Unexpected rc code %s and description %s\n" %(rc, desc)) + logger.error("Unexpected rc code %s and description %s\n", rc, desc) except Exception, details: logger.error("Unknown exception happened") logger.error(details) if rc == 0: logger.error("ElementCapabilities associator should NOT return excepted result \ - with a wrong key name and value of %s input" % ref_class) + with a wrong key name and value of %s input", ref_class) status = FAIL return status diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/ElementCapabilities/05_hostsystem_cap.py --- a/suites/libvirt-cim/cimtest/ElementCapabilities/05_hostsystem_cap.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ElementCapabilities/05_hostsystem_cap.py Fri Feb 06 01:45:10 2009 -0800 @@ -59,7 +59,7 @@ sup_types = ['Xen', 'XenFV', 'KVM', 'LXC'] def print_err(err, detail, cn): - logger.error(err % cn) + logger.error(err, cn) logger.error("Exception: %s", detail) def field_err(fieldname, exp_val, ret_value): @@ -76,7 +76,7 @@ break if ret != PASS: - logger.error("%s with %s was not returned" % (cn, exp_val)) + logger.error("%s with %s was not returned", cn, exp_val) status = FAIL return status, inst diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/ElementConforms/01_forward.py --- a/suites/libvirt-cim/cimtest/ElementConforms/01_forward.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ElementConforms/01_forward.py Fri Feb 06 01:45:10 2009 -0800 @@ -151,13 +151,13 @@ cxml = virt_xml(test_dom) ret = cxml.cim_define(server) if not ret: - logger.error('Unable to define domain %s' % test_dom) + logger.error('Unable to define domain %s', test_dom) return FAIL ret = cxml.start(server) if not ret: cxml.undefine(server) - logger.error('Unable to start domain %s' % test_dom) + logger.error('Unable to start domain %s', test_dom) return FAIL prev_namespace = Globals.CIM_NS @@ -201,7 +201,7 @@ raise Exception("%s items weren't returned: %s" % (key, list)) except Exception, detail: - logger.error("Exception: %s" % detail) + logger.error("Exception: %s", detail) status = FAIL Globals.CIM_NS = prev_namespace diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/ElementConforms/02_reverse.py --- a/suites/libvirt-cim/cimtest/ElementConforms/02_reverse.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ElementConforms/02_reverse.py Fri Feb 06 01:45:10 2009 -0800 @@ -93,7 +93,7 @@ ret = cxml.cim_define(server) if not ret: - logger.error("ERROR: Failed to Define the dom: %s" % test_dom) + logger.error("ERROR: Failed to Define the dom: %s", test_dom) return status inst_list = {} @@ -102,7 +102,7 @@ if rc != 0: cs = libvirt_cached_data_poll(server, virt, test_dom) if sys is None: - logger.error("Instance for %s not created" % test_dom) + logger.error("Instance for %s not created", test_dom) cxml.undefine(server) return FAIL @@ -116,7 +116,7 @@ return status except Exception, details: - logger.error("DEBUG Exception: %s" % details) + logger.error("DEBUG Exception: %s", details) cxml.undefine(server) return FAIL diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/ElementConforms/03_ectp_fwd_errs.py --- a/suites/libvirt-cim/cimtest/ElementConforms/03_ectp_fwd_errs.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ElementConforms/03_ectp_fwd_errs.py Fri Feb 06 01:45:10 2009 -0800 @@ -84,7 +84,7 @@ ret_val = try_assoc(conn, classname, ac_classname, keys, field_name=field, \ expr_values=expr_values[field], bug_no="") if ret_val != PASS: - logger.error("------ FAILED: %s------" % field) + logger.error("------ FAILED: %s------", field) name_val[i] = temp return ret_val diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/ElementConforms/04_ectp_rev_errs.py --- a/suites/libvirt-cim/cimtest/ElementConforms/04_ectp_rev_errs.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ElementConforms/04_ectp_rev_errs.py Fri Feb 06 01:45:10 2009 -0800 @@ -125,7 +125,7 @@ ret_val = try_assoc(conn, classname, ac_classname, keys, field_name=field, \ expr_values=expr_values[field], bug_no="") if ret_val != PASS: - logger.error("------ FAILED: %s------" % field) + logger.error("------ FAILED: %s------", field) name_val[i] = temp return ret_val @@ -142,7 +142,7 @@ cxml = virt_xml(test_dom) ret = cxml.cim_define(options.ip) if not ret: - logger.error('Unable to define domain %s' % test_dom) + logger.error('Unable to define domain %s', test_dom) return FAIL hs = get_typed_class(options.virt, "HostSystem") diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/ElementSettingData/01_forward.py --- a/suites/libvirt-cim/cimtest/ElementSettingData/01_forward.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ElementSettingData/01_forward.py Fri Feb 06 01:45:10 2009 -0800 @@ -72,11 +72,11 @@ inst = GetInstance(ip, cn, key_list) except Exception, details: - logger.error("Exception %s" % details) + logger.error("Exception %s", details) return None if inst is None: - logger.error("Expected at least one %s instance" % cn) + logger.error("Expected at least one %s instance", cn) return None return inst @@ -167,7 +167,7 @@ for cn, inst in inst_list.iteritems(): status = test_assoc(options.ip, esd_cn, cn, options.virt, inst) if status != PASS: - logger.error("Unable to get %s insts from %s" % (cn, esd_cn)) + logger.error("Unable to get %s insts from %s", cn, esd_cn) break cxml.undefine(options.ip) diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/ElementSettingData/03_esd_assoc_with_rasd_errs.py --- a/suites/libvirt-cim/cimtest/ElementSettingData/03_esd_assoc_with_rasd_errs.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ElementSettingData/03_esd_assoc_with_rasd_errs.py Fri Feb 06 01:45:10 2009 -0800 @@ -88,7 +88,7 @@ cxml = virtxml(test_dom, mac = test_mac) ret = cxml.create(options.ip) if not ret: - logger.error("Failed to Create the dom: %s" % test_dom) + logger.error("Failed to Create the dom: %s", test_dom) status = FAIL return status if options.virt == "XenFV": diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/HostSystem/01_enum.py --- a/suites/libvirt-cim/cimtest/HostSystem/01_enum.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/HostSystem/01_enum.py Fri Feb 06 01:45:10 2009 -0800 @@ -50,7 +50,7 @@ try: hs = enumclass.EnumInstances(options.ip, name) except Exception, details: - logger.error("%s %s: %s" % (CIM_ERROR_ENUMERATE, name, details)) + logger.error("%s %s: %s", CIM_ERROR_ENUMERATE, name, details) status = FAIL if ret == PASS: @@ -60,25 +60,25 @@ else: if linux_cs.CreationClassName != 'Linux_ComputerSystem'\ or linux_cs.Name != host: - logger.error("Exp Linux_ComputerSystem, got %s" \ - % linux_cs.CreationClassName) - logger.error("Exp %s, got %s" % (host, system.Name)) + logger.error("Exp Linux_ComputerSystem, got %s", + linux_cs.CreationClassName) + logger.error("Exp %s, got %s", host, system.Name) return FAIL else: return PASS else: if len(hs) != 1: - logger.error("Expected 1 %s instance returned" % name) + logger.error("Expected 1 %s instance returned", name) return FAIL system = hs[0] if system.CreationClassName != name or system.Name != host: - logger.error("Exp %s, got %s" % (name, system.CreationClassName)) - logger.error("Exp %s, got %s" % (host, system.Name)) + logger.error("Exp %s, got %s", name, system.CreationClassName) + logger.error("Exp %s, got %s", host, system.Name) status = FAIL else: - logger.info("%s is %s" % (name, host)) + logger.info("%s is %s", name, host) status = PASS return status diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/HostSystem/02_hostsystem_to_rasd.py --- a/suites/libvirt-cim/cimtest/HostSystem/02_hostsystem_to_rasd.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/HostSystem/02_hostsystem_to_rasd.py Fri Feb 06 01:45:10 2009 -0800 @@ -96,7 +96,7 @@ return status, vsxml_info def print_err(err, detail, cn): - logger.error(err % cn) + logger.error(err, cn) logger.error("Exception: %s", detail) def get_inst_from_list(server, cn, cs_list, filter_name, exp_val, vsxml): @@ -109,7 +109,7 @@ break if ret != PASS: - logger.error("%s with %s was not returned" % (cn, exp_val)) + logger.error("%s with %s was not returned", cn, exp_val) vsxml.undefine(server) status = FAIL @@ -165,7 +165,7 @@ SystemCreationClassName = sccn) if len(assoc_info) != 1: - logger.error("%s returned %i %s objects" % (an, len(assoc_info), cn)) + logger.error("%s returned %i %s objects", an, len(assoc_info), cn) status = FAIL break index = (len(assoc_info) - 1) diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/HostSystem/03_hs_to_settdefcap.py --- a/suites/libvirt-cim/cimtest/HostSystem/03_hs_to_settdefcap.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/HostSystem/03_hs_to_settdefcap.py Fri Feb 06 01:45:10 2009 -0800 @@ -73,7 +73,7 @@ return status, vsxml def print_err(err, detail, cn): - logger.error(err % cn) + logger.error(err, cn) logger.error("Exception: %s", detail) def get_inst_from_list(cn, qcn, list, filter, exp_val): @@ -82,7 +82,7 @@ inst = None if len(list) < 1: - logger.error("%s returned %i %s objects" % (qcn, len(list), cn)) + logger.error("%s returned %i %s objects", qcn, len(list), cn) return FAIL, None for inst in list: @@ -92,7 +92,7 @@ if ret != PASS: status = FAIL - logger.error("%s with %s was not returned" % (cn, exp_val)) + logger.error("%s with %s was not returned", cn, exp_val) return status, inst @@ -107,7 +107,7 @@ logger.error("Hostname mismatch") except Exception, detail: - logger.error("Exception in %s : %s" % (cn, detail)) + logger.error("Exception in %s : %s", cn, detail) status = FAIL return status, host_inst.Name, host_inst.CreationClassName @@ -236,7 +236,7 @@ if status != PASS: return status else: - logger.error("Unexpected instance type %s" % cn) + logger.error("Unexpected instance type %s", cn) return FAIL except Exception, detail: @@ -248,10 +248,10 @@ def check_rasd_vals(inst, rt): try: if inst['ResourceType'] != rt: - logger.error("In ResourceType for %s " % rt) + logger.error("In ResourceType for %s ", rt) return FAIL except Exception, detail: - logger.error("Error checking RASD attribute values %s" % detail) + logger.error("Error checking RASD attribute values %s", detail) return FAIL return PASS diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/HostSystem/04_hs_to_EAPF.py --- a/suites/libvirt-cim/cimtest/HostSystem/04_hs_to_EAPF.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/HostSystem/04_hs_to_EAPF.py Fri Feb 06 01:45:10 2009 -0800 @@ -70,7 +70,7 @@ libvirt_input_graphics_changeset = 757 def print_err(err, detail, cn): - logger.error(err % cn) + logger.error(err, cn) logger.error("Exception: %s", detail) def pool_init_list(virt, pool_assoc, net_name, dp_InstID): @@ -194,8 +194,8 @@ def check_len(an, assoc_list_info, qcn, exp_len): if len(assoc_list_info) < exp_len: - logger.error("%s returned %i %s objects" % (an, - len(assoc_list_info), qcn)) + logger.error("%s returned %i %s objects", + an, len(assoc_list_info), qcn) return FAIL return PASS diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/HostSystem/06_hs_to_vsms.py --- a/suites/libvirt-cim/cimtest/HostSystem/06_hs_to_vsms.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/HostSystem/06_hs_to_vsms.py Fri Feb 06 01:45:10 2009 -0800 @@ -56,7 +56,7 @@ sup_types = ['Xen', 'KVM', 'XenFV', 'LXC'] def print_err(err, detail, cn): - logger.error(err % cn) + logger.error(err, cn) logger.error("Exception: %s", detail) def print_field_error(fieldname, ret_value, exp_value): @@ -76,7 +76,7 @@ # When no records are found. if ret != PASS: - logger.error("%s with %s was not returned" % (cn, exp_val)) + logger.error("%s with %s was not returned", cn, exp_val) status = FAIL return status, inst diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/HostedDependency/02_reverse.py --- a/suites/libvirt-cim/cimtest/HostedDependency/02_reverse.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/HostedDependency/02_reverse.py Fri Feb 06 01:45:10 2009 -0800 @@ -72,12 +72,12 @@ ret = cxml.cim_define(server) if not ret: - logger.error("Failed to define the dom: %s" % test_dom) + logger.error("Failed to define the dom: %s", test_dom) return FAIL rc = call_request_state_change(test_dom, server, 2, TIME, virt) if rc != 0: - logger.error("Failed to start the dom: %s" % test_dom) + logger.error("Failed to start the dom: %s", test_dom) cxml.undefine(server) return FAIL @@ -126,7 +126,7 @@ if guest["Name"] in cs_names: cs_names.remove(guest["Name"]) else: - logger.error("HostedDependency returned unexpected guest %s" % + logger.error("HostedDependency returned unexpected guest %s", guest["Name"]) status = FAIL @@ -140,7 +140,7 @@ # not being returned by HostedDependency for guest in cs_names: - logger.error("HostedDependency did not return expected guest %s" % + logger.error("HostedDependency did not return expected guest %s", guest["Name"]) status = FAIL diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/HostedDependency/03_enabledstate.py --- a/suites/libvirt-cim/cimtest/HostedDependency/03_enabledstate.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/HostedDependency/03_enabledstate.py Fri Feb 06 01:45:10 2009 -0800 @@ -80,7 +80,7 @@ except Exception, detail: logger.error(CIM_ERROR_GETINSTANCE, 'ComputerSystem') - logger.error("Exception: %s" % detail) + logger.error("Exception: %s", detail) status = FAIL return status, dom_field_list @@ -113,18 +113,18 @@ ret = cxml.cim_define(server) if not ret: - logger.error("Failed to define the dom: %s" % test_dom) + logger.error("Failed to define the dom: %s", test_dom) return FAIL rc = call_request_state_change(test_dom, server, 2, TIME, virt) if rc != 0: - logger.error("Failed to start the dom: %s" % test_dom) + logger.error("Failed to start the dom: %s", test_dom) cxml.undefine(server) return FAIL rc = call_request_state_change(test_dom, server, 9, TIME, virt) if rc != 0: - logger.error("Failed to suspend the dom: %s" % test_dom) + logger.error("Failed to suspend the dom: %s", test_dom) cxml.destroy(server) cxml.undefine(server) @@ -181,7 +181,7 @@ except Exception, detail: logger.error(CIM_ERROR_ASSOCIATORS,'HostedDependency') - logger.error("Exception: %s" % detail) + logger.error("Exception: %s", detail) status = FAIL cxml.destroy(server) diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/HostedDependency/04_reverse_errs.py --- a/suites/libvirt-cim/cimtest/HostedDependency/04_reverse_errs.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/HostedDependency/04_reverse_errs.py Fri Feb 06 01:45:10 2009 -0800 @@ -91,7 +91,7 @@ ret = cxml.create(server) if not ret: - logger.error("Failed to Create the dom: %s" % test_dom) + logger.error("Failed to Create the dom: %s", test_dom) return FAIL conn = assoc.myWBEMConnection('http://%s' % server, diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/HostedResourcePool/01_forward.py --- a/suites/libvirt-cim/cimtest/HostedResourcePool/01_forward.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/HostedResourcePool/01_forward.py Fri Feb 06 01:45:10 2009 -0800 @@ -58,7 +58,7 @@ Name = host_sys, CreationClassName = host_cn) except Exception, details: - logger.error(Globals.CIM_ERROR_ASSOCIATORNAMES % assoc_cn) + logger.error(Globals.CIM_ERROR_ASSOCIATORNAMES, assoc_cn) logger.error("Exception:", details) return FAIL diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/HostedResourcePool/02_reverse.py --- a/suites/libvirt-cim/cimtest/HostedResourcePool/02_reverse.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/HostedResourcePool/02_reverse.py Fri Feb 06 01:45:10 2009 -0800 @@ -64,7 +64,7 @@ try: assoc_host = AssociatorNames(options.ip, assoc_cn, k, InstanceID=v) except Exception: - logger.error(Globals.CIM_ERROR_ASSOCIATORNAMES % assoc_cn) + logger.error(Globals.CIM_ERROR_ASSOCIATORNAMES, assoc_cn) return FAIL if len(assoc_host) == 1: if assoc_host[0].keybindings['Name'] != host_sys: diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/HostedService/01_forward.py --- a/suites/libvirt-cim/cimtest/HostedService/01_forward.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/HostedService/01_forward.py Fri Feb 06 01:45:10 2009 -0800 @@ -58,7 +58,7 @@ Name = host_name) except Exception, deatils: - logger.error(Globals.CIM_ERROR_ASSOCIATORNAMES % host_name) + logger.error(Globals.CIM_ERROR_ASSOCIATORNAMES, host_name) logger.error("Exception: details %s", details) return FAIL diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/LogicalDisk/01_disk.py --- a/suites/libvirt-cim/cimtest/LogicalDisk/01_disk.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/LogicalDisk/01_disk.py Fri Feb 06 01:45:10 2009 -0800 @@ -58,11 +58,11 @@ status = 0 if dev.Name != test_dev: - logger.error("Name should be `%s' instead of `%s'" % (test_dev, dev.Name)) + logger.error("Name should be `%s' instead of `%s'", test_dev, dev.Name) status = 1 if status == 0: - logger.info("Checked device %s" % dev.Name) + logger.info("Checked device %s", dev.Name) vsxml.undefine(options.ip) diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/LogicalDisk/02_nodevs.py --- a/suites/libvirt-cim/cimtest/LogicalDisk/02_nodevs.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/LogicalDisk/02_nodevs.py Fri Feb 06 01:45:10 2009 -0800 @@ -69,7 +69,7 @@ return FAIL if len(devs) != 0: - logger.error("%s returned %d instead of empty list" % (cn, len(devs))) + logger.error("%s returned %d instead of empty list", cn, len(devs)) status = FAIL else: status = PASS diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/Memory/01_memory.py --- a/suites/libvirt-cim/cimtest/Memory/01_memory.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/Memory/01_memory.py Fri Feb 06 01:45:10 2009 -0800 @@ -63,11 +63,11 @@ capacity = dev.ConsumableBlocks * dev.BlockSize / 1024 if capacity != alloc_mem: - logger.error("Capacity should be %i MB instead of %i MB" % (alloc_mem, capacity)) + logger.error("Capacity should be %i MB instead of %i MB", alloc_mem, capacity) status = 1 if status == 0: - logger.info("Checked memory capacity: %s MB" % capacity) + logger.info("Checked memory capacity: %s MB", capacity) vsxml.undefine(options.ip) return status diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/Memory/02_defgetmem.py --- a/suites/libvirt-cim/cimtest/Memory/02_defgetmem.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/Memory/02_defgetmem.py Fri Feb 06 01:45:10 2009 -0800 @@ -76,7 +76,7 @@ raise Exception("Memory inst for %s not as expected." % default_dom) except Exception, detail: - logger.error("Exception: %s" % detail) + logger.error("Exception: %s", detail) status = FAIL cxml.undefine(options.ip) diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/NetworkPort/01_netport.py --- a/suites/libvirt-cim/cimtest/NetworkPort/01_netport.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/NetworkPort/01_netport.py Fri Feb 06 01:45:10 2009 -0800 @@ -80,12 +80,12 @@ dev = GetInstance(options.ip, net_class, key_list) except Exception, detail: - logger.error("Exception: %s" % detail) + logger.error("Exception: %s", detail) vsxml.undefine(options.ip) return FAIL if dev.DeviceID == None: - logger.error("Error retrieving instance for devid %s" % devid) + logger.error("Error retrieving instance for devid %s", devid) vsxml.undefine(options.ip) return FAIL @@ -94,23 +94,23 @@ link_tech = get_linktech(options.ip, options.virt) if dev.LinkTechnology != link_tech: - logger.error("LinkTechnology should be set to `%i' instead of `%s'" % \ - (link_tech, dev.LinkTechnology)) + logger.error("LinkTechnology should be set to `%i' instead of `%s'", + link_tech, dev.LinkTechnology) status = FAIL addrs = dev.NetworkAddresses if len(addrs) != 1: - logger.error("Too many NetworkAddress entries (%i instead of %i)" % \ - (len(addrs), 1)) + logger.error("Too many NetworkAddress entries (%i instead of %i)", + len(addrs), 1) status = FAIL if addrs[0] != test_mac: - logger.error("MAC address reported incorrectly (%s instead of %s)" % \ - (addrs[0], test_mac)) + logger.error("MAC address reported incorrectly (%s instead of %s)", + addrs[0], test_mac) status = FAIL if status == FAIL: - logger.error("Checked interface %s" % test_mac) + logger.error("Checked interface %s", test_mac) vsxml.undefine(options.ip) diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/NetworkPort/03_user_netport.py --- a/suites/libvirt-cim/cimtest/NetworkPort/03_user_netport.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/NetworkPort/03_user_netport.py Fri Feb 06 01:45:10 2009 -0800 @@ -45,7 +45,7 @@ cxml = KVMXML(test_dom, mac = test_mac, ntype='user') ret = cxml.cim_define(options.ip) if not ret: - logger.error('Unable to define domain %s' % test_dom) + logger.error('Unable to define domain %s', test_dom) return FAIL devid = "%s/%s" % (test_dom, test_mac) @@ -59,7 +59,7 @@ try: dev = GetInstance(options.ip, 'KVM_NetworkPort', key_list) except Exception, detail: - logger.error("Exception: %s" % detail) + logger.error("Exception: %s", detail) cxml.undefine(options.ip) return FAIL @@ -73,17 +73,17 @@ addrs = dev.NetworkAddresses if len(addrs) != 1: - logger.error("Too many NetworkAddress entries (%i instead of %i)" % \ - (len(addrs), 1)) + logger.error("Too many NetworkAddress entries (%i instead of %i)", + len(addrs), 1) status = FAIL if addrs[0] != test_mac: - logger.error("MAC address reported incorrectly (%s instead of %s)" % \ - (addrs[0], test_mac)) + logger.error("MAC address reported incorrectly (%s instead of %s)", + addrs[0], test_mac) status = FAIL if status == FAIL: - logger.error("Checked interface %s" % test_mac) + logger.error("Checked interface %s", test_mac) cxml.undefine(options.ip) return status diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/Processor/01_processor.py --- a/suites/libvirt-cim/cimtest/Processor/01_processor.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/Processor/01_processor.py Fri Feb 06 01:45:10 2009 -0800 @@ -64,11 +64,11 @@ try: dev = GetInstance(options.ip, proc_class, key_list) if dev.DeviceID == devid: - logger.info("Checked device %s" % devid) + logger.info("Checked device %s", devid) else: - logger.error("Mismatching device, returned %s instead %s" % (dev.DeviceID, devid)) + logger.error("Mismatching device, returned %s instead %s", dev.DeviceID, devid) except Exception, details: - logger.error("Error check device %s: %s" % (devid, details)) + logger.error("Error check device %s: %s", devid, details) status = 1 vsxml.stop(options.ip) diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/Processor/02_definesys_get_procs.py --- a/suites/libvirt-cim/cimtest/Processor/02_definesys_get_procs.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/Processor/02_definesys_get_procs.py Fri Feb 06 01:45:10 2009 -0800 @@ -86,7 +86,7 @@ % default_dom) except Exception, detail: - logger.error("Exception: %s" % detail) + logger.error("Exception: %s", detail) status = FAIL cxml.undefine(options.ip) diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/Profile/01_enum.py --- a/suites/libvirt-cim/cimtest/Profile/01_enum.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/Profile/01_enum.py Fri Feb 06 01:45:10 2009 -0800 @@ -66,16 +66,16 @@ x.RegisteredName, x.RegisteredVersion] for x in proflist] for exp_prof in explist: if exp_prof in checklist: - logger.info("Profile %s found" % exp_prof[0]) + logger.info("Profile %s found", exp_prof[0]) else: - logger.error("Profile %s is not found" % exp_prof[0]) + logger.error("Profile %s is not found", exp_prof[0]) status = FAIL break if status == PASS: - logger.info("Properties check for %s passed" % cn) + logger.info("Properties check for %s passed", cn) else: - logger.error("Properties check for %s failed" % cn) + logger.error("Properties check for %s failed", cn) return status if __name__ == "__main__": diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/Profile/02_profile_to_elec.py --- a/suites/libvirt-cim/cimtest/Profile/02_profile_to_elec.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/Profile/02_profile_to_elec.py Fri Feb 06 01:45:10 2009 -0800 @@ -63,18 +63,18 @@ rc = csxml_info.cim_define(server) if not rc: - logger.error("Unable define domain %s using DefineSystem() " % test_dom) + logger.error("Unable define domain %s using DefineSystem() ", test_dom) status = FAIL except Exception, detail: - logger.error("Exception defining domain %s" % test_dom) + logger.error("Exception defining domain %s", test_dom) logger.error("Exception: %s", detail) status = FAIL return status, csxml_info def print_err(err, detail, cn): - logger.error(err % cn) + logger.error(err, cn) logger.error("Exception: %s", detail) def get_expected_inst(cn, list, property, exp): @@ -84,7 +84,7 @@ return PASS, x except Exception: pass - logger.error("%s with %s was not returned" % (cn, exp)) + logger.error("%s with %s was not returned", cn, exp) return FAIL, None diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/RedirectionService/03_RedirectionSAP_errs.py --- a/suites/libvirt-cim/cimtest/RedirectionService/03_RedirectionSAP_errs.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/RedirectionService/03_RedirectionSAP_errs.py Fri Feb 06 01:45:10 2009 -0800 @@ -140,7 +140,7 @@ if status != PASS: - logger.error(" -------------- FAILED %s ----------- : " % test_val) + logger.error(" -------------- FAILED %s ----------- : ", test_val) break cxml.cim_destroy(options.ip) diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/ResourceAllocationFromPool/01_forward.py --- a/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/01_forward.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/01_forward.py Fri Feb 06 01:45:10 2009 -0800 @@ -82,7 +82,7 @@ for rasd in rasd_list: guest, dev, status = parse_instance_id(rasd.InstanceID) if status != PASS: - logger.error("Unable to parse InstanceID: %s" % rasd.InstanceID) + logger.error("Unable to parse InstanceID: %s", rasd.InstanceID) return rasd_insts, FAIL if guest == guest_name: @@ -108,7 +108,7 @@ for inst in list: guest, id, status = parse_instance_id(inst.InstanceID) if status != PASS: - logger.error("Unable to parse InstanceID: %s" % inst.InstanceID) + logger.error("Unable to parse InstanceID: %s", inst.InstanceID) return None, FAIL if id == exp_id: @@ -169,8 +169,8 @@ if rasd['InstanceID'] == exp_rasd.InstanceID: status = PASS else: - logger.info("Got %s instead of %s" % (rasd['InstanceID'], - exp_rasd.InstanceID)) + logger.info("Got %s instead of %s", rasd['InstanceID'], + exp_rasd.InstanceID) status = FAIL if status != PASS: diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/ResourceAllocationFromPool/02_reverse.py --- a/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/02_reverse.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/02_reverse.py Fri Feb 06 01:45:10 2009 -0800 @@ -81,7 +81,7 @@ for rasd in rasd_list: guest, dev, status = parse_instance_id(rasd.InstanceID) if status != PASS: - logger.error("Unable to parse InstanceID: %s" % rasd.InstanceID) + logger.error("Unable to parse InstanceID: %s", rasd.InstanceID) return rasd_insts, FAIL if guest == guest_name: @@ -107,7 +107,7 @@ for inst in list: guest, id, status = parse_instance_id(inst.InstanceID) if status != PASS: - logger.error("Unable to parse InstanceID: %s" % inst.InstanceID) + logger.error("Unable to parse InstanceID: %s", inst.InstanceID) return None, FAIL if id == exp_id: diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/ResourceAllocationFromPool/03_forward_errs.py --- a/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/03_forward_errs.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/03_forward_errs.py Fri Feb 06 01:45:10 2009 -0800 @@ -65,13 +65,15 @@ logger.info("Got excepted rc code and error string") status = PASS else: - logger.error("Unexpected rc code %s and description %s\n" %(rc, desc)) + logger.error("Unexpected rc code %s and description %s\n", rc, desc) except Exception, details: logger.error("Unknown exception happened") logger.error(details) if rc == 0: - logger.error("ResourceAllocationFromPool associator should NOT return excepted result with a wrong InstanceID value of %s input" %k) + logger.error("ResourceAllocationFromPool associator should NOT \ + return excepted result with a wrong InstanceID \ + value of %s input", k) status = FAIL return status diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/ResourceAllocationFromPool/04_reverse_errs.py --- a/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/04_reverse_errs.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/04_reverse_errs.py Fri Feb 06 01:45:10 2009 -0800 @@ -63,13 +63,16 @@ logger.info("Got excepted rc code and error string") status = PASS else: - logger.error("Unexpected rc code %s and description %s\n" %(rc, desc)) + logger.error("Unexpected rc code %s and description %s\n", + rc, desc) except Exception, details: logger.error("Unknown exception happened") logger.error(details) if rc == 0: - logger.error("ResourceAllocationSettingData should NOT return excepted result with a wrong InstanceID value of %s input" %k) + logger.error("ResourceAllocationSettingData should NOT return \ + excepted result with a wrong InstanceID \ + value of %s input", k) status = FAIL return status diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/ResourceAllocationFromPool/05_RAPF_err.py --- a/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/05_RAPF_err.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/05_RAPF_err.py Fri Feb 06 01:45:10 2009 -0800 @@ -101,7 +101,7 @@ ret = PASS if ret != PASS: - logger.error("%s with %s was not returned" % (classname, exp_val)) + logger.error("%s with %s was not returned", classname, exp_val) vsxml.undefine(server) status = FAIL diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/ResourcePool/01_enum.py --- a/suites/libvirt-cim/cimtest/ResourcePool/01_enum.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ResourcePool/01_enum.py Fri Feb 06 01:45:10 2009 -0800 @@ -79,8 +79,8 @@ def verify_fields(pool_list, poolname, cn): status = PASS if len(poolname) < 1: - logger.error("%s return %i instances, expected atleast 1 instance" \ - % (cn, len(poolname))) + logger.error("%s return %i instances, expected atleast 1 instance", + cn, len(poolname)) return FAIL exp_value = pool_list[cn][0] for i in range(0, len(poolname)): @@ -119,14 +119,14 @@ try: mempool = EnumInstances(ip, mp) except Exception: - logger.error(Globals.CIM_ERROR_ENUMERATE % mp) + logger.error(Globals.CIM_ERROR_ENUMERATE, mp) return FAIL status = verify_fields(pool_list, mempool, mp) try: propool = EnumInstances(ip, pp) except Exception: - logger.error(Globals.CIM_ERROR_ENUMERATE % pp) + logger.error(Globals.CIM_ERROR_ENUMERATE, pp) return FAIL status = verify_fields(pool_list, propool, pp) @@ -134,14 +134,14 @@ try: diskpool = EnumInstances(ip, dp) except Exception: - logger.error(Globals.CIM_ERROR_ENUMERATE % dp) + logger.error(Globals.CIM_ERROR_ENUMERATE, dp) return FAIL status = verify_fields(pool_list, diskpool, dp) try: netpool = EnumInstances(ip, np) except Exception: - logger.error(Globals.CIM_ERROR_ENUMERATE % np) + logger.error(Globals.CIM_ERROR_ENUMERATE, np) return FAIL status = verify_fields(pool_list, netpool, np) diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/ResourcePoolConfigurationCapabilities/01_enum.py --- a/suites/libvirt-cim/cimtest/ResourcePoolConfigurationCapabilities/01_enum.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ResourcePoolConfigurationCapabilities/01_enum.py Fri Feb 06 01:45:10 2009 -0800 @@ -43,7 +43,7 @@ if len(rpcc) != 1: Globals.logger.error("%s_ResourcePoolConfigurationCapabilities return %i instances, \ - excepted only 1 instance" % (options.virt, len(rpcc))) + excepted only 1 instance", options.virt, len(rpcc)) return FAIL if rpcc[0].InstanceID != "RPCC": Globals.logger.error("error result of enum ResourcePoolConfigurationCapabilities") diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/01_enum.py --- a/suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/01_enum.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/01_enum.py Fri Feb 06 01:45:10 2009 -0800 @@ -51,7 +51,7 @@ try: rpcservice = rpcs.enumerate(server, classname) except Exception: - logger.error(Globals.CIM_ERROR_ENUMERATE % classname) + logger.error(Globals.CIM_ERROR_ENUMERATE, classname) return FAIL valid_service = {"Name" : "RPCS", diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/04_CreateChildResourcePool.py --- a/suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/04_CreateChildResourcePool.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/04_CreateChildResourcePool.py Fri Feb 06 01:45:10 2009 -0800 @@ -72,8 +72,8 @@ logger.info("Error string is '%s'", desc) return PASS else: - logger.error("Unexpected rc code %s and description %s\n" \ - %(err_no, desc)) + logger.error("Unexpected rc code %s and description %s\n", + err_no, desc) return FAIL logger.error("The execution should not have reached here!!") diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/05_AddResourcesToResourcePool.py --- a/suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/05_AddResourcesToResourcePool.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/05_AddResourcesToResourcePool.py Fri Feb 06 01:45:10 2009 -0800 @@ -72,8 +72,8 @@ logger.info("Error string is '%s'", desc) return PASS else: - logger.error("Unexpected rc code %s and description %s\n" \ - %(err_no, desc)) + logger.error("Unexpected rc code %s and description %s\n", + err_no, desc) print desc return XFAIL_RC(bug) diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/06_RemoveResourcesFromResourcePool.py --- a/suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/06_RemoveResourcesFromResourcePool.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/06_RemoveResourcesFromResourcePool.py Fri Feb 06 01:45:10 2009 -0800 @@ -70,8 +70,8 @@ logger.info("Error string is '%s'", desc) return PASS else: - logger.error("Unexpected rc code %s and description %s\n" \ - %(err_no, desc)) + logger.error("Unexpected rc code %s and description %s\n", + err_no, desc) return FAIL logger.error("The execution should not have reached here!!") diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/07_DeleteResourcePool.py --- a/suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/07_DeleteResourcePool.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/07_DeleteResourcePool.py Fri Feb 06 01:45:10 2009 -0800 @@ -66,8 +66,8 @@ logger.info("Error string is '%s'", desc) return PASS else: - logger.error("Unexpected rc code %s and description %s\n" \ - %(err_no, desc)) + logger.error("Unexpected rc code %s and description %s\n", + err_no, desc) return FAIL logger.error("The execution should not have reached here!!") diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/SettingsDefine/01_forward.py --- a/suites/libvirt-cim/cimtest/SettingsDefine/01_forward.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/SettingsDefine/01_forward.py Fri Feb 06 01:45:10 2009 -0800 @@ -77,7 +77,7 @@ for dev in dev_list: guest, dev_id, status = parse_instance_id(dev.DeviceID) if status != PASS: - logger.error("Unable to parse InstanceID: %s" % dev.DeviceID) + logger.error("Unable to parse InstanceID: %s", dev.DeviceID) return dev_insts, FAIL if guest == guest_name: @@ -102,7 +102,7 @@ for rasd in rasd_list: guest, dev, status = parse_instance_id(rasd.InstanceID) if status != PASS: - logger.error("Unable to parse InstanceID: %s" % rasd.InstanceID) + logger.error("Unable to parse InstanceID: %s", rasd.InstanceID) return rasd_insts, FAIL if guest == guest_name: @@ -126,8 +126,8 @@ if rasd['InstanceID'] == exp_rasd.InstanceID: status = PASS else: - logger.info("Got %s instead of %s" % (rasd['InstanceID'], - exp_rasd.InstanceID)) + logger.info("Got %s instead of %s", rasd['InstanceID'], + exp_rasd.InstanceID) status = FAIL if status != PASS: diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/SettingsDefine/02_reverse.py --- a/suites/libvirt-cim/cimtest/SettingsDefine/02_reverse.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/SettingsDefine/02_reverse.py Fri Feb 06 01:45:10 2009 -0800 @@ -104,7 +104,7 @@ for rasd in rasd_list: guest, dev, status = parse_instance_id(rasd.InstanceID) if status != PASS: - logger.error("Unable to parse InstanceID: %s" % rasd.InstanceID) + logger.error("Unable to parse InstanceID: %s", rasd.InstanceID) return rasd_insts, FAIL if guest == guest_name: @@ -124,7 +124,7 @@ for dev in dev_list: guest, dev_id, status = parse_instance_id(dev.DeviceID) if status != PASS: - logger.error("Unable to parse InstanceID: %s" % dev.DeviceID) + logger.error("Unable to parse InstanceID: %s", dev.DeviceID) return dev_insts, FAIL if guest == guest_name: diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/SettingsDefine/03_sds_fwd_errs.py --- a/suites/libvirt-cim/cimtest/SettingsDefine/03_sds_fwd_errs.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/SettingsDefine/03_sds_fwd_errs.py Fri Feb 06 01:45:10 2009 -0800 @@ -200,7 +200,7 @@ ret_val = try_assoc(conn, classname, ac_classname, keys, field_name=field, expr_values=expr_values[field], bug_no='') if ret_val != PASS: - logger.error("------ FAILED: %s------" % field) + logger.error("------ FAILED: %s------", field) name_val[i] = temp return ret_val diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/SettingsDefineCapabilities/01_forward.py --- a/suites/libvirt-cim/cimtest/SettingsDefineCapabilities/01_forward.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/SettingsDefineCapabilities/01_forward.py Fri Feb 06 01:45:10 2009 -0800 @@ -82,7 +82,7 @@ try: instance = enumclass.GetInstance(ip, pool_class, key_list) except Exception, detail: - logger.error(CIM_ERROR_GETINSTANCE, '%s' % pool_class) + logger.error(CIM_ERROR_GETINSTANCE, '%s', pool_class) logger.error("Exception: %s", detail) sys.exit(FAIL) return instance diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/SystemDevice/01_forward.py --- a/suites/libvirt-cim/cimtest/SystemDevice/01_forward.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/SystemDevice/01_forward.py Fri Feb 06 01:45:10 2009 -0800 @@ -63,7 +63,7 @@ ret = cxml.create(server) if not ret: - logger.error('Unable to create domain %s' % test_dom) + logger.error('Unable to create domain %s', test_dom) return FAIL sd_classname = get_typed_class(virt, 'SystemDevice') diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/SystemDevice/02_reverse.py --- a/suites/libvirt-cim/cimtest/SystemDevice/02_reverse.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/SystemDevice/02_reverse.py Fri Feb 06 01:45:10 2009 -0800 @@ -63,7 +63,7 @@ try: devs = enumclass.EnumInstances(options.ip, cn) except Exception, detail: - logger.error("Exception: %s" % detail) + logger.error("Exception: %s", detail) cxml.destroy(options.ip) cxml.undefine(options.ip) return FAIL @@ -81,7 +81,7 @@ SystemName=dev.SystemName, SystemCreationClassName=dev.SystemCreationClassName) except Exception, detail: - logger.error("Exception: %s" % detail) + logger.error("Exception: %s", detail) cxml.destroy(options.ip) cxml.undefine(options.ip) return FAIL @@ -92,7 +92,7 @@ cxml.undefine(options.ip) return FAIL elif len(systems) != 1: - logger.error("%s systems returned, expected 1" % len(systems)) + logger.error("%s systems returned, expected 1", len(systems)) cxml.destroy(options.ip) cxml.undefine(options.ip) return FAIL @@ -106,9 +106,9 @@ if system.Name == test_dom: status = PASS - logger.info("Examined %s %s" % (system.Name, dev.DeviceID)) + logger.info("Examined %s %s", system.Name, dev.DeviceID) else: - logger.error("Association returned wrong system: %s" % + logger.error("Association returned wrong system: %s", system.Name) cxml.destroy(options.ip) diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/SystemDevice/03_fwderrs.py --- a/suites/libvirt-cim/cimtest/SystemDevice/03_fwderrs.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/SystemDevice/03_fwderrs.py Fri Feb 06 01:45:10 2009 -0800 @@ -101,7 +101,7 @@ names[item] = ("DeviceID" , dev.DeviceID ) except Exception, details: - logger.info("Exception %s for class %s" % (details , item)) + logger.info("Exception %s for class %s", details , item) return FAIL if len(name) <=0 or len(names) <= 0: @@ -150,10 +150,10 @@ if ((rc != exp_rc1 and desc.find(exp_desc1) <= 0) and (rc != exp_rc2 and desc.find(exp_desc2) <= 0)): status = FAIL - logger.info("Class = %s , key = %s , keyval = %s " \ - % (item, i , keyval)) - logger.info("Unexpected rc %s and desc %s for %s" - % (rc, desc, item)) + logger.info("Class = %s , key = %s , keyval = %s ", + item, i, keyval) + logger.info("Unexpected rc %s and desc %s for %s", + rc, desc, item) except Exception, details: logger.info("Unknown exception happened") @@ -162,8 +162,8 @@ if rc == 0: logger.info("Success returned for wrong key and ID") - logger.info("Class = %s , key = %s , keyval = %s " % - (item, i , keyval)) + logger.info("Class = %s , key = %s , keyval = %s ", + item, i , keyval) return XFAIL_RC(bug) except Exception, details: diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/VSSD/01_enum.py --- a/suites/libvirt-cim/cimtest/VSSD/01_enum.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VSSD/01_enum.py Fri Feb 06 01:45:10 2009 -0800 @@ -67,28 +67,28 @@ break if found == 1: if vssd.ElementName != test_dom: - logger.error("Invalid ElementName- expecting %s, go %s" % + logger.error("Invalid ElementName- expecting %s, go %s", test_dom, vssd.ElementName) vsxml.undefine(options.ip) return FAIL - logger.info("Examining VSSD class for the Guest %s" % test_dom) + logger.info("Examining VSSD class for the Guest %s", test_dom) try: name = vssd.ElementName idx = live_cs.index(name) del live_cs[idx] except BaseException, details: - logger.error("Exception %s" % details) - logger.error("Provider reports VSSD `%s', but xm does not" % + logger.error("Exception %s", details) + logger.error("Provider reports VSSD `%s', but xm does not", vssd.ElementName) status = FAIL else: - logger.error("Missing VSSD instance for the system %s " % test_dom) + logger.error("Missing VSSD instance for the system %s ", test_dom) status = FAIL except BaseException, details: - logger.error("Exception %s" % details) + logger.error("Exception %s", details) status = FAIL vsxml.undefine(options.ip) diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/VSSD/02_bootldr.py --- a/suites/libvirt-cim/cimtest/VSSD/02_bootldr.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VSSD/02_bootldr.py Fri Feb 06 01:45:10 2009 -0800 @@ -66,14 +66,14 @@ name = system.ElementName if name == test_dom : if system.Bootloader == bootldr : - logger.info("BootLoader for domain %s is %s" % (name, bootldr )) + logger.info("BootLoader for domain %s is %s", name, bootldr) status = 0 else: - logger.error("Bootloader is not set for VS %s" % test_dom) + logger.error("Bootloader is not set for VS %s", test_dom) status = 1 except Exception, detail : - logger.error("Exception : %s" % detail) + logger.error("Exception : %s", detail) status = 1 xmlfile.undefine(options.ip) diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/VSSD/04_vssd_to_rasd.py --- a/suites/libvirt-cim/cimtest/VSSD/04_vssd_to_rasd.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VSSD/04_vssd_to_rasd.py Fri Feb 06 01:45:10 2009 -0800 @@ -101,7 +101,7 @@ # When no records are found. if ret != PASS: - logger.error("%s with %s was not returned" % (classname, exp_val)) + logger.error("%s with %s was not returned", classname, exp_val) status = FAIL # We expect only one record to be returned. @@ -153,7 +153,7 @@ InstanceID = instIdval) if len(vssdc_assoc_info) == 1 and \ vssdc_assoc_info[0].classname == 'LXC_MemResourceAllocationSettingData': - logger.info("%s returned expect objects" % assoc_cname) + logger.info("%s returned expect objects", assoc_cname) elif len(vssdc_assoc_info) < 4: logger.error("%s returned %i %s objects, expected 4", assoc_cname, len(vssdc_assoc_info), qcn) @@ -161,7 +161,7 @@ except Exception, details: logger.error(CIM_ERROR_ASSOCIATORS, assoc_cname) - logger.error("Exception : %s" % details) + logger.error("Exception : %s", details) status = FAIL return status, vssdc_assoc_info @@ -202,7 +202,7 @@ logger.error("Mistmatching %s values", CCName ) break except Exception, detail : - logger.error("Exception in verify_rasd_values function: %s" % detail) + logger.error("Exception in verify_rasd_values function: %s", detail) status = FAIL return status diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/VirtualSystemManagementService/01_definesystem_name.py --- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/01_definesystem_name.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/01_definesystem_name.py Fri Feb 06 01:45:10 2009 -0800 @@ -39,12 +39,12 @@ ret = cxml.cim_define(options.ip) if not ret: - logger.error("Unable to define %s" % default_dom) + logger.error("Unable to define %s", default_dom) return FAIL status = cxml.cim_start(options.ip) if status != PASS: - logger.error("Failed to start the defined domain: %s" % default_dom) + logger.error("Failed to start the defined domain: %s", default_dom) cxml.cim_destroy(options.ip) cxml.undefine(options.ip) diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/VirtualSystemManagementService/02_destroysystem.py --- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/02_destroysystem.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/02_destroysystem.py Fri Feb 06 01:45:10 2009 -0800 @@ -76,7 +76,7 @@ list_after = domain_list(options.ip, options.virt) if default_dom in list_after: - logger.error("Domain %s not destroyed: provider didn't return error" % \ + logger.error("Domain %s not destroyed: provider didn't return error", default_dom) cleanup_env(options.ip, cxml) status = FAIL diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/VirtualSystemManagementService/05_destroysystem_neg.py --- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/05_destroysystem_neg.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/05_destroysystem_neg.py Fri Feb 06 01:45:10 2009 -0800 @@ -73,7 +73,7 @@ logger.info('Got expected error desc: %s',err_desc) return PASS - logger.error('destroy_fail>> %s: Error executing DestroySystem' % tc) + logger.error('destroy_fail>> %s: Error executing DestroySystem', tc) logger.error(details) return FAIL diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/VirtualSystemManagementService/07_addresource_neg.py --- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/07_addresource_neg.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/07_addresource_neg.py Fri Feb 06 01:45:10 2009 -0800 @@ -57,7 +57,7 @@ bad_inst = 'instance of what ever { dd = 3; //\ ]&' ret = service.AddResourceSettings(AffectedConfiguration=vssd_ref, ResourceSettings=[bad_inst]) - logger.info('ret[0] = %s' % ret[0]) + logger.info('ret[0] = %s', ret[0]) if ret[0] == None: logger.error('AddRS should NOT return OK with wrong RS input') rc = 0 @@ -66,8 +66,8 @@ logger.info('Got expected rc code and error string.') status = PASS else: - logger.error('Unexpected rc code %s and description:\n %s' % - (rc, desc)) + logger.error('Unexpected rc code %s and description:\n %s', + rc, desc) status = FAIL except Exception, details: logger.error('Error invoking AddRS') diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/VirtualSystemManagementService/09_procrasd_persist.py --- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/09_procrasd_persist.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/09_procrasd_persist.py Fri Feb 06 01:45:10 2009 -0800 @@ -104,7 +104,7 @@ status = check_proc_sched(options.ip, options.virt) if status != PASS: - raise Exception("%s CPU scheduling not set properly", default_dom) + raise Exception("%s CPU scheduling not set properly" % default_dom) status = PASS diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/VirtualSystemManagementService/10_hv_version.py --- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/10_hv_version.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/10_hv_version.py Fri Feb 06 01:45:10 2009 -0800 @@ -50,14 +50,14 @@ local_ver = get_hv_ver(options.ip, options.virt) if cim_ver != local_ver: - logger.error("CIM says version is `%s', but libvirt says `%s'" \ - % (cim_ver, local_ver)) + logger.error("CIM says version is `%s', but libvirt says `%s'", + cim_ver, local_ver) if options.virt == 'LXC': return XFAIL_RC(bug_libvirt) else: return FAIL else: - logger.info("Verified %s == %s" % (cim_ver, local_ver)) + logger.info("Verified %s == %s", cim_ver, local_ver) except Exception, details: logger.error(details) return FAIL diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/VirtualSystemManagementService/11_define_memrasdunits.py --- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/11_define_memrasdunits.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/11_define_memrasdunits.py Fri Feb 06 01:45:10 2009 -0800 @@ -67,7 +67,7 @@ ret = cxml.cim_define(options.ip) if not ret: - logger.error("DefineSystem with (%s) units failed" % units) + logger.error("DefineSystem with (%s) units failed", units) return FAIL return PASS @@ -94,10 +94,10 @@ cim_kb = int(the_rasd["VirtualQuantity"]) if cim_kb != mem_kb: - logger.error("CIM reports %i KB instead of %i KB" % (cim_kb, mem_kb)) + logger.error("CIM reports %i KB instead of %i KB", cim_kb, mem_kb) return FAIL - logger.info("Verified %i KB" % mem_kb) + logger.info("Verified %i KB", mem_kb) return PASS diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/VirtualSystemManagementService/12_referenced_config.py --- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/12_referenced_config.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/12_referenced_config.py Fri Feb 06 01:45:10 2009 -0800 @@ -50,12 +50,12 @@ def setup_first_guest(ip, virt, cxml): ret = cxml.cim_define(ip) if not ret: - logger.error("Unable to define %s using DefineSystem()" % test_dom) + logger.error("Unable to define %s using DefineSystem()", test_dom) return FAIL, None status = cxml.cim_start(ip) if status != PASS: - logger.error("Unable to start %s" % test_dom) + logger.error("Unable to start %s", test_dom) return FAIL, "define" return PASS, "start" @@ -98,7 +98,7 @@ ret = cxml2.cim_define(ip, ref_conf=ref) if not ret: - logger.error("Unable to define %s using DefineSystem()" % test_dom2) + logger.error("Unable to define %s using DefineSystem()", test_dom2) return FAIL, None return PASS, "define" diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/VirtualSystemManagementService/13_refconfig_additional_devs.py --- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/13_refconfig_additional_devs.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/13_refconfig_additional_devs.py Fri Feb 06 01:45:10 2009 -0800 @@ -60,33 +60,33 @@ def verify_no_dups(ip, virt, cxml, dom): if cxml.xml_get_disk_source() != cxml.dasd.Address: - logger.error("%s: Exp disk source %s" % (dom, cxml.dasd.Address)) + logger.error("%s: Exp disk source %s", dom, cxml.dasd.Address) return FAIL if cxml.xml_get_disk_dev() != cxml.dasd.VirtualDevice: - logger.error("%s: Exp disk dev %s" % (dom, cxml.dasd.VirtualDevice)) + logger.error("%s: Exp disk dev %s", dom, cxml.dasd.VirtualDevice) return FAIL if cxml.xml_get_net_type() != cxml.nasd.NetworkType: - logger.error("%s: Exp net type %d" % (dom, cxml.nasd.NetworkType)) + logger.error("%s: Exp net type %d", dom, cxml.nasd.NetworkType) return FAIL if cxml.xml_get_net_mac() != cxml.nasd.Address: - logger.error("%s: Exp net mac %s" % (dom, cxml.nasd.Address)) + logger.error("%s: Exp net mac %s", dom, cxml.nasd.Address) return FAIL vcpus = cxml.xml_get_vcpu() if not vcpus.isdigit(): - logger.error("Unable to get vcpus value for %s" % dom) + logger.error("Unable to get vcpus value for %s", dom) return FAIL if int(vcpus) != cxml.pasd.VirtualQuantity: - logger.error("%s: Exp vcpus %s" % (dom, cxml.pasd.VirtualQuantity)) + logger.error("%s: Exp vcpus %s", dom, cxml.pasd.VirtualQuantity) return FAIL mem = cxml.xml_get_mem() if not mem.isdigit(): - logger.error("Unable to get mem value for %s" % dom) + logger.error("Unable to get mem value for %s", dom) return FAIL if cxml.masd.AllocationUnits == "Bytes": @@ -107,7 +107,7 @@ exp_mem <<= shift if int(mem) != exp_mem: - logger.error("%s: Exp mem %s" % (dom, exp_mem)) + logger.error("%s: Exp mem %s", dom, exp_mem) return FAIL return PASS @@ -123,7 +123,7 @@ try: rc = cxml.cim_define(options.ip) if not rc: - logger.error("Unable define domain %s" % test_dom) + logger.error("Unable define domain %s", test_dom) raise Exception("Unable to define domain %s" % test_dom) ref = get_vssd_ref(options.ip, options.virt) @@ -132,7 +132,7 @@ rc = cxml2.cim_define(options.ip, ref_conf=ref) if not rc: - logger.error("Unable define domain %s" % test_dom2) + logger.error("Unable define domain %s", test_dom2) raise Exception("Unable to define %s" % test_dom2) rc = call_request_state_change(test_dom2, options.ip, diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/VirtualSystemMigrationService/01_migratable_host.py --- a/suites/libvirt-cim/cimtest/VirtualSystemMigrationService/01_migratable_host.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemMigrationService/01_migratable_host.py Fri Feb 06 01:45:10 2009 -0800 @@ -48,7 +48,7 @@ cxml = virt_xml(guest_name) ret = cxml.create(ip) if not ret: - logger.error("Error create domain %s" % guest_name) + logger.error("Error create domain %s", guest_name) return FAIL, None, cxml status, dom_cs = poll_for_state_change(ip, virt, guest_name, @@ -104,8 +104,8 @@ status, ret = migrate_guest_to_host(service, cs_ref, target_ip) if status == FAIL: - logger.error("MigrateVirtualSystemToHost: unexpected list length %s" - % len(ret)) + logger.error("MigrateVirtualSystemToHost: unexpected list length %s", + len(ret)) cxml.destroy(options.ip) cxml.undefine(options.ip) return status diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/VirtualSystemMigrationService/02_host_migrate_type.py --- a/suites/libvirt-cim/cimtest/VirtualSystemMigrationService/02_host_migrate_type.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemMigrationService/02_host_migrate_type.py Fri Feb 06 01:45:10 2009 -0800 @@ -46,7 +46,7 @@ cxml = virt_xml(guest_name) cxml.cim_define(ip) except Exception: - logger.error("Error define domain %s" % guest_name) + logger.error("Error define domain %s", guest_name) return FAIL, None classname = 'Xen_ComputerSystem' @@ -106,7 +106,7 @@ return FAIL, None except Exception: - logger.error("Error start domain %s" % guest_name) + logger.error("Error start domain %s", guest_name) return FAIL, None return PASS, cxml @@ -156,11 +156,11 @@ break logger.info("Migrating guest with the following options:") - logger.info("%s" % item) + logger.info("%s", item) status, ret = migrate_guest_to_host(service, cs_ref, target_ip, item) if status == FAIL: - logger.error("MigrateVirtualSystemToHost: unexpected list length %s" - % len(ret)) + logger.error("MigrateVirtualSystemToHost: unexpected list length %s", + len(ret)) cxml.destroy(options.ip) cxml.undefine(options.ip) return status diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/VirtualSystemMigrationService/05_migratable_host_errs.py --- a/suites/libvirt-cim/cimtest/VirtualSystemMigrationService/05_migratable_host_errs.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemMigrationService/05_migratable_host_errs.py Fri Feb 06 01:45:10 2009 -0800 @@ -43,13 +43,13 @@ cxml = virt_xml(test_dom) ret = cxml.cim_define(server) if not ret: - logger.error("Error define domain %s" % test_dom ) + logger.error("Error define domain %s", test_dom ) return FAIL status = cxml.cim_start(server) if status != PASS: cxml.undefine(server) - logger.error("Error start domain %s" % test_dom ) + logger.error("Error start domain %s", test_dom ) return status status = FAIL diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/01_forward.py --- a/suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/01_forward.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/01_forward.py Fri Feb 06 01:45:10 2009 -0800 @@ -116,16 +116,16 @@ try: if len(assoc_info) != 1: - logger.error("%s returned %i resource objects for '%s'" % \ - (an, len(assoc_info), cn)) + logger.error("%s returned %i resource objects for '%s'", + an, len(assoc_info), cn) return FAIL status = compare_all_prop(assoc_info[0], vssd) if status != PASS: logger.error("Properties of inst returned by %s didn't \ - match expected" % assoc_info[0].classname) + match expected", assoc_info[0].classname) return FAIL except Exception, detail : - logger.error("Exception in assoc_values function: %s" % detail) + logger.error("Exception in assoc_values function: %s", detail) return FAIL return PASS @@ -166,12 +166,12 @@ try: vssd = enumclass.GetInstance(options.ip, vssd_cn, key_list) if vssd is None: - logger.error("VSSD instance for %s not found" % test_dom) + logger.error("VSSD instance for %s not found", test_dom) cxml.undefine(options.ip) return FAIL except Exception, detail : logger.error(Globals.CIM_ERROR_GETINSTANCE, vssd_cn) - logger.error("Exception : %s" % detail) + logger.error("Exception : %s", detail) cxml.undefine(options.ip) return FAIL @@ -191,7 +191,7 @@ except Exception, detail : logger.error(Globals.CIM_ERROR_ASSOCIATORS, an) - logger.error("Exception : %s" % detail) + logger.error("Exception : %s", detail) status = FAIL cxml.undefine(options.ip) diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/02_reverse.py --- a/suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/02_reverse.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/02_reverse.py Fri Feb 06 01:45:10 2009 -0800 @@ -70,7 +70,7 @@ return FAIL except Exception, detail : - logger.error("Exception evaluating InstanceID: %s" % detail) + logger.error("Exception evaluating InstanceID: %s", detail) return FAIL return PASS @@ -139,7 +139,7 @@ break except Exception, detail : - logger.error("Exception in assoc_values function: %s" % detail) + logger.error("Exception in assoc_values function: %s", detail) status = FAIL return status diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/03_vssdc_fwd_errs.py --- a/suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/03_vssdc_fwd_errs.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/03_vssdc_fwd_errs.py Fri Feb 06 01:45:10 2009 -0800 @@ -116,13 +116,13 @@ ret = cxml.cim_define(options.ip) if not ret: - logger.error('Unable to define domain %s' % test_dom) + logger.error('Unable to define domain %s', test_dom) return FAIL status = cxml.cim_start(options.ip) if status != PASS: cxml.undefine(options.ip) - logger.error('Unable to start domain %s' % test_dom) + logger.error('Unable to start domain %s', test_dom) return FAIL global conn diff -r 3fc2b8a20333 -r 80572f08898a suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/04_vssdc_rev_errs.py --- a/suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/04_vssdc_rev_errs.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/04_vssdc_rev_errs.py Fri Feb 06 01:45:10 2009 -0800 @@ -109,13 +109,13 @@ ret = cxml.cim_define(options.ip) if not ret: - logger.error('Unable to define domain %s' % test_dom) + logger.error('Unable to define domain %s', test_dom) return FAIL status = cxml.cim_start(options.ip) if status != PASS: cxml.undefine(options.ip) - logger.error('Unable to start domain %s' % test_dom) + logger.error('Unable to start domain %s', test_dom) return FAIL global conn From yunguol at cn.ibm.com Fri Feb 6 09:54:46 2009 From: yunguol at cn.ibm.com (yunguol at cn.ibm.com) Date: Fri, 06 Feb 2009 01:54:46 -0800 Subject: [Libvirt-cim] [PATCH] [TEST] #2 Update test cases to follow the new coding style Message-ID: <263e285881acde9b9984.1233914086@elm3b197.beaverton.ibm.com> # HG changeset patch # User Guolian Yun # Date 1233914079 28800 # Node ID 263e285881acde9b99849cd133399298219c9d65 # Parent 3fc2b8a203339c6a59b5f0e2a159e3e0a802ea6d [TEST] #2 Update test cases to follow the new coding style Updates from 1 to 2: 1) fix the logger() call on line 62 in ElementCapabilities/05_hostsystem_cap.py 2) fix fix the logger() call on line 73 in HostSystem/04_hs_to_EAPF.py 1) Use commas instead of percent signs when passing parameters to logger.error() and logger.info() 2) Use percents When passing parameters to Exception() Tested for KVM/LXC with current sources Signed-off-by: Guolian Yun diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/AllocationCapabilities/01_enum.py --- a/suites/libvirt-cim/cimtest/AllocationCapabilities/01_enum.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/AllocationCapabilities/01_enum.py Fri Feb 06 01:54:39 2009 -0800 @@ -76,13 +76,13 @@ for inst in ac: id = inst.InstanceID if pools[id].ResourceType != inst.ResourceType: - logger.error("%s ResourceType %s, Pool ResourceType %s" % (cn, - inst.ResourceType, pools[id].ResourceType)) + logger.error("%s ResourceType %s, Pool ResourceType %s", + cn, inst.ResourceType, pools[id].ResourceType) return FAIL except Exception, details: - logger.error("%s returned instance with unexpected InstanceID %s" % (cn, - details)) + logger.error("%s returned instance with unexpected InstanceID %s", + cn, details) return FAIL return PASS @@ -106,7 +106,7 @@ return status if len(ac) != len(pools): - logger.error("%d %s insts != %d pool insts" % (len(ac), cn, len(pools))) + logger.error("%d %s insts != %d pool insts", len(ac), cn, len(pools)) return FAIL status = compare_pool_to_ac(ac, pools, cn) diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/AllocationCapabilities/02_alloccap_gi_errs.py --- a/suites/libvirt-cim/cimtest/AllocationCapabilities/02_alloccap_gi_errs.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/AllocationCapabilities/02_alloccap_gi_errs.py Fri Feb 06 01:54:39 2009 -0800 @@ -62,7 +62,7 @@ for ac in enum_list: pool, id, status = parse_instance_id(ac.InstanceID) if status != PASS: - logger.error("Unable to parse InstanceID: %s" % ac.InstanceID) + logger.error("Unable to parse InstanceID: %s", ac.InstanceID) return ac_ids, FAIL ac_ids.append("%s/invalid_id" % pool) diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/ComputerSystem/01_enum.py --- a/suites/libvirt-cim/cimtest/ComputerSystem/01_enum.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ComputerSystem/01_enum.py Fri Feb 06 01:54:39 2009 -0800 @@ -49,12 +49,12 @@ del live_cs[idx] except ValueError, detail: Globals.logger.error("Provider reports system `%s', \ -but virsh does not" % name) +but virsh does not", name) status = FAIL for system in live_cs: Globals.logger.error("Provider does not report system `%s', \ -but virsh does" % system) +but virsh does", system) status = FAIL except IndexError, detail: diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/ComputerSystem/02_nosystems.py --- a/suites/libvirt-cim/cimtest/ComputerSystem/02_nosystems.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ComputerSystem/02_nosystems.py Fri Feb 06 01:54:39 2009 -0800 @@ -60,7 +60,7 @@ return FAIL if len(cs) != 0: - logger.error("%s returned %d instead of empty list" % (cn, len(cs))) + logger.error("%s returned %d instead of empty list", cn, len(cs)) status = FAIL else: status = PASS diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/ComputerSystem/03_defineVS.py --- a/suites/libvirt-cim/cimtest/ComputerSystem/03_defineVS.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ComputerSystem/03_defineVS.py Fri Feb 06 01:54:39 2009 -0800 @@ -46,7 +46,7 @@ cxml = vxml.get_class(options.virt)(test_dom) rc = cxml.cim_define(options.ip) if not rc: - Globals.logger.error(VIRSH_ERROR_DEFINE % test_dom) + Globals.logger.error(VIRSH_ERROR_DEFINE, test_dom) return status cs_class = get_typed_class(options.virt, 'ComputerSystem') @@ -74,7 +74,7 @@ Globals.logger.error("Exception: %s", detail) if status != PASS : - Globals.logger.error("Error: property values are not set for VS %s" % test_dom) + Globals.logger.error("Error: property values are not set for VS %s", test_dom) cxml.undefine(options.ip) return status diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/ComputerSystem/04_defineStartVS.py --- a/suites/libvirt-cim/cimtest/ComputerSystem/04_defineStartVS.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ComputerSystem/04_defineStartVS.py Fri Feb 06 01:54:39 2009 -0800 @@ -47,12 +47,12 @@ try: ret = cxml.cim_define(options.ip) if not ret: - logger.error("Unable to define %s" % test_dom) + logger.error("Unable to define %s", test_dom) return FAIL status = cxml.cim_start(options.ip) if status != PASS: - logger.error("Failed to Start the dom: %s" % test_dom) + logger.error("Failed to Start the dom: %s", test_dom) logger.error("Property values not set properly for %s", test_dom) except Exception, detail: diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/ComputerSystem/05_activate_defined_start.py --- a/suites/libvirt-cim/cimtest/ComputerSystem/05_activate_defined_start.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ComputerSystem/05_activate_defined_start.py Fri Feb 06 01:54:39 2009 -0800 @@ -70,7 +70,7 @@ raise Exception("%s not in expected state" % test_dom) except Exception, detail: - logger.error("Exception: %s" % detail) + logger.error("Exception: %s", detail) status = FAIL cxml.cim_destroy(options.ip) diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/ComputerSystem/06_paused_active_suspend.py --- a/suites/libvirt-cim/cimtest/ComputerSystem/06_paused_active_suspend.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ComputerSystem/06_paused_active_suspend.py Fri Feb 06 01:54:39 2009 -0800 @@ -77,7 +77,7 @@ raise Exception("%s not in expected state" % test_dom) except Exception, detail: - logger.error("Exception variable: %s" % detail) + logger.error("Exception variable: %s", detail) status = FAIL cxml.destroy(server) diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/ComputerSystem/22_define_suspend.py --- a/suites/libvirt-cim/cimtest/ComputerSystem/22_define_suspend.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ComputerSystem/22_define_suspend.py Fri Feb 06 01:54:39 2009 -0800 @@ -53,14 +53,14 @@ # suspend the vs status = cxml.cim_suspend(options.ip) if status != PASS: - logger.info("Suspending defined %s failed, as expected" % test_dom) + logger.info("Suspending defined %s failed, as expected", test_dom) status = PASS else: raise Exception("Suspending defined %s should have failed" % \ test_dom) except Exception, detail: - logger.error("Error: %s" % detail) + logger.error("Error: %s", detail) status = FAIL cxml.undefine(options.ip) diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/ComputerSystem/41_cs_to_settingdefinestate.py --- a/suites/libvirt-cim/cimtest/ComputerSystem/41_cs_to_settingdefinestate.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ComputerSystem/41_cs_to_settingdefinestate.py Fri Feb 06 01:54:39 2009 -0800 @@ -121,7 +121,7 @@ for rasd in rasd_list: guest, dev, status = parse_instance_id(rasd.InstanceID) if status != PASS: - logger.error("Unable to parse InstanceID: %s" % rasd.InstanceID) + logger.error("Unable to parse InstanceID: %s", rasd.InstanceID) return rasd_insts, FAIL if guest == test_dom: @@ -272,7 +272,7 @@ status, cs_assoc_info = get_associators_info(server, cn, an, cs_class, instid) if status != PASS: - raise Exception("Failed to get assoc info for dom: %s", test_dom) + raise Exception("Failed to get assoc info for dom: %s" % test_dom) # verify the results of SettingsDefineState with the cs_values list # that was built using the output of the GetInstance on ComputerSystem. diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/ComputerSystemIndication/01_created_indication.py --- a/suites/libvirt-cim/cimtest/ComputerSystemIndication/01_created_indication.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ComputerSystemIndication/01_created_indication.py Fri Feb 06 01:54:39 2009 -0800 @@ -58,7 +58,7 @@ dict['default_sysname'], port) sub.subscribe(dict['default_url'], dict['default_auth']) - logger.info("Watching for %s" % iname) + logger.info("Watching for %s", iname) ind_names[ind] = ind_name sub_list[ind] = sub @@ -98,12 +98,12 @@ if str(sub.server.indications[0]) == ind_name: sub.unsubscribe(dict['default_auth']) - logger.info("Cancelling subscription for %s" % ind_name) + logger.info("Cancelling subscription for %s", ind_name) return PASS else: sub.server.indications.remove(sub.server.indications[0]) - logger.error("Did not recieve indication %s" % ind_name) + logger.error("Did not recieve indication %s", ind_name) return FAIL def poll_for_ind(pid, ind_name): @@ -129,7 +129,7 @@ logger.error("Waited too long for %s indication", ind_name) kill(pid, SIGKILL) else: - logger.error("Received indication error: %d" % pw[1]) + logger.error("Received indication error: %d", pw[1]) status = FAIL break @@ -174,13 +174,13 @@ raise Exception(details) except Exception, details: - logger.error("Exception: %s" % details) + logger.error("Exception: %s", details) status = FAIL #Make sure all subscriptions are really unsubscribed for ind, sub in sub_list.iteritems(): sub.unsubscribe(dict['default_auth']) - logger.info("Cancelling subscription for %s" % ind_names[ind]) + logger.info("Cancelling subscription for %s", ind_names[ind]) cxml.undefine(ip) diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/ElementAllocatedFromPool/01_forward.py --- a/suites/libvirt-cim/cimtest/ElementAllocatedFromPool/01_forward.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ElementAllocatedFromPool/01_forward.py Fri Feb 06 01:54:39 2009 -0800 @@ -67,11 +67,11 @@ inst = GetInstance(server, cn_name, key_list) except Exception, details: - logger.error("Exception %s" % details) + logger.error("Exception %s", details) return None if inst is None: - logger.error("Expected at least one %s instance" % cn_name) + logger.error("Expected at least one %s instance", cn_name) return None return inst diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/ElementCapabilities/01_forward.py --- a/suites/libvirt-cim/cimtest/ElementCapabilities/01_forward.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ElementCapabilities/01_forward.py Fri Feb 06 01:54:39 2009 -0800 @@ -130,7 +130,7 @@ elec = assoc.AssociatorNames(server, an, ccn, Name = system, CreationClassName = ccn) except Exception: - logger.error(CIM_ERROR_ASSOCIATORNAMES % system) + logger.error(CIM_ERROR_ASSOCIATORNAMES, system) cxml.undefine(server) return FAIL diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/ElementCapabilities/02_reverse.py --- a/suites/libvirt-cim/cimtest/ElementCapabilities/02_reverse.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ElementCapabilities/02_reverse.py Fri Feb 06 01:54:39 2009 -0800 @@ -57,7 +57,7 @@ def filter(list, cn, exp_result): new_list = assoc.filter_by_result_class(list, cn) if len(new_list) != exp_result: - logger.error("Expected %d host, got %d" % (exp_result, len(new_list))) + logger.error("Expected %d host, got %d", exp_result, len(new_list)) return FAIL, new_list return PASS, new_list @@ -154,7 +154,7 @@ cxml = virtxml(test_dom) ret = cxml.cim_define(options.ip) if not ret: - logger.error("Failed to define the dom: %s" % test_dom) + logger.error("Failed to define the dom: %s", test_dom) return FAIL cs = domain_list(options.ip, options.virt) diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/ElementCapabilities/03_forward_errs.py --- a/suites/libvirt-cim/cimtest/ElementCapabilities/03_forward_errs.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ElementCapabilities/03_forward_errs.py Fri Feb 06 01:54:39 2009 -0800 @@ -51,14 +51,14 @@ logger.info("Got expected rc code and error string") status = PASS else: - logger.error("Unexpected rc code %s and description %s\n" %(rc, desc)) + logger.error("Unexpected rc code %s and description %s\n", rc, desc) except Exception, details: logger.error("Unknown exception happened") logger.error(details) if rc == 0: logger.error("ElementCapabilities associator should NOT return excepted \ - result with a wrong key name and value of %s input" % ref_class) + result with a wrong key name and value of %s input", ref_class) status = FAIL return status diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/ElementCapabilities/04_reverse_errs.py --- a/suites/libvirt-cim/cimtest/ElementCapabilities/04_reverse_errs.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ElementCapabilities/04_reverse_errs.py Fri Feb 06 01:54:39 2009 -0800 @@ -50,14 +50,14 @@ logger.info("Got expected rc code and error string") status = PASS else: - logger.error("Unexpected rc code %s and description %s\n" %(rc, desc)) + logger.error("Unexpected rc code %s and description %s\n", rc, desc) except Exception, details: logger.error("Unknown exception happened") logger.error(details) if rc == 0: logger.error("ElementCapabilities associator should NOT return excepted result \ - with a wrong key name and value of %s input" % ref_class) + with a wrong key name and value of %s input", ref_class) status = FAIL return status diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/ElementCapabilities/05_hostsystem_cap.py --- a/suites/libvirt-cim/cimtest/ElementCapabilities/05_hostsystem_cap.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ElementCapabilities/05_hostsystem_cap.py Fri Feb 06 01:54:39 2009 -0800 @@ -59,7 +59,7 @@ sup_types = ['Xen', 'XenFV', 'KVM', 'LXC'] def print_err(err, detail, cn): - logger.error(err % cn) + logger.error(err, cn) logger.error("Exception: %s", detail) def field_err(fieldname, exp_val, ret_value): @@ -76,7 +76,7 @@ break if ret != PASS: - logger.error("%s with %s was not returned" % (cn, exp_val)) + logger.error("%s with %s was not returned", cn, exp_val) status = FAIL return status, inst diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/ElementConforms/01_forward.py --- a/suites/libvirt-cim/cimtest/ElementConforms/01_forward.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ElementConforms/01_forward.py Fri Feb 06 01:54:39 2009 -0800 @@ -151,13 +151,13 @@ cxml = virt_xml(test_dom) ret = cxml.cim_define(server) if not ret: - logger.error('Unable to define domain %s' % test_dom) + logger.error('Unable to define domain %s', test_dom) return FAIL ret = cxml.start(server) if not ret: cxml.undefine(server) - logger.error('Unable to start domain %s' % test_dom) + logger.error('Unable to start domain %s', test_dom) return FAIL prev_namespace = Globals.CIM_NS @@ -201,7 +201,7 @@ raise Exception("%s items weren't returned: %s" % (key, list)) except Exception, detail: - logger.error("Exception: %s" % detail) + logger.error("Exception: %s", detail) status = FAIL Globals.CIM_NS = prev_namespace diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/ElementConforms/02_reverse.py --- a/suites/libvirt-cim/cimtest/ElementConforms/02_reverse.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ElementConforms/02_reverse.py Fri Feb 06 01:54:39 2009 -0800 @@ -93,7 +93,7 @@ ret = cxml.cim_define(server) if not ret: - logger.error("ERROR: Failed to Define the dom: %s" % test_dom) + logger.error("ERROR: Failed to Define the dom: %s", test_dom) return status inst_list = {} @@ -102,7 +102,7 @@ if rc != 0: cs = libvirt_cached_data_poll(server, virt, test_dom) if sys is None: - logger.error("Instance for %s not created" % test_dom) + logger.error("Instance for %s not created", test_dom) cxml.undefine(server) return FAIL @@ -116,7 +116,7 @@ return status except Exception, details: - logger.error("DEBUG Exception: %s" % details) + logger.error("DEBUG Exception: %s", details) cxml.undefine(server) return FAIL diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/ElementConforms/03_ectp_fwd_errs.py --- a/suites/libvirt-cim/cimtest/ElementConforms/03_ectp_fwd_errs.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ElementConforms/03_ectp_fwd_errs.py Fri Feb 06 01:54:39 2009 -0800 @@ -84,7 +84,7 @@ ret_val = try_assoc(conn, classname, ac_classname, keys, field_name=field, \ expr_values=expr_values[field], bug_no="") if ret_val != PASS: - logger.error("------ FAILED: %s------" % field) + logger.error("------ FAILED: %s------", field) name_val[i] = temp return ret_val diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/ElementConforms/04_ectp_rev_errs.py --- a/suites/libvirt-cim/cimtest/ElementConforms/04_ectp_rev_errs.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ElementConforms/04_ectp_rev_errs.py Fri Feb 06 01:54:39 2009 -0800 @@ -125,7 +125,7 @@ ret_val = try_assoc(conn, classname, ac_classname, keys, field_name=field, \ expr_values=expr_values[field], bug_no="") if ret_val != PASS: - logger.error("------ FAILED: %s------" % field) + logger.error("------ FAILED: %s------", field) name_val[i] = temp return ret_val @@ -142,7 +142,7 @@ cxml = virt_xml(test_dom) ret = cxml.cim_define(options.ip) if not ret: - logger.error('Unable to define domain %s' % test_dom) + logger.error('Unable to define domain %s', test_dom) return FAIL hs = get_typed_class(options.virt, "HostSystem") diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/ElementSettingData/01_forward.py --- a/suites/libvirt-cim/cimtest/ElementSettingData/01_forward.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ElementSettingData/01_forward.py Fri Feb 06 01:54:39 2009 -0800 @@ -72,11 +72,11 @@ inst = GetInstance(ip, cn, key_list) except Exception, details: - logger.error("Exception %s" % details) + logger.error("Exception %s", details) return None if inst is None: - logger.error("Expected at least one %s instance" % cn) + logger.error("Expected at least one %s instance", cn) return None return inst @@ -167,7 +167,7 @@ for cn, inst in inst_list.iteritems(): status = test_assoc(options.ip, esd_cn, cn, options.virt, inst) if status != PASS: - logger.error("Unable to get %s insts from %s" % (cn, esd_cn)) + logger.error("Unable to get %s insts from %s", cn, esd_cn) break cxml.undefine(options.ip) diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/ElementSettingData/03_esd_assoc_with_rasd_errs.py --- a/suites/libvirt-cim/cimtest/ElementSettingData/03_esd_assoc_with_rasd_errs.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ElementSettingData/03_esd_assoc_with_rasd_errs.py Fri Feb 06 01:54:39 2009 -0800 @@ -88,7 +88,7 @@ cxml = virtxml(test_dom, mac = test_mac) ret = cxml.create(options.ip) if not ret: - logger.error("Failed to Create the dom: %s" % test_dom) + logger.error("Failed to Create the dom: %s", test_dom) status = FAIL return status if options.virt == "XenFV": diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/HostSystem/01_enum.py --- a/suites/libvirt-cim/cimtest/HostSystem/01_enum.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/HostSystem/01_enum.py Fri Feb 06 01:54:39 2009 -0800 @@ -50,7 +50,7 @@ try: hs = enumclass.EnumInstances(options.ip, name) except Exception, details: - logger.error("%s %s: %s" % (CIM_ERROR_ENUMERATE, name, details)) + logger.error("%s %s: %s", CIM_ERROR_ENUMERATE, name, details) status = FAIL if ret == PASS: @@ -60,25 +60,25 @@ else: if linux_cs.CreationClassName != 'Linux_ComputerSystem'\ or linux_cs.Name != host: - logger.error("Exp Linux_ComputerSystem, got %s" \ - % linux_cs.CreationClassName) - logger.error("Exp %s, got %s" % (host, system.Name)) + logger.error("Exp Linux_ComputerSystem, got %s", + linux_cs.CreationClassName) + logger.error("Exp %s, got %s", host, system.Name) return FAIL else: return PASS else: if len(hs) != 1: - logger.error("Expected 1 %s instance returned" % name) + logger.error("Expected 1 %s instance returned", name) return FAIL system = hs[0] if system.CreationClassName != name or system.Name != host: - logger.error("Exp %s, got %s" % (name, system.CreationClassName)) - logger.error("Exp %s, got %s" % (host, system.Name)) + logger.error("Exp %s, got %s", name, system.CreationClassName) + logger.error("Exp %s, got %s", host, system.Name) status = FAIL else: - logger.info("%s is %s" % (name, host)) + logger.info("%s is %s", name, host) status = PASS return status diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/HostSystem/02_hostsystem_to_rasd.py --- a/suites/libvirt-cim/cimtest/HostSystem/02_hostsystem_to_rasd.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/HostSystem/02_hostsystem_to_rasd.py Fri Feb 06 01:54:39 2009 -0800 @@ -96,7 +96,7 @@ return status, vsxml_info def print_err(err, detail, cn): - logger.error(err % cn) + logger.error(err, cn) logger.error("Exception: %s", detail) def get_inst_from_list(server, cn, cs_list, filter_name, exp_val, vsxml): @@ -109,7 +109,7 @@ break if ret != PASS: - logger.error("%s with %s was not returned" % (cn, exp_val)) + logger.error("%s with %s was not returned", cn, exp_val) vsxml.undefine(server) status = FAIL @@ -165,7 +165,7 @@ SystemCreationClassName = sccn) if len(assoc_info) != 1: - logger.error("%s returned %i %s objects" % (an, len(assoc_info), cn)) + logger.error("%s returned %i %s objects", an, len(assoc_info), cn) status = FAIL break index = (len(assoc_info) - 1) diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/HostSystem/03_hs_to_settdefcap.py --- a/suites/libvirt-cim/cimtest/HostSystem/03_hs_to_settdefcap.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/HostSystem/03_hs_to_settdefcap.py Fri Feb 06 01:54:39 2009 -0800 @@ -73,7 +73,7 @@ return status, vsxml def print_err(err, detail, cn): - logger.error(err % cn) + logger.error(err, cn) logger.error("Exception: %s", detail) def get_inst_from_list(cn, qcn, list, filter, exp_val): @@ -82,7 +82,7 @@ inst = None if len(list) < 1: - logger.error("%s returned %i %s objects" % (qcn, len(list), cn)) + logger.error("%s returned %i %s objects", qcn, len(list), cn) return FAIL, None for inst in list: @@ -92,7 +92,7 @@ if ret != PASS: status = FAIL - logger.error("%s with %s was not returned" % (cn, exp_val)) + logger.error("%s with %s was not returned", cn, exp_val) return status, inst @@ -107,7 +107,7 @@ logger.error("Hostname mismatch") except Exception, detail: - logger.error("Exception in %s : %s" % (cn, detail)) + logger.error("Exception in %s : %s", cn, detail) status = FAIL return status, host_inst.Name, host_inst.CreationClassName @@ -236,7 +236,7 @@ if status != PASS: return status else: - logger.error("Unexpected instance type %s" % cn) + logger.error("Unexpected instance type %s", cn) return FAIL except Exception, detail: @@ -248,10 +248,10 @@ def check_rasd_vals(inst, rt): try: if inst['ResourceType'] != rt: - logger.error("In ResourceType for %s " % rt) + logger.error("In ResourceType for %s ", rt) return FAIL except Exception, detail: - logger.error("Error checking RASD attribute values %s" % detail) + logger.error("Error checking RASD attribute values %s", detail) return FAIL return PASS diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/HostSystem/04_hs_to_EAPF.py --- a/suites/libvirt-cim/cimtest/HostSystem/04_hs_to_EAPF.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/HostSystem/04_hs_to_EAPF.py Fri Feb 06 01:54:39 2009 -0800 @@ -70,7 +70,7 @@ libvirt_input_graphics_changeset = 757 def print_err(err, detail, cn): - logger.error(err % cn) + logger.error(err, cn) logger.error("Exception: %s", detail) def pool_init_list(virt, pool_assoc, net_name, dp_InstID): @@ -194,8 +194,8 @@ def check_len(an, assoc_list_info, qcn, exp_len): if len(assoc_list_info) < exp_len: - logger.error("%s returned %i %s objects" % (an, - len(assoc_list_info), qcn)) + logger.error("%s returned %i %s objects", + an, len(assoc_list_info), qcn) return FAIL return PASS diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/HostSystem/06_hs_to_vsms.py --- a/suites/libvirt-cim/cimtest/HostSystem/06_hs_to_vsms.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/HostSystem/06_hs_to_vsms.py Fri Feb 06 01:54:39 2009 -0800 @@ -56,7 +56,7 @@ sup_types = ['Xen', 'KVM', 'XenFV', 'LXC'] def print_err(err, detail, cn): - logger.error(err % cn) + logger.error(err, cn) logger.error("Exception: %s", detail) def print_field_error(fieldname, ret_value, exp_value): @@ -76,7 +76,7 @@ # When no records are found. if ret != PASS: - logger.error("%s with %s was not returned" % (cn, exp_val)) + logger.error("%s with %s was not returned", cn, exp_val) status = FAIL return status, inst diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/HostedDependency/02_reverse.py --- a/suites/libvirt-cim/cimtest/HostedDependency/02_reverse.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/HostedDependency/02_reverse.py Fri Feb 06 01:54:39 2009 -0800 @@ -72,12 +72,12 @@ ret = cxml.cim_define(server) if not ret: - logger.error("Failed to define the dom: %s" % test_dom) + logger.error("Failed to define the dom: %s", test_dom) return FAIL rc = call_request_state_change(test_dom, server, 2, TIME, virt) if rc != 0: - logger.error("Failed to start the dom: %s" % test_dom) + logger.error("Failed to start the dom: %s", test_dom) cxml.undefine(server) return FAIL @@ -126,7 +126,7 @@ if guest["Name"] in cs_names: cs_names.remove(guest["Name"]) else: - logger.error("HostedDependency returned unexpected guest %s" % + logger.error("HostedDependency returned unexpected guest %s", guest["Name"]) status = FAIL @@ -140,7 +140,7 @@ # not being returned by HostedDependency for guest in cs_names: - logger.error("HostedDependency did not return expected guest %s" % + logger.error("HostedDependency did not return expected guest %s", guest["Name"]) status = FAIL diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/HostedDependency/03_enabledstate.py --- a/suites/libvirt-cim/cimtest/HostedDependency/03_enabledstate.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/HostedDependency/03_enabledstate.py Fri Feb 06 01:54:39 2009 -0800 @@ -80,7 +80,7 @@ except Exception, detail: logger.error(CIM_ERROR_GETINSTANCE, 'ComputerSystem') - logger.error("Exception: %s" % detail) + logger.error("Exception: %s", detail) status = FAIL return status, dom_field_list @@ -113,18 +113,18 @@ ret = cxml.cim_define(server) if not ret: - logger.error("Failed to define the dom: %s" % test_dom) + logger.error("Failed to define the dom: %s", test_dom) return FAIL rc = call_request_state_change(test_dom, server, 2, TIME, virt) if rc != 0: - logger.error("Failed to start the dom: %s" % test_dom) + logger.error("Failed to start the dom: %s", test_dom) cxml.undefine(server) return FAIL rc = call_request_state_change(test_dom, server, 9, TIME, virt) if rc != 0: - logger.error("Failed to suspend the dom: %s" % test_dom) + logger.error("Failed to suspend the dom: %s", test_dom) cxml.destroy(server) cxml.undefine(server) @@ -181,7 +181,7 @@ except Exception, detail: logger.error(CIM_ERROR_ASSOCIATORS,'HostedDependency') - logger.error("Exception: %s" % detail) + logger.error("Exception: %s", detail) status = FAIL cxml.destroy(server) diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/HostedDependency/04_reverse_errs.py --- a/suites/libvirt-cim/cimtest/HostedDependency/04_reverse_errs.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/HostedDependency/04_reverse_errs.py Fri Feb 06 01:54:39 2009 -0800 @@ -91,7 +91,7 @@ ret = cxml.create(server) if not ret: - logger.error("Failed to Create the dom: %s" % test_dom) + logger.error("Failed to Create the dom: %s", test_dom) return FAIL conn = assoc.myWBEMConnection('http://%s' % server, diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/HostedResourcePool/01_forward.py --- a/suites/libvirt-cim/cimtest/HostedResourcePool/01_forward.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/HostedResourcePool/01_forward.py Fri Feb 06 01:54:39 2009 -0800 @@ -58,7 +58,7 @@ Name = host_sys, CreationClassName = host_cn) except Exception, details: - logger.error(Globals.CIM_ERROR_ASSOCIATORNAMES % assoc_cn) + logger.error(Globals.CIM_ERROR_ASSOCIATORNAMES, assoc_cn) logger.error("Exception:", details) return FAIL diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/HostedResourcePool/02_reverse.py --- a/suites/libvirt-cim/cimtest/HostedResourcePool/02_reverse.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/HostedResourcePool/02_reverse.py Fri Feb 06 01:54:39 2009 -0800 @@ -64,7 +64,7 @@ try: assoc_host = AssociatorNames(options.ip, assoc_cn, k, InstanceID=v) except Exception: - logger.error(Globals.CIM_ERROR_ASSOCIATORNAMES % assoc_cn) + logger.error(Globals.CIM_ERROR_ASSOCIATORNAMES, assoc_cn) return FAIL if len(assoc_host) == 1: if assoc_host[0].keybindings['Name'] != host_sys: diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/HostedService/01_forward.py --- a/suites/libvirt-cim/cimtest/HostedService/01_forward.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/HostedService/01_forward.py Fri Feb 06 01:54:39 2009 -0800 @@ -58,7 +58,7 @@ Name = host_name) except Exception, deatils: - logger.error(Globals.CIM_ERROR_ASSOCIATORNAMES % host_name) + logger.error(Globals.CIM_ERROR_ASSOCIATORNAMES, host_name) logger.error("Exception: details %s", details) return FAIL diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/LogicalDisk/01_disk.py --- a/suites/libvirt-cim/cimtest/LogicalDisk/01_disk.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/LogicalDisk/01_disk.py Fri Feb 06 01:54:39 2009 -0800 @@ -58,11 +58,11 @@ status = 0 if dev.Name != test_dev: - logger.error("Name should be `%s' instead of `%s'" % (test_dev, dev.Name)) + logger.error("Name should be `%s' instead of `%s'", test_dev, dev.Name) status = 1 if status == 0: - logger.info("Checked device %s" % dev.Name) + logger.info("Checked device %s", dev.Name) vsxml.undefine(options.ip) diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/LogicalDisk/02_nodevs.py --- a/suites/libvirt-cim/cimtest/LogicalDisk/02_nodevs.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/LogicalDisk/02_nodevs.py Fri Feb 06 01:54:39 2009 -0800 @@ -69,7 +69,7 @@ return FAIL if len(devs) != 0: - logger.error("%s returned %d instead of empty list" % (cn, len(devs))) + logger.error("%s returned %d instead of empty list", cn, len(devs)) status = FAIL else: status = PASS diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/Memory/01_memory.py --- a/suites/libvirt-cim/cimtest/Memory/01_memory.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/Memory/01_memory.py Fri Feb 06 01:54:39 2009 -0800 @@ -63,11 +63,11 @@ capacity = dev.ConsumableBlocks * dev.BlockSize / 1024 if capacity != alloc_mem: - logger.error("Capacity should be %i MB instead of %i MB" % (alloc_mem, capacity)) + logger.error("Capacity should be %i MB instead of %i MB", alloc_mem, capacity) status = 1 if status == 0: - logger.info("Checked memory capacity: %s MB" % capacity) + logger.info("Checked memory capacity: %s MB", capacity) vsxml.undefine(options.ip) return status diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/Memory/02_defgetmem.py --- a/suites/libvirt-cim/cimtest/Memory/02_defgetmem.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/Memory/02_defgetmem.py Fri Feb 06 01:54:39 2009 -0800 @@ -76,7 +76,7 @@ raise Exception("Memory inst for %s not as expected." % default_dom) except Exception, detail: - logger.error("Exception: %s" % detail) + logger.error("Exception: %s", detail) status = FAIL cxml.undefine(options.ip) diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/NetworkPort/01_netport.py --- a/suites/libvirt-cim/cimtest/NetworkPort/01_netport.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/NetworkPort/01_netport.py Fri Feb 06 01:54:39 2009 -0800 @@ -80,12 +80,12 @@ dev = GetInstance(options.ip, net_class, key_list) except Exception, detail: - logger.error("Exception: %s" % detail) + logger.error("Exception: %s", detail) vsxml.undefine(options.ip) return FAIL if dev.DeviceID == None: - logger.error("Error retrieving instance for devid %s" % devid) + logger.error("Error retrieving instance for devid %s", devid) vsxml.undefine(options.ip) return FAIL @@ -94,23 +94,23 @@ link_tech = get_linktech(options.ip, options.virt) if dev.LinkTechnology != link_tech: - logger.error("LinkTechnology should be set to `%i' instead of `%s'" % \ - (link_tech, dev.LinkTechnology)) + logger.error("LinkTechnology should be set to `%i' instead of `%s'", + link_tech, dev.LinkTechnology) status = FAIL addrs = dev.NetworkAddresses if len(addrs) != 1: - logger.error("Too many NetworkAddress entries (%i instead of %i)" % \ - (len(addrs), 1)) + logger.error("Too many NetworkAddress entries (%i instead of %i)", + len(addrs), 1) status = FAIL if addrs[0] != test_mac: - logger.error("MAC address reported incorrectly (%s instead of %s)" % \ - (addrs[0], test_mac)) + logger.error("MAC address reported incorrectly (%s instead of %s)", + addrs[0], test_mac) status = FAIL if status == FAIL: - logger.error("Checked interface %s" % test_mac) + logger.error("Checked interface %s", test_mac) vsxml.undefine(options.ip) diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/NetworkPort/03_user_netport.py --- a/suites/libvirt-cim/cimtest/NetworkPort/03_user_netport.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/NetworkPort/03_user_netport.py Fri Feb 06 01:54:39 2009 -0800 @@ -45,7 +45,7 @@ cxml = KVMXML(test_dom, mac = test_mac, ntype='user') ret = cxml.cim_define(options.ip) if not ret: - logger.error('Unable to define domain %s' % test_dom) + logger.error('Unable to define domain %s', test_dom) return FAIL devid = "%s/%s" % (test_dom, test_mac) @@ -59,7 +59,7 @@ try: dev = GetInstance(options.ip, 'KVM_NetworkPort', key_list) except Exception, detail: - logger.error("Exception: %s" % detail) + logger.error("Exception: %s", detail) cxml.undefine(options.ip) return FAIL @@ -73,17 +73,17 @@ addrs = dev.NetworkAddresses if len(addrs) != 1: - logger.error("Too many NetworkAddress entries (%i instead of %i)" % \ - (len(addrs), 1)) + logger.error("Too many NetworkAddress entries (%i instead of %i)", + len(addrs), 1) status = FAIL if addrs[0] != test_mac: - logger.error("MAC address reported incorrectly (%s instead of %s)" % \ - (addrs[0], test_mac)) + logger.error("MAC address reported incorrectly (%s instead of %s)", + addrs[0], test_mac) status = FAIL if status == FAIL: - logger.error("Checked interface %s" % test_mac) + logger.error("Checked interface %s", test_mac) cxml.undefine(options.ip) return status diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/Processor/01_processor.py --- a/suites/libvirt-cim/cimtest/Processor/01_processor.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/Processor/01_processor.py Fri Feb 06 01:54:39 2009 -0800 @@ -64,11 +64,11 @@ try: dev = GetInstance(options.ip, proc_class, key_list) if dev.DeviceID == devid: - logger.info("Checked device %s" % devid) + logger.info("Checked device %s", devid) else: - logger.error("Mismatching device, returned %s instead %s" % (dev.DeviceID, devid)) + logger.error("Mismatching device, returned %s instead %s", dev.DeviceID, devid) except Exception, details: - logger.error("Error check device %s: %s" % (devid, details)) + logger.error("Error check device %s: %s", devid, details) status = 1 vsxml.stop(options.ip) diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/Processor/02_definesys_get_procs.py --- a/suites/libvirt-cim/cimtest/Processor/02_definesys_get_procs.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/Processor/02_definesys_get_procs.py Fri Feb 06 01:54:39 2009 -0800 @@ -86,7 +86,7 @@ % default_dom) except Exception, detail: - logger.error("Exception: %s" % detail) + logger.error("Exception: %s", detail) status = FAIL cxml.undefine(options.ip) diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/Profile/01_enum.py --- a/suites/libvirt-cim/cimtest/Profile/01_enum.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/Profile/01_enum.py Fri Feb 06 01:54:39 2009 -0800 @@ -66,16 +66,16 @@ x.RegisteredName, x.RegisteredVersion] for x in proflist] for exp_prof in explist: if exp_prof in checklist: - logger.info("Profile %s found" % exp_prof[0]) + logger.info("Profile %s found", exp_prof[0]) else: - logger.error("Profile %s is not found" % exp_prof[0]) + logger.error("Profile %s is not found", exp_prof[0]) status = FAIL break if status == PASS: - logger.info("Properties check for %s passed" % cn) + logger.info("Properties check for %s passed", cn) else: - logger.error("Properties check for %s failed" % cn) + logger.error("Properties check for %s failed", cn) return status if __name__ == "__main__": diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/Profile/02_profile_to_elec.py --- a/suites/libvirt-cim/cimtest/Profile/02_profile_to_elec.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/Profile/02_profile_to_elec.py Fri Feb 06 01:54:39 2009 -0800 @@ -63,18 +63,18 @@ rc = csxml_info.cim_define(server) if not rc: - logger.error("Unable define domain %s using DefineSystem() " % test_dom) + logger.error("Unable define domain %s using DefineSystem() ", test_dom) status = FAIL except Exception, detail: - logger.error("Exception defining domain %s" % test_dom) + logger.error("Exception defining domain %s", test_dom) logger.error("Exception: %s", detail) status = FAIL return status, csxml_info def print_err(err, detail, cn): - logger.error(err % cn) + logger.error(err, cn) logger.error("Exception: %s", detail) def get_expected_inst(cn, list, property, exp): @@ -84,7 +84,7 @@ return PASS, x except Exception: pass - logger.error("%s with %s was not returned" % (cn, exp)) + logger.error("%s with %s was not returned", cn, exp) return FAIL, None diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/RedirectionService/03_RedirectionSAP_errs.py --- a/suites/libvirt-cim/cimtest/RedirectionService/03_RedirectionSAP_errs.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/RedirectionService/03_RedirectionSAP_errs.py Fri Feb 06 01:54:39 2009 -0800 @@ -140,7 +140,7 @@ if status != PASS: - logger.error(" -------------- FAILED %s ----------- : " % test_val) + logger.error(" -------------- FAILED %s ----------- : ", test_val) break cxml.cim_destroy(options.ip) diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/ResourceAllocationFromPool/01_forward.py --- a/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/01_forward.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/01_forward.py Fri Feb 06 01:54:39 2009 -0800 @@ -82,7 +82,7 @@ for rasd in rasd_list: guest, dev, status = parse_instance_id(rasd.InstanceID) if status != PASS: - logger.error("Unable to parse InstanceID: %s" % rasd.InstanceID) + logger.error("Unable to parse InstanceID: %s", rasd.InstanceID) return rasd_insts, FAIL if guest == guest_name: @@ -108,7 +108,7 @@ for inst in list: guest, id, status = parse_instance_id(inst.InstanceID) if status != PASS: - logger.error("Unable to parse InstanceID: %s" % inst.InstanceID) + logger.error("Unable to parse InstanceID: %s", inst.InstanceID) return None, FAIL if id == exp_id: @@ -169,8 +169,8 @@ if rasd['InstanceID'] == exp_rasd.InstanceID: status = PASS else: - logger.info("Got %s instead of %s" % (rasd['InstanceID'], - exp_rasd.InstanceID)) + logger.info("Got %s instead of %s", rasd['InstanceID'], + exp_rasd.InstanceID) status = FAIL if status != PASS: diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/ResourceAllocationFromPool/02_reverse.py --- a/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/02_reverse.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/02_reverse.py Fri Feb 06 01:54:39 2009 -0800 @@ -81,7 +81,7 @@ for rasd in rasd_list: guest, dev, status = parse_instance_id(rasd.InstanceID) if status != PASS: - logger.error("Unable to parse InstanceID: %s" % rasd.InstanceID) + logger.error("Unable to parse InstanceID: %s", rasd.InstanceID) return rasd_insts, FAIL if guest == guest_name: @@ -107,7 +107,7 @@ for inst in list: guest, id, status = parse_instance_id(inst.InstanceID) if status != PASS: - logger.error("Unable to parse InstanceID: %s" % inst.InstanceID) + logger.error("Unable to parse InstanceID: %s", inst.InstanceID) return None, FAIL if id == exp_id: diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/ResourceAllocationFromPool/03_forward_errs.py --- a/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/03_forward_errs.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/03_forward_errs.py Fri Feb 06 01:54:39 2009 -0800 @@ -65,13 +65,15 @@ logger.info("Got excepted rc code and error string") status = PASS else: - logger.error("Unexpected rc code %s and description %s\n" %(rc, desc)) + logger.error("Unexpected rc code %s and description %s\n", rc, desc) except Exception, details: logger.error("Unknown exception happened") logger.error(details) if rc == 0: - logger.error("ResourceAllocationFromPool associator should NOT return excepted result with a wrong InstanceID value of %s input" %k) + logger.error("ResourceAllocationFromPool associator should NOT \ + return excepted result with a wrong InstanceID \ + value of %s input", k) status = FAIL return status diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/ResourceAllocationFromPool/04_reverse_errs.py --- a/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/04_reverse_errs.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/04_reverse_errs.py Fri Feb 06 01:54:39 2009 -0800 @@ -63,13 +63,16 @@ logger.info("Got excepted rc code and error string") status = PASS else: - logger.error("Unexpected rc code %s and description %s\n" %(rc, desc)) + logger.error("Unexpected rc code %s and description %s\n", + rc, desc) except Exception, details: logger.error("Unknown exception happened") logger.error(details) if rc == 0: - logger.error("ResourceAllocationSettingData should NOT return excepted result with a wrong InstanceID value of %s input" %k) + logger.error("ResourceAllocationSettingData should NOT return \ + excepted result with a wrong InstanceID \ + value of %s input", k) status = FAIL return status diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/ResourceAllocationFromPool/05_RAPF_err.py --- a/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/05_RAPF_err.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/05_RAPF_err.py Fri Feb 06 01:54:39 2009 -0800 @@ -101,7 +101,7 @@ ret = PASS if ret != PASS: - logger.error("%s with %s was not returned" % (classname, exp_val)) + logger.error("%s with %s was not returned", classname, exp_val) vsxml.undefine(server) status = FAIL diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/ResourcePool/01_enum.py --- a/suites/libvirt-cim/cimtest/ResourcePool/01_enum.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ResourcePool/01_enum.py Fri Feb 06 01:54:39 2009 -0800 @@ -79,8 +79,8 @@ def verify_fields(pool_list, poolname, cn): status = PASS if len(poolname) < 1: - logger.error("%s return %i instances, expected atleast 1 instance" \ - % (cn, len(poolname))) + logger.error("%s return %i instances, expected atleast 1 instance", + cn, len(poolname)) return FAIL exp_value = pool_list[cn][0] for i in range(0, len(poolname)): @@ -119,14 +119,14 @@ try: mempool = EnumInstances(ip, mp) except Exception: - logger.error(Globals.CIM_ERROR_ENUMERATE % mp) + logger.error(Globals.CIM_ERROR_ENUMERATE, mp) return FAIL status = verify_fields(pool_list, mempool, mp) try: propool = EnumInstances(ip, pp) except Exception: - logger.error(Globals.CIM_ERROR_ENUMERATE % pp) + logger.error(Globals.CIM_ERROR_ENUMERATE, pp) return FAIL status = verify_fields(pool_list, propool, pp) @@ -134,14 +134,14 @@ try: diskpool = EnumInstances(ip, dp) except Exception: - logger.error(Globals.CIM_ERROR_ENUMERATE % dp) + logger.error(Globals.CIM_ERROR_ENUMERATE, dp) return FAIL status = verify_fields(pool_list, diskpool, dp) try: netpool = EnumInstances(ip, np) except Exception: - logger.error(Globals.CIM_ERROR_ENUMERATE % np) + logger.error(Globals.CIM_ERROR_ENUMERATE, np) return FAIL status = verify_fields(pool_list, netpool, np) diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/ResourcePoolConfigurationCapabilities/01_enum.py --- a/suites/libvirt-cim/cimtest/ResourcePoolConfigurationCapabilities/01_enum.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ResourcePoolConfigurationCapabilities/01_enum.py Fri Feb 06 01:54:39 2009 -0800 @@ -43,7 +43,7 @@ if len(rpcc) != 1: Globals.logger.error("%s_ResourcePoolConfigurationCapabilities return %i instances, \ - excepted only 1 instance" % (options.virt, len(rpcc))) + excepted only 1 instance", options.virt, len(rpcc)) return FAIL if rpcc[0].InstanceID != "RPCC": Globals.logger.error("error result of enum ResourcePoolConfigurationCapabilities") diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/01_enum.py --- a/suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/01_enum.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/01_enum.py Fri Feb 06 01:54:39 2009 -0800 @@ -51,7 +51,7 @@ try: rpcservice = rpcs.enumerate(server, classname) except Exception: - logger.error(Globals.CIM_ERROR_ENUMERATE % classname) + logger.error(Globals.CIM_ERROR_ENUMERATE, classname) return FAIL valid_service = {"Name" : "RPCS", diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/04_CreateChildResourcePool.py --- a/suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/04_CreateChildResourcePool.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/04_CreateChildResourcePool.py Fri Feb 06 01:54:39 2009 -0800 @@ -72,8 +72,8 @@ logger.info("Error string is '%s'", desc) return PASS else: - logger.error("Unexpected rc code %s and description %s\n" \ - %(err_no, desc)) + logger.error("Unexpected rc code %s and description %s\n", + err_no, desc) return FAIL logger.error("The execution should not have reached here!!") diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/05_AddResourcesToResourcePool.py --- a/suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/05_AddResourcesToResourcePool.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/05_AddResourcesToResourcePool.py Fri Feb 06 01:54:39 2009 -0800 @@ -72,8 +72,8 @@ logger.info("Error string is '%s'", desc) return PASS else: - logger.error("Unexpected rc code %s and description %s\n" \ - %(err_no, desc)) + logger.error("Unexpected rc code %s and description %s\n", + err_no, desc) print desc return XFAIL_RC(bug) diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/06_RemoveResourcesFromResourcePool.py --- a/suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/06_RemoveResourcesFromResourcePool.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/06_RemoveResourcesFromResourcePool.py Fri Feb 06 01:54:39 2009 -0800 @@ -70,8 +70,8 @@ logger.info("Error string is '%s'", desc) return PASS else: - logger.error("Unexpected rc code %s and description %s\n" \ - %(err_no, desc)) + logger.error("Unexpected rc code %s and description %s\n", + err_no, desc) return FAIL logger.error("The execution should not have reached here!!") diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/07_DeleteResourcePool.py --- a/suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/07_DeleteResourcePool.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/07_DeleteResourcePool.py Fri Feb 06 01:54:39 2009 -0800 @@ -66,8 +66,8 @@ logger.info("Error string is '%s'", desc) return PASS else: - logger.error("Unexpected rc code %s and description %s\n" \ - %(err_no, desc)) + logger.error("Unexpected rc code %s and description %s\n", + err_no, desc) return FAIL logger.error("The execution should not have reached here!!") diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/SettingsDefine/01_forward.py --- a/suites/libvirt-cim/cimtest/SettingsDefine/01_forward.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/SettingsDefine/01_forward.py Fri Feb 06 01:54:39 2009 -0800 @@ -77,7 +77,7 @@ for dev in dev_list: guest, dev_id, status = parse_instance_id(dev.DeviceID) if status != PASS: - logger.error("Unable to parse InstanceID: %s" % dev.DeviceID) + logger.error("Unable to parse InstanceID: %s", dev.DeviceID) return dev_insts, FAIL if guest == guest_name: @@ -102,7 +102,7 @@ for rasd in rasd_list: guest, dev, status = parse_instance_id(rasd.InstanceID) if status != PASS: - logger.error("Unable to parse InstanceID: %s" % rasd.InstanceID) + logger.error("Unable to parse InstanceID: %s", rasd.InstanceID) return rasd_insts, FAIL if guest == guest_name: @@ -126,8 +126,8 @@ if rasd['InstanceID'] == exp_rasd.InstanceID: status = PASS else: - logger.info("Got %s instead of %s" % (rasd['InstanceID'], - exp_rasd.InstanceID)) + logger.info("Got %s instead of %s", rasd['InstanceID'], + exp_rasd.InstanceID) status = FAIL if status != PASS: diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/SettingsDefine/02_reverse.py --- a/suites/libvirt-cim/cimtest/SettingsDefine/02_reverse.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/SettingsDefine/02_reverse.py Fri Feb 06 01:54:39 2009 -0800 @@ -104,7 +104,7 @@ for rasd in rasd_list: guest, dev, status = parse_instance_id(rasd.InstanceID) if status != PASS: - logger.error("Unable to parse InstanceID: %s" % rasd.InstanceID) + logger.error("Unable to parse InstanceID: %s", rasd.InstanceID) return rasd_insts, FAIL if guest == guest_name: @@ -124,7 +124,7 @@ for dev in dev_list: guest, dev_id, status = parse_instance_id(dev.DeviceID) if status != PASS: - logger.error("Unable to parse InstanceID: %s" % dev.DeviceID) + logger.error("Unable to parse InstanceID: %s", dev.DeviceID) return dev_insts, FAIL if guest == guest_name: diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/SettingsDefine/03_sds_fwd_errs.py --- a/suites/libvirt-cim/cimtest/SettingsDefine/03_sds_fwd_errs.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/SettingsDefine/03_sds_fwd_errs.py Fri Feb 06 01:54:39 2009 -0800 @@ -200,7 +200,7 @@ ret_val = try_assoc(conn, classname, ac_classname, keys, field_name=field, expr_values=expr_values[field], bug_no='') if ret_val != PASS: - logger.error("------ FAILED: %s------" % field) + logger.error("------ FAILED: %s------", field) name_val[i] = temp return ret_val diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/SettingsDefineCapabilities/01_forward.py --- a/suites/libvirt-cim/cimtest/SettingsDefineCapabilities/01_forward.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/SettingsDefineCapabilities/01_forward.py Fri Feb 06 01:54:39 2009 -0800 @@ -82,7 +82,7 @@ try: instance = enumclass.GetInstance(ip, pool_class, key_list) except Exception, detail: - logger.error(CIM_ERROR_GETINSTANCE, '%s' % pool_class) + logger.error(CIM_ERROR_GETINSTANCE, '%s', pool_class) logger.error("Exception: %s", detail) sys.exit(FAIL) return instance diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/SystemDevice/01_forward.py --- a/suites/libvirt-cim/cimtest/SystemDevice/01_forward.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/SystemDevice/01_forward.py Fri Feb 06 01:54:39 2009 -0800 @@ -63,7 +63,7 @@ ret = cxml.create(server) if not ret: - logger.error('Unable to create domain %s' % test_dom) + logger.error('Unable to create domain %s', test_dom) return FAIL sd_classname = get_typed_class(virt, 'SystemDevice') diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/SystemDevice/02_reverse.py --- a/suites/libvirt-cim/cimtest/SystemDevice/02_reverse.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/SystemDevice/02_reverse.py Fri Feb 06 01:54:39 2009 -0800 @@ -63,7 +63,7 @@ try: devs = enumclass.EnumInstances(options.ip, cn) except Exception, detail: - logger.error("Exception: %s" % detail) + logger.error("Exception: %s", detail) cxml.destroy(options.ip) cxml.undefine(options.ip) return FAIL @@ -81,7 +81,7 @@ SystemName=dev.SystemName, SystemCreationClassName=dev.SystemCreationClassName) except Exception, detail: - logger.error("Exception: %s" % detail) + logger.error("Exception: %s", detail) cxml.destroy(options.ip) cxml.undefine(options.ip) return FAIL @@ -92,7 +92,7 @@ cxml.undefine(options.ip) return FAIL elif len(systems) != 1: - logger.error("%s systems returned, expected 1" % len(systems)) + logger.error("%s systems returned, expected 1", len(systems)) cxml.destroy(options.ip) cxml.undefine(options.ip) return FAIL @@ -106,9 +106,9 @@ if system.Name == test_dom: status = PASS - logger.info("Examined %s %s" % (system.Name, dev.DeviceID)) + logger.info("Examined %s %s", system.Name, dev.DeviceID) else: - logger.error("Association returned wrong system: %s" % + logger.error("Association returned wrong system: %s", system.Name) cxml.destroy(options.ip) diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/SystemDevice/03_fwderrs.py --- a/suites/libvirt-cim/cimtest/SystemDevice/03_fwderrs.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/SystemDevice/03_fwderrs.py Fri Feb 06 01:54:39 2009 -0800 @@ -101,7 +101,7 @@ names[item] = ("DeviceID" , dev.DeviceID ) except Exception, details: - logger.info("Exception %s for class %s" % (details , item)) + logger.info("Exception %s for class %s", details , item) return FAIL if len(name) <=0 or len(names) <= 0: @@ -150,10 +150,10 @@ if ((rc != exp_rc1 and desc.find(exp_desc1) <= 0) and (rc != exp_rc2 and desc.find(exp_desc2) <= 0)): status = FAIL - logger.info("Class = %s , key = %s , keyval = %s " \ - % (item, i , keyval)) - logger.info("Unexpected rc %s and desc %s for %s" - % (rc, desc, item)) + logger.info("Class = %s , key = %s , keyval = %s ", + item, i, keyval) + logger.info("Unexpected rc %s and desc %s for %s", + rc, desc, item) except Exception, details: logger.info("Unknown exception happened") @@ -162,8 +162,8 @@ if rc == 0: logger.info("Success returned for wrong key and ID") - logger.info("Class = %s , key = %s , keyval = %s " % - (item, i , keyval)) + logger.info("Class = %s , key = %s , keyval = %s ", + item, i , keyval) return XFAIL_RC(bug) except Exception, details: diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/VSSD/01_enum.py --- a/suites/libvirt-cim/cimtest/VSSD/01_enum.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VSSD/01_enum.py Fri Feb 06 01:54:39 2009 -0800 @@ -67,28 +67,28 @@ break if found == 1: if vssd.ElementName != test_dom: - logger.error("Invalid ElementName- expecting %s, go %s" % + logger.error("Invalid ElementName- expecting %s, go %s", test_dom, vssd.ElementName) vsxml.undefine(options.ip) return FAIL - logger.info("Examining VSSD class for the Guest %s" % test_dom) + logger.info("Examining VSSD class for the Guest %s", test_dom) try: name = vssd.ElementName idx = live_cs.index(name) del live_cs[idx] except BaseException, details: - logger.error("Exception %s" % details) - logger.error("Provider reports VSSD `%s', but xm does not" % + logger.error("Exception %s", details) + logger.error("Provider reports VSSD `%s', but xm does not", vssd.ElementName) status = FAIL else: - logger.error("Missing VSSD instance for the system %s " % test_dom) + logger.error("Missing VSSD instance for the system %s ", test_dom) status = FAIL except BaseException, details: - logger.error("Exception %s" % details) + logger.error("Exception %s", details) status = FAIL vsxml.undefine(options.ip) diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/VSSD/02_bootldr.py --- a/suites/libvirt-cim/cimtest/VSSD/02_bootldr.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VSSD/02_bootldr.py Fri Feb 06 01:54:39 2009 -0800 @@ -66,14 +66,14 @@ name = system.ElementName if name == test_dom : if system.Bootloader == bootldr : - logger.info("BootLoader for domain %s is %s" % (name, bootldr )) + logger.info("BootLoader for domain %s is %s", name, bootldr) status = 0 else: - logger.error("Bootloader is not set for VS %s" % test_dom) + logger.error("Bootloader is not set for VS %s", test_dom) status = 1 except Exception, detail : - logger.error("Exception : %s" % detail) + logger.error("Exception : %s", detail) status = 1 xmlfile.undefine(options.ip) diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/VSSD/04_vssd_to_rasd.py --- a/suites/libvirt-cim/cimtest/VSSD/04_vssd_to_rasd.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VSSD/04_vssd_to_rasd.py Fri Feb 06 01:54:39 2009 -0800 @@ -101,7 +101,7 @@ # When no records are found. if ret != PASS: - logger.error("%s with %s was not returned" % (classname, exp_val)) + logger.error("%s with %s was not returned", classname, exp_val) status = FAIL # We expect only one record to be returned. @@ -153,7 +153,7 @@ InstanceID = instIdval) if len(vssdc_assoc_info) == 1 and \ vssdc_assoc_info[0].classname == 'LXC_MemResourceAllocationSettingData': - logger.info("%s returned expect objects" % assoc_cname) + logger.info("%s returned expect objects", assoc_cname) elif len(vssdc_assoc_info) < 4: logger.error("%s returned %i %s objects, expected 4", assoc_cname, len(vssdc_assoc_info), qcn) @@ -161,7 +161,7 @@ except Exception, details: logger.error(CIM_ERROR_ASSOCIATORS, assoc_cname) - logger.error("Exception : %s" % details) + logger.error("Exception : %s", details) status = FAIL return status, vssdc_assoc_info @@ -202,7 +202,7 @@ logger.error("Mistmatching %s values", CCName ) break except Exception, detail : - logger.error("Exception in verify_rasd_values function: %s" % detail) + logger.error("Exception in verify_rasd_values function: %s", detail) status = FAIL return status diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/VirtualSystemManagementService/01_definesystem_name.py --- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/01_definesystem_name.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/01_definesystem_name.py Fri Feb 06 01:54:39 2009 -0800 @@ -39,12 +39,12 @@ ret = cxml.cim_define(options.ip) if not ret: - logger.error("Unable to define %s" % default_dom) + logger.error("Unable to define %s", default_dom) return FAIL status = cxml.cim_start(options.ip) if status != PASS: - logger.error("Failed to start the defined domain: %s" % default_dom) + logger.error("Failed to start the defined domain: %s", default_dom) cxml.cim_destroy(options.ip) cxml.undefine(options.ip) diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/VirtualSystemManagementService/02_destroysystem.py --- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/02_destroysystem.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/02_destroysystem.py Fri Feb 06 01:54:39 2009 -0800 @@ -76,7 +76,7 @@ list_after = domain_list(options.ip, options.virt) if default_dom in list_after: - logger.error("Domain %s not destroyed: provider didn't return error" % \ + logger.error("Domain %s not destroyed: provider didn't return error", default_dom) cleanup_env(options.ip, cxml) status = FAIL diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/VirtualSystemManagementService/05_destroysystem_neg.py --- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/05_destroysystem_neg.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/05_destroysystem_neg.py Fri Feb 06 01:54:39 2009 -0800 @@ -73,7 +73,7 @@ logger.info('Got expected error desc: %s',err_desc) return PASS - logger.error('destroy_fail>> %s: Error executing DestroySystem' % tc) + logger.error('destroy_fail>> %s: Error executing DestroySystem', tc) logger.error(details) return FAIL diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/VirtualSystemManagementService/07_addresource_neg.py --- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/07_addresource_neg.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/07_addresource_neg.py Fri Feb 06 01:54:39 2009 -0800 @@ -57,7 +57,7 @@ bad_inst = 'instance of what ever { dd = 3; //\ ]&' ret = service.AddResourceSettings(AffectedConfiguration=vssd_ref, ResourceSettings=[bad_inst]) - logger.info('ret[0] = %s' % ret[0]) + logger.info('ret[0] = %s', ret[0]) if ret[0] == None: logger.error('AddRS should NOT return OK with wrong RS input') rc = 0 @@ -66,8 +66,8 @@ logger.info('Got expected rc code and error string.') status = PASS else: - logger.error('Unexpected rc code %s and description:\n %s' % - (rc, desc)) + logger.error('Unexpected rc code %s and description:\n %s', + rc, desc) status = FAIL except Exception, details: logger.error('Error invoking AddRS') diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/VirtualSystemManagementService/09_procrasd_persist.py --- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/09_procrasd_persist.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/09_procrasd_persist.py Fri Feb 06 01:54:39 2009 -0800 @@ -104,7 +104,7 @@ status = check_proc_sched(options.ip, options.virt) if status != PASS: - raise Exception("%s CPU scheduling not set properly", default_dom) + raise Exception("%s CPU scheduling not set properly" % default_dom) status = PASS diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/VirtualSystemManagementService/10_hv_version.py --- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/10_hv_version.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/10_hv_version.py Fri Feb 06 01:54:39 2009 -0800 @@ -50,14 +50,14 @@ local_ver = get_hv_ver(options.ip, options.virt) if cim_ver != local_ver: - logger.error("CIM says version is `%s', but libvirt says `%s'" \ - % (cim_ver, local_ver)) + logger.error("CIM says version is `%s', but libvirt says `%s'", + cim_ver, local_ver) if options.virt == 'LXC': return XFAIL_RC(bug_libvirt) else: return FAIL else: - logger.info("Verified %s == %s" % (cim_ver, local_ver)) + logger.info("Verified %s == %s", cim_ver, local_ver) except Exception, details: logger.error(details) return FAIL diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/VirtualSystemManagementService/11_define_memrasdunits.py --- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/11_define_memrasdunits.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/11_define_memrasdunits.py Fri Feb 06 01:54:39 2009 -0800 @@ -67,7 +67,7 @@ ret = cxml.cim_define(options.ip) if not ret: - logger.error("DefineSystem with (%s) units failed" % units) + logger.error("DefineSystem with (%s) units failed", units) return FAIL return PASS @@ -94,10 +94,10 @@ cim_kb = int(the_rasd["VirtualQuantity"]) if cim_kb != mem_kb: - logger.error("CIM reports %i KB instead of %i KB" % (cim_kb, mem_kb)) + logger.error("CIM reports %i KB instead of %i KB", cim_kb, mem_kb) return FAIL - logger.info("Verified %i KB" % mem_kb) + logger.info("Verified %i KB", mem_kb) return PASS diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/VirtualSystemManagementService/12_referenced_config.py --- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/12_referenced_config.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/12_referenced_config.py Fri Feb 06 01:54:39 2009 -0800 @@ -50,12 +50,12 @@ def setup_first_guest(ip, virt, cxml): ret = cxml.cim_define(ip) if not ret: - logger.error("Unable to define %s using DefineSystem()" % test_dom) + logger.error("Unable to define %s using DefineSystem()", test_dom) return FAIL, None status = cxml.cim_start(ip) if status != PASS: - logger.error("Unable to start %s" % test_dom) + logger.error("Unable to start %s", test_dom) return FAIL, "define" return PASS, "start" @@ -98,7 +98,7 @@ ret = cxml2.cim_define(ip, ref_conf=ref) if not ret: - logger.error("Unable to define %s using DefineSystem()" % test_dom2) + logger.error("Unable to define %s using DefineSystem()", test_dom2) return FAIL, None return PASS, "define" diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/VirtualSystemManagementService/13_refconfig_additional_devs.py --- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/13_refconfig_additional_devs.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/13_refconfig_additional_devs.py Fri Feb 06 01:54:39 2009 -0800 @@ -60,33 +60,33 @@ def verify_no_dups(ip, virt, cxml, dom): if cxml.xml_get_disk_source() != cxml.dasd.Address: - logger.error("%s: Exp disk source %s" % (dom, cxml.dasd.Address)) + logger.error("%s: Exp disk source %s", dom, cxml.dasd.Address) return FAIL if cxml.xml_get_disk_dev() != cxml.dasd.VirtualDevice: - logger.error("%s: Exp disk dev %s" % (dom, cxml.dasd.VirtualDevice)) + logger.error("%s: Exp disk dev %s", dom, cxml.dasd.VirtualDevice) return FAIL if cxml.xml_get_net_type() != cxml.nasd.NetworkType: - logger.error("%s: Exp net type %d" % (dom, cxml.nasd.NetworkType)) + logger.error("%s: Exp net type %d", dom, cxml.nasd.NetworkType) return FAIL if cxml.xml_get_net_mac() != cxml.nasd.Address: - logger.error("%s: Exp net mac %s" % (dom, cxml.nasd.Address)) + logger.error("%s: Exp net mac %s", dom, cxml.nasd.Address) return FAIL vcpus = cxml.xml_get_vcpu() if not vcpus.isdigit(): - logger.error("Unable to get vcpus value for %s" % dom) + logger.error("Unable to get vcpus value for %s", dom) return FAIL if int(vcpus) != cxml.pasd.VirtualQuantity: - logger.error("%s: Exp vcpus %s" % (dom, cxml.pasd.VirtualQuantity)) + logger.error("%s: Exp vcpus %s", dom, cxml.pasd.VirtualQuantity) return FAIL mem = cxml.xml_get_mem() if not mem.isdigit(): - logger.error("Unable to get mem value for %s" % dom) + logger.error("Unable to get mem value for %s", dom) return FAIL if cxml.masd.AllocationUnits == "Bytes": @@ -107,7 +107,7 @@ exp_mem <<= shift if int(mem) != exp_mem: - logger.error("%s: Exp mem %s" % (dom, exp_mem)) + logger.error("%s: Exp mem %s", dom, exp_mem) return FAIL return PASS @@ -123,7 +123,7 @@ try: rc = cxml.cim_define(options.ip) if not rc: - logger.error("Unable define domain %s" % test_dom) + logger.error("Unable define domain %s", test_dom) raise Exception("Unable to define domain %s" % test_dom) ref = get_vssd_ref(options.ip, options.virt) @@ -132,7 +132,7 @@ rc = cxml2.cim_define(options.ip, ref_conf=ref) if not rc: - logger.error("Unable define domain %s" % test_dom2) + logger.error("Unable define domain %s", test_dom2) raise Exception("Unable to define %s" % test_dom2) rc = call_request_state_change(test_dom2, options.ip, diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/VirtualSystemMigrationService/01_migratable_host.py --- a/suites/libvirt-cim/cimtest/VirtualSystemMigrationService/01_migratable_host.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemMigrationService/01_migratable_host.py Fri Feb 06 01:54:39 2009 -0800 @@ -48,7 +48,7 @@ cxml = virt_xml(guest_name) ret = cxml.create(ip) if not ret: - logger.error("Error create domain %s" % guest_name) + logger.error("Error create domain %s", guest_name) return FAIL, None, cxml status, dom_cs = poll_for_state_change(ip, virt, guest_name, @@ -104,8 +104,8 @@ status, ret = migrate_guest_to_host(service, cs_ref, target_ip) if status == FAIL: - logger.error("MigrateVirtualSystemToHost: unexpected list length %s" - % len(ret)) + logger.error("MigrateVirtualSystemToHost: unexpected list length %s", + len(ret)) cxml.destroy(options.ip) cxml.undefine(options.ip) return status diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/VirtualSystemMigrationService/02_host_migrate_type.py --- a/suites/libvirt-cim/cimtest/VirtualSystemMigrationService/02_host_migrate_type.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemMigrationService/02_host_migrate_type.py Fri Feb 06 01:54:39 2009 -0800 @@ -46,7 +46,7 @@ cxml = virt_xml(guest_name) cxml.cim_define(ip) except Exception: - logger.error("Error define domain %s" % guest_name) + logger.error("Error define domain %s", guest_name) return FAIL, None classname = 'Xen_ComputerSystem' @@ -106,7 +106,7 @@ return FAIL, None except Exception: - logger.error("Error start domain %s" % guest_name) + logger.error("Error start domain %s", guest_name) return FAIL, None return PASS, cxml @@ -156,11 +156,11 @@ break logger.info("Migrating guest with the following options:") - logger.info("%s" % item) + logger.info("%s", item) status, ret = migrate_guest_to_host(service, cs_ref, target_ip, item) if status == FAIL: - logger.error("MigrateVirtualSystemToHost: unexpected list length %s" - % len(ret)) + logger.error("MigrateVirtualSystemToHost: unexpected list length %s", + len(ret)) cxml.destroy(options.ip) cxml.undefine(options.ip) return status diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/VirtualSystemMigrationService/05_migratable_host_errs.py --- a/suites/libvirt-cim/cimtest/VirtualSystemMigrationService/05_migratable_host_errs.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemMigrationService/05_migratable_host_errs.py Fri Feb 06 01:54:39 2009 -0800 @@ -43,13 +43,13 @@ cxml = virt_xml(test_dom) ret = cxml.cim_define(server) if not ret: - logger.error("Error define domain %s" % test_dom ) + logger.error("Error define domain %s", test_dom ) return FAIL status = cxml.cim_start(server) if status != PASS: cxml.undefine(server) - logger.error("Error start domain %s" % test_dom ) + logger.error("Error start domain %s", test_dom ) return status status = FAIL diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/01_forward.py --- a/suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/01_forward.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/01_forward.py Fri Feb 06 01:54:39 2009 -0800 @@ -116,16 +116,16 @@ try: if len(assoc_info) != 1: - logger.error("%s returned %i resource objects for '%s'" % \ - (an, len(assoc_info), cn)) + logger.error("%s returned %i resource objects for '%s'", + an, len(assoc_info), cn) return FAIL status = compare_all_prop(assoc_info[0], vssd) if status != PASS: logger.error("Properties of inst returned by %s didn't \ - match expected" % assoc_info[0].classname) + match expected", assoc_info[0].classname) return FAIL except Exception, detail : - logger.error("Exception in assoc_values function: %s" % detail) + logger.error("Exception in assoc_values function: %s", detail) return FAIL return PASS @@ -166,12 +166,12 @@ try: vssd = enumclass.GetInstance(options.ip, vssd_cn, key_list) if vssd is None: - logger.error("VSSD instance for %s not found" % test_dom) + logger.error("VSSD instance for %s not found", test_dom) cxml.undefine(options.ip) return FAIL except Exception, detail : logger.error(Globals.CIM_ERROR_GETINSTANCE, vssd_cn) - logger.error("Exception : %s" % detail) + logger.error("Exception : %s", detail) cxml.undefine(options.ip) return FAIL @@ -191,7 +191,7 @@ except Exception, detail : logger.error(Globals.CIM_ERROR_ASSOCIATORS, an) - logger.error("Exception : %s" % detail) + logger.error("Exception : %s", detail) status = FAIL cxml.undefine(options.ip) diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/02_reverse.py --- a/suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/02_reverse.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/02_reverse.py Fri Feb 06 01:54:39 2009 -0800 @@ -70,7 +70,7 @@ return FAIL except Exception, detail : - logger.error("Exception evaluating InstanceID: %s" % detail) + logger.error("Exception evaluating InstanceID: %s", detail) return FAIL return PASS @@ -139,7 +139,7 @@ break except Exception, detail : - logger.error("Exception in assoc_values function: %s" % detail) + logger.error("Exception in assoc_values function: %s", detail) status = FAIL return status diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/03_vssdc_fwd_errs.py --- a/suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/03_vssdc_fwd_errs.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/03_vssdc_fwd_errs.py Fri Feb 06 01:54:39 2009 -0800 @@ -116,13 +116,13 @@ ret = cxml.cim_define(options.ip) if not ret: - logger.error('Unable to define domain %s' % test_dom) + logger.error('Unable to define domain %s', test_dom) return FAIL status = cxml.cim_start(options.ip) if status != PASS: cxml.undefine(options.ip) - logger.error('Unable to start domain %s' % test_dom) + logger.error('Unable to start domain %s', test_dom) return FAIL global conn diff -r 3fc2b8a20333 -r 263e285881ac suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/04_vssdc_rev_errs.py --- a/suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/04_vssdc_rev_errs.py Thu Feb 05 01:19:43 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/04_vssdc_rev_errs.py Fri Feb 06 01:54:39 2009 -0800 @@ -109,13 +109,13 @@ ret = cxml.cim_define(options.ip) if not ret: - logger.error('Unable to define domain %s' % test_dom) + logger.error('Unable to define domain %s', test_dom) return FAIL status = cxml.cim_start(options.ip) if status != PASS: cxml.undefine(options.ip) - logger.error('Unable to start domain %s' % test_dom) + logger.error('Unable to start domain %s', test_dom) return FAIL global conn From yunguol at cn.ibm.com Fri Feb 6 09:37:04 2009 From: yunguol at cn.ibm.com (Guo Lian Yun) Date: Fri, 6 Feb 2009 17:37:04 +0800 Subject: [Libvirt-cim] [PATCH] [TEST] Update test cases to follow the new coding style In-Reply-To: <498B8C0D.6040205@linux.vnet.ibm.com> Message-ID: libvirt-cim-bounces at redhat.com wrote on 2009-02-06 09:02:05: > > diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt- > cim/cimtest/ElementCapabilities/05_hostsystem_cap.py > > --- a/suites/libvirt- > cim/cimtest/ElementCapabilities/05_hostsystem_cap.py Tue Feb 03 > 09:37:05 2009 -0800 > > +++ b/suites/libvirt- > cim/cimtest/ElementCapabilities/05_hostsystem_cap.py Thu Feb 05 > 00:52:07 2009 -0800 > > Can you fix the logger() call on line 62? I fixed it on the #2 patch. > > > @@ -76,7 +76,7 @@ > > break > > > > if ret != PASS: > > - logger.error("%s with %s was not returned" % (cn, exp_val)) > > + logger.error("%s with %s was not returned", cn, exp_val) > > status = FAIL > > > > return status, inst > > > > diff -r edfa908a60d0 -r 4bb5b4c89bfd suites/libvirt- > cim/cimtest/HostSystem/04_hs_to_EAPF.py > > --- a/suites/libvirt-cim/cimtest/HostSystem/04_hs_to_EAPF.py Tue > Feb 03 09:37:05 2009 -0800 > > +++ b/suites/libvirt-cim/cimtest/HostSystem/04_hs_to_EAPF.py Thu > Feb 05 00:52:07 2009 -0800 > > @@ -194,8 +194,8 @@ > > Can you fix the logger() call on line 73? Same here. > > > -- > Kaitlin Rupert > IBM Linux Technology Center > kaitlin at linux.vnet.ibm.com > > _______________________________________________ > Libvirt-cim mailing list > Libvirt-cim at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-cim -------------- next part -------------- An HTML attachment was scrubbed... URL: From rmaciel at linux.vnet.ibm.com Fri Feb 6 15:15:55 2009 From: rmaciel at linux.vnet.ibm.com (Richard Maciel) Date: Fri, 06 Feb 2009 13:15:55 -0200 Subject: [Libvirt-cim] [PATCH 1 of 2] [TEST] Created testcases for the forward HostedAccessPoint association (HostSystem -> KVMRedirectionSAP In-Reply-To: References: Message-ID: <40e312d4e1cb360712c1.1233933355@localhost.localdomain> # HG changeset patch # User Richard Maciel # Date 1233866975 7200 # Node ID 40e312d4e1cb360712c161f0164d460ad1d9269b # Parent 643ae1ea950d124b8453661080b18094f589a2bc [TEST] Created testcases for the forward HostedAccessPoint association (HostSystem -> KVMRedirectionSAP Signed-off-by: Richard Maciel diff -r 643ae1ea950d -r 40e312d4e1cb suites/libvirt-cim/cimtest/HostedAccessPoint/01_forward.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/suites/libvirt-cim/cimtest/HostedAccessPoint/01_forward.py Thu Feb 05 18:49:35 2009 -0200 @@ -0,0 +1,147 @@ +#!/usr/bin/python +# +# Copyright 2009 IBM Corp. +# +# Authors: +# Richard Maciel +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# + +import sys +from CimTest.Globals import logger +from CimTest.ReturnCodes import PASS, FAIL +from XenKvmLib.vxml import get_class +from XenKvmLib.assoc import AssociatorNames +from XenKvmLib.classes import get_typed_class +from XenKvmLib.const import do_main, get_provider_version +from XenKvmLib.common_util import get_host_info +from XenKvmLib.enumclass import EnumInstances +from XenKvmLib.assoc import compare_all_prop + +sup_types = ['Xen', 'KVM', 'XenFV', 'LXC'] + +test_dom = "domu1" + +def setup_env(server, virt): + if virt == 'Xen': + test_disk = 'xvda' + else: + test_disk = 'hda' + virt_xml = get_class(virt) + if virt == 'LXC': + cxml = virt_xml(test_dom) + else: + cxml = virt_xml(test_dom, disk = test_disk) + + ret = cxml.cim_define(server) + if not ret: + logger.error("Failed to define the dom: %s", test_dom) + return FAIL, cxml + + status = cxml.cim_start(server) + if status != PASS: + logger.error("Unable start dom '%s'", test_dom) + cxml.undefine(server) + return status, cxml + + return PASS, cxml + +def get_kvmrsap_inst(virt, ip, guest_name): + kvmrsap_inst = None + + try: + kvmrsap_cn = get_typed_class(virt, 'KVMRedirectionSAP') + enum_list = EnumInstances(ip, kvmrsap_cn) + + for kvmrsap in enum_list: + if kvmrsap.SystemName == guest_name: + if kvmrsap_inst is not None: + print "More than one KVMRedirectionSAP found \ + the same guest" + return kvmrsap_inst, FAIL + kvmrsap_inst = kvmrsap + + except Exception, details: + logger.error(details) + return kvmrsap_inst, FAIL + + return kvmrsap_inst, PASS + +def verify_kvmrsap(enum_list, kvmrsap_inst): + status = FAIL + + for item in enum_list: + if item.classname != kvmrsap_inst.Classname: + print "Wrong returned class name (%s)", item.classname + return status + + if compare_all_prop(item, kvmrsap_inst) == PASS: + if status == PASS: + print "More than one instance found" + return FAIL + status = PASS + + return status + + at do_main(sup_types) +def main(): + options = main.options + status = FAIL + server = options.ip + virt = options.virt + + status, cxml = setup_env(options.ip, options.virt) + if status != PASS: + cxml.undefine(options.ip) + return status + + try: + status, host_inst = get_host_info(server, virt) + if status != PASS: + raise Exception("Failed to get host info.") + + kvmrsap_inst, status = get_kvmrsap_inst(options.virt, + options.ip, + test_dom) + if status != PASS: + raise Exception("Unable to fetch kvmrsap instance") + + if kvmrsap_inst is None: + raise Exception("No kvmrsap instance returned") + + an = get_typed_class(options.virt, 'HostedAccessPoint') + + host_ccn = host_inst.CreationClassName + + assoc_info = AssociatorNames(options.ip, an, host_ccn, + CreationClassName = host_ccn, + Name = host_inst.Name) + + status = verify_kvmrsap(assoc_info, kvmrsap_inst) + + if status != PASS: + raise Exception("Failed to verify KVMRedirectionSAPs") + + except Exception, details: + logger.error(details) + status = FAIL + + cxml.cim_destroy(options.ip) + cxml.undefine(options.ip) + return status + +if __name__ == "__main__": + sys.exit(main()) From rmaciel at linux.vnet.ibm.com Fri Feb 6 15:15:54 2009 From: rmaciel at linux.vnet.ibm.com (Richard Maciel) Date: Fri, 06 Feb 2009 13:15:54 -0200 Subject: [Libvirt-cim] [PATCH 0 of 2] [TEST] #3 Added testcases for the HostedAccessPoint association Message-ID: #2 added [TEST] on all patch headers #3 Fixed code style Enhanced the way objects are compared using the compare_all_prop From rmaciel at linux.vnet.ibm.com Fri Feb 6 15:15:56 2009 From: rmaciel at linux.vnet.ibm.com (Richard Maciel) Date: Fri, 06 Feb 2009 13:15:56 -0200 Subject: [Libvirt-cim] [PATCH 2 of 2] [TEST] Created reverse test (KVMRedirectionSAP -> HostSystem) test In-Reply-To: References: Message-ID: # HG changeset patch # User Richard Maciel # Date 1233894676 7200 # Node ID c9af0154836392cacc25c67aa73b25a005c3d70f # Parent 40e312d4e1cb360712c161f0164d460ad1d9269b [TEST] Created reverse test (KVMRedirectionSAP -> HostSystem) test Signed-off-by: Richard Maciel diff -r 40e312d4e1cb -r c9af01548363 suites/libvirt-cim/cimtest/HostedAccessPoint/02_reverse.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/suites/libvirt-cim/cimtest/HostedAccessPoint/02_reverse.py Fri Feb 06 02:31:16 2009 -0200 @@ -0,0 +1,151 @@ +#!/usr/bin/python +# +# Copyright 2009 IBM Corp. +# +# Authors: +# Richard Maciel +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# + +import sys +from CimTest.Globals import logger +from CimTest.ReturnCodes import PASS, FAIL +from XenKvmLib.vxml import get_class +from XenKvmLib.assoc import AssociatorNames +from XenKvmLib.classes import get_typed_class +from XenKvmLib.const import do_main, get_provider_version +from XenKvmLib.common_util import get_host_info +from XenKvmLib.enumclass import EnumInstances +from XenKvmLib.assoc import compare_all_prop + +sup_types = ['Xen', 'KVM', 'XenFV', 'LXC'] + +test_dom = "domu1" + +def setup_env(server, virt): + if virt == 'Xen': + test_disk = 'xvda' + else: + test_disk = 'hda' + virt_xml = get_class(virt) + if virt == 'LXC': + cxml = virt_xml(test_dom) + else: + cxml = virt_xml(test_dom, disk = test_disk) + + ret = cxml.cim_define(server) + if not ret: + logger.error("Failed to define the dom: %s", test_dom) + return FAIL, cxml + + status = cxml.cim_start(server) + if status != PASS: + logger.error("Unable start dom '%s'", test_dom) + cxml.undefine(server) + return status, cxml + + return PASS, cxml + +def get_kvmrsap_inst(virt, ip, guest_name): + kvmrsap_inst = None + + try: + kvmrsap_cn = get_typed_class(virt, 'KVMRedirectionSAP') + enum_list = EnumInstances(ip, kvmrsap_cn) + + for kvmrsap in enum_list: + if kvmrsap.SystemName == guest_name: + if kvmrsap_inst is not None: + print "More than one KVMRedirectionSAP found \ + the same guest" + return kvmrsap_inst, FAIL + kvmrsap_inst = kvmrsap + + except Exception, details: + logger.error(details) + return kvmrsap_inst, FAIL + + return kvmrsap_inst, PASS + +def verify_host(enum_list, host_inst): + status = FAIL + + for item in enum_list: + if item.classname != host_inst.Classname: + print "Returned class name (%s) is not correct", item.classname + return status + + if compare_all_prop(item, host_inst) == PASS: + if status == PASS: + print "More than one instance found" + return FAIL + + status = PASS + + return status + + + at do_main(sup_types) +def main(): + options = main.options + status = FAIL + server = options.ip + virt = options.virt + + status, cxml = setup_env(options.ip, options.virt) + if status != PASS: + cxml.undefine(options.ip) + return status + + try: + status, host_inst = get_host_info(server, virt) + if status != PASS: + raise Exception("Failed to get host info.") + + kvmrsap_inst, status = get_kvmrsap_inst(options.virt, + options.ip, + test_dom) + if status != PASS: + raise Exception("Unable to fetch kvmrsap instance (domain: %s)", + test_dom) + + an = get_typed_class(options.virt, 'HostedAccessPoint') + + kvm_ccn = kvmrsap_inst.CreationClassName + name = kvmrsap_inst.Name + sys_ccn = kvmrsap_inst.SystemCreationClassName + + assoc_info = AssociatorNames(options.ip, an, kvm_ccn, + CreationClassName = kvm_ccn, + Name = kvmrsap_inst.Name, + SystemCreationClassName = sys_ccn, + SystemName = test_dom) + + status = verify_host(assoc_info, host_inst) + + if status != PASS: + raise Exception("Failed to verify KVMRedirectionSAPs") + + except Exception, details: + logger.error(details) + status = FAIL + + cxml.cim_destroy(options.ip) + cxml.undefine(options.ip) + return status + +if __name__ == "__main__": + sys.exit(main()) From rmaciel at linux.vnet.ibm.com Fri Feb 6 17:00:45 2009 From: rmaciel at linux.vnet.ibm.com (Richard Maciel) Date: Fri, 06 Feb 2009 15:00:45 -0200 Subject: [Libvirt-cim] [PATCH] Enable KVM migration migration support in the migration_tester.py tool In-Reply-To: <1f683477de1b1ba4bab6.1233765313@localhost.localdomain> References: <1f683477de1b1ba4bab6.1233765313@localhost.localdomain> Message-ID: <498C6CBD.5070209@linux.vnet.ibm.com> +1 Kaitlin Rupert wrote: > # HG changeset patch > # User Kaitlin Rupert > # Date 1233765304 28800 > # Node ID 1f683477de1b1ba4bab65011aaee78b23d0778a5 > # Parent 61209742da1d511a4b453d38432c2eeb35639a83 > Enable KVM migration migration support in the migration_tester.py tool. > > Also advertise the "other" migration type in the option parser. > > Signed-off-by: Kaitlin Rupert > > diff -r 61209742da1d -r 1f683477de1b tools/migration_tester.py > --- a/tools/migration_tester.py Tue Jan 20 22:27:01 2009 -0800 > +++ b/tools/migration_tester.py Wed Feb 04 08:35:04 2009 -0800 > @@ -249,7 +249,7 @@ > parser.add_option("-v", "--virt-type", dest="virt", default=None, > help="Virtualization type [ Xen | KVM ]") > parser.add_option("--migration-type", dest="type", default=None, > - help="Migration type: [ live | resume | restart ]") > + help="Migration type:[ live | resume | restart | other ]") > parser.add_option("--disable-check", dest="disable_ck", action="store_true", > help="Disable migration pre-check") > > @@ -282,10 +282,6 @@ > print "Must specify virtualization type" > return 1 > > - if options.virt != "Xen": > - print "Only Xen migration is currently supported" > - return 1 > - > if options.type != None: > msd = get_msd(options.type, options.virt) > if msd == None: > > _______________________________________________ > Libvirt-cim mailing list > Libvirt-cim at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-cim -- Richard Maciel, MSc IBM Linux Technology Center rmaciel at linux.vnet.ibm.com From rmaciel at linux.vnet.ibm.com Fri Feb 6 17:00:24 2009 From: rmaciel at linux.vnet.ibm.com (Richard Maciel) Date: Fri, 06 Feb 2009 15:00:24 -0200 Subject: [Libvirt-cim] [PATCH] Add KVM_MigrationJob class. Also fix migration uri In-Reply-To: References: Message-ID: <498C6CA8.9010503@linux.vnet.ibm.com> +1 Kaitlin Rupert wrote: > # HG changeset patch > # User Kaitlin Rupert > # Date 1233687128 28800 > # Node ID b8851323371c301a6357039b892bb8c1527a6b7d > # Parent 66e981e897ec37e8452c14a253c13db18c7a1952 > Add KVM_MigrationJob class. Also fix migration uri. > > The trailing slash (/) causes an error with the qemu connection type. > > Signed-off-by: Kaitlin Rupert > > diff -r 66e981e897ec -r b8851323371c schema/VSMigrationService.mof > --- a/schema/VSMigrationService.mof Tue Feb 03 10:52:06 2009 -0800 > +++ b/schema/VSMigrationService.mof Tue Feb 03 10:52:08 2009 -0800 > @@ -68,6 +68,9 @@ > class Xen_MigrationJob : CIM_ConcreteJob { > }; > > +class KVM_MigrationJob : CIM_ConcreteJob { > +}; > + > [Provider("cmpi::Virt_VSMigrationService")] > class Xen_VirtualSystemMigrationService : CIM_VirtualSystemMigrationService { > }; > diff -r 66e981e897ec -r b8851323371c src/Virt_VSMigrationService.c > --- a/src/Virt_VSMigrationService.c Tue Feb 03 10:52:06 2009 -0800 > +++ b/src/Virt_VSMigrationService.c Tue Feb 03 10:52:08 2009 -0800 > @@ -185,7 +185,15 @@ > goto out; > } > > - rc = asprintf(&uri, "%s+%s://%s/system/%s", prefix, tport, dest, param); > + rc = asprintf(&uri, "%s+%s://%s/system", prefix, tport, dest); > + if (rc == -1) { > + uri = NULL; > + goto out; > + } > + > + if (!STREQC(param, "")) > + rc = asprintf(&uri, "%s/%s", uri, param); > + > if (rc == -1) > uri = NULL; > > > _______________________________________________ > Libvirt-cim mailing list > Libvirt-cim at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-cim -- Richard Maciel, MSc IBM Linux Technology Center rmaciel at linux.vnet.ibm.com From kaitlin at linux.vnet.ibm.com Fri Feb 6 17:12:30 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Fri, 06 Feb 2009 09:12:30 -0800 Subject: [Libvirt-cim] [PATCH] [TEST] #2 Fix SettingsDefineCapabilities/01_forward.py with appropriate RASD objects for different platforms In-Reply-To: <8e2da1911b925709fa5c.1233909774@elm3b197.beaverton.ibm.com> References: <8e2da1911b925709fa5c.1233909774@elm3b197.beaverton.ibm.com> Message-ID: <498C6F7E.8000706@linux.vnet.ibm.com> > @@ -172,10 +173,17 @@ > > curr_cim_rev, changeset = get_provider_version(virt, server) > if 'DiskPool' in instid and (virt =='Xen' or virt == 'XenFV') and \ > - curr_cim_rev >= libvirt_rasd_template_changes: > + curr_cim_rev >= libvirt_rasd_template_changes and \ > + curr_cim_rev < libvirt_rasd_new_changes: > # For Diskpool, we have info 1 for each of Min, Max, > # default, Increment and 1 for each of PV and FV > # hence 4 * 2 = 8 records > + exp_len = 8 > + elif 'DiskPool' in instid and (virt =='Xen' or virt == 'XenFV') and \ This line is longer than 80 characters. > + curr_cim_rev >= libvirt_rasd_new_changes: > + exp_len = 16 > + elif 'DiskPool' in instid and virt == 'KVM' and \ > + curr_cim_rev >= libvirt_rasd_new_changes: > exp_len = 8 > else: > exp_len = 4 > Also this can be simplified to: if 'DiskPool' in instid: if (virt =='Xen' or virt == 'XenFV') and \ curr_cim_rev >= libvirt_rasd_new_changes: (etc) -- Kaitlin Rupert IBM Linux Technology Center kaitlin at linux.vnet.ibm.com From rmaciel at linux.vnet.ibm.com Fri Feb 6 18:02:09 2009 From: rmaciel at linux.vnet.ibm.com (Richard Maciel) Date: Fri, 06 Feb 2009 16:02:09 -0200 Subject: [Libvirt-cim] [PATCH] Set the properties of the SDC ref VSMigrationCap --> VSMigrationSD In-Reply-To: <3df2b62291003e0b446f.1233700572@localhost.localdomain> References: <3df2b62291003e0b446f.1233700572@localhost.localdomain> Message-ID: <498C7B21.9020904@linux.vnet.ibm.com> +1 Kaitlin Rupert wrote: > # HG changeset patch > # User Kaitlin Rupert > # Date 1233700560 28800 > # Node ID 3df2b62291003e0b446f7721c0f7b8b55279f142 > # Parent b8851323371c301a6357039b892bb8c1527a6b7d > Set the properties of the SDC ref VSMigrationCap --> VSMigrationSD > > Set the PropertyPolicy, ValueRole, and ValueRange property values to indicate > the VSMigrationSD instance returned is the default instance. > > Signed-off-by: Kaitlin Rupert > > diff -r b8851323371c -r 3df2b6229100 src/Virt_SettingsDefineCapabilities.c > --- a/src/Virt_SettingsDefineCapabilities.c Tue Feb 03 10:52:08 2009 -0800 > +++ b/src/Virt_SettingsDefineCapabilities.c Tue Feb 03 14:36:00 2009 -0800 > @@ -1119,6 +1119,32 @@ > return ref_inst; > } > > +static CMPIInstance *make_ref_msd(const CMPIObjectPath *source_ref, > + const CMPIInstance *target_inst, > + struct std_assoc_info *info, > + struct std_assoc *assoc) > +{ > + CMPIInstance *ref_inst = NULL; > + uint16_t ppolicy = SDC_POLICY_INDEPENDENT; > + uint16_t valuerole = SDC_ROLE_DEFAULT; > + uint16_t valuerange = SDC_RANGE_POINT; > + > + ref_inst = make_reference(_BROKER, > + source_ref, > + target_inst, > + info, > + assoc); > + > + CMSetProperty(ref_inst, "ValueRole", > + (CMPIValue *)&valuerole, CMPI_uint16); > + CMSetProperty(ref_inst, "ValueRange", > + (CMPIValue *)&valuerange, CMPI_uint16); > + CMSetProperty(ref_inst, "PropertyPolicy", > + (CMPIValue *)&ppolicy, CMPI_uint16); > + > + return ref_inst; > +} > + > LIBVIRT_CIM_DEFAULT_MAKEREF() > > static char* group_component[] = { > @@ -1207,7 +1233,7 @@ > .assoc_class = (char**)&assoc_classname, > > .handler = migrate_cap_to_vsmsd, > - .make_ref = make_ref > + .make_ref = make_ref_msd > }; > > static struct std_assoc _vsmsd_to_migrate_cap = { > > _______________________________________________ > Libvirt-cim mailing list > Libvirt-cim at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-cim -- Richard Maciel, MSc IBM Linux Technology Center rmaciel at linux.vnet.ibm.com From kaitlin at linux.vnet.ibm.com Fri Feb 6 18:52:32 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Fri, 06 Feb 2009 10:52:32 -0800 Subject: [Libvirt-cim] [PATCH] [TEST] #2 Fix HostSystem/03_hs_to_settdefcap.py with appropriate number of RASD objects for different platforms In-Reply-To: References: Message-ID: <498C86F0.7080100@linux.vnet.ibm.com> > > curr_cim_rev, changeset = get_provider_version(virt, server) > if 'DiskPool' in ap['InstanceID'] and virt =='Xen' and \ > - curr_cim_rev >= libvirt_rasd_template_changes: > + curr_cim_rev >= libvirt_rasd_template_changes and \ > + curr_cim_rev < libvirt_rasd_new_changes: > # For Diskpool, we have info 1 for each of Min, Max, > # default, Increment and 1 for each of PV and FV > # hence 4 * 2 = 8 records > + exp_len = 8 > + elif 'DiskPool' in ap['InstanceID'] and virt == 'Xen' and \ > + curr_cim_rev >= libvirt_rasd_new_changes: > + exp_len = 16 > + elif 'DiskPool' in ap['InstanceID'] and virt == 'KVM' and \ > + curr_cim_rev >= libvirt_rasd_new_changes: > exp_len = 8 > else: > exp_len = 4 Also this can be simplified to: if 'DiskPool' in ap['InstanceID']: if virt =='Xen' and curr_cim_rev >= libvirt_rasd_new_changes: (etc) -- Kaitlin Rupert IBM Linux Technology Center kaitlin at linux.vnet.ibm.com From yunguol at cn.ibm.com Fri Feb 6 09:31:40 2009 From: yunguol at cn.ibm.com (Guo Lian Yun) Date: Fri, 6 Feb 2009 17:31:40 +0800 Subject: [Libvirt-cim] [PATCH] [TEST Split lines to 80-char width limit in SettingsDefineCapabilities/01_forward.py In-Reply-To: <498BE331.4030302@linux.vnet.ibm.com> Message-ID: libvirt-cim-bounces at redhat.com wrote on 2009-02-06 15:13:53: > > > yunguol at cn.ibm.com wrote: > > # HG changeset patch > > # User Guolian Yun > > # Date 1233825583 28800 > > # Node ID 3fc2b8a203339c6a59b5f0e2a159e3e0a802ea6d > > # Parent edfa908a60d058c7f1ba7394bd1d818999802287 > > [TEST Split lines to 80-char width limit in > SettingsDefineCapabilities/01_forward.py > > > > This tc fails because of the number of RASD objects, I've sent a > patch with fix > > Tested for KVM/LXC with current sources > > > > Signed-off-by: Guolian Yun > > > > diff -r edfa908a60d0 -r 3fc2b8a20333 suites/libvirt- > cim/cimtest/SettingsDefineCapabilities/01_forward.py > > --- a/suites/libvirt- > cim/cimtest/SettingsDefineCapabilities/01_forward.py Tue Feb 03 > 09:37:05 2009 -0800 > > +++ b/suites/libvirt- > cim/cimtest/SettingsDefineCapabilities/01_forward.py Thu Feb 05 > 01:19:43 2009 -0800 > > @@ -92,10 +92,15 @@ > > Creating the lists that will be used for comparisons. > > """ > > > > + memrasd = get_typed_class(virt, "MemResourceAllocationSettingData") > > + diskrasd = get_typed_class(virt, "DiskResourceAllocationSettingData") > > + netrasd = get_typed_class(virt, "NetResourceAllocationSettingData") > > + procrasd = get_typed_class(virt, "ProcResourceAllocationSettingData") > > + > > > Daisy, > Instead of manually adding the vaious RASD's we could probably use the > enum_rasds here. > The advantage will be that we need not have to be bothered to add a new > RASD when that happens. > There are # of test cases which require something similar to what you > have modified here. > For ex: you can refer the SettingsDefine/02_reverse.py tc as a reference. Good point. There is no time to fix it today. May I send a patch with fix next Monday? Thanks! > > > if virt == 'LXC': > > instlist = [ pool[1].InstanceID ] > > - cllist = [ get_typed_class(virt, > "MemResourceAllocationSettingData") ] > > - rtype = { get_typed_class(virt, > "MemResourceAllocationSettingData") : 4 } > > + cllist = [ memrasd ] > > + rtype = { memrasd : 4 } > > else: > > instlist = [ > > pool[0].InstanceID, > > @@ -103,17 +108,12 @@ > > pool[2].InstanceID, > > pool[3].InstanceID > > ] > > - cllist = [ > > - get_typed_class(virt, > "DiskResourceAllocationSettingData"), > > - get_typed_class(virt, > "MemResourceAllocationSettingData"), > > - get_typed_class(virt, > "NetResourceAllocationSettingData"), > > - get_typed_class(virt, > "ProcResourceAllocationSettingData") > > - ] > > + cllist = [ diskrasd, memrasd, netrasd, procrasd ] > > rtype = { > > - get_typed_class(virt, > "DiskResourceAllocationSettingData") : 17, > > - get_typed_class(virt, > "MemResourceAllocationSettingData") : 4, > > - get_typed_class(virt, > "NetResourceAllocationSettingData") : 10, > > - get_typed_class(virt, > "ProcResourceAllocationSettingData") : 3 > > + diskrasd : 17, > > + memrasd : 4, > > + netrasd : 10, > > + procrasd : 3 > > } > > rangelist = { > > "Default" : 0, > > > > _______________________________________________ > > Libvirt-cim mailing list > > Libvirt-cim at redhat.com > > https://www.redhat.com/mailman/listinfo/libvirt-cim > > > > -- > Thanks and Regards, > Deepti B. Kalakeri > IBM Linux Technology Center > deeptik at linux.vnet.ibm.com > > _______________________________________________ > Libvirt-cim mailing list > Libvirt-cim at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-cim -------------- next part -------------- An HTML attachment was scrubbed... URL: From kaitlin at linux.vnet.ibm.com Fri Feb 6 20:28:04 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Fri, 06 Feb 2009 12:28:04 -0800 Subject: [Libvirt-cim] [PATCH 1 of 2] [TEST] Created testcases for the forward HostedAccessPoint association (HostSystem -> KVMRedirectionSAP In-Reply-To: <40e312d4e1cb360712c1.1233933355@localhost.localdomain> References: <40e312d4e1cb360712c1.1233933355@localhost.localdomain> Message-ID: <498C9D54.4080502@linux.vnet.ibm.com> > + > +sup_types = ['Xen', 'KVM', 'XenFV', 'LXC'] > + > +test_dom = "domu1" > + > +def setup_env(server, virt): > + if virt == 'Xen': > + test_disk = 'xvda' > + else: > + test_disk = 'hda' > + virt_xml = get_class(virt) > + if virt == 'LXC': > + cxml = virt_xml(test_dom) > + else: > + cxml = virt_xml(test_dom, disk = test_disk) These 4 lines shouldn't be under the else. On Xen systems, you don't assign cxml. I didn't notice this during the last review. Also, the KVMRedirectionSAP provider was introduced in changeset 716. So you'll need to have this test return SKIP if the provider version is older than that. Otherwise, this test will fail when run with older providers. See test KVMRedirectionSAP/01_enum_KVMredSAP.py for an example on how to branch this test. -- Kaitlin Rupert IBM Linux Technology Center kaitlin at linux.vnet.ibm.com From kaitlin at linux.vnet.ibm.com Fri Feb 6 20:37:09 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Fri, 06 Feb 2009 12:37:09 -0800 Subject: [Libvirt-cim] [PATCH 1 of 2] [TEST] Created testcases for the forward HostedAccessPoint association (HostSystem -> KVMRedirectionSAP In-Reply-To: <40e312d4e1cb360712c1.1233933355@localhost.localdomain> References: <40e312d4e1cb360712c1.1233933355@localhost.localdomain> Message-ID: <498C9F75.3050302@linux.vnet.ibm.com> Accidentally hit send before finishing my review.. > +def get_kvmrsap_inst(virt, ip, guest_name): > + kvmrsap_inst = None > + > + try: > + kvmrsap_cn = get_typed_class(virt, 'KVMRedirectionSAP') > + enum_list = EnumInstances(ip, kvmrsap_cn) > + > + for kvmrsap in enum_list: > + if kvmrsap.SystemName == guest_name: > + if kvmrsap_inst is not None: > + print "More than one KVMRedirectionSAP found \ > + the same guest" Instead of using print, elogger.error() should be used. > + return kvmrsap_inst, FAIL Since you also return the inst and FAIL in the except block, you could remove the line above and change the print to a "raise Exception()" call. Either one is valid, though I think raising an exception is cleaner. > + kvmrsap_inst = kvmrsap > + > + except Exception, details: > + logger.error(details) > + return kvmrsap_inst, FAIL > + > + return kvmrsap_inst, PASS > + > +def verify_kvmrsap(enum_list, kvmrsap_inst): > + status = FAIL > + > + for item in enum_list: You should get get only one KVMRedirectionSAP. Verify enum_list only has one element. If it has more than one, return an error. Remove the for loop - since there's only one element in the list, no need to use a loop here. > + if item.classname != kvmrsap_inst.Classname: > + print "Wrong returned class name (%s)", item.classname This needs to be a logger.error() call instead of a print. > + return status > + > + if compare_all_prop(item, kvmrsap_inst) == PASS: > + if status == PASS: > + print "More than one instance found" Replace the print with logger.error() -- Kaitlin Rupert IBM Linux Technology Center kaitlin at linux.vnet.ibm.com From kaitlin at linux.vnet.ibm.com Fri Feb 6 20:40:24 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Fri, 06 Feb 2009 12:40:24 -0800 Subject: [Libvirt-cim] [PATCH 2 of 2] [TEST] Created reverse test (KVMRedirectionSAP -> HostSystem) test In-Reply-To: References: Message-ID: <498CA038.20904@linux.vnet.ibm.com> > + > +def setup_env(server, virt): > + if virt == 'Xen': > + test_disk = 'xvda' > + else: > + test_disk = 'hda' > + virt_xml = get_class(virt) > + if virt == 'LXC': > + cxml = virt_xml(test_dom) > + else: > + cxml = virt_xml(test_dom, disk = test_disk) These 4 lines need to be moved out from under the else. > + > +def get_kvmrsap_inst(virt, ip, guest_name): > + kvmrsap_inst = None > + > + try: > + kvmrsap_cn = get_typed_class(virt, 'KVMRedirectionSAP') > + enum_list = EnumInstances(ip, kvmrsap_cn) > + > + for kvmrsap in enum_list: > + if kvmrsap.SystemName == guest_name: > + if kvmrsap_inst is not None: > + print "More than one KVMRedirectionSAP found \ > + the same guest" > + return kvmrsap_inst, FAIL Remove the return here and change the print to a "raise Exception()" call. > + kvmrsap_inst = kvmrsap > + > + except Exception, details: > + logger.error(details) > + return kvmrsap_inst, FAIL > + > + return kvmrsap_inst, PASS > + > +def verify_host(enum_list, host_inst): > + status = FAIL > + > + for item in enum_list: Remove the for loop. Verify enum_list is just one element. > + if item.classname != host_inst.Classname: > + print "Returned class name (%s) is not correct", item.classname This should be a logger.error() call. > + return status > + > + if compare_all_prop(item, host_inst) == PASS: > + if status == PASS: > + print "More than one instance found" This should be a logger.error() call. -- Kaitlin Rupert IBM Linux Technology Center kaitlin at linux.vnet.ibm.com From kaitlin at linux.vnet.ibm.com Fri Feb 6 21:38:55 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Fri, 06 Feb 2009 13:38:55 -0800 Subject: [Libvirt-cim] [PATCH] [TEST] Create default LXC mount directory as part of image build process Message-ID: <9efbee1b4a6dbf8525e3.1233956335@localhost.localdomain> # HG changeset patch # User Kaitlin Rupert # Date 1233956315 28800 # Node ID 9efbee1b4a6dbf8525e3d2694e38a5937955af7d # Parent 263e285881acde9b99849cd133399298219c9d65 [TEST] Create default LXC mount directory as part of image build process Signed-off-by: Kaitlin Rupert diff -r 263e285881ac -r 9efbee1b4a6d suites/libvirt-cim/images/Makefile --- a/suites/libvirt-cim/images/Makefile Fri Feb 06 01:54:39 2009 -0800 +++ b/suites/libvirt-cim/images/Makefile Fri Feb 06 13:38:35 2009 -0800 @@ -23,7 +23,9 @@ DEFAULT_INITRD = /tmp/default-xen-initrd DEFAULT_DIMAGE = /tmp/default-xen-dimage DEFAULT_KVMIMG = /tmp/default-kvm-dimage + DEFAULT_LXCINIT = /tmp/cimtest_lxc_init +DEFAULT_LXC_MNT_DIR = /tmp/lxc_files SECONDARY_DIMAGE = $(DEFAULT_DIMAGE).2ND SECONDARY_KVMIMG = $(DEFAULT_KVMIMG).2ND @@ -35,7 +37,8 @@ XMT_URL=http://xm-test.xensource.com/ramdisks/initrd-1.1-i386.img # Default to xm-test ramdisk image & kvm image for now -default: xmtestimage $(DEFAULT_KERNEL) $(DEFAULT_KVMIMG) $(DEFAULT_LXCINIT) +default: xmtestimage $(DEFAULT_KERNEL) $(DEFAULT_KVMIMG) $(DEFAULT_LXCINIT) \ + $(DEFAULT_LXC_MNT_DIR) $(DEFAULT_KERNEL): if uname -r | grep -q xen; then \ @@ -68,7 +71,11 @@ echo "exec /bin/bash" > $(DEFAULT_LXCINIT) chmod 755 $(DEFAULT_LXCINIT) +$(DEFAULT_LXC_MNT_DIR): + mkdir /tmp/lxc_files + clean: - rm -f $(DEFAULT_KERNEL) $(DEFAULT_INITRD) $(DEFAULT_DIMAGE) $(SECONDARY_DIMAGE) $(DEFAULT_LXCINIT) + rm -f $(DEFAULT_KERNEL) $(DEFAULT_INITRD) $(DEFAULT_DIMAGE) $(SECONDARY_DIMAGE) rm -f $(DEFAULT_KVMIMG) $(SECONDARY_KVMIMG) + rm -rf $(DEFAULT_LXCINIT) $(DEFAULT_LXC_MNT_DIR) rm -Rf $(XMT_BASE) From deeptik at linux.vnet.ibm.com Mon Feb 9 06:43:35 2009 From: deeptik at linux.vnet.ibm.com (Deepti B Kalakeri) Date: Mon, 09 Feb 2009 12:13:35 +0530 Subject: [Libvirt-cim] Test Run Summary (Feb 09 2009): Xen on Red Hat Enterprise Linux Server release 5.2 Beta (Tikanga) with Pegasus Message-ID: <498FD097.4030605@linux.vnet.ibm.com> ================================================= Test Run Summary (Feb 09 2009): Xen on Red Hat Enterprise Linux Server release 5.2 Beta (Tikanga) with Pegasus ================================================= Distro: Red Hat Enterprise Linux Server release 5.2 Beta (Tikanga) Kernel: 2.6.18-88.el5xen libvirt: 0.3.3 Hypervisor: Xen 3.1.0 CIMOM: Pegasus 2.7.0 Libvirt-cim revision: 811 Libvirt-cim changeset: 72dc446be12c Cimtest revision: 615 Cimtest changeset: 263e285881ac ================================================= FAIL : 6 XFAIL : 1 SKIP : 3 PASS : 132 ----------------- Total : 142 ================================================= FAIL Test Summary: ElementConforms - 01_forward.py: FAIL HostSystem - 03_hs_to_settdefcap.py: FAIL KVMRedirectionSAP - 01_enum_KVMredSAP.py: FAIL RASD - 01_verify_rasd_fields.py: FAIL SettingsDefineCapabilities - 01_forward.py: FAIL VirtualSystemMigrationService - 02_host_migrate_type.py: FAIL ================================================= XFAIL Test Summary: ComputerSystem - 33_suspend_reboot.py: XFAIL ================================================= SKIP Test Summary: ComputerSystem - 02_nosystems.py: SKIP LogicalDisk - 02_nodevs.py: SKIP NetworkPort - 03_user_netport.py: SKIP ================================================= Full report: -------------------------------------------------------------------- AllocationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- AllocationCapabilities - 02_alloccap_gi_errs.py: PASS -------------------------------------------------------------------- ComputerSystem - 01_enum.py: PASS -------------------------------------------------------------------- ComputerSystem - 02_nosystems.py: SKIP -------------------------------------------------------------------- ComputerSystem - 03_defineVS.py: PASS -------------------------------------------------------------------- ComputerSystem - 04_defineStartVS.py: PASS -------------------------------------------------------------------- ComputerSystem - 05_activate_defined_start.py: PASS -------------------------------------------------------------------- ComputerSystem - 06_paused_active_suspend.py: PASS -------------------------------------------------------------------- ComputerSystem - 22_define_suspend.py: PASS -------------------------------------------------------------------- ComputerSystem - 23_pause_pause.py: PASS -------------------------------------------------------------------- ComputerSystem - 27_define_pause_errs.py: PASS -------------------------------------------------------------------- ComputerSystem - 32_start_reboot.py: PASS -------------------------------------------------------------------- ComputerSystem - 33_suspend_reboot.py: XFAIL ERROR - Got CIM error CIM_ERR_NOT_SUPPORTED: State not supported with return code 7 ERROR - Exception: Unable Suspend dom 'test_domain' InvokeMethod(RequestStateChange): CIM_ERR_NOT_SUPPORTED: State not supported Bug:<00012> -------------------------------------------------------------------- ComputerSystem - 35_start_reset.py: PASS -------------------------------------------------------------------- ComputerSystem - 40_RSC_start.py: PASS -------------------------------------------------------------------- ComputerSystem - 41_cs_to_settingdefinestate.py: PASS -------------------------------------------------------------------- ComputerSystem - 42_cs_gi_errs.py: PASS -------------------------------------------------------------------- ComputerSystemIndication - 01_created_indication.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 01_forward.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 02_reverse.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 03_reverse_errs.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 04_forward_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 01_forward.py: PASS -------------------------------------------------------------------- ElementCapabilities - 02_reverse.py: PASS -------------------------------------------------------------------- ElementCapabilities - 03_forward_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 04_reverse_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 05_hostsystem_cap.py: PASS -------------------------------------------------------------------- ElementConforms - 01_forward.py: FAIL ERROR - verify_fields() exception: u'Xen_AllocationCapabilities' ERROR - Exception: Failed to verify instance CIM_ERR_INVALID_CLASS: Linux_ComputerSystem -------------------------------------------------------------------- ElementConforms - 02_reverse.py: PASS -------------------------------------------------------------------- ElementConforms - 03_ectp_fwd_errs.py: PASS -------------------------------------------------------------------- ElementConforms - 04_ectp_rev_errs.py: PASS -------------------------------------------------------------------- ElementSettingData - 01_forward.py: PASS -------------------------------------------------------------------- ElementSettingData - 03_esd_assoc_with_rasd_errs.py: PASS -------------------------------------------------------------------- EnabledLogicalElementCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- EnabledLogicalElementCapabilities - 02_elecap_gi_errs.py: PASS -------------------------------------------------------------------- HostSystem - 01_enum.py: PASS -------------------------------------------------------------------- HostSystem - 02_hostsystem_to_rasd.py: PASS -------------------------------------------------------------------- HostSystem - 03_hs_to_settdefcap.py: FAIL ERROR - 'Xen_SettingsDefineCapabilities' returned 16 RASD objects instead of 8 CIM_ERR_INVALID_CLASS: Linux_ComputerSystem -------------------------------------------------------------------- HostSystem - 04_hs_to_EAPF.py: PASS -------------------------------------------------------------------- HostSystem - 05_hs_gi_errs.py: PASS -------------------------------------------------------------------- HostSystem - 06_hs_to_vsms.py: PASS -------------------------------------------------------------------- HostedDependency - 01_forward.py: PASS -------------------------------------------------------------------- HostedDependency - 02_reverse.py: PASS -------------------------------------------------------------------- HostedDependency - 03_enabledstate.py: PASS -------------------------------------------------------------------- HostedDependency - 04_reverse_errs.py: PASS -------------------------------------------------------------------- HostedResourcePool - 01_forward.py: PASS -------------------------------------------------------------------- HostedResourcePool - 02_reverse.py: PASS -------------------------------------------------------------------- HostedResourcePool - 03_forward_errs.py: PASS -------------------------------------------------------------------- HostedResourcePool - 04_reverse_errs.py: PASS -------------------------------------------------------------------- HostedService - 01_forward.py: PASS -------------------------------------------------------------------- HostedService - 02_reverse.py: PASS -------------------------------------------------------------------- HostedService - 03_forward_errs.py: PASS -------------------------------------------------------------------- HostedService - 04_reverse_errs.py: PASS -------------------------------------------------------------------- KVMRedirectionSAP - 01_enum_KVMredSAP.py: FAIL ERROR - Exception details: 'ElementName' Value Mismatch, Expected 5959:-1, Got -1:-1 ERROR - Exception: Failed to verify information for the defined dom:test_kvmredsap_dom -------------------------------------------------------------------- LogicalDisk - 01_disk.py: PASS -------------------------------------------------------------------- LogicalDisk - 02_nodevs.py: SKIP ERROR - System has defined domains; unable to run -------------------------------------------------------------------- LogicalDisk - 03_ld_gi_errs.py: PASS -------------------------------------------------------------------- Memory - 01_memory.py: PASS -------------------------------------------------------------------- Memory - 02_defgetmem.py: PASS -------------------------------------------------------------------- Memory - 03_mem_gi_errs.py: PASS -------------------------------------------------------------------- NetworkPort - 01_netport.py: PASS -------------------------------------------------------------------- NetworkPort - 02_np_gi_errors.py: PASS -------------------------------------------------------------------- NetworkPort - 03_user_netport.py: SKIP -------------------------------------------------------------------- Processor - 01_processor.py: PASS -------------------------------------------------------------------- Processor - 02_definesys_get_procs.py: PASS -------------------------------------------------------------------- Processor - 03_proc_gi_errs.py: PASS -------------------------------------------------------------------- Profile - 01_enum.py: PASS -------------------------------------------------------------------- Profile - 02_profile_to_elec.py: PASS -------------------------------------------------------------------- Profile - 03_rprofile_gi_errs.py: PASS -------------------------------------------------------------------- RASD - 01_verify_rasd_fields.py: FAIL ERROR - (6, u'CIM_ERR_NOT_FOUND: No such instance (domguest/proc)') ERROR - Enum RASDs failed -------------------------------------------------------------------- RASD - 02_enum.py: PASS -------------------------------------------------------------------- RASD - 03_rasd_errs.py: PASS -------------------------------------------------------------------- RASD - 04_disk_rasd_size.py: PASS -------------------------------------------------------------------- RASD - 05_disk_rasd_emu_type.py: PASS -------------------------------------------------------------------- RedirectionService - 01_enum_crs.py: PASS -------------------------------------------------------------------- RedirectionService - 02_enum_crscap.py: PASS -------------------------------------------------------------------- RedirectionService - 03_RedirectionSAP_errs.py: PASS -------------------------------------------------------------------- ReferencedProfile - 01_verify_refprof.py: PASS -------------------------------------------------------------------- ReferencedProfile - 02_refprofile_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 01_forward.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 02_reverse.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 03_forward_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 04_reverse_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 05_RAPF_err.py: PASS -------------------------------------------------------------------- ResourcePool - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePool - 02_rp_gi_errors.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationCapabilities - 02_rpcc_gi_errs.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 02_rcps_gi_errors.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 03_CreateResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 04_CreateChildResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 05_AddResourcesToResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 06_RemoveResourcesFromResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 07_DeleteResourcePool.py: PASS -------------------------------------------------------------------- SettingsDefine - 01_forward.py: PASS -------------------------------------------------------------------- SettingsDefine - 02_reverse.py: PASS -------------------------------------------------------------------- SettingsDefine - 03_sds_fwd_errs.py: PASS -------------------------------------------------------------------- SettingsDefine - 04_sds_rev_errs.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 01_forward.py: FAIL ERROR - Xen_SettingsDefineCapabilities returned 16 ResourcePool objects instead of 8 -------------------------------------------------------------------- SettingsDefineCapabilities - 03_forward_errs.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 04_forward_vsmsdata.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 05_reverse_vsmcap.py: PASS -------------------------------------------------------------------- SystemDevice - 01_forward.py: PASS -------------------------------------------------------------------- SystemDevice - 02_reverse.py: PASS -------------------------------------------------------------------- SystemDevice - 03_fwderrs.py: PASS -------------------------------------------------------------------- VSSD - 01_enum.py: PASS -------------------------------------------------------------------- VSSD - 02_bootldr.py: PASS -------------------------------------------------------------------- VSSD - 03_vssd_gi_errs.py: PASS -------------------------------------------------------------------- VSSD - 04_vssd_to_rasd.py: PASS -------------------------------------------------------------------- VirtualSystemManagementCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemManagementCapabilities - 02_vsmcap_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 01_definesystem_name.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 02_destroysystem.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 03_definesystem_ess.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 04_definesystem_ers.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 05_destroysystem_neg.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 06_addresource.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 07_addresource_neg.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 08_modifyresource.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 09_procrasd_persist.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 10_hv_version.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 11_define_memrasdunits.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 12_referenced_config.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 13_refconfig_additional_devs.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 14_define_sys_disk.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 15_mod_system_settings.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationCapabilities - 02_vsmc_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationService - 01_migratable_host.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationService - 02_host_migrate_type.py: FAIL ERROR - EnabledState is 9 instead of 2. ERROR - Try to increase the timeout and run the test again ERROR - Error start domain dom_migrate -------------------------------------------------------------------- VirtualSystemMigrationService - 05_migratable_host_errs.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationSettingData - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationSettingData - 02_vsmsd_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 01_forward.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 02_reverse.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 03_vssdc_fwd_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 04_vssdc_rev_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotService - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotService - 02_vs_sservice_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotServiceCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotServiceCapabilities - 02_vs_sservicecap_gi_errs.py: PASS -------------------------------------------------------------------- -- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik at linux.vnet.ibm.com From deeptik at linux.vnet.ibm.com Mon Feb 9 06:52:17 2009 From: deeptik at linux.vnet.ibm.com (Deepti B Kalakeri) Date: Mon, 09 Feb 2009 12:22:17 +0530 Subject: [Libvirt-cim] Re: Test Run Summary (Feb 09 2009): KVM on Fedora release 10 (Cambridge) with Pegasus In-Reply-To: <498FCFED.7080301@linux.vnet.ibm.com> References: <498FCFED.7080301@linux.vnet.ibm.com> Message-ID: <498FD2A1.50305@linux.vnet.ibm.com> Deepti B Kalakeri wrote: > ================================================= > Test Run Summary (Feb 09 2009): KVM on Fedora release 10 (Cambridge) > with Pegasus > ================================================= > Distro: Fedora release 10 (Cambridge) > Kernel: 2.6.27.7-134.fc10.x86_64 > libvirt: Unknown > Hypervisor: Unknown > CIMOM: Pegasus 2.7.1 > Libvirt-cim revision: 811 > Libvirt-cim changeset: 72dc446be12c > Cimtest revision: 615 > Cimtest changeset: 263e285881ac > ================================================= > FAIL : 3 > XFAIL : 2 > SKIP : 6 > PASS : 131 > ----------------- > Total : 142 > ================================================= > FAIL Test Summary: > ElementConforms - 01_forward.py: FAIL > HostSystem - 03_hs_to_settdefcap.py: FAIL > SettingsDefineCapabilities - 01_forward.py: FAIL > > Fix for the above three are in progress. -- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik at linux.vnet.ibm.com From deeptik at linux.vnet.ibm.com Mon Feb 9 06:40:45 2009 From: deeptik at linux.vnet.ibm.com (Deepti B Kalakeri) Date: Mon, 09 Feb 2009 12:10:45 +0530 Subject: [Libvirt-cim] Test Run Summary (Feb 09 2009): KVM on Fedora release 10 (Cambridge) with Pegasus Message-ID: <498FCFED.7080301@linux.vnet.ibm.com> ================================================= Test Run Summary (Feb 09 2009): KVM on Fedora release 10 (Cambridge) with Pegasus ================================================= Distro: Fedora release 10 (Cambridge) Kernel: 2.6.27.7-134.fc10.x86_64 libvirt: Unknown Hypervisor: Unknown CIMOM: Pegasus 2.7.1 Libvirt-cim revision: 811 Libvirt-cim changeset: 72dc446be12c Cimtest revision: 615 Cimtest changeset: 263e285881ac ================================================= FAIL : 3 XFAIL : 2 SKIP : 6 PASS : 131 ----------------- Total : 142 ================================================= FAIL Test Summary: ElementConforms - 01_forward.py: FAIL HostSystem - 03_hs_to_settdefcap.py: FAIL SettingsDefineCapabilities - 01_forward.py: FAIL ================================================= XFAIL Test Summary: ComputerSystem - 32_start_reboot.py: XFAIL ComputerSystem - 33_suspend_reboot.py: XFAIL ================================================= SKIP Test Summary: ComputerSystem - 02_nosystems.py: SKIP LogicalDisk - 02_nodevs.py: SKIP VSSD - 02_bootldr.py: SKIP VirtualSystemMigrationService - 01_migratable_host.py: SKIP VirtualSystemMigrationService - 02_host_migrate_type.py: SKIP VirtualSystemMigrationService - 05_migratable_host_errs.py: SKIP ================================================= Full report: -------------------------------------------------------------------- AllocationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- AllocationCapabilities - 02_alloccap_gi_errs.py: PASS -------------------------------------------------------------------- ComputerSystem - 01_enum.py: PASS -------------------------------------------------------------------- ComputerSystem - 02_nosystems.py: SKIP ERROR - System has defined domains; unable to run -------------------------------------------------------------------- ComputerSystem - 03_defineVS.py: PASS -------------------------------------------------------------------- ComputerSystem - 04_defineStartVS.py: PASS -------------------------------------------------------------------- ComputerSystem - 05_activate_defined_start.py: PASS -------------------------------------------------------------------- ComputerSystem - 06_paused_active_suspend.py: PASS -------------------------------------------------------------------- ComputerSystem - 22_define_suspend.py: PASS -------------------------------------------------------------------- ComputerSystem - 23_pause_pause.py: PASS -------------------------------------------------------------------- ComputerSystem - 27_define_pause_errs.py: PASS -------------------------------------------------------------------- ComputerSystem - 32_start_reboot.py: XFAIL ERROR - Got CIM error CIM_ERR_FAILED: Unable to reboot domain: this function is not supported by the hypervisor: virDomainReboot with return code 1 ERROR - Exception: Unable reboot dom 'cs_test_domain' InvokeMethod(RequestStateChange): CIM_ERR_FAILED: Unable to reboot domain: this function is not supported by the hypervisor: virDomainReboot Bug:<00005> -------------------------------------------------------------------- ComputerSystem - 33_suspend_reboot.py: XFAIL ERROR - Got CIM error CIM_ERR_NOT_SUPPORTED: State not supported with return code 7 ERROR - Exception: Unable Suspend dom 'test_domain' InvokeMethod(RequestStateChange): CIM_ERR_NOT_SUPPORTED: State not supported Bug:<00012> -------------------------------------------------------------------- ComputerSystem - 35_start_reset.py: PASS -------------------------------------------------------------------- ComputerSystem - 40_RSC_start.py: PASS -------------------------------------------------------------------- ComputerSystem - 41_cs_to_settingdefinestate.py: PASS -------------------------------------------------------------------- ComputerSystem - 42_cs_gi_errs.py: PASS -------------------------------------------------------------------- ComputerSystemIndication - 01_created_indication.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 01_forward.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 02_reverse.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 03_reverse_errs.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 04_forward_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 01_forward.py: PASS -------------------------------------------------------------------- ElementCapabilities - 02_reverse.py: PASS -------------------------------------------------------------------- ElementCapabilities - 03_forward_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 04_reverse_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 05_hostsystem_cap.py: PASS -------------------------------------------------------------------- ElementConforms - 01_forward.py: FAIL ERROR - verify_fields() exception: u'KVM_AllocationCapabilities' ERROR - Exception: Failed to verify instance CIM_ERR_INVALID_CLASS: Linux_ComputerSystem -------------------------------------------------------------------- ElementConforms - 02_reverse.py: PASS -------------------------------------------------------------------- ElementConforms - 03_ectp_fwd_errs.py: PASS -------------------------------------------------------------------- ElementConforms - 04_ectp_rev_errs.py: PASS -------------------------------------------------------------------- ElementSettingData - 01_forward.py: PASS -------------------------------------------------------------------- ElementSettingData - 03_esd_assoc_with_rasd_errs.py: PASS -------------------------------------------------------------------- EnabledLogicalElementCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- EnabledLogicalElementCapabilities - 02_elecap_gi_errs.py: PASS -------------------------------------------------------------------- HostSystem - 01_enum.py: PASS -------------------------------------------------------------------- HostSystem - 02_hostsystem_to_rasd.py: PASS -------------------------------------------------------------------- HostSystem - 03_hs_to_settdefcap.py: FAIL ERROR - 'KVM_SettingsDefineCapabilities' returned 8 RASD objects instead of 4 CIM_ERR_INVALID_CLASS: Linux_ComputerSystem -------------------------------------------------------------------- HostSystem - 04_hs_to_EAPF.py: PASS -------------------------------------------------------------------- HostSystem - 05_hs_gi_errs.py: PASS -------------------------------------------------------------------- HostSystem - 06_hs_to_vsms.py: PASS -------------------------------------------------------------------- HostedDependency - 01_forward.py: PASS -------------------------------------------------------------------- HostedDependency - 02_reverse.py: PASS -------------------------------------------------------------------- HostedDependency - 03_enabledstate.py: PASS -------------------------------------------------------------------- HostedDependency - 04_reverse_errs.py: PASS -------------------------------------------------------------------- HostedResourcePool - 01_forward.py: PASS -------------------------------------------------------------------- HostedResourcePool - 02_reverse.py: PASS -------------------------------------------------------------------- HostedResourcePool - 03_forward_errs.py: PASS -------------------------------------------------------------------- HostedResourcePool - 04_reverse_errs.py: PASS -------------------------------------------------------------------- HostedService - 01_forward.py: PASS -------------------------------------------------------------------- HostedService - 02_reverse.py: PASS -------------------------------------------------------------------- HostedService - 03_forward_errs.py: PASS -------------------------------------------------------------------- HostedService - 04_reverse_errs.py: PASS -------------------------------------------------------------------- KVMRedirectionSAP - 01_enum_KVMredSAP.py: PASS -------------------------------------------------------------------- LogicalDisk - 01_disk.py: PASS -------------------------------------------------------------------- LogicalDisk - 02_nodevs.py: SKIP ERROR - System has defined domains; unable to run -------------------------------------------------------------------- LogicalDisk - 03_ld_gi_errs.py: PASS -------------------------------------------------------------------- Memory - 01_memory.py: PASS -------------------------------------------------------------------- Memory - 02_defgetmem.py: PASS -------------------------------------------------------------------- Memory - 03_mem_gi_errs.py: PASS -------------------------------------------------------------------- NetworkPort - 01_netport.py: PASS -------------------------------------------------------------------- NetworkPort - 02_np_gi_errors.py: PASS -------------------------------------------------------------------- NetworkPort - 03_user_netport.py: PASS -------------------------------------------------------------------- Processor - 01_processor.py: PASS -------------------------------------------------------------------- Processor - 02_definesys_get_procs.py: PASS -------------------------------------------------------------------- Processor - 03_proc_gi_errs.py: PASS -------------------------------------------------------------------- Profile - 01_enum.py: PASS -------------------------------------------------------------------- Profile - 02_profile_to_elec.py: PASS -------------------------------------------------------------------- Profile - 03_rprofile_gi_errs.py: PASS -------------------------------------------------------------------- RASD - 01_verify_rasd_fields.py: PASS -------------------------------------------------------------------- RASD - 02_enum.py: PASS -------------------------------------------------------------------- RASD - 03_rasd_errs.py: PASS -------------------------------------------------------------------- RASD - 04_disk_rasd_size.py: PASS -------------------------------------------------------------------- RASD - 05_disk_rasd_emu_type.py: PASS -------------------------------------------------------------------- RedirectionService - 01_enum_crs.py: PASS -------------------------------------------------------------------- RedirectionService - 02_enum_crscap.py: PASS -------------------------------------------------------------------- RedirectionService - 03_RedirectionSAP_errs.py: PASS -------------------------------------------------------------------- ReferencedProfile - 01_verify_refprof.py: PASS -------------------------------------------------------------------- ReferencedProfile - 02_refprofile_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 01_forward.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 02_reverse.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 03_forward_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 04_reverse_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 05_RAPF_err.py: PASS -------------------------------------------------------------------- ResourcePool - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePool - 02_rp_gi_errors.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationCapabilities - 02_rpcc_gi_errs.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 02_rcps_gi_errors.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 03_CreateResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 04_CreateChildResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 05_AddResourcesToResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 06_RemoveResourcesFromResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 07_DeleteResourcePool.py: PASS -------------------------------------------------------------------- SettingsDefine - 01_forward.py: PASS -------------------------------------------------------------------- SettingsDefine - 02_reverse.py: PASS -------------------------------------------------------------------- SettingsDefine - 03_sds_fwd_errs.py: PASS -------------------------------------------------------------------- SettingsDefine - 04_sds_rev_errs.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 01_forward.py: FAIL ERROR - KVM_SettingsDefineCapabilities returned 8 ResourcePool objects instead of 4 -------------------------------------------------------------------- SettingsDefineCapabilities - 03_forward_errs.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 04_forward_vsmsdata.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 05_reverse_vsmcap.py: PASS -------------------------------------------------------------------- SystemDevice - 01_forward.py: PASS -------------------------------------------------------------------- SystemDevice - 02_reverse.py: PASS -------------------------------------------------------------------- SystemDevice - 03_fwderrs.py: PASS -------------------------------------------------------------------- VSSD - 01_enum.py: PASS -------------------------------------------------------------------- VSSD - 02_bootldr.py: SKIP -------------------------------------------------------------------- VSSD - 03_vssd_gi_errs.py: PASS -------------------------------------------------------------------- VSSD - 04_vssd_to_rasd.py: PASS -------------------------------------------------------------------- VirtualSystemManagementCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemManagementCapabilities - 02_vsmcap_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 01_definesystem_name.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 02_destroysystem.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 03_definesystem_ess.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 04_definesystem_ers.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 05_destroysystem_neg.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 06_addresource.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 07_addresource_neg.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 08_modifyresource.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 09_procrasd_persist.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 10_hv_version.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 11_define_memrasdunits.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 12_referenced_config.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 13_refconfig_additional_devs.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 14_define_sys_disk.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 15_mod_system_settings.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationCapabilities - 02_vsmc_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationService - 01_migratable_host.py: SKIP -------------------------------------------------------------------- VirtualSystemMigrationService - 02_host_migrate_type.py: SKIP -------------------------------------------------------------------- VirtualSystemMigrationService - 05_migratable_host_errs.py: SKIP -------------------------------------------------------------------- VirtualSystemMigrationSettingData - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationSettingData - 02_vsmsd_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 01_forward.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 02_reverse.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 03_vssdc_fwd_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 04_vssdc_rev_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotService - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotService - 02_vs_sservice_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotServiceCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotServiceCapabilities - 02_vs_sservicecap_gi_errs.py: PASS -------------------------------------------------------------------- -- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik at linux.vnet.ibm.com From deeptik at linux.vnet.ibm.com Mon Feb 9 06:56:56 2009 From: deeptik at linux.vnet.ibm.com (Deepti B Kalakeri) Date: Mon, 09 Feb 2009 12:26:56 +0530 Subject: [Libvirt-cim] Re: Test Run Summary (Feb 09 2009): Xen on Red Hat Enterprise Linux Server release 5.2 Beta (Tikanga) with Pegasus In-Reply-To: <498FD097.4030605@linux.vnet.ibm.com> References: <498FD097.4030605@linux.vnet.ibm.com> Message-ID: <498FD3B8.2020604@linux.vnet.ibm.com> Deepti B Kalakeri wrote: > ================================================= > Test Run Summary (Feb 09 2009): Xen on Red Hat Enterprise Linux Server > release 5.2 Beta (Tikanga) with Pegasus > ================================================= > Distro: Red Hat Enterprise Linux Server release 5.2 Beta (Tikanga) > Kernel: 2.6.18-88.el5xen > libvirt: 0.3.3 > Hypervisor: Xen 3.1.0 > CIMOM: Pegasus 2.7.0 > Libvirt-cim revision: 811 > Libvirt-cim changeset: 72dc446be12c > Cimtest revision: 615 > Cimtest changeset: 263e285881ac > ================================================= > FAIL : 6 > XFAIL : 1 > SKIP : 3 > PASS : 132 > ----------------- > Total : 142 > ================================================= > FAIL Test Summary: > ElementConforms - 01_forward.py: FAIL > HostSystem - 03_hs_to_settdefcap.py: FAIL Fix for the above 2 are under progress. > KVMRedirectionSAP - 01_enum_KVMredSAP.py: FAIL This test case fails for Xen. The tc is not able to assign the port num values given in the XML configuration. > RASD - 01_verify_rasd_fields.py: FAIL Passed when run manually. > SettingsDefineCapabilities - 01_forward.py: FAIL Fix for this is under progress. > VirtualSystemMigrationService - 02_host_migrate_type.py: FAIL > > -- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik at linux.vnet.ibm.com From deeptik at linux.vnet.ibm.com Mon Feb 9 07:15:44 2009 From: deeptik at linux.vnet.ibm.com (Deepti B Kalakeri) Date: Mon, 09 Feb 2009 12:45:44 +0530 Subject: [Libvirt-cim] Test Run Summary (Feb 09 2009): LXC on Fedora release 9.90.1 (Rawhide) with sfcb Message-ID: <498FD820.3070806@linux.vnet.ibm.com> ================================================= Test Run Summary (Feb 09 2009): LXC on Fedora release 9.90.1 (Rawhide) with sfcb ================================================= Distro: Fedora release 9.90.1 (Rawhide) Kernel: 2.6.27-0.323.rc6.fc10.x86_64 libvirt: 0.4.5 Hypervisor: QEMU 0.9.1 CIMOM: sfcb sfcbd 1.3.3preview Libvirt-cim revision: 811 Libvirt-cim changeset: 72dc446be12c Cimtest revision: 615 Cimtest changeset: 263e285881ac ================================================= FAIL : 3 XFAIL : 7 SKIP : 32 PASS : 100 ----------------- Total : 142 ================================================= FAIL Test Summary: ComputerSystem - 06_paused_active_suspend.py: FAIL ElementConforms - 01_forward.py: FAIL VirtualSystemSettingDataComponent - 02_reverse.py: FAIL ================================================= XFAIL Test Summary: ComputerSystem - 23_pause_pause.py: XFAIL ComputerSystem - 32_start_reboot.py: XFAIL ComputerSystem - 33_suspend_reboot.py: XFAIL HostSystem - 02_hostsystem_to_rasd.py: XFAIL HostedDependency - 03_enabledstate.py: XFAIL VSSD - 04_vssd_to_rasd.py: XFAIL VirtualSystemManagementService - 15_mod_system_settings.py: XFAIL ================================================= SKIP Test Summary: ComputerSystem - 02_nosystems.py: SKIP ComputerSystem - 41_cs_to_settingdefinestate.py: SKIP ComputerSystemIndication - 01_created_indication.py: SKIP ElementAllocatedFromPool - 03_reverse_errs.py: SKIP ElementAllocatedFromPool - 04_forward_errs.py: SKIP LogicalDisk - 01_disk.py: SKIP LogicalDisk - 02_nodevs.py: SKIP LogicalDisk - 03_ld_gi_errs.py: SKIP NetworkPort - 01_netport.py: SKIP NetworkPort - 02_np_gi_errors.py: SKIP NetworkPort - 03_user_netport.py: SKIP Processor - 01_processor.py: SKIP Processor - 02_definesys_get_procs.py: SKIP Processor - 03_proc_gi_errs.py: SKIP RASD - 04_disk_rasd_size.py: SKIP RASD - 05_disk_rasd_emu_type.py: SKIP ResourceAllocationFromPool - 05_RAPF_err.py: SKIP ResourcePoolConfigurationService - 03_CreateResourcePool.py: SKIP ResourcePoolConfigurationService - 04_CreateChildResourcePool.py: SKIP ResourcePoolConfigurationService - 05_AddResourcesToResourcePool.py: SKIP ResourcePoolConfigurationService - 06_RemoveResourcesFromResourcePool.py: SKIP ResourcePoolConfigurationService - 07_DeleteResourcePool.py: SKIP VSSD - 02_bootldr.py: SKIP VirtualSystemManagementService - 06_addresource.py: SKIP VirtualSystemManagementService - 08_modifyresource.py: SKIP VirtualSystemManagementService - 09_procrasd_persist.py: SKIP VirtualSystemManagementService - 11_define_memrasdunits.py: SKIP VirtualSystemManagementService - 12_referenced_config.py: SKIP VirtualSystemManagementService - 13_refconfig_additional_devs.py: SKIP VirtualSystemMigrationService - 01_migratable_host.py: SKIP VirtualSystemMigrationService - 02_host_migrate_type.py: SKIP VirtualSystemMigrationService - 05_migratable_host_errs.py: SKIP ================================================= Full report: -------------------------------------------------------------------- AllocationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- AllocationCapabilities - 02_alloccap_gi_errs.py: PASS -------------------------------------------------------------------- ComputerSystem - 01_enum.py: PASS -------------------------------------------------------------------- ComputerSystem - 02_nosystems.py: SKIP ERROR - System has defined domains; unable to run -------------------------------------------------------------------- ComputerSystem - 03_defineVS.py: PASS -------------------------------------------------------------------- ComputerSystem - 04_defineStartVS.py: PASS -------------------------------------------------------------------- ComputerSystem - 05_activate_defined_start.py: PASS -------------------------------------------------------------------- ComputerSystem - 06_paused_active_suspend.py: FAIL ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Exception variable: Unable start dom 'DomST1' -------------------------------------------------------------------- ComputerSystem - 22_define_suspend.py: PASS -------------------------------------------------------------------- ComputerSystem - 23_pause_pause.py: XFAIL ERROR - Got CIM error Unable to pause domain: this function is not supported by the hypervisor: virDomainSuspend with return code 1 ERROR - Exception: 'Unable pause dom 'cs_test_domain'' InvokeMethod(RequestStateChange): Unable to pause domain: this function is not supported by the hypervisor: virDomainSuspend Bug:<00011> -------------------------------------------------------------------- ComputerSystem - 27_define_pause_errs.py: PASS -------------------------------------------------------------------- ComputerSystem - 32_start_reboot.py: XFAIL ERROR - Got CIM error Unable to reboot domain: this function is not supported by the hypervisor: virDomainReboot with return code 1 ERROR - Exception: Unable reboot dom 'cs_test_domain' InvokeMethod(RequestStateChange): Unable to reboot domain: this function is not supported by the hypervisor: virDomainReboot Bug:<00005> -------------------------------------------------------------------- ComputerSystem - 33_suspend_reboot.py: XFAIL ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Unable to check guest state ERROR - Exception: EnabledState is 3, expected 2. ERROR - Exception: Unable Start dom 'test_domain' Bug:<00012> -------------------------------------------------------------------- ComputerSystem - 35_start_reset.py: PASS -------------------------------------------------------------------- ComputerSystem - 40_RSC_start.py: PASS -------------------------------------------------------------------- ComputerSystem - 41_cs_to_settingdefinestate.py: SKIP -------------------------------------------------------------------- ComputerSystem - 42_cs_gi_errs.py: PASS -------------------------------------------------------------------- ComputerSystemIndication - 01_created_indication.py: SKIP -------------------------------------------------------------------- ElementAllocatedFromPool - 01_forward.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 02_reverse.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 03_reverse_errs.py: SKIP -------------------------------------------------------------------- ElementAllocatedFromPool - 04_forward_errs.py: SKIP -------------------------------------------------------------------- ElementCapabilities - 01_forward.py: PASS -------------------------------------------------------------------- ElementCapabilities - 02_reverse.py: PASS -------------------------------------------------------------------- ElementCapabilities - 03_forward_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 04_reverse_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 05_hostsystem_cap.py: PASS -------------------------------------------------------------------- ElementConforms - 01_forward.py: FAIL ERROR - verify_fields() exception: u'LXC_AllocationCapabilities' ERROR - Exception: Failed to verify instance Class not found -------------------------------------------------------------------- ElementConforms - 02_reverse.py: PASS -------------------------------------------------------------------- ElementConforms - 03_ectp_fwd_errs.py: PASS -------------------------------------------------------------------- ElementConforms - 04_ectp_rev_errs.py: PASS -------------------------------------------------------------------- ElementSettingData - 01_forward.py: PASS -------------------------------------------------------------------- ElementSettingData - 03_esd_assoc_with_rasd_errs.py: PASS -------------------------------------------------------------------- EnabledLogicalElementCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- EnabledLogicalElementCapabilities - 02_elecap_gi_errs.py: PASS -------------------------------------------------------------------- HostSystem - 01_enum.py: PASS -------------------------------------------------------------------- HostSystem - 02_hostsystem_to_rasd.py: XFAIL ERROR - InstanceID Mismatch ERROR - Returned CrossClass_GuestDom/mouse:xen instead of CrossClass_GuestDom/mouse:usb Class not found Bug:<00009> -------------------------------------------------------------------- HostSystem - 03_hs_to_settdefcap.py: PASS -------------------------------------------------------------------- HostSystem - 04_hs_to_EAPF.py: PASS -------------------------------------------------------------------- HostSystem - 05_hs_gi_errs.py: PASS -------------------------------------------------------------------- HostSystem - 06_hs_to_vsms.py: PASS -------------------------------------------------------------------- HostedDependency - 01_forward.py: PASS -------------------------------------------------------------------- HostedDependency - 02_reverse.py: PASS -------------------------------------------------------------------- HostedDependency - 03_enabledstate.py: XFAIL ERROR - Exception: (1, u'Domain not running') ERROR - Failed to suspend the dom: hd_domain1 InvokeMethod(RequestStateChange): Domain not running Bug:<00011> -------------------------------------------------------------------- HostedDependency - 04_reverse_errs.py: PASS -------------------------------------------------------------------- HostedResourcePool - 01_forward.py: PASS -------------------------------------------------------------------- HostedResourcePool - 02_reverse.py: PASS -------------------------------------------------------------------- HostedResourcePool - 03_forward_errs.py: PASS -------------------------------------------------------------------- HostedResourcePool - 04_reverse_errs.py: PASS -------------------------------------------------------------------- HostedService - 01_forward.py: PASS -------------------------------------------------------------------- HostedService - 02_reverse.py: PASS -------------------------------------------------------------------- HostedService - 03_forward_errs.py: PASS -------------------------------------------------------------------- HostedService - 04_reverse_errs.py: PASS -------------------------------------------------------------------- KVMRedirectionSAP - 01_enum_KVMredSAP.py: PASS -------------------------------------------------------------------- LogicalDisk - 01_disk.py: SKIP -------------------------------------------------------------------- LogicalDisk - 02_nodevs.py: SKIP ERROR - System has defined domains; unable to run -------------------------------------------------------------------- LogicalDisk - 03_ld_gi_errs.py: SKIP -------------------------------------------------------------------- Memory - 01_memory.py: PASS -------------------------------------------------------------------- Memory - 02_defgetmem.py: PASS -------------------------------------------------------------------- Memory - 03_mem_gi_errs.py: PASS -------------------------------------------------------------------- NetworkPort - 01_netport.py: SKIP -------------------------------------------------------------------- NetworkPort - 02_np_gi_errors.py: SKIP -------------------------------------------------------------------- NetworkPort - 03_user_netport.py: SKIP -------------------------------------------------------------------- Processor - 01_processor.py: SKIP -------------------------------------------------------------------- Processor - 02_definesys_get_procs.py: SKIP -------------------------------------------------------------------- Processor - 03_proc_gi_errs.py: SKIP -------------------------------------------------------------------- Profile - 01_enum.py: PASS -------------------------------------------------------------------- Profile - 02_profile_to_elec.py: PASS -------------------------------------------------------------------- Profile - 03_rprofile_gi_errs.py: PASS -------------------------------------------------------------------- RASD - 01_verify_rasd_fields.py: PASS -------------------------------------------------------------------- RASD - 02_enum.py: PASS -------------------------------------------------------------------- RASD - 03_rasd_errs.py: PASS -------------------------------------------------------------------- RASD - 04_disk_rasd_size.py: SKIP -------------------------------------------------------------------- RASD - 05_disk_rasd_emu_type.py: SKIP -------------------------------------------------------------------- RedirectionService - 01_enum_crs.py: PASS -------------------------------------------------------------------- RedirectionService - 02_enum_crscap.py: PASS -------------------------------------------------------------------- RedirectionService - 03_RedirectionSAP_errs.py: PASS -------------------------------------------------------------------- ReferencedProfile - 01_verify_refprof.py: PASS -------------------------------------------------------------------- ReferencedProfile - 02_refprofile_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 01_forward.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 02_reverse.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 03_forward_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 04_reverse_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 05_RAPF_err.py: SKIP -------------------------------------------------------------------- ResourcePool - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePool - 02_rp_gi_errors.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationCapabilities - 02_rpcc_gi_errs.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 02_rcps_gi_errors.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 03_CreateResourcePool.py: SKIP -------------------------------------------------------------------- ResourcePoolConfigurationService - 04_CreateChildResourcePool.py: SKIP -------------------------------------------------------------------- ResourcePoolConfigurationService - 05_AddResourcesToResourcePool.py: SKIP -------------------------------------------------------------------- ResourcePoolConfigurationService - 06_RemoveResourcesFromResourcePool.py: SKIP -------------------------------------------------------------------- ResourcePoolConfigurationService - 07_DeleteResourcePool.py: SKIP -------------------------------------------------------------------- SettingsDefine - 01_forward.py: PASS -------------------------------------------------------------------- SettingsDefine - 02_reverse.py: PASS -------------------------------------------------------------------- SettingsDefine - 03_sds_fwd_errs.py: PASS -------------------------------------------------------------------- SettingsDefine - 04_sds_rev_errs.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 01_forward.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 03_forward_errs.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 04_forward_vsmsdata.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 05_reverse_vsmcap.py: PASS -------------------------------------------------------------------- SystemDevice - 01_forward.py: PASS -------------------------------------------------------------------- SystemDevice - 02_reverse.py: PASS -------------------------------------------------------------------- SystemDevice - 03_fwderrs.py: PASS -------------------------------------------------------------------- VSSD - 01_enum.py: PASS -------------------------------------------------------------------- VSSD - 02_bootldr.py: SKIP -------------------------------------------------------------------- VSSD - 03_vssd_gi_errs.py: PASS -------------------------------------------------------------------- VSSD - 04_vssd_to_rasd.py: XFAIL ERROR - InstanceID Mismatch ERROR - Returned VSSDC_dom/mouse:xen instead of VSSDC_dom/mouse:usb Bug:<00009> -------------------------------------------------------------------- VirtualSystemManagementCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemManagementCapabilities - 02_vsmcap_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 01_definesystem_name.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 02_destroysystem.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 03_definesystem_ess.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 04_definesystem_ers.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 05_destroysystem_neg.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 06_addresource.py: SKIP -------------------------------------------------------------------- VirtualSystemManagementService - 07_addresource_neg.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 08_modifyresource.py: SKIP -------------------------------------------------------------------- VirtualSystemManagementService - 09_procrasd_persist.py: SKIP -------------------------------------------------------------------- VirtualSystemManagementService - 10_hv_version.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 11_define_memrasdunits.py: SKIP -------------------------------------------------------------------- VirtualSystemManagementService - 12_referenced_config.py: SKIP -------------------------------------------------------------------- VirtualSystemManagementService - 13_refconfig_additional_devs.py: SKIP -------------------------------------------------------------------- VirtualSystemManagementService - 14_define_sys_disk.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 15_mod_system_settings.py: XFAIL ERROR - rstest_domain not updated properly. ERROR - Exp AutomaticRecoveryAction=3, got 2 Bug:<00008> -------------------------------------------------------------------- VirtualSystemMigrationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationCapabilities - 02_vsmc_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationService - 01_migratable_host.py: SKIP -------------------------------------------------------------------- VirtualSystemMigrationService - 02_host_migrate_type.py: SKIP -------------------------------------------------------------------- VirtualSystemMigrationService - 05_migratable_host_errs.py: SKIP -------------------------------------------------------------------- VirtualSystemMigrationSettingData - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationSettingData - 02_vsmsd_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 01_forward.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 02_reverse.py: FAIL ERROR - Exception evaluating InstanceID: global name 'assoc_info' is not defined ERROR - Mistmatching association value -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 03_vssdc_fwd_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 04_vssdc_rev_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotService - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotService - 02_vs_sservice_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotServiceCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotServiceCapabilities - 02_vs_sservicecap_gi_errs.py: PASS -------------------------------------------------------------------- -- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik at linux.vnet.ibm.com From rmaciel at linux.vnet.ibm.com Tue Feb 10 02:55:13 2009 From: rmaciel at linux.vnet.ibm.com (Richard Maciel) Date: Tue, 10 Feb 2009 00:55:13 -0200 Subject: [Libvirt-cim] [PATCH 1 of 2] [TEST] Created testcases for the forward HostedAccessPoint association (HostSystem -> KVMRedirectionSAP In-Reply-To: <498C9F75.3050302@linux.vnet.ibm.com> References: <40e312d4e1cb360712c1.1233933355@localhost.localdomain> <498C9F75.3050302@linux.vnet.ibm.com> Message-ID: <4990EC91.9040700@linux.vnet.ibm.com> Kaitlin Rupert wrote: > Accidentally hit send before finishing my review.. > >> +def get_kvmrsap_inst(virt, ip, guest_name): >> + kvmrsap_inst = None + >> + try: >> + kvmrsap_cn = get_typed_class(virt, 'KVMRedirectionSAP') >> + enum_list = EnumInstances(ip, kvmrsap_cn) >> + >> + for kvmrsap in enum_list: >> + if kvmrsap.SystemName == guest_name: >> + if kvmrsap_inst is not None: >> + print "More than one KVMRedirectionSAP found \ >> + the same guest" > > Instead of using print, elogger.error() should be used. > >> + return kvmrsap_inst, FAIL > > Since you also return the inst and FAIL in the except block, you could > remove the line above and change the print to a "raise Exception()" call. > > Either one is valid, though I think raising an exception is cleaner. > >> + kvmrsap_inst = kvmrsap >> + >> + except Exception, details: >> + logger.error(details) >> + return kvmrsap_inst, FAIL >> + >> + return kvmrsap_inst, PASS >> + >> +def verify_kvmrsap(enum_list, kvmrsap_inst): + status = FAIL >> + >> + for item in enum_list: > > You should get get only one KVMRedirectionSAP. Verify enum_list only > has one element. If it has more than one, return an error. > > Remove the for loop - since there's only one element in the list, no > need to use a loop here. I don't get it. When I execute the ServiceAccessBySAP query (ConsoleRedirectionService -> KVMRedirectionSAP) I receive one item per virtual machine configured in the host. The same happens when I do the query using pywbem. > >> + if item.classname != kvmrsap_inst.Classname: >> + print "Wrong returned class name (%s)", item.classname > > This needs to be a logger.error() call instead of a print. > >> + return status >> + >> + if compare_all_prop(item, kvmrsap_inst) == PASS: >> + if status == PASS: >> + print "More than one instance found" > > Replace the print with logger.error() > -- Richard Maciel, MSc IBM Linux Technology Center rmaciel at linux.vnet.ibm.com From yunguol at cn.ibm.com Tue Feb 10 03:41:06 2009 From: yunguol at cn.ibm.com (yunguol at cn.ibm.com) Date: Mon, 09 Feb 2009 19:41:06 -0800 Subject: [Libvirt-cim] [PATCH] [TEST] #3 Fix HostSystem/03_hs_to_settdefcap.py with appropriate number of RASD objects for different platforms Message-ID: <83ff45f2d027900a60f8.1234237266@elm3b197.beaverton.ibm.com> # HG changeset patch # User Guolian Yun # Date 1234237259 28800 # Node ID 83ff45f2d027900a60f8a81bb515558de217f54c # Parent 263e285881acde9b99849cd133399298219c9d65 [TEST] #3 Fix HostSystem/03_hs_to_settdefcap.py with appropriate number of RASD objects for different platforms Updates form 2 to 3: Simplify the if statements Updates from 1 to 2: Add two branches of returned RASD objects number: 1) The valule to be 8 for Xen when rev >= 707 and rev < 805 2) The value to be 16 for Xen when rev >= 805 3) The value to be 8 for KVM when rev >= 805 Tested for KVM/Xen/LXC with current sources, KVM with F9 rpm. Signed-off-by: Guolian Yun diff -r 263e285881ac -r 83ff45f2d027 suites/libvirt-cim/cimtest/HostSystem/03_hs_to_settdefcap.py --- a/suites/libvirt-cim/cimtest/HostSystem/03_hs_to_settdefcap.py Fri Feb 06 01:54:39 2009 -0800 +++ b/suites/libvirt-cim/cimtest/HostSystem/03_hs_to_settdefcap.py Mon Feb 09 19:40:59 2009 -0800 @@ -56,6 +56,7 @@ test_dom = "domgst_test" test_vcpus = 1 libvirt_rasd_template_changes = 707 +libvirt_rasd_new_changes = 805 def setup_env(server, virt="Xen"): status = PASS @@ -214,12 +215,20 @@ InstanceID = ap['InstanceID']) curr_cim_rev, changeset = get_provider_version(virt, server) - if 'DiskPool' in ap['InstanceID'] and virt =='Xen' and \ - curr_cim_rev >= libvirt_rasd_template_changes: + if 'DiskPool' in ap['InstanceID']: + if virt =='Xen' and \ + curr_cim_rev >= libvirt_rasd_template_changes and \ + curr_cim_rev < libvirt_rasd_new_changes: # For Diskpool, we have info 1 for each of Min, Max, # default, Increment and 1 for each of PV and FV # hence 4 * 2 = 8 records - exp_len = 8 + exp_len = 8 + if virt == 'Xen' and \ + curr_cim_rev >= libvirt_rasd_new_changes: + exp_len = 16 + if virt == 'KVM' and \ + curr_cim_rev >= libvirt_rasd_new_changes: + exp_len = 8 else: exp_len = 4 From deeptik at linux.vnet.ibm.com Tue Feb 10 05:06:16 2009 From: deeptik at linux.vnet.ibm.com (Deepti B Kalakeri) Date: Tue, 10 Feb 2009 10:36:16 +0530 Subject: [Libvirt-cim] Test Run Summary (Feb 10 2009): KVM on Fedora release 9 (Sulphur) with Pegasus Message-ID: <49910B48.7090500@linux.vnet.ibm.com> ================================================= Test Run Summary (Feb 10 2009): KVM on Fedora release 9 (Sulphur) with Pegasus ================================================= Distro: Fedora release 9 (Sulphur) Kernel: 2.6.25.14-108.fc9.x86_64 libvirt: 0.4.4 Hypervisor: QEMU 0.9.1 CIMOM: Pegasus 2.7.0 Libvirt-cim revision: 613 Libvirt-cim changeset: 1fcf330fadf8+ Cimtest revision: 615 Cimtest changeset: 263e285881ac ================================================= FAIL : 1 XFAIL : 3 SKIP : 9 PASS : 129 ----------------- Total : 142 ================================================= FAIL Test Summary: VirtualSystemManagementService - 09_procrasd_persist.py: FAIL ================================================= XFAIL Test Summary: ComputerSystem - 32_start_reboot.py: XFAIL ComputerSystem - 33_suspend_reboot.py: XFAIL VirtualSystemManagementService - 15_mod_system_settings.py: XFAIL ================================================= SKIP Test Summary: KVMRedirectionSAP - 01_enum_KVMredSAP.py: SKIP RASD - 05_disk_rasd_emu_type.py: SKIP RedirectionService - 01_enum_crs.py: SKIP RedirectionService - 02_enum_crscap.py: SKIP RedirectionService - 03_RedirectionSAP_errs.py: SKIP VSSD - 02_bootldr.py: SKIP VirtualSystemMigrationService - 01_migratable_host.py: SKIP VirtualSystemMigrationService - 02_host_migrate_type.py: SKIP VirtualSystemMigrationService - 05_migratable_host_errs.py: SKIP ================================================= Full report: -------------------------------------------------------------------- AllocationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- AllocationCapabilities - 02_alloccap_gi_errs.py: PASS -------------------------------------------------------------------- ComputerSystem - 01_enum.py: PASS -------------------------------------------------------------------- ComputerSystem - 02_nosystems.py: PASS -------------------------------------------------------------------- ComputerSystem - 03_defineVS.py: PASS -------------------------------------------------------------------- ComputerSystem - 04_defineStartVS.py: PASS -------------------------------------------------------------------- ComputerSystem - 05_activate_defined_start.py: PASS -------------------------------------------------------------------- ComputerSystem - 06_paused_active_suspend.py: PASS -------------------------------------------------------------------- ComputerSystem - 22_define_suspend.py: PASS -------------------------------------------------------------------- ComputerSystem - 23_pause_pause.py: PASS -------------------------------------------------------------------- ComputerSystem - 27_define_pause_errs.py: PASS -------------------------------------------------------------------- ComputerSystem - 32_start_reboot.py: XFAIL ERROR - Got CIM error CIM_ERR_FAILED: Domain Operation Failed with return code 1 ERROR - Exception: Unable reboot dom 'cs_test_domain' InvokeMethod(RequestStateChange): CIM_ERR_FAILED: Domain Operation Failed Bug:<00005> -------------------------------------------------------------------- ComputerSystem - 33_suspend_reboot.py: XFAIL ERROR - Got CIM error CIM_ERR_NOT_SUPPORTED: State not supported with return code 7 ERROR - Exception: Unable Suspend dom 'test_domain' InvokeMethod(RequestStateChange): CIM_ERR_NOT_SUPPORTED: State not supported Bug:<00012> -------------------------------------------------------------------- ComputerSystem - 35_start_reset.py: PASS -------------------------------------------------------------------- ComputerSystem - 40_RSC_start.py: PASS -------------------------------------------------------------------- ComputerSystem - 41_cs_to_settingdefinestate.py: PASS -------------------------------------------------------------------- ComputerSystem - 42_cs_gi_errs.py: PASS -------------------------------------------------------------------- ComputerSystemIndication - 01_created_indication.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 01_forward.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 02_reverse.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 03_reverse_errs.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 04_forward_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 01_forward.py: PASS -------------------------------------------------------------------- ElementCapabilities - 02_reverse.py: PASS -------------------------------------------------------------------- ElementCapabilities - 03_forward_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 04_reverse_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 05_hostsystem_cap.py: PASS -------------------------------------------------------------------- ElementConforms - 01_forward.py: PASS -------------------------------------------------------------------- ElementConforms - 02_reverse.py: PASS -------------------------------------------------------------------- ElementConforms - 03_ectp_fwd_errs.py: PASS -------------------------------------------------------------------- ElementConforms - 04_ectp_rev_errs.py: PASS -------------------------------------------------------------------- ElementSettingData - 01_forward.py: PASS -------------------------------------------------------------------- ElementSettingData - 03_esd_assoc_with_rasd_errs.py: PASS -------------------------------------------------------------------- EnabledLogicalElementCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- EnabledLogicalElementCapabilities - 02_elecap_gi_errs.py: PASS -------------------------------------------------------------------- HostSystem - 01_enum.py: PASS -------------------------------------------------------------------- HostSystem - 02_hostsystem_to_rasd.py: PASS -------------------------------------------------------------------- HostSystem - 03_hs_to_settdefcap.py: PASS -------------------------------------------------------------------- HostSystem - 04_hs_to_EAPF.py: PASS -------------------------------------------------------------------- HostSystem - 05_hs_gi_errs.py: PASS -------------------------------------------------------------------- HostSystem - 06_hs_to_vsms.py: PASS -------------------------------------------------------------------- HostedDependency - 01_forward.py: PASS -------------------------------------------------------------------- HostedDependency - 02_reverse.py: PASS -------------------------------------------------------------------- HostedDependency - 03_enabledstate.py: PASS -------------------------------------------------------------------- HostedDependency - 04_reverse_errs.py: PASS -------------------------------------------------------------------- HostedResourcePool - 01_forward.py: PASS -------------------------------------------------------------------- HostedResourcePool - 02_reverse.py: PASS -------------------------------------------------------------------- HostedResourcePool - 03_forward_errs.py: PASS -------------------------------------------------------------------- HostedResourcePool - 04_reverse_errs.py: PASS -------------------------------------------------------------------- HostedService - 01_forward.py: PASS -------------------------------------------------------------------- HostedService - 02_reverse.py: PASS -------------------------------------------------------------------- HostedService - 03_forward_errs.py: PASS -------------------------------------------------------------------- HostedService - 04_reverse_errs.py: PASS -------------------------------------------------------------------- KVMRedirectionSAP - 01_enum_KVMredSAP.py: SKIP -------------------------------------------------------------------- LogicalDisk - 01_disk.py: PASS -------------------------------------------------------------------- LogicalDisk - 02_nodevs.py: PASS -------------------------------------------------------------------- LogicalDisk - 03_ld_gi_errs.py: PASS -------------------------------------------------------------------- Memory - 01_memory.py: PASS -------------------------------------------------------------------- Memory - 02_defgetmem.py: PASS -------------------------------------------------------------------- Memory - 03_mem_gi_errs.py: PASS -------------------------------------------------------------------- NetworkPort - 01_netport.py: PASS -------------------------------------------------------------------- NetworkPort - 02_np_gi_errors.py: PASS -------------------------------------------------------------------- NetworkPort - 03_user_netport.py: PASS -------------------------------------------------------------------- Processor - 01_processor.py: PASS -------------------------------------------------------------------- Processor - 02_definesys_get_procs.py: PASS -------------------------------------------------------------------- Processor - 03_proc_gi_errs.py: PASS -------------------------------------------------------------------- Profile - 01_enum.py: PASS -------------------------------------------------------------------- Profile - 02_profile_to_elec.py: PASS -------------------------------------------------------------------- Profile - 03_rprofile_gi_errs.py: PASS -------------------------------------------------------------------- RASD - 01_verify_rasd_fields.py: PASS -------------------------------------------------------------------- RASD - 02_enum.py: PASS -------------------------------------------------------------------- RASD - 03_rasd_errs.py: PASS -------------------------------------------------------------------- RASD - 04_disk_rasd_size.py: PASS -------------------------------------------------------------------- RASD - 05_disk_rasd_emu_type.py: SKIP -------------------------------------------------------------------- RedirectionService - 01_enum_crs.py: SKIP -------------------------------------------------------------------- RedirectionService - 02_enum_crscap.py: SKIP -------------------------------------------------------------------- RedirectionService - 03_RedirectionSAP_errs.py: SKIP -------------------------------------------------------------------- ReferencedProfile - 01_verify_refprof.py: PASS -------------------------------------------------------------------- ReferencedProfile - 02_refprofile_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 01_forward.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 02_reverse.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 03_forward_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 04_reverse_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 05_RAPF_err.py: PASS -------------------------------------------------------------------- ResourcePool - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePool - 02_rp_gi_errors.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationCapabilities - 02_rpcc_gi_errs.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 02_rcps_gi_errors.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 03_CreateResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 04_CreateChildResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 05_AddResourcesToResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 06_RemoveResourcesFromResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 07_DeleteResourcePool.py: PASS -------------------------------------------------------------------- SettingsDefine - 01_forward.py: PASS -------------------------------------------------------------------- SettingsDefine - 02_reverse.py: PASS -------------------------------------------------------------------- SettingsDefine - 03_sds_fwd_errs.py: PASS -------------------------------------------------------------------- SettingsDefine - 04_sds_rev_errs.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 01_forward.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 03_forward_errs.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 04_forward_vsmsdata.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 05_reverse_vsmcap.py: PASS -------------------------------------------------------------------- SystemDevice - 01_forward.py: PASS -------------------------------------------------------------------- SystemDevice - 02_reverse.py: PASS -------------------------------------------------------------------- SystemDevice - 03_fwderrs.py: PASS -------------------------------------------------------------------- VSSD - 01_enum.py: PASS -------------------------------------------------------------------- VSSD - 02_bootldr.py: SKIP -------------------------------------------------------------------- VSSD - 03_vssd_gi_errs.py: PASS -------------------------------------------------------------------- VSSD - 04_vssd_to_rasd.py: PASS -------------------------------------------------------------------- VirtualSystemManagementCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemManagementCapabilities - 02_vsmcap_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 01_definesystem_name.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 02_destroysystem.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 03_definesystem_ess.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 04_definesystem_ers.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 05_destroysystem_neg.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 06_addresource.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 07_addresource_neg.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 08_modifyresource.py: PASS -------------------------------------------------------------------- -------------------------------------------------------------------- VirtualSystemManagementService - 09_procrasd_persist.py: FAIL ERROR - Exception: details (0, "The web server returned a bad status line: ''") InvokeMethod(DefineSystem): The web server returned a bad status line: '' -------------------------------------------------------------------- VirtualSystemManagementService - 10_hv_version.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 11_define_memrasdunits.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 12_referenced_config.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 13_refconfig_additional_devs.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 14_define_sys_disk.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 15_mod_system_settings.py: XFAIL ERROR - rstest_domain not updated properly. ERROR - Exp AutomaticRecoveryAction=3, got 2 Bug:<00010> -------------------------------------------------------------------- VirtualSystemMigrationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationCapabilities - 02_vsmc_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationService - 01_migratable_host.py: SKIP -------------------------------------------------------------------- VirtualSystemMigrationService - 02_host_migrate_type.py: SKIP -------------------------------------------------------------------- VirtualSystemMigrationService - 05_migratable_host_errs.py: SKIP -------------------------------------------------------------------- VirtualSystemMigrationSettingData - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationSettingData - 02_vsmsd_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 01_forward.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 02_reverse.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 03_vssdc_fwd_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 04_vssdc_rev_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotService - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotService - 02_vs_sservice_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotServiceCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotServiceCapabilities - 02_vs_sservicecap_gi_errs.py: PASS -------------------------------------------------------------------- -- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik at linux.vnet.ibm.com From deeptik at linux.vnet.ibm.com Tue Feb 10 05:12:09 2009 From: deeptik at linux.vnet.ibm.com (Deepti B Kalakeri) Date: Tue, 10 Feb 2009 10:42:09 +0530 Subject: [Libvirt-cim] Re: Test Run Summary (Feb 10 2009): KVM on Fedora release 9 (Sulphur) with Pegasus In-Reply-To: <49910B48.7090500@linux.vnet.ibm.com> References: <49910B48.7090500@linux.vnet.ibm.com> Message-ID: <49910CA9.3090306@linux.vnet.ibm.com> Deepti B Kalakeri wrote: > ================================================= > Test Run Summary (Feb 10 2009): KVM on Fedora release 9 (Sulphur) with > Pegasus > ================================================= > Distro: Fedora release 9 (Sulphur) > Kernel: 2.6.25.14-108.fc9.x86_64 > libvirt: 0.4.4 > Hypervisor: QEMU 0.9.1 > CIMOM: Pegasus 2.7.0 > Libvirt-cim revision: 613 > Libvirt-cim changeset: 1fcf330fadf8+ > Cimtest revision: 615 > Cimtest changeset: 263e285881ac > ================================================= > FAIL : 1 > XFAIL : 3 > SKIP : 9 > PASS : 129 > ----------------- > Total : 142 > ================================================= > FAIL Test Summary: > VirtualSystemManagementService - 09_procrasd_persist.py: FAIL The patch fixing this is in progress. -- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik at linux.vnet.ibm.com From yunguol at cn.ibm.com Tue Feb 10 05:47:42 2009 From: yunguol at cn.ibm.com (yunguol at cn.ibm.com) Date: Mon, 09 Feb 2009 21:47:42 -0800 Subject: [Libvirt-cim] [PATCH] [TEST]#2 Update tests to meet 80-char width limit Message-ID: <1bb347c22e6ed03032f3.1234244862@elm3b197.beaverton.ibm.com> # HG changeset patch # User Guolian Yun # Date 1234244855 28800 # Node ID 1bb347c22e6ed03032f359c8c28e59e94b7316c2 # Parent 263e285881acde9b99849cd133399298219c9d65 [TEST]#2 Update tests to meet 80-char width limit Updates form 1 to 2: Fix line 67 in ResourceAllocationFromPool/03_forward_errs.py Fix lines 45 - 48 in ResourceAllocationFromPool/04_reverse_errs.py Fix line 56 in VirtualSystemMigrationSettingData/01_enum.py Fix lines 58 and 63 in VirtualSystemSnapshotService/01_enum.py 1) Split lines to 80-char width limit Tested for KVM/LXC with current sources Signed-off-by: Guolian Yun diff -r 263e285881ac -r 1bb347c22e6e suites/libvirt-cim/cimtest/ResourceAllocationFromPool/03_forward_errs.py --- a/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/03_forward_errs.py Fri Feb 06 01:54:39 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/03_forward_errs.py Mon Feb 09 21:47:35 2009 -0800 @@ -55,17 +55,18 @@ instanceref = CIMInstanceName(k, keybindings = {"InstanceID" : v}) names = [] - + rafp = get_typed_class(options.virt, "ResourceAllocationFromPool") try: names = conn.AssociatorNames(instanceref, - AssocClass = get_typed_class(options.virt, "ResourceAllocationFromPool")) + AssocClass = rafp) rc = 0 except pywbem.CIMError, (rc, desc): if rc == exp_rc and desc.find(exp_desc) >= 0: logger.info("Got excepted rc code and error string") status = PASS else: - logger.error("Unexpected rc code %s and description %s\n", rc, desc) + logger.error("Unexpected rc code %s and description %s\n", + rc, desc) except Exception, details: logger.error("Unknown exception happened") logger.error(details) diff -r 263e285881ac -r 1bb347c22e6e suites/libvirt-cim/cimtest/ResourceAllocationFromPool/04_reverse_errs.py --- a/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/04_reverse_errs.py Fri Feb 06 01:54:39 2009 -0800 +++ b/suites/libvirt-cim/cimtest/ResourceAllocationFromPool/04_reverse_errs.py Mon Feb 09 21:47:35 2009 -0800 @@ -41,11 +41,14 @@ rc = -1 status = FAIL - - dataset = {get_typed_class(options.virt, "MemResourceAllocationSettingData") : "wrong", - get_typed_class(options.virt, "ProcResourceAllocationSettingData") : "wrong", - get_typed_class(options.virt, "DiskResourceAllocationSettingData") : "wrong", - get_typed_class(options.virt, "NetResourceAllocationSettingData") : "wrong"} + mrasd = get_typed_class(options.virt, "MemResourceAllocationSettingData") + prasd = get_typed_class(options.virt, "ProcResourceAllocationSettingData") + drasd = get_typed_class(options.virt, "DiskResourceAllocationSettingData") + nrasd = get_typed_class(options.virt, "NetResourceAllocationSettingData") + dataset = {mrasd : "wrong", + prasd : "wrong", + drasd : "wrong", + nrasd : "wrong"} conn = assoc.myWBEMConnection('http://%s' % options.ip, (Globals.CIM_USER, Globals.CIM_PASS), Globals.CIM_NS) @@ -53,10 +56,10 @@ instanceref = CIMInstanceName(k, keybindings = {"InstanceID" : v}) names = [] - + rafp = get_typed_class(options.virt, "ResourceAllocationFromPool") try: names = conn.AssociatorNames(instanceref, - AssocClass = get_typed_class(options.virt, "ResourceAllocationFromPool")) + AssocClass = rafp) rc = 0 except pywbem.CIMError, (rc, desc): if rc == exp_rc and desc.find(exp_desc) >= 0: diff -r 263e285881ac -r 1bb347c22e6e suites/libvirt-cim/cimtest/VirtualSystemMigrationSettingData/01_enum.py --- a/suites/libvirt-cim/cimtest/VirtualSystemMigrationSettingData/01_enum.py Fri Feb 06 01:54:39 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemMigrationSettingData/01_enum.py Mon Feb 09 21:47:35 2009 -0800 @@ -39,7 +39,8 @@ def main(): options = main.options # Expected results from enumeration - cn = get_typed_class(options.virt, "VirtualSystemMigrationSettingData") + cn = get_typed_class(options.virt, + "VirtualSystemMigrationSettingData") instid = 'MigrationSettingData' MType = 2 #[CIM_MIGRATE_LIVE] priority = 0 @@ -52,7 +53,8 @@ return FAIL if len(vsmsd) != 1: - logger.error("%s return %i instances, excepted only 1 instance", cn, len(vsmsd)) + logger.error("%s return %i instances, excepted only 1 instance", + cn, len(vsmsd)) return FAIL verify_vsmsd = vsmsd[0] if verify_vsmsd.classname != cn: diff -r 263e285881ac -r 1bb347c22e6e suites/libvirt-cim/cimtest/VirtualSystemSnapshotService/01_enum.py --- a/suites/libvirt-cim/cimtest/VirtualSystemSnapshotService/01_enum.py Fri Feb 06 01:54:39 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemSnapshotService/01_enum.py Mon Feb 09 21:47:35 2009 -0800 @@ -55,12 +55,14 @@ return FAIL if len(vs_sservice) != 1: - logger.error("%s return %i instances, excepted only 1 instance", cn, len(vs_sservice)) + logger.error("%s return %i instances, excepted only 1 instance", + cn, len(vs_sservice)) return FAIL verify_vs_sservice = vs_sservice[0] if verify_vs_sservice['CreationClassName'] != cn: - print_error('CreationClassName', verify_vs_sservice['CreationClassName'], cn) + print_error('CreationClassName', + verify_vs_sservice['CreationClassName'], cn) return FAIL if verify_vs_sservice['Name'] != Name: @@ -72,7 +74,8 @@ return FAIL if verify_vs_sservice['SystemCreationClassName'] != classname: - print_error('SystemCreationClassName', verify_vs_sservice['SystemCreationClassName'], classname) + print_error('SystemCreationClassName', + verify_vs_sservice['SystemCreationClassName'], classname) return FAIL return PASS From yunguol at cn.ibm.com Tue Feb 10 05:29:46 2009 From: yunguol at cn.ibm.com (Guo Lian Yun) Date: Tue, 10 Feb 2009 13:29:46 +0800 Subject: [Libvirt-cim] [PATCH] [TEST] Update tests to meet 80-char width limit In-Reply-To: <498B8D52.9080404@linux.vnet.ibm.com> Message-ID: libvirt-cim-bounces at redhat.com wrote on 2009-02-06 09:07:30: > > > > diff -r edfa908a60d0 -r 66c41a4a47c1 suites/libvirt- > cim/cimtest/ResourceAllocationFromPool/03_forward_errs.py > > --- a/suites/libvirt- > cim/cimtest/ResourceAllocationFromPool/03_forward_errs.py Tue Feb > 03 09:37:05 2009 -0800 > > +++ b/suites/libvirt- > cim/cimtest/ResourceAllocationFromPool/03_forward_errs.py Thu Feb > 05 01:06:33 2009 -0800 > > @@ -55,10 +55,9 @@ > > Can you fix line 67 > > > diff -r edfa908a60d0 -r 66c41a4a47c1 suites/libvirt- > cim/cimtest/ResourceAllocationFromPool/04_reverse_errs.py > > --- a/suites/libvirt- > cim/cimtest/ResourceAllocationFromPool/04_reverse_errs.py Tue Feb > 03 09:37:05 2009 -0800 > > +++ b/suites/libvirt- > cim/cimtest/ResourceAllocationFromPool/04_reverse_errs.py Thu Feb > 05 01:06:33 2009 -0800 > > @@ -53,10 +53,9 @@ > > Can you fix lines 45 - 48 > > > diff -r edfa908a60d0 -r 66c41a4a47c1 suites/libvirt- > cim/cimtest/VirtualSystemMigrationSettingData/01_enum.py > > --- a/suites/libvirt- > cim/cimtest/VirtualSystemMigrationSettingData/01_enum.py Tue Feb > 03 09:37:05 2009 -0800 > > +++ b/suites/libvirt- > cim/cimtest/VirtualSystemMigrationSettingData/01_enum.py Thu Feb > 05 01:06:33 2009 -0800 > > @@ -39,7 +39,8 @@ > > Can you also fix line 56 > > > diff -r edfa908a60d0 -r 66c41a4a47c1 suites/libvirt- > cim/cimtest/VirtualSystemSnapshotService/01_enum.py > > --- a/suites/libvirt- > cim/cimtest/VirtualSystemSnapshotService/01_enum.py Tue Feb 03 09: > 37:05 2009 -0800 > > +++ b/suites/libvirt- > cim/cimtest/VirtualSystemSnapshotService/01_enum.py Thu Feb 05 01: > 06:33 2009 -0800 > > Can you also fix lines 58 and 63 > Fix them in #2 patch. Thanks! > -- > Kaitlin Rupert > IBM Linux Technology Center > kaitlin at linux.vnet.ibm.com > > _______________________________________________ > Libvirt-cim mailing list > Libvirt-cim at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-cim -------------- next part -------------- An HTML attachment was scrubbed... URL: From yunguol at cn.ibm.com Tue Feb 10 09:07:57 2009 From: yunguol at cn.ibm.com (yunguol at cn.ibm.com) Date: Tue, 10 Feb 2009 01:07:57 -0800 Subject: [Libvirt-cim] [PATCH] [TEST] #3 Fix SettingsDefineCapabilities/01_forward.py with appropriate RASD objects for different platforms Message-ID: <0fd388b7d9571ab8c0b9.1234256877@elm3b197.beaverton.ibm.com> # HG changeset patch # User Guolian Yun # Date 1234256865 28800 # Node ID 0fd388b7d9571ab8c0b96c2190a8b0b91c8a85e1 # Parent 263e285881acde9b99849cd133399298219c9d65 [TEST] #3 Fix SettingsDefineCapabilities/01_forward.py with appropriate RASD objects for different platforms Updates form 2 to 3: Simplify the if statement Updates form 1 to 2: Add two branches of returned RASD objects number: 1) The valule to be 8 for Xen when rev >= 707 and rev < 805 2) The value to be 16 for Xen when rev >= 805 3) The value to be 8 for KVM when rev >= 805 Tested for KVM/Xen/LXC with current sources, KVM with F9 rpm. Signed-off-by: Guolian Yun diff -r 263e285881ac -r 0fd388b7d957 suites/libvirt-cim/cimtest/SettingsDefineCapabilities/01_forward.py --- a/suites/libvirt-cim/cimtest/SettingsDefineCapabilities/01_forward.py Fri Feb 06 01:54:39 2009 -0800 +++ b/suites/libvirt-cim/cimtest/SettingsDefineCapabilities/01_forward.py Tue Feb 10 01:07:45 2009 -0800 @@ -67,6 +67,7 @@ platform_sup = ['Xen', 'KVM', 'XenFV', 'LXC'] libvirt_rasd_template_changes = 707 +libvirt_rasd_new_changes = 805 memid = "MemoryPool/0" procid = "ProcessorPool/0" @@ -171,12 +172,22 @@ InstanceID = instid) curr_cim_rev, changeset = get_provider_version(virt, server) - if 'DiskPool' in instid and (virt =='Xen' or virt == 'XenFV') and \ - curr_cim_rev >= libvirt_rasd_template_changes: + if 'DiskPool' in instid: + if (virt =='Xen' or virt == 'XenFV') and \ + curr_cim_rev >= libvirt_rasd_template_changes and \ + curr_cim_rev < libvirt_rasd_new_changes: # For Diskpool, we have info 1 for each of Min, Max, # default, Increment and 1 for each of PV and FV # hence 4 * 2 = 8 records - exp_len = 8 + exp_len = 8 + elif (virt == 'Xen' or virt == 'XenFV') and \ + curr_cim_rev >= libvirt_rasd_new_changes: + exp_len = 16 + elif virt == 'KVM' and \ + curr_cim_rev >= libvirt_rasd_new_changes: + exp_len = 8 + else: + exp_len = 4 else: exp_len = 4 From yunguol at cn.ibm.com Tue Feb 10 08:50:13 2009 From: yunguol at cn.ibm.com (Guo Lian Yun) Date: Tue, 10 Feb 2009 16:50:13 +0800 Subject: [Libvirt-cim] [PATCH] [TEST] #2 Fix SettingsDefineCapabilities/01_forward.py with appropriate RASD objects for different platforms In-Reply-To: <498C6F7E.8000706@linux.vnet.ibm.com> Message-ID: libvirt-cim-bounces at redhat.com wrote on 2009-02-07 01:12:30: > > @@ -172,10 +173,17 @@ > > > > curr_cim_rev, changeset = get_provider_version(virt, server) > > if 'DiskPool' in instid and (virt =='Xen' or virt == > 'XenFV') and \ > > - curr_cim_rev >= libvirt_rasd_template_changes: > > + curr_cim_rev >= libvirt_rasd_template_changes and \ > > + curr_cim_rev < libvirt_rasd_new_changes: > > # For Diskpool, we have info 1 for each of Min, Max, > > # default, Increment and 1 for each of PV and FV > > # hence 4 * 2 = 8 records > > + exp_len = 8 > > + elif 'DiskPool' in instid and (virt =='Xen' or virt > == 'XenFV') and \ > > This line is longer than 80 characters. > > > + curr_cim_rev >= libvirt_rasd_new_changes: > > + exp_len = 16 > > + elif 'DiskPool' in instid and virt == 'KVM' and \ > > + curr_cim_rev >= libvirt_rasd_new_changes: > > exp_len = 8 > > else: > > exp_len = 4 > > > > Also this can be simplified to: > > if 'DiskPool' in instid: > if (virt =='Xen' or virt == 'XenFV') and \ > curr_cim_rev >= libvirt_rasd_new_changes: > > (etc) > Fixed them on #3 patch. > -- > Kaitlin Rupert > IBM Linux Technology Center > kaitlin at linux.vnet.ibm.com > > _______________________________________________ > Libvirt-cim mailing list > Libvirt-cim at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-cim -------------- next part -------------- An HTML attachment was scrubbed... URL: From kaitlin at linux.vnet.ibm.com Tue Feb 10 15:21:13 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Tue, 10 Feb 2009 07:21:13 -0800 Subject: [Libvirt-cim] [PATCH] [TEST] #3 Update VSMS 14_define_sys_disk.py to use cim_define() In-Reply-To: <498B7412.9090804@linux.vnet.ibm.com> References: <2d445349b1e6fc2dff2f.1233789487@localhost.localdomain> <498A70EB.5020806@linux.vnet.ibm.com> <498B7412.9090804@linux.vnet.ibm.com> Message-ID: <49919B69.5020507@linux.vnet.ibm.com> Kaitlin Rupert wrote: >>> >>> - params = { 'vssd' : vssd, >>> - 'rasd' : rasd_list - } >>> + return rasd_list >>> - return params +def verify_disk_path(ip, virt, addr, guest_name): >>> + inst = None >>> + >>> + try: >>> + drasd_cn = get_typed_class(virt, >>> 'DiskResourceAllocationSettingData') >>> + enum_list = EnumInstances(ip, drasd_cn) >>> >> GetInstance of the DiskRASD would be much more simpler than >> EnumInstances. >> Any reason behind using EnumInstances instead . > > Using GetInstance() means that you have to know how the InstanceID of > the reference you're querying is formatted. The only reason we know how > the InstanceID is formatted is because we know how the providers work =) > > The idea behind CIM is that you don't have to know how the underlying > implementation works in order to get information from the providers. So > a CIM client shouldn't need to know how we format our InstanceIDs in > order to use our providers. > > I'm not sure how often CIM clients build their own references. In > reality, they should be using the references the providers return. They > shouldn't be building their own (like we do in cimtest's GetInstance() > call). > > So I try to use EnumInstances() to avoid building my own reference. This > forces the providers to return the references for me. > > cimtest's GetInstance() function really should only take a reference as > a parameter instead of taking keys and doing a call to CIMInstanceName(). > > But faking a reference can be useful in some situations. =) I'm > inclined to leave this as is unless you think it'd be easier to read / > maintain with GetInstance() in place of EnumInstances(). Deepti - is this patch ready to go? Or should I change EnumInstances() to GetInstance()? Thanks! -- Kaitlin Rupert IBM Linux Technology Center kaitlin at linux.vnet.ibm.com From kaitlin at linux.vnet.ibm.com Tue Feb 10 15:26:33 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Tue, 10 Feb 2009 07:26:33 -0800 Subject: [Libvirt-cim] [PATCH 1 of 2] [TEST] Created testcases for the forward HostedAccessPoint association (HostSystem -> KVMRedirectionSAP In-Reply-To: <4990EC91.9040700@linux.vnet.ibm.com> References: <40e312d4e1cb360712c1.1233933355@localhost.localdomain> <498C9F75.3050302@linux.vnet.ibm.com> <4990EC91.9040700@linux.vnet.ibm.com> Message-ID: <49919CA9.2050909@linux.vnet.ibm.com> >>> + kvmrsap_inst = kvmrsap >>> + >>> + except Exception, details: >>> + logger.error(details) >>> + return kvmrsap_inst, FAIL >>> + >>> + return kvmrsap_inst, PASS >>> + >>> +def verify_kvmrsap(enum_list, kvmrsap_inst): + status = FAIL >>> + >>> + for item in enum_list: >> >> You should get get only one KVMRedirectionSAP. Verify enum_list only >> has one element. If it has more than one, return an error. >> >> Remove the for loop - since there's only one element in the list, no >> need to use a loop here. > > I don't get it. When I execute the ServiceAccessBySAP query > (ConsoleRedirectionService -> KVMRedirectionSAP) I receive one item per > virtual machine configured in the host. The same happens when I do the > query using pywbem Oh,yes - you're right. The structure of the test case threw me off some. Let me send an updated review, because I misunderstood what you were trying to verify. -- Kaitlin Rupert IBM Linux Technology Center kaitlin at linux.vnet.ibm.com From kaitlin at linux.vnet.ibm.com Tue Feb 10 15:35:43 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Tue, 10 Feb 2009 07:35:43 -0800 Subject: [Libvirt-cim] [PATCH 1 of 2] [TEST] Created testcases for the forward HostedAccessPoint association (HostSystem -> KVMRedirectionSAP In-Reply-To: <40e312d4e1cb360712c1.1233933355@localhost.localdomain> References: <40e312d4e1cb360712c1.1233933355@localhost.localdomain> Message-ID: <49919ECF.7050005@linux.vnet.ibm.com> > +def setup_env(server, virt): > + if virt == 'Xen': > + test_disk = 'xvda' > + else: > + test_disk = 'hda' > + virt_xml = get_class(virt) > + if virt == 'LXC': > + cxml = virt_xml(test_dom) > + else: > + cxml = virt_xml(test_dom, disk = test_disk) Move the 4 lines above out from underneath the else. > +def get_kvmrsap_inst(virt, ip, guest_name): This is what threw me off in the last review. You're trying to verify the result of the output of HostSystem -> KVMRedirectionSAP. As you noted in your mail, this will return all the KVMRedirectionSAP instances present on the host. Because of this, you want to verify that the AssociatorNames() call returns the same list that the EnumInstances() of KVMRedirectionSAP returns. > + kvmrsap_inst = None > + > + try: > + kvmrsap_cn = get_typed_class(virt, 'KVMRedirectionSAP') > + enum_list = EnumInstances(ip, kvmrsap_cn) > + > + for kvmrsap in enum_list: > + if kvmrsap.SystemName == guest_name: > + if kvmrsap_inst is not None: > + print "More than one KVMRedirectionSAP found \ > + the same guest" Replace print with logger.error() > + return kvmrsap_inst, FAIL > + kvmrsap_inst = kvmrsap So here, you want to do 2 things: 1) Verify that one of the instances in enum_list corresponds to the guest we defined in the test. If there is no corresponding instance, return an error. 2) Return the whole list, not just the instance corresponding to the guest. > + > + except Exception, details: > + logger.error(details) > + return kvmrsap_inst, FAIL > + > + return kvmrsap_inst, PASS > + > +def verify_kvmrsap(enum_list, kvmrsap_inst): > + status = FAIL > + > + for item in enum_list: > + if item.classname != kvmrsap_inst.Classname > + print "Wrong returned class name (%s)", item.classname No need to verify the classname - all the instances will have the same classname. > + return status > + > + if compare_all_prop(item, kvmrsap_inst) == PASS: Since you don't know how many guests are running on the system, you want to verify that HostSystem -> KVMRedirectionSAP returns the same number of instances that the enum of KVMRedirectionSAP returns. You can also verify the individual instances - to do that, you'll need to loop through the list returned by HostSystem -> KVMRedirectionSAP, then loop through the list returned by KVMRedirectionSAP to find a match. Sorry for the confusion - originally, I thought you were just trying to compare a single instance - but really, you want to verify the list returned by EnumInstances() of KVMRedirectionSAP is identical to the list returned by HostSystem -> KVMRedirectionSAP. -- Kaitlin Rupert IBM Linux Technology Center kaitlin at linux.vnet.ibm.com From kaitlin at linux.vnet.ibm.com Tue Feb 10 16:41:49 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Tue, 10 Feb 2009 08:41:49 -0800 Subject: [Libvirt-cim] [PATCH] [TEST] #3 Fix HostSystem/03_hs_to_settdefcap.py with appropriate number of RASD objects for different platforms In-Reply-To: <83ff45f2d027900a60f8.1234237266@elm3b197.beaverton.ibm.com> References: <83ff45f2d027900a60f8.1234237266@elm3b197.beaverton.ibm.com> Message-ID: <4991AE4D.2050203@linux.vnet.ibm.com> Can you align your if statements so that the next line is under the first argument (not right under the if). So something like: if virt == 'Xen' and \ curr_cim_rev This makes the if statement a little easier to read. > > curr_cim_rev, changeset = get_provider_version(virt, server) > - if 'DiskPool' in ap['InstanceID'] and virt =='Xen' and \ > - curr_cim_rev >= libvirt_rasd_template_changes: > + if 'DiskPool' in ap['InstanceID']: > + if virt =='Xen' and \ > + curr_cim_rev >= libvirt_rasd_template_changes and \ > + curr_cim_rev < libvirt_rasd_new_changes: > # For Diskpool, we have info 1 for each of Min, Max, > # default, Increment and 1 for each of PV and FV > # hence 4 * 2 = 8 records > - exp_len = 8 > + exp_len = 8 > + if virt == 'Xen' and \ > + curr_cim_rev >= libvirt_rasd_new_changes: > + exp_len = 16 For this, you could do: if 'DiskPool' in ap['InstanceID']: if virt =='Xen': if curr_cim_rev >= libvirt_rasd_template_changes and \ curr_cim_rev < libvirt_rasd_new_changes: ... if curr_cim_rev >= libvirt_rasd_new_changes: ... > + if virt == 'KVM' and \ > + curr_cim_rev >= libvirt_rasd_new_changes: > + exp_len = 8 > else: > exp_len = 4 Remove this else. Instead, before if if 'DiskPool' in ap['InstanceID']: line, set exp_len = 4. That way exp_len will always be set to some value. Because how you have it here, if the virt is Xen but one of the if statements doesn't match, then exp_len isn't set. -- Kaitlin Rupert IBM Linux Technology Center kaitlin at linux.vnet.ibm.com From kaitlin at linux.vnet.ibm.com Tue Feb 10 16:53:49 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Tue, 10 Feb 2009 08:53:49 -0800 Subject: [Libvirt-cim] [PATCH] [TEST] #3 Fix SettingsDefineCapabilities/01_forward.py with appropriate RASD objects for different platforms In-Reply-To: <0fd388b7d9571ab8c0b9.1234256877@elm3b197.beaverton.ibm.com> References: <0fd388b7d9571ab8c0b9.1234256877@elm3b197.beaverton.ibm.com> Message-ID: <4991B11D.7020404@linux.vnet.ibm.com> > > memid = "MemoryPool/0" > procid = "ProcessorPool/0" > @@ -171,12 +172,22 @@ > InstanceID = instid) > > curr_cim_rev, changeset = get_provider_version(virt, server) > - if 'DiskPool' in instid and (virt =='Xen' or virt == 'XenFV') and \ > - curr_cim_rev >= libvirt_rasd_template_changes: > + if 'DiskPool' in instid: > + if (virt =='Xen' or virt == 'XenFV') and \ > + curr_cim_rev >= libvirt_rasd_template_changes and \ > + curr_cim_rev < libvirt_rasd_new_changes: > # For Diskpool, we have info 1 for each of Min, Max, > # default, Increment and 1 for each of PV and FV > # hence 4 * 2 = 8 records > - exp_len = 8 > + exp_len = 8 > + elif (virt == 'Xen' or virt == 'XenFV') and \ > + curr_cim_rev >= libvirt_rasd_new_changes: > + exp_len = 16 > + elif virt == 'KVM' and \ > + curr_cim_rev >= libvirt_rasd_new_changes: > + exp_len = 8 > + else: > + exp_len = 4 > else: > exp_len = 4 > See the review for Fix HostSystem/03_hs_to_settdefcap.py. -- Kaitlin Rupert IBM Linux Technology Center kaitlin at linux.vnet.ibm.com From yunguol at cn.ibm.com Wed Feb 11 07:37:10 2009 From: yunguol at cn.ibm.com (yunguol at cn.ibm.com) Date: Tue, 10 Feb 2009 23:37:10 -0800 Subject: [Libvirt-cim] [PATCH] [TEST]#4 Fix HostSystem/03_hs_to_settdefcap.py with appropriate number of RASD objects for different platforms Message-ID: # HG changeset patch # User Guolian Yun # Date 1234337820 28800 # Node ID cb915025514d373e89681334db4a4caa3a9f3473 # Parent 1bb347c22e6ed03032f359c8c28e59e94b7316c2 [TEST]#4 Fix HostSystem/03_hs_to_settdefcap.py with appropriate number of RASD objects for different platforms Updates forms 3 to 4: 1) align the if statements 2) set exp_len = 4 before the if statements Updates form 2 to 3: Simplify the if statements Updates from 1 to 2: Add two branches of returned RASD objects number: 1) The valule to be 8 for Xen when rev >= 707 and rev < 805 2) The value to be 16 for Xen when rev >= 805 3) The value to be 8 for KVM when rev >= 805 Tested for KVM/Xen/LXC with current sources, KVM with F9 rpm. Signed-off-by: Guolian Yun diff -r 1bb347c22e6e -r cb915025514d suites/libvirt-cim/cimtest/HostSystem/03_hs_to_settdefcap.py --- a/suites/libvirt-cim/cimtest/HostSystem/03_hs_to_settdefcap.py Mon Feb 09 21:47:35 2009 -0800 +++ b/suites/libvirt-cim/cimtest/HostSystem/03_hs_to_settdefcap.py Tue Feb 10 23:37:00 2009 -0800 @@ -56,6 +56,7 @@ test_dom = "domgst_test" test_vcpus = 1 libvirt_rasd_template_changes = 707 +libvirt_rasd_new_changes = 805 def setup_env(server, virt="Xen"): status = PASS @@ -214,14 +215,20 @@ InstanceID = ap['InstanceID']) curr_cim_rev, changeset = get_provider_version(virt, server) - if 'DiskPool' in ap['InstanceID'] and virt =='Xen' and \ - curr_cim_rev >= libvirt_rasd_template_changes: + exp_len = 4 + if 'DiskPool' in ap['InstanceID']: # For Diskpool, we have info 1 for each of Min, Max, # default, Increment and 1 for each of PV and FV # hence 4 * 2 = 8 records - exp_len = 8 - else: - exp_len = 4 + if virt == 'Xen': + if curr_cim_rev >= libvirt_rasd_template_changes and \ + curr_cim_rev < libvirt_read_new_changes: + exp_len = 8 + if curr_cim_rev >= libvirt_read_new_changes: + exp_len = 16 + if virt == 'KVM': + if curr_cim_rev >= libvirt_rasd_new_changes: + exp_len = 8 if len(assoc_info) != exp_len: logger.error("'%s' returned %i RASD objects instead of %i", From yunguol at cn.ibm.com Wed Feb 11 07:48:35 2009 From: yunguol at cn.ibm.com (yunguol at cn.ibm.com) Date: Tue, 10 Feb 2009 23:48:35 -0800 Subject: [Libvirt-cim] [PATCH] [TEST] #4 Fix SettingsDefineCapabilities/01_forward.py with appropriate RASD objects for different platforms Message-ID: # HG changeset patch # User Guolian Yun # Date 1234338509 28800 # Node ID d6a47e2263ee7a15a4214c99b86f23fa22813090 # Parent 1bb347c22e6ed03032f359c8c28e59e94b7316c2 [TEST] #4 Fix SettingsDefineCapabilities/01_forward.py with appropriate RASD objects for different platforms Updates from 3 to 4: 1) align the if statements 2) set exp_len = 4 before the if statements Updates form 2 to 3: Simplify the if statement Updates form 1 to 2: Add two branches of returned RASD objects number: 1) The valule to be 8 for Xen when rev >= 707 and rev < 805 2) The value to be 16 for Xen when rev >= 805 3) The value to be 8 for KVM when rev >= 805 Tested for KVM/Xen/LXC with current sources, KVM with F9 rpm. Signed-off-by: Guolian Yun diff -r 1bb347c22e6e -r d6a47e2263ee suites/libvirt-cim/cimtest/SettingsDefineCapabilities/01_forward.py --- a/suites/libvirt-cim/cimtest/SettingsDefineCapabilities/01_forward.py Mon Feb 09 21:47:35 2009 -0800 +++ b/suites/libvirt-cim/cimtest/SettingsDefineCapabilities/01_forward.py Tue Feb 10 23:48:29 2009 -0800 @@ -67,6 +67,7 @@ platform_sup = ['Xen', 'KVM', 'XenFV', 'LXC'] libvirt_rasd_template_changes = 707 +libvirt_rasd_new_changes = 805 memid = "MemoryPool/0" procid = "ProcessorPool/0" @@ -171,14 +172,20 @@ InstanceID = instid) curr_cim_rev, changeset = get_provider_version(virt, server) - if 'DiskPool' in instid and (virt =='Xen' or virt == 'XenFV') and \ - curr_cim_rev >= libvirt_rasd_template_changes: + exp_len = 4 + if 'DiskPool' in instid: # For Diskpool, we have info 1 for each of Min, Max, # default, Increment and 1 for each of PV and FV # hence 4 * 2 = 8 records - exp_len = 8 - else: - exp_len = 4 + if virt == 'Xen' or virt == 'XenFV': + if curr_cim_rev >= libvirt_rasd_template_changes and \ + curr_cim_rev < libvirt_rasd_new_changes: + exp_len = 8 + if curr_cim_rev >= libvirt_rasd_new_changes: + exp_len = 16 + if virt == 'KVM': + if curr_cim_rev >= libvirt_rasd_new_changes: + exp_len = 8 if len(assoc_info) != exp_len: logger.error("%s returned %i ResourcePool objects instead" From yunguol at cn.ibm.com Wed Feb 11 08:11:02 2009 From: yunguol at cn.ibm.com (yunguol at cn.ibm.com) Date: Wed, 11 Feb 2009 00:11:02 -0800 Subject: [Libvirt-cim] [PATCH] [TEST] Update libraries present to follow the new coding style Message-ID: # HG changeset patch # User Guolian Yun # Date 1234339844 28800 # Node ID dd59a8d6a123417a82434ebfa4f6ed54def5256f # Parent 1bb347c22e6ed03032f359c8c28e59e94b7316c2 [TEST] Update libraries present to follow the new coding style 1) Use commas instead of percent signs when passing parameters to logger.error() and logger.info() 2) Split lines to 80-char width limit Tested for KVM/LXC with current sources Signed-off-by: Guolian Yun diff -r 1bb347c22e6e -r dd59a8d6a123 suites/libvirt-cim/lib/XenKvmLib/assoc.py --- a/suites/libvirt-cim/lib/XenKvmLib/assoc.py Mon Feb 09 21:47:35 2009 -0800 +++ b/suites/libvirt-cim/lib/XenKvmLib/assoc.py Wed Feb 11 00:10:44 2009 -0800 @@ -139,8 +139,8 @@ val = eval('exp_inst.' + key) if prop_vals[i][1] != val: - logger.error("%s val mismatch: got %s, expected %s" % (key, - prop_vals[i][1], val)) + logger.error("%s val mismatch: got %s, expected %s", key, + prop_vals[i][1], val) return FAIL return PASS diff -r 1bb347c22e6e -r dd59a8d6a123 suites/libvirt-cim/lib/XenKvmLib/common_util.py --- a/suites/libvirt-cim/lib/XenKvmLib/common_util.py Mon Feb 09 21:47:35 2009 -0800 +++ b/suites/libvirt-cim/lib/XenKvmLib/common_util.py Wed Feb 11 00:10:44 2009 -0800 @@ -60,7 +60,7 @@ cs = enumclass.GetInstance(ip, cs_class, keys) if cs.Name != domain_name: - logger.error("VS %s is not found" % domain_name) + logger.error("VS %s is not found", domain_name) return (1, cs) except Exception, detail: @@ -104,11 +104,11 @@ return PASS return FAIL - logger.error('Unexpected rc code %s and description:\n %s' % (rc, desc)) + logger.error('Unexpected rc code %s and description:\n %s', rc, desc) return FAIL except Exception, details: - logger.error('Error invoke method `DefineSystem\'. %s' % details) + logger.error('Error invoke method `DefineSystem\'. %s', details) return FAIL if exp_err != None: @@ -150,7 +150,7 @@ TimeoutPeriod=pywbem.cim_types.CIMDateTime(time)) except Exception, detail: - logger.error("Exception: %s" % detail) + logger.error("Exception: %s", detail) return FAIL return PASS @@ -189,16 +189,16 @@ break except Exception, detail: - logger.error("Exception: %s" % detail) + logger.error("Exception: %s", detail) return FAIL, dom_cs if dom_cs is None or dom_cs.Name != dom: - logger.error("CS instance not returned for %s." % dom) + logger.error("CS instance not returned for %s.", dom) return FAIL, dom_cs if dom_cs.EnabledState != exp_state: - logger.error("EnabledState is %i instead of %i." % (dom_cs.EnabledState, - exp_state)) + logger.error("EnabledState is %i instead of %i.", dom_cs.EnabledState, + exp_state) logger.error("Try to increase the timeout and run the test again") return FAIL, dom_cs diff -r 1bb347c22e6e -r dd59a8d6a123 suites/libvirt-cim/lib/XenKvmLib/const.py --- a/suites/libvirt-cim/lib/XenKvmLib/const.py Mon Feb 09 21:47:35 2009 -0800 +++ b/suites/libvirt-cim/lib/XenKvmLib/const.py Wed Feb 11 00:10:44 2009 -0800 @@ -140,8 +140,8 @@ destroy_and_undefine_all(options.ip, options.virt) rc = f() except Exception, e: - logger.error('%s : %s' % (e.__class__.__name__, e)) - logger.error("%s" % traceback.print_exc()) + logger.error('%s : %s', e.__class__.__name__, e) + logger.error("%s", traceback.print_exc()) rc = FAIL return rc setattr(do_try, 'options', options) diff -r 1bb347c22e6e -r dd59a8d6a123 suites/libvirt-cim/lib/XenKvmLib/test_xml.py --- a/suites/libvirt-cim/lib/XenKvmLib/test_xml.py Mon Feb 09 21:47:35 2009 -0800 +++ b/suites/libvirt-cim/lib/XenKvmLib/test_xml.py Wed Feb 11 00:10:44 2009 -0800 @@ -48,7 +48,8 @@ def testxml(test_dom="domU1", mem = 128, vcpus = 1, mac = default_mac, \ disk_file_path = disk_path, disk = "xvda"): if not (os.path.exists(kernel_path) and os.path.exists(init_path)) : - logger.error("ERROR: Either the kernel image or the init_path does not exist") + logger.error("ERROR: Either the kernel image or the \ + init_path does not exist") sys.exit(SKIP) test_xml = """ @@ -76,8 +77,8 @@ - """ % ( test_dom, set_uuid(), kernel_path, init_path, mem*1024, vcpus, mac, \ - disk_file_path, disk ) + """ % ( test_dom, set_uuid(), kernel_path, init_path, mem*1024, vcpus, \ + mac, disk_file_path, disk ) return test_xml def testxml_bl(test_dom="domU1", mem = 128, vcpus = 1, mac = default_mac, \ @@ -88,7 +89,8 @@ specify either localhost or remote machine ip/name " ) sys.exit(SKIP) if not (os.path.exists(kernel_path) and os.path.exists(init_path)) : - logger.error("ERROR: Either the kernel image or the init_path does not exist") + logger.error("ERROR: Either the kernel image or the \ + init_path does not exist") sys.exit(SKIP) test_xml = """ @@ -125,7 +127,8 @@ mac = default_mac, disk_file_path = disk_path, disk = "xvda", server = ""): if not (os.path.exists(kernel_path) and os.path.exists(init_path)) : - logger.error("ERROR: Either the kernel image or the init_path does not exist") + logger.error("ERROR: Either the kernel image or the \ + init_path does not exist") sys.exit(SKIP) vir_network = net_list(server) if len(vir_network) > 0 : @@ -140,7 +143,8 @@ net_xml, bridge = netxml(server, bridgename, networkname) ret = create_vnet(server, net_xml) if not ret: - logger.error("Failed to create the Virtual Network '%s'", networkname) + logger.error("Failed to create the Virtual Network '%s'", + networkname) sys.exit(SKIP) test_xml = """ @@ -179,7 +183,8 @@ if bridgename in bridges: bridge_name = bridgename + str(random.randint(1, 100)) if bridge_name in bridges: - logger.error("Need to give different bridge name since it alreay exists") + logger.error("Need to give different bridge name since \ + it alreay exists") sys.exit(SKIP) else: bridge_name = bridgename diff -r 1bb347c22e6e -r dd59a8d6a123 suites/libvirt-cim/lib/XenKvmLib/vsmigrations.py --- a/suites/libvirt-cim/lib/XenKvmLib/vsmigrations.py Mon Feb 09 21:47:35 2009 -0800 +++ b/suites/libvirt-cim/lib/XenKvmLib/vsmigrations.py Wed Feb 11 00:10:44 2009 -0800 @@ -78,7 +78,7 @@ DestinationHost=ip) except Exception, details: logger.error("Error invoke 'CheckVirtualSystemIsMigratableToHost\'.") - logger.error("%s" % details) + logger.error("%s", details) return FAIL if rc == None or rc[1]['IsMigratable'] != True: @@ -142,7 +142,7 @@ status = FAIL if status != PASS: - logger.error("%s migrate failed" % test_dom) + logger.error("%s migrate failed", test_dom) return FAIL return PASS @@ -155,7 +155,7 @@ for i in range(0, 50): if job_inst.JobState == 7: if job_inst.Status != "Completed": - logger.error("%s migrate failed" % test_dom) + logger.error("%s migrate failed", test_dom) return FAIL list_after = domain_list(ip) status = verify_domain_list(list_after, local_migrate, test_dom) diff -r 1bb347c22e6e -r dd59a8d6a123 suites/libvirt-cim/lib/XenKvmLib/vsms_util.py --- a/suites/libvirt-cim/lib/XenKvmLib/vsms_util.py Mon Feb 09 21:47:35 2009 -0800 +++ b/suites/libvirt-cim/lib/XenKvmLib/vsms_util.py Wed Feb 11 00:10:44 2009 -0800 @@ -28,7 +28,7 @@ get_bridge_from_network_xml def print_mod_err_msg(func_str, details): - logger.error('Error invoking ModifyRS: %s' % func_str) + logger.error('Error invoking ModifyRS: %s', func_str) logger.error(details) def mod_disk_res(server, service, cxml, dasd, ndpath): @@ -37,7 +37,7 @@ cxml.dumpxml(server) dpath = cxml.xml_get_disk_source() if dpath != ndpath: - logger.error("Got %s, exp %s." % (dpath, ndpath)) + logger.error("Got %s, exp %s.", dpath, ndpath) raise Exception('Error changing rs for disk path') logger.info('good status for disk path') except Exception, details: @@ -61,8 +61,8 @@ name = network_by_bridge(br_name, server, virt) if type != ntype or name != net_name: - logger.error('Got %s, exp %s. Got %s, exp %s' % - (type, ntype, name, net_name)) + logger.error('Got %s, exp %s. Got %s, exp %s', + type, ntype, name, net_name) raise Exception('Error changing rs for net mac') logger.info('good status for net mac') except Exception, details: @@ -77,7 +77,7 @@ cxml.dumpxml(server) mem = cxml.xml_get_mem() if int(mem) != int(nmem) * 1024: - logger.error("Got %d, exp %d." % (int(mem), (int(nmem) * 1024))) + logger.error("Got %d, exp %d.", int(mem), (int(nmem) * 1024)) raise Exception('Error changing rs for mem') logger.info('good status for mem') except Exception, details: @@ -96,7 +96,7 @@ logger.info("Unable to get vcpuinfo from virsh, using XML values") cpu = cxml.xml_get_vcpu() if int(cpu) != int(ncpu): - logger.error("Got %d, exp %d." % (int(cpu), int(ncpu))) + logger.error("Got %d, exp %d.", int(cpu), int(ncpu)) raise Exception('Error changing rs for vcpu') logger.info('good status for vcpu') except Exception, details: @@ -106,7 +106,7 @@ return PASS def print_add_err_msg(func_str, details): - logger.error('Error invoking AddRS: %s' % func_str) + logger.error('Error invoking AddRS: %s', func_str) logger.error(details) def add_disk_res(server, service, cxml, vssd_ref, dasd, attr): @@ -119,8 +119,8 @@ dpath = cxml.get_value_xpath( '/domain/devices/disk/source/@file[. = "%s"]' % attr['src_path']) if disk_dev != attr['nddev'] or dpath != attr['src_path']: - logger.error("Got %s, exp %s. Got %s, exp %s" % (disk_dev, - attr['nddev'], dpath, attr['src_path'])) + logger.error("Got %s, exp %s. Got %s, exp %s", disk_dev, + attr['nddev'], dpath, attr['src_path']) raise Exception('Error adding rs for disk_dev') logger.info('good status for disk path') except Exception, details: @@ -154,8 +154,8 @@ name = attr['net_name'] if mac != attr['nmac'] or name != attr['net_name']: - logger.error("Got %s, exp %s. Got %s, exp %s." % (mac, - attr['nmac'], name, attr['net_name'])) + logger.error("Got %s, exp %s. Got %s, exp %s.", mac, + attr['nmac'], name, attr['net_name']) raise Exception('Error adding rs for net mac') logger.info('good status for net_mac') diff -r 1bb347c22e6e -r dd59a8d6a123 suites/libvirt-cim/lib/XenKvmLib/vxml.py --- a/suites/libvirt-cim/lib/XenKvmLib/vxml.py Mon Feb 09 21:47:35 2009 -0800 +++ b/suites/libvirt-cim/lib/XenKvmLib/vxml.py Wed Feb 11 00:10:44 2009 -0800 @@ -525,14 +525,14 @@ ResourceSettings=res_settings, ReferenceConfiguration=ref_conf) except pywbem.CIMError, (rc, desc): - logger.error('Got CIM error %s with return code %s' % (desc, rc)) + logger.error('Got CIM error %s with return code %s', desc, rc) self.err_rc = rc self.err_desc = desc return False except Exception, details: - logger.error('Got error %s with exception %s' \ - % (details, details.__class__.__name__)) + logger.error('Got error %s with exception %s', + details, details.__class__.__name__) return False set_uuid(viruuid(self.domain_name, ip, self.virt)) @@ -546,15 +546,15 @@ try: ret = service.DestroySystem(AffectedSystem=target) except pywbem.CIMError, (rc, desc): - logger.error('Got CIM error %s with return code %s' % (desc, rc)) + logger.error('Got CIM error %s with return code %s', desc, rc) self.err_rc = rc self.err_desc = desc return False except Exception, details: logger.error('Error invoking DestroySystem') - logger.error('Got error %s with exception %s' \ - % (details, details.__class__.__name__)) + logger.error('Got error %s with exception %s', + details, details.__class__.__name__) return False return ret[0] == 0 @@ -580,7 +580,7 @@ except Exception, detail: logger.error("Unable to check guest state") - logger.error("Exception: %s" % detail) + logger.error("Exception: %s", detail) return FAIL return PASS @@ -604,7 +604,7 @@ TimeoutPeriod=time_period) except pywbem.CIMError, (rc, desc): - logger.error('Got CIM error %s with return code %s' % (desc, rc)) + logger.error('Got CIM error %s with return code %s', desc, rc) self.err_rc = rc self.err_desc = desc return FAIL From rmaciel at linux.vnet.ibm.com Wed Feb 11 16:58:55 2009 From: rmaciel at linux.vnet.ibm.com (Richard Maciel) Date: Wed, 11 Feb 2009 14:58:55 -0200 Subject: [Libvirt-cim] [PATCH 0 of 2] [TEST] #4 Added testcases for the HostedAccessPoint association Message-ID: From rmaciel at linux.vnet.ibm.com Wed Feb 11 16:58:56 2009 From: rmaciel at linux.vnet.ibm.com (Richard Maciel) Date: Wed, 11 Feb 2009 14:58:56 -0200 Subject: [Libvirt-cim] [PATCH 1 of 2] [TEST] Created testcases for the forward HostedAccessPoint association (HostSystem -> KVMRedirectionSAP) In-Reply-To: References: Message-ID: # HG changeset patch # User Richard Maciel # Date 1234369373 7200 # Node ID d27250315226132528a1dbf450060496898222ec # Parent 643ae1ea950d124b8453661080b18094f589a2bc [TEST] Created testcases for the forward HostedAccessPoint association (HostSystem -> KVMRedirectionSAP) Signed-off-by: Richard Maciel diff -r 643ae1ea950d -r d27250315226 suites/libvirt-cim/cimtest/HostedAccessPoint/01_forward.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/suites/libvirt-cim/cimtest/HostedAccessPoint/01_forward.py Wed Feb 11 14:22:53 2009 -0200 @@ -0,0 +1,152 @@ +#!/usr/bin/python +# +# Copyright 2009 IBM Corp. +# +# Authors: +# Richard Maciel +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# + +import sys +from CimTest.Globals import logger +from CimTest.ReturnCodes import PASS, FAIL +from XenKvmLib.vxml import get_class +from XenKvmLib.assoc import AssociatorNames +from XenKvmLib.classes import get_typed_class +from XenKvmLib.const import do_main, get_provider_version +from XenKvmLib.common_util import get_host_info +from XenKvmLib.enumclass import EnumInstances +from XenKvmLib.assoc import compare_all_prop + +libvirtcim_hostedAccPnt_changes = 782 + +sup_types = ['Xen', 'KVM', 'XenFV', 'LXC'] + +test_dom = "domu1" + +def setup_env(server, virt): + if virt == 'Xen': + test_disk = 'xvda' + else: + test_disk = 'hda' + + virt_xml = get_class(virt) + if virt == 'LXC': + cxml = virt_xml(test_dom) + else: + cxml = virt_xml(test_dom, disk = test_disk) + + ret = cxml.cim_define(server) + if not ret: + logger.error("Failed to define the dom: %s", test_dom) + return FAIL, cxml + + status = cxml.cim_start(server) + if status != PASS: + logger.error("Unable start dom '%s'", test_dom) + cxml.undefine(server) + return status, cxml + + return PASS, cxml + +def list_kvmrsap_inst(virt, ip): + list_kvmrsap = None + + try: + kvmrsap_cn = get_typed_class(virt, 'KVMRedirectionSAP') + list_kvmrsap = EnumInstances(ip, kvmrsap_cn) + + except Exception, details: + logger.error(details) + return list_kvmrsap, FAIL + + return list_kvmrsap, PASS + +def verify_kvmrsap(enum_list, list_kvmrsap): + status = PASS + + for item in enum_list: + found = FAIL + for kvmrsap in list_kvmrsap: + found = compare_all_prop(item, kvmrsap) + if found == PASS: + break + + if found == FAIL: + logger.error("Instance found in kvmrsap list but not in " + + "association list") + return FAIL + + return status + + at do_main(sup_types) +def main(): + options = main.options + status = FAIL + server = options.ip + virt = options.virt + + # This check is required for libvirt-cim providers which do not have + # HostedAccessPoint changes in it and the HostedAccessPoint + # association is available with revision >= 782. + curr_cim_rev, changeset = get_provider_version(virt, server) + if curr_cim_rev < libvirtcim_hostedAccPnt_changes: + logger.info("'%s' provider not supported, hence skipping the tc ....", + classname) + return SKIP + + + status, cxml = setup_env(options.ip, options.virt) + if status != PASS: + cxml.undefine(options.ip) + return status + + try: + status, host_inst = get_host_info(server, virt) + if status != PASS: + raise Exception("Failed to get host info.") + + list_kvmrsap, status = list_kvmrsap_inst(options.virt, + options.ip) + if status != PASS: + raise Exception("Unable to fetch kvmrsap instance") + + if list_kvmrsap is None: + raise Exception("No kvmrsap instance returned") + + an = get_typed_class(options.virt, 'HostedAccessPoint') + + host_ccn = host_inst.CreationClassName + + assoc_info = AssociatorNames(options.ip, an, host_ccn, + CreationClassName = host_ccn, + Name = host_inst.Name) + + status = verify_kvmrsap(assoc_info, list_kvmrsap) + + if status != PASS: + raise Exception("Failed to verify KVMRedirectionSAPs") + + except Exception, details: + logger.error(details) + status = FAIL + + cxml.cim_destroy(options.ip) + cxml.undefine(options.ip) + return status + +if __name__ == "__main__": + sys.exit(main()) From rmaciel at linux.vnet.ibm.com Wed Feb 11 16:58:57 2009 From: rmaciel at linux.vnet.ibm.com (Richard Maciel) Date: Wed, 11 Feb 2009 14:58:57 -0200 Subject: [Libvirt-cim] [PATCH 2 of 2] [TEST] Created reverse test (KVMRedirectionSAP -> HostSystem) test In-Reply-To: References: Message-ID: <6045d5b260cbb5880022.1234371537@localhost.localdomain> # HG changeset patch # User Richard Maciel # Date 1234369634 7200 # Node ID 6045d5b260cbb588002233702fc6fc5c0c08dad0 # Parent d27250315226132528a1dbf450060496898222ec [TEST] Created reverse test (KVMRedirectionSAP -> HostSystem) test Signed-off-by: Richard Maciel diff -r d27250315226 -r 6045d5b260cb suites/libvirt-cim/cimtest/HostedAccessPoint/02_reverse.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/suites/libvirt-cim/cimtest/HostedAccessPoint/02_reverse.py Wed Feb 11 14:27:14 2009 -0200 @@ -0,0 +1,165 @@ +#!/usr/bin/python +# +# Copyright 2009 IBM Corp. +# +# Authors: +# Richard Maciel +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# + +import sys +from CimTest.Globals import logger +from CimTest.ReturnCodes import PASS, FAIL +from XenKvmLib.vxml import get_class +from XenKvmLib.assoc import AssociatorNames +from XenKvmLib.classes import get_typed_class +from XenKvmLib.const import do_main, get_provider_version +from XenKvmLib.common_util import get_host_info +from XenKvmLib.enumclass import EnumInstances +from XenKvmLib.assoc import compare_all_prop + +libvirtcim_hostedAccPnt_changes = 782 + +sup_types = ['Xen', 'KVM', 'XenFV', 'LXC'] + +test_dom = "domu1" + +def setup_env(server, virt): + if virt == 'Xen': + test_disk = 'xvda' + else: + test_disk = 'hda' + + virt_xml = get_class(virt) + if virt == 'LXC': + cxml = virt_xml(test_dom) + else: + cxml = virt_xml(test_dom, disk = test_disk) + + ret = cxml.cim_define(server) + if not ret: + logger.error("Failed to define the dom: %s", test_dom) + return FAIL, cxml + + status = cxml.cim_start(server) + if status != PASS: + logger.error("Unable start dom '%s'", test_dom) + cxml.undefine(server) + return status, cxml + + return PASS, cxml + +def get_kvmrsap_inst(virt, ip, guest_name): + kvmrsap_inst = None + + try: + kvmrsap_cn = get_typed_class(virt, 'KVMRedirectionSAP') + enum_list = EnumInstances(ip, kvmrsap_cn) + + for kvmrsap in enum_list: + if kvmrsap.SystemName == guest_name: + if kvmrsap_inst is not None: + raise Exception("More than one KVMRedirectionSAP found " + + "the same guest") + kvmrsap_inst = kvmrsap + + except Exception, details: + logger.error(details) + return kvmrsap_inst, FAIL + + return kvmrsap_inst, PASS + +def verify_host(enum_list, host_inst): + status = FAIL + + try: + if len(enum_list) > 1: + raise Exception("More than one host found!") + if len(enum_list) < 1: + raise Exception("No host found!") + + item = enum_list[0] + status = compare_all_prop(item, host_inst) + + except Exception, details: + logger.error(details) + status = FAIL + + return status + + + at do_main(sup_types) +def main(): + options = main.options + status = FAIL + server = options.ip + virt = options.virt + + # This check is required for libvirt-cim providers which do not have + # HostedAccessPoint changes in it and the HostedAccessPoint + # association is available with revision >= 782. + curr_cim_rev, changeset = get_provider_version(virt, server) + if curr_cim_rev < libvirtcim_hostedAccPnt_changes: + logger.info("'%s' provider not supported, hence skipping the tc ....", + classname) + return SKIP + + status, cxml = setup_env(options.ip, options.virt) + if status != PASS: + cxml.undefine(options.ip) + return status + + try: + status, host_inst = get_host_info(server, virt) + if status != PASS: + raise Exception("Failed to get host info.") + + kvmrsap_inst, status = get_kvmrsap_inst(options.virt, + options.ip, + test_dom) + if status != PASS: + raise Exception("Unable to fetch kvmrsap instance (domain: %s)", + test_dom) + if kvmrsap_inst is None: + raise Exception("No kvmrsap instance returned") + + an = get_typed_class(options.virt, 'HostedAccessPoint') + + kvm_ccn = kvmrsap_inst.CreationClassName + name = kvmrsap_inst.Name + sys_ccn = kvmrsap_inst.SystemCreationClassName + + assoc_info = AssociatorNames(options.ip, an, kvm_ccn, + CreationClassName = kvm_ccn, + Name = kvmrsap_inst.Name, + SystemCreationClassName = sys_ccn, + SystemName = test_dom) + + status = verify_host(assoc_info, host_inst) + + if status != PASS: + raise Exception("Failed to verify KVMRedirectionSAPs") + + except Exception, details: + logger.error(details) + status = FAIL + + cxml.cim_destroy(options.ip) + cxml.undefine(options.ip) + return status + +if __name__ == "__main__": + sys.exit(main()) From rmaciel at linux.vnet.ibm.com Wed Feb 11 17:01:34 2009 From: rmaciel at linux.vnet.ibm.com (Richard Maciel) Date: Wed, 11 Feb 2009 15:01:34 -0200 Subject: [Libvirt-cim] [PATCH 0 of 2] [TEST] Added testcases for the ServiceAccessBySAP association Message-ID: From rmaciel at linux.vnet.ibm.com Wed Feb 11 17:01:36 2009 From: rmaciel at linux.vnet.ibm.com (Richard Maciel) Date: Wed, 11 Feb 2009 15:01:36 -0200 Subject: [Libvirt-cim] [PATCH 2 of 2] [TEST] Created test for association ServiceAccessBySAP (KVMRedirectionSAP -> ConsoleRedirectionService) In-Reply-To: References: Message-ID: <764952c9b7a580362b60.1234371696@localhost.localdomain> # HG changeset patch # User Richard Maciel # Date 1234371570 7200 # Node ID 764952c9b7a580362b6085dc1134199de3564cc2 # Parent 28f1a914d1ebd76f23e6ab5f8faac358b5c28bb6 [TEST] Created test for association ServiceAccessBySAP (KVMRedirectionSAP -> ConsoleRedirectionService) Signed-off-by: Richard Maciel diff -r 28f1a914d1eb -r 764952c9b7a5 suites/libvirt-cim/cimtest/ServiceAccessBySAP/02_reverse.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/suites/libvirt-cim/cimtest/ServiceAccessBySAP/02_reverse.py Wed Feb 11 14:59:30 2009 -0200 @@ -0,0 +1,207 @@ +#!/usr/bin/python +# +# Copyright 2009 IBM Corp. +# +# Authors: +# Richard Maciel +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +import sys +from VirtLib import utils +from XenKvmLib.classes import get_typed_class +from CimTest import Globals +from XenKvmLib.const import do_main +from CimTest.Globals import logger +from CimTest.ReturnCodes import PASS, FAIL, XFAIL +from XenKvmLib.common_util import get_host_info +from XenKvmLib.const import get_provider_version +from XenKvmLib.enumclass import EnumInstances +from XenKvmLib.vxml import get_class +from XenKvmLib.assoc import AssociatorNames +from XenKvmLib.assoc import compare_all_prop + +libvirtcim_servaccsap_changes = 784 + +sup_types = ['Xen', 'KVM', 'XenFV', 'LXC'] + +test_dom = "domu1" + +def setup_env(server, virt): + if virt == 'Xen': + test_disk = 'xvda' + else: + test_disk = 'hda' + + virt_xml = get_class(virt) + + if virt == 'LXC': + cxml = virt_xml(test_dom) + else: + cxml = virt_xml(test_dom, disk = test_disk) + + ret = cxml.cim_define(server) + if not ret: + logger.error("Failed to define the dom: %s", test_dom) + return FAIL, cxml + + status = cxml.cim_start(server) + if status != PASS: + logger.error("Unable start dom '%s'", test_dom) + cxml.undefine(server) + return status, cxml + + return PASS, cxml + +def get_kvmrsap_inst(virt, ip, guest_name): + kvmrsap_inst = None + status = PASS + + try: + kvmrsap_cn = get_typed_class(virt, 'KVMRedirectionSAP') + enum_list = EnumInstances(ip, kvmrsap_cn) + + for kvmrsap in enum_list: + if kvmrsap.SystemName == guest_name: + if kvmrsap_inst is not None: + raise Exception("More than one KVMRedirectionSAP found " + + "for the same guest") + kvmrsap_inst = kvmrsap + + except Exception, details: + logger.error(details) + status = FAIL + + return kvmrsap_inst, status + +def get_redirserv_inst(virt, ip, host_inst): + redirserv_inst = None + status = PASS + + try: + redirserv_cn = get_typed_class(virt, 'ConsoleRedirectionService') + + enum_list = EnumInstances(ip, redirserv_cn) + + for redirserv in enum_list: + if redirserv.SystemName == host_inst.Name: + if redirserv_inst is not None: + raise Exception("More than one redirection service found " + + "for the same host/virt") + redirserv_inst = redirserv + + except Exception, details: + logger.error(details) + status = FAIL + + return redirserv_inst, status + +def verify_redirserv(enum_list, redirserv_inst): + status = PASS + + try: + if len(enum_list) > 1: + raise Exception("Association returned more than one redirection " + + "service instance") + if len(enum_list) < 1: + raise Exception("Association didn't return any redirection " + + "service instance") + + item = enum_list[0] + + if compare_all_prop(item, redirserv_inst) == FAIL: + raise Exception("Redirection service returned by association is " + + "not equal redirection service instance returned " + + "by enumeration") + except Exception, details: + logger.error(details) + status = FAIL + + return status + + at do_main(sup_types) +def main(): + options = main.options + server = options.ip + virt = options.virt + + status = FAIL + + # This check is required for libvirt-cim providers which do not have + # ServiceAccessBySAP changes in it and the ServiceAccessBySAP + # association is available with revision >= 784. + curr_cim_rev, changeset = get_provider_version(virt, server) + if curr_cim_rev < libvirtcim_servaccsap_changes: + logger.info("'%s' provider not supported, hence skipping the tc ....", + classname) + return SKIP + + status, cxml = setup_env(options.ip, options.virt) + if status != PASS: + cxml.undefine(options.ip) + return status + + + try: + status, host_inst = get_host_info(options.ip, + options.virt) + if status != PASS: + raise Exception("Unable to get host info") + + redirserv_inst, status = get_redirserv_inst(options.virt, + options.ip, + host_inst) + if status != PASS: + raise Exception("Unable to get redirection service instance") + if redirserv_inst == None: + raise Exception("No redirection service instance returned") + + kvmrsap_inst, status = get_kvmrsap_inst(options.virt, + options.ip, + test_dom) + if status != PASS: + raise Exception("Unable to get kvmrsap instance") + if kvmrsap_inst is None: + raise Exception("No kvmrsap instance returned") + + an = get_typed_class(options.virt, 'ServiceAccessBySAP') + + sys_ccn = kvmrsap_inst.SystemCreationClassName + kvmrsap_ccn = kvmrsap_inst.CreationClassName + kvmrsap_name = kvmrsap_inst.Name + + assoc_info = AssociatorNames(options.ip, an, kvmrsap_ccn, + CreationClassName = kvmrsap_ccn, + Name = kvmrsap_name, + SystemCreationClassName = sys_ccn, + SystemName = test_dom) + + status = verify_redirserv(assoc_info, redirserv_inst) + + if status != PASS: + raise Exception("Failed to verify redirection service") + + except Exception, details: + logger.error("Exception raised - ", details) + status = FAIL + + cxml.cim_destroy(options.ip) + cxml.undefine(options.ip) + return status + + +if __name__ == "__main__": + sys.exit(main()) + From rmaciel at linux.vnet.ibm.com Wed Feb 11 17:01:35 2009 From: rmaciel at linux.vnet.ibm.com (Richard Maciel) Date: Wed, 11 Feb 2009 15:01:35 -0200 Subject: [Libvirt-cim] [PATCH 1 of 2] [TEST] Created test for association ServiceAccessBySAP (ConsoleRedirectionService -> KVMRedirecitonSAP) In-Reply-To: References: Message-ID: <28f1a914d1ebd76f23e6.1234371695@localhost.localdomain> # HG changeset patch # User Richard Maciel # Date 1234371570 7200 # Node ID 28f1a914d1ebd76f23e6ab5f8faac358b5c28bb6 # Parent 6045d5b260cbb588002233702fc6fc5c0c08dad0 [TEST] Created test for association ServiceAccessBySAP (ConsoleRedirectionService -> KVMRedirecitonSAP) Signed-off-by: Richard Maciel diff -r 6045d5b260cb -r 28f1a914d1eb suites/libvirt-cim/cimtest/ServiceAccessBySAP/01_forward.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/suites/libvirt-cim/cimtest/ServiceAccessBySAP/01_forward.py Wed Feb 11 14:59:30 2009 -0200 @@ -0,0 +1,190 @@ +#!/usr/bin/python +# +# Copyright 2009 IBM Corp. +# +# Authors: +# Richard Maciel +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# + +import sys +from VirtLib import utils +from XenKvmLib.classes import get_typed_class +from CimTest import Globals +from XenKvmLib.const import do_main +from CimTest.Globals import logger +from CimTest.ReturnCodes import PASS, FAIL, XFAIL +from XenKvmLib.common_util import get_host_info +from XenKvmLib.const import get_provider_version +from XenKvmLib.enumclass import EnumInstances +from XenKvmLib.vxml import get_class +from XenKvmLib.assoc import AssociatorNames +from XenKvmLib.assoc import compare_all_prop + +libvirtcim_servaccsap_changes = 784 + +sup_types = ['Xen', 'KVM', 'XenFV', 'LXC'] + +test_dom = "domu1" + +def setup_env(server, virt): + if virt == 'Xen': + test_disk = 'xvda' + else: + test_disk = 'hda' + + virt_xml = get_class(virt) + + if virt == 'LXC': + cxml = virt_xml(test_dom) + else: + cxml = virt_xml(test_dom, disk = test_disk) + + ret = cxml.cim_define(server) + if not ret: + logger.error("Failed to define the dom: %s", test_dom) + return FAIL, cxml + + status = cxml.cim_start(server) + if status != PASS: + logger.error("Unable start dom '%s'", test_dom) + cxml.undefine(server) + return status, cxml + + return PASS, cxml + +def list_kvmrsap_inst(virt, ip): + list_kvmrsap = None + + try: + kvmrsap_cn = get_typed_class(virt, 'KVMRedirectionSAP') + list_kvmrsap = EnumInstances(ip, kvmrsap_cn) + + except Exception, details: + logger.error(details) + return list_kvmrsap, FAIL + + return list_kvmrsap, PASS + +def get_redirserv_inst(virt, ip, host_inst): + redirserv_inst = None + + try: + redirserv_cn = get_typed_class(virt, 'ConsoleRedirectionService') + + enum_list = EnumInstances(ip, redirserv_cn) + + for redirserv in enum_list: + if redirserv.SystemName == host_inst.Name: + if redirserv_inst is not None: + raise Exception("More than one RedirectionService found " + + "for the same host/virt") + redirserv_inst = redirserv + + except Exception, details: + logger.error(details) + return redirserv_inst, FAIL + + return redirserv_inst, PASS + +def verify_kvmrsap(enum_list, list_kvmrsap): + status = PASS + + for item in enum_list: + found = FAIL + for kvmrsap in list_kvmrsap: + found = compare_all_prop(item, kvmrsap) + if found == PASS: + break + + if found == FAIL: + logger.error("Instance found in kvmrsap list but not in " + + "association list") + return FAIL + + return status + + at do_main(sup_types) +def main(): + options = main.options + server = options.ip + virt = options.virt + + status = FAIL + + # This check is required for libvirt-cim providers which do not have + # ServiceAccessBySAP changes in it and the ServiceAccessBySAP + # association is available with revision >= 784. + curr_cim_rev, changeset = get_provider_version(virt, server) + if curr_cim_rev < libvirtcim_servaccsap_changes: + logger.info("'%s' provider not supported, hence skipping the tc ....", + classname) + return SKIP + + status, cxml = setup_env(options.ip, options.virt) + if status != PASS: + cxml.undefine(options.ip) + return status + + try: + status, host_inst = get_host_info(options.ip, + options.virt) + if status != PASS: + raise Exception("Unable to get host info") + + redirserv_inst, status = get_redirserv_inst(options.virt, + options.ip, + host_inst) + if status != PASS: + raise Exception("Unable to get RedirectionService instance") + + list_kvmrsap, status = list_kvmrsap_inst(options.virt, + options.ip) + + if status != PASS: + raise Exception("Unable to get kvmrsap instance") + if list_kvmrsap is None: + raise Exception("No kvmrsap instance returned") + + an = get_typed_class(options.virt, 'ServiceAccessBySAP') + + host_ccn = host_inst.CreationClassName + redirserv_ccn = redirserv_inst.CreationClassName + redirserv_name = redirserv_inst.Name + + assoc_info = AssociatorNames(options.ip, an, redirserv_ccn, + CreationClassName = redirserv_ccn, + Name = redirserv_name, + SystemCreationClassName = host_ccn, + SystemName = host_inst.Name) + + status = verify_kvmrsap(assoc_info, list_kvmrsap) + + if status != PASS: + raise Exception("Failed to verify KVMRedirectionSAPs") + + except Exception, details: + logger.error("Exception raised - ", details) + status = FAIL + + cxml.cim_destroy(options.ip) + cxml.undefine(options.ip) + return status + + +if __name__ == "__main__": + sys.exit(main()) + From kaitlin at linux.vnet.ibm.com Wed Feb 11 18:32:49 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Wed, 11 Feb 2009 10:32:49 -0800 Subject: [Libvirt-cim] [PATCH 1 of 2] [TEST] Created testcases for the forward HostedAccessPoint association (HostSystem -> KVMRedirectionSAP) In-Reply-To: References: Message-ID: <499319D1.5060802@linux.vnet.ibm.com> > + > +def verify_kvmrsap(enum_list, list_kvmrsap): > + status = PASS Set status = FAIL. If you set it to PASS, and there are no items in enum_list, then you return a false positive. > + > + for item in enum_list: > + found = FAIL > + for kvmrsap in list_kvmrsap: > + found = compare_all_prop(item, kvmrsap) An easier way to do this would be to check the Name and SystemName keys to see if they are the same. If they are the same, then do a compare. Otherwise, check the next element in the list. > + if found == PASS: > + break > + > + if found == FAIL: > + logger.error("Instance found in kvmrsap list but not in " + > + "association list") > + return FAIL > + > + return status > + > + # This check is required for libvirt-cim providers which do not have > + # HostedAccessPoint changes in it and the HostedAccessPoint > + # association is available with revision >= 782. > + curr_cim_rev, changeset = get_provider_version(virt, server) > + if curr_cim_rev < libvirtcim_hostedAccPnt_changes: > + logger.info("'%s' provider not supported, hence skipping the tc ....", > + classname) > + return SKIP classname is not defined. > + if list_kvmrsap is None: > + raise Exception("No kvmrsap instance returned") It's possible for len(list_kvmrsap) to equal 0. You want to check to see if len(list_kvmrsap) is > than 0. -- Kaitlin Rupert IBM Linux Technology Center kaitlin at linux.vnet.ibm.com From kaitlin at linux.vnet.ibm.com Wed Feb 11 18:38:02 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Wed, 11 Feb 2009 10:38:02 -0800 Subject: [Libvirt-cim] [PATCH 2 of 2] [TEST] Created reverse test (KVMRedirectionSAP -> HostSystem) test In-Reply-To: <6045d5b260cbb5880022.1234371537@localhost.localdomain> References: <6045d5b260cbb5880022.1234371537@localhost.localdomain> Message-ID: <49931B0A.90808@linux.vnet.ibm.com> > + at do_main(sup_types) > +def main(): > + options = main.options > + status = FAIL > + server = options.ip > + virt = options.virt > + > + # This check is required for libvirt-cim providers which do not have > + # HostedAccessPoint changes in it and the HostedAccessPoint > + # association is available with revision >= 782. > + curr_cim_rev, changeset = get_provider_version(virt, server) > + if curr_cim_rev < libvirtcim_hostedAccPnt_changes: > + logger.info("'%s' provider not supported, hence skipping the tc ....", > + classname) > + return SKIP classname is not defined. > + > + status, cxml = setup_env(options.ip, options.virt) > + if status != PASS: > + cxml.undefine(options.ip) > + return status > + > + try: > + status, host_inst = get_host_info(server, virt) > + if status != PASS: > + raise Exception("Failed to get host info.") > + > + kvmrsap_inst, status = get_kvmrsap_inst(options.virt, > + options.ip, > + test_dom) > + if status != PASS: > + raise Exception("Unable to fetch kvmrsap instance (domain: %s)", > + test_dom) > + if kvmrsap_inst is None: > + raise Exception("No kvmrsap instance returned") > + > + an = get_typed_class(options.virt, 'HostedAccessPoint') > + > + kvm_ccn = kvmrsap_inst.CreationClassName > + name = kvmrsap_inst.Name > + sys_ccn = kvmrsap_inst.SystemCreationClassName > + > + assoc_info = AssociatorNames(options.ip, an, kvm_ccn, > + CreationClassName = kvm_ccn, > + Name = kvmrsap_inst.Name, > + SystemCreationClassName = sys_ccn, > + SystemName = test_dom) Use the SystemName of the kvmrsap_inst - it should be the same as test_dom, but you want to pass the keys of the kvmrsap_inst. -- Kaitlin Rupert IBM Linux Technology Center kaitlin at linux.vnet.ibm.com From kaitlin at linux.vnet.ibm.com Wed Feb 11 18:45:35 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Wed, 11 Feb 2009 10:45:35 -0800 Subject: [Libvirt-cim] [PATCH 1 of 2] [TEST] Created test for association ServiceAccessBySAP (ConsoleRedirectionService -> KVMRedirecitonSAP) In-Reply-To: <28f1a914d1ebd76f23e6.1234371695@localhost.localdomain> References: <28f1a914d1ebd76f23e6.1234371695@localhost.localdomain> Message-ID: <49931CCF.7070502@linux.vnet.ibm.com> > +def get_redirserv_inst(virt, ip, host_inst): > + redirserv_inst = None > + > + try: > + redirserv_cn = get_typed_class(virt, 'ConsoleRedirectionService') > + > + enum_list = EnumInstances(ip, redirserv_cn) > + > + for redirserv in enum_list: > + if redirserv.SystemName == host_inst.Name: > + if redirserv_inst is not None: > + raise Exception("More than one RedirectionService found " + > + "for the same host/virt") > + redirserv_inst = redirserv No need for this loop. Only one instance of ConsoleRedirectionService should be returned. > + > + except Exception, details: > + logger.error(details) > + return redirserv_inst, FAIL > + > + return redirserv_inst, PASS > + > +def verify_kvmrsap(enum_list, list_kvmrsap): > + status = PASS > + > + for item in enum_list: > + found = FAIL > + for kvmrsap in list_kvmrsap: > + found = compare_all_prop(item, kvmrsap) > + if found == PASS: > + break Compare the values of the Name and SystemName keys. If they match, then call compare. > + > + if found == FAIL: > + logger.error("Instance found in kvmrsap list but not in " + > + "association list") > + return FAIL > + > + return status > + > + at do_main(sup_types) > +def main(): > + options = main.options > + server = options.ip > + virt = options.virt > + > + status = FAIL > + > + # This check is required for libvirt-cim providers which do not have > + # ServiceAccessBySAP changes in it and the ServiceAccessBySAP > + # association is available with revision >= 784. > + curr_cim_rev, changeset = get_provider_version(virt, server) > + if curr_cim_rev < libvirtcim_servaccsap_changes: > + logger.info("'%s' provider not supported, hence skipping the tc ....", > + classname) > + return SKIP classname is not defined. > + > + status, cxml = setup_env(options.ip, options.virt) > + if status != PASS: > + cxml.undefine(options.ip) > + return status > + > + try: > + status, host_inst = get_host_info(options.ip, > + options.virt) > + if status != PASS: > + raise Exception("Unable to get host info") ServiceAccessBySAP does not associate the HostSystem - no need for this call. > + > + redirserv_inst, status = get_redirserv_inst(options.virt, > + options.ip, > + host_inst) > + if status != PASS: > + raise Exception("Unable to get RedirectionService instance") > + > + list_kvmrsap, status = list_kvmrsap_inst(options.virt, > + options.ip) > + > + if status != PASS: > + raise Exception("Unable to get kvmrsap instance") > + if list_kvmrsap is None: > + raise Exception("No kvmrsap instance returned") > + > + an = get_typed_class(options.virt, 'ServiceAccessBySAP') > + > + host_ccn = host_inst.CreationClassName > + redirserv_ccn = redirserv_inst.CreationClassName > + redirserv_name = redirserv_inst.Name > + > + assoc_info = AssociatorNames(options.ip, an, redirserv_ccn, > + CreationClassName = redirserv_ccn, > + Name = redirserv_name, > + SystemCreationClassName = host_ccn, > + SystemName = host_inst.Name) Do not use the host values as the keys. Use the keys of the redirserv_inst. -- Kaitlin Rupert IBM Linux Technology Center kaitlin at linux.vnet.ibm.com From kaitlin at linux.vnet.ibm.com Wed Feb 11 18:53:07 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Wed, 11 Feb 2009 10:53:07 -0800 Subject: [Libvirt-cim] [PATCH 2 of 2] [TEST] Created test for association ServiceAccessBySAP (KVMRedirectionSAP -> ConsoleRedirectionService) In-Reply-To: <764952c9b7a580362b60.1234371696@localhost.localdomain> References: <764952c9b7a580362b60.1234371696@localhost.localdomain> Message-ID: <49931E93.8060602@linux.vnet.ibm.com> > +def get_redirserv_inst(virt, ip, host_inst): > + redirserv_inst = None > + status = PASS > + > + try: > + redirserv_cn = get_typed_class(virt, 'ConsoleRedirectionService') > + > + enum_list = EnumInstances(ip, redirserv_cn) > + > + for redirserv in enum_list: > + if redirserv.SystemName == host_inst.Name: > + if redirserv_inst is not None: > + raise Exception("More than one redirection service found " + > + "for the same host/virt") > + redirserv_inst = redirserv There should only be one instance of ConsoleRedirectionService on a system. No need for this loop. > + > + except Exception, details: > + logger.error(details) > + status = FAIL > + > + return redirserv_inst, status > + > +def verify_redirserv(enum_list, redirserv_inst): > + status = PASS > + > + try: > + if len(enum_list) > 1: > + raise Exception("Association returned more than one redirection " + > + "service instance") > + if len(enum_list) < 1: > + raise Exception("Association didn't return any redirection " + > + "service instance") > + > + item = enum_list[0] > + > + if compare_all_prop(item, redirserv_inst) == FAIL: > + raise Exception("Redirection service returned by association is " + > + "not equal redirection service instance returned " + > + "by enumeration") > + except Exception, details: > + logger.error(details) > + status = FAIL > + > + return status > + > + at do_main(sup_types) > +def main(): > + options = main.options > + server = options.ip > + virt = options.virt > + > + status = FAIL > + > + # This check is required for libvirt-cim providers which do not have > + # ServiceAccessBySAP changes in it and the ServiceAccessBySAP > + # association is available with revision >= 784. > + curr_cim_rev, changeset = get_provider_version(virt, server) > + if curr_cim_rev < libvirtcim_servaccsap_changes: > + logger.info("'%s' provider not supported, hence skipping the tc ....", > + classname) > + return SKIP classname is not defined. > + > + status, cxml = setup_env(options.ip, options.virt) > + if status != PASS: > + cxml.undefine(options.ip) > + return status > + > + > + try: > + status, host_inst = get_host_info(options.ip, > + options.virt) ServiceAccessBySAP does not associate HostSystem - this call is not needed. > + if status != PASS: > + raise Exception("Unable to get host info") > + > + redirserv_inst, status = get_redirserv_inst(options.virt, > + options.ip, > + host_inst) > + if status != PASS: > + raise Exception("Unable to get redirection service instance") > + if redirserv_inst == None: > + raise Exception("No redirection service instance returned") Move this check into the get_redirserv_inst() call. > + > + kvmrsap_inst, status = get_kvmrsap_inst(options.virt, > + options.ip, > + test_dom) > + if status != PASS: > + raise Exception("Unable to get kvmrsap instance") > + if kvmrsap_inst is None: > + raise Exception("No kvmrsap instance returned") Move this check to the get_kvmrsap_inst() call. > + > + an = get_typed_class(options.virt, 'ServiceAccessBySAP') > + > + sys_ccn = kvmrsap_inst.SystemCreationClassName > + kvmrsap_ccn = kvmrsap_inst.CreationClassName > + kvmrsap_name = kvmrsap_inst.Name > + > + assoc_info = AssociatorNames(options.ip, an, kvmrsap_ccn, > + CreationClassName = kvmrsap_ccn, > + Name = kvmrsap_name, > + SystemCreationClassName = sys_ccn, > + SystemName = test_dom) Instead of using test_dom, use the SystemName key value of kvmrsap_inst. -- Kaitlin Rupert IBM Linux Technology Center kaitlin at linux.vnet.ibm.com From kaitlin at linux.vnet.ibm.com Wed Feb 11 19:13:46 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Wed, 11 Feb 2009 11:13:46 -0800 Subject: [Libvirt-cim] [PATCH] [TEST] Update libraries present to follow the new coding style In-Reply-To: References: Message-ID: <4993236A.9000105@linux.vnet.ibm.com> > diff -r 1bb347c22e6e -r dd59a8d6a123 suites/libvirt-cim/lib/XenKvmLib/const.py > --- a/suites/libvirt-cim/lib/XenKvmLib/const.py Mon Feb 09 21:47:35 2009 -0800 > +++ b/suites/libvirt-cim/lib/XenKvmLib/const.py Wed Feb 11 00:10:44 2009 -0800 > @@ -140,8 +140,8 @@ > destroy_and_undefine_all(options.ip, options.virt) > rc = f() > except Exception, e: > - logger.error('%s : %s' % (e.__class__.__name__, e)) > - logger.error("%s" % traceback.print_exc()) > + logger.error('%s : %s', e.__class__.__name__, e) > + logger.error("%s", traceback.print_exc()) > rc = FAIL > return rc > setattr(do_try, 'options', options) > diff -r 1bb347c22e6e -r dd59a8d6a123 suites/libvirt-cim/lib/XenKvmLib/test_xml.py > --- a/suites/libvirt-cim/lib/XenKvmLib/test_xml.py Mon Feb 09 21:47:35 2009 -0800 > +++ b/suites/libvirt-cim/lib/XenKvmLib/test_xml.py Wed Feb 11 00:10:44 2009 -0800 > @@ -48,7 +48,8 @@ > def testxml(test_dom="domU1", mem = 128, vcpus = 1, mac = default_mac, \ > disk_file_path = disk_path, disk = "xvda"): > if not (os.path.exists(kernel_path) and os.path.exists(init_path)) : > - logger.error("ERROR: Either the kernel image or the init_path does not exist") > + logger.error("ERROR: Either the kernel image or the \ > + init_path does not exist") Can you do the following instead (otherwise extra whitespace will be displayed when the line is printed): logger.error("ERROR: Either the kernel image or the" "init_path does not exist") > sys.exit(SKIP) > test_xml = """ > > @@ -76,8 +77,8 @@ > > > > - """ % ( test_dom, set_uuid(), kernel_path, init_path, mem*1024, vcpus, mac, \ > - disk_file_path, disk ) > + """ % ( test_dom, set_uuid(), kernel_path, init_path, mem*1024, vcpus, \ No need for the \ here. > + mac, disk_file_path, disk ) > return test_xml > > def testxml_bl(test_dom="domU1", mem = 128, vcpus = 1, mac = default_mac, \ > @@ -88,7 +89,8 @@ > specify either localhost or remote machine ip/name " ) > sys.exit(SKIP) > if not (os.path.exists(kernel_path) and os.path.exists(init_path)) : > - logger.error("ERROR: Either the kernel image or the init_path does not exist") > + logger.error("ERROR: Either the kernel image or the \ > + init_path does not exist") Can you do the following instead (otherwise extra whitespace will be displayed when the line is printed): logger.error("ERROR: Either the kernel image or the" "init_path does not exist") > sys.exit(SKIP) > test_xml = """ > > @@ -125,7 +127,8 @@ > mac = default_mac, disk_file_path = disk_path, > disk = "xvda", server = ""): > if not (os.path.exists(kernel_path) and os.path.exists(init_path)) : > - logger.error("ERROR: Either the kernel image or the init_path does not exist") > + logger.error("ERROR: Either the kernel image or the \ > + init_path does not exist") Same here. > sys.exit(SKIP) > vir_network = net_list(server) > if len(vir_network) > 0 : > @@ -140,7 +143,8 @@ > net_xml, bridge = netxml(server, bridgename, networkname) > ret = create_vnet(server, net_xml) > if not ret: > - logger.error("Failed to create the Virtual Network '%s'", networkname) > + logger.error("Failed to create the Virtual Network '%s'", > + networkname) > sys.exit(SKIP) > > test_xml = """ > @@ -179,7 +183,8 @@ > if bridgename in bridges: > bridge_name = bridgename + str(random.randint(1, 100)) > if bridge_name in bridges: > - logger.error("Need to give different bridge name since it alreay exists") > + logger.error("Need to give different bridge name since \ > + it alreay exists") Same here. -- Kaitlin Rupert IBM Linux Technology Center kaitlin at linux.vnet.ibm.com From rmaciel at linux.vnet.ibm.com Wed Feb 11 22:57:06 2009 From: rmaciel at linux.vnet.ibm.com (Richard Maciel) Date: Wed, 11 Feb 2009 20:57:06 -0200 Subject: [Libvirt-cim] [PATCH 0 of 2] [TEST] #5 Added testcases for the HostedAccessPoint association Message-ID: #2 added [TEST] on all patch headers #3 Fixed code style Enhanced the way objects are compared using the compare_all_prop #4 More fixes to code style Added revision control #5 More fixes to code style From rmaciel at linux.vnet.ibm.com Wed Feb 11 22:57:08 2009 From: rmaciel at linux.vnet.ibm.com (Richard Maciel) Date: Wed, 11 Feb 2009 20:57:08 -0200 Subject: [Libvirt-cim] [PATCH 2 of 2] [TEST] Created reverse test (KVMRedirectionSAP -> HostSystem) test In-Reply-To: References: Message-ID: # HG changeset patch # User Richard Maciel # Date 1234385795 7200 # Node ID e7936ead9dc662463ca08e2f9dfbbac205dbf649 # Parent 0aa0ba9d159694e924f6f26f87d30412be7baff5 [TEST] Created reverse test (KVMRedirectionSAP -> HostSystem) test Signed-off-by: Richard Maciel diff -r 0aa0ba9d1596 -r e7936ead9dc6 suites/libvirt-cim/cimtest/HostedAccessPoint/02_reverse.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/suites/libvirt-cim/cimtest/HostedAccessPoint/02_reverse.py Wed Feb 11 18:56:35 2009 -0200 @@ -0,0 +1,166 @@ +#!/usr/bin/python +# +# Copyright 2009 IBM Corp. +# +# Authors: +# Richard Maciel +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# + +import sys +from CimTest.Globals import logger +from CimTest.ReturnCodes import PASS, FAIL +from XenKvmLib.vxml import get_class +from XenKvmLib.assoc import AssociatorNames +from XenKvmLib.classes import get_typed_class +from XenKvmLib.const import do_main, get_provider_version +from XenKvmLib.common_util import get_host_info +from XenKvmLib.enumclass import EnumInstances +from XenKvmLib.assoc import compare_all_prop + +libvirtcim_hostedAccPnt_changes = 782 + +sup_types = ['Xen', 'KVM', 'XenFV', 'LXC'] + +test_dom = "domu1" + +def setup_env(server, virt): + if virt == 'Xen': + test_disk = 'xvda' + else: + test_disk = 'hda' + + virt_xml = get_class(virt) + if virt == 'LXC': + cxml = virt_xml(test_dom) + else: + cxml = virt_xml(test_dom, disk = test_disk) + + ret = cxml.cim_define(server) + if not ret: + logger.error("Failed to define the dom: %s", test_dom) + return FAIL, cxml + + status = cxml.cim_start(server) + if status != PASS: + logger.error("Unable start dom '%s'", test_dom) + cxml.undefine(server) + return status, cxml + + return PASS, cxml + +def get_kvmrsap_inst(virt, ip, guest_name): + kvmrsap_inst = None + + try: + kvmrsap_cn = get_typed_class(virt, 'KVMRedirectionSAP') + enum_list = EnumInstances(ip, kvmrsap_cn) + + for kvmrsap in enum_list: + if kvmrsap.SystemName == guest_name: + if kvmrsap_inst is not None: + raise Exception("More than one KVMRedirectionSAP found " + + "the same guest") + kvmrsap_inst = kvmrsap + + except Exception, details: + logger.error(details) + return kvmrsap_inst, FAIL + + return kvmrsap_inst, PASS + +def verify_host(enum_list, host_inst): + status = FAIL + + try: + if len(enum_list) > 1: + raise Exception("More than one host found!") + if len(enum_list) < 1: + raise Exception("No host found!") + + item = enum_list[0] + status = compare_all_prop(item, host_inst) + + except Exception, details: + logger.error(details) + status = FAIL + + return status + + + at do_main(sup_types) +def main(): + options = main.options + status = FAIL + server = options.ip + virt = options.virt + + # This check is required for libvirt-cim providers which do not have + # HostedAccessPoint changes in it and the HostedAccessPoint + # association is available with revision >= 782. + curr_cim_rev, changeset = get_provider_version(virt, server) + if curr_cim_rev < libvirtcim_hostedAccPnt_changes: + logger.info("'HostedAccessPoint' provider not supported, hence " + + "skipping the tc ....") + return SKIP + + status, cxml = setup_env(options.ip, options.virt) + if status != PASS: + cxml.undefine(options.ip) + return status + + try: + status, host_inst = get_host_info(server, virt) + if status != PASS: + raise Exception("Failed to get host info.") + + kvmrsap_inst, status = get_kvmrsap_inst(options.virt, + options.ip, + test_dom) + if status != PASS: + raise Exception("Unable to fetch kvmrsap instance (domain: %s)", + test_dom) + if kvmrsap_inst is None: + raise Exception("No kvmrsap instance returned") + + an = get_typed_class(options.virt, 'HostedAccessPoint') + + kvm_ccn = kvmrsap_inst.CreationClassName + name = kvmrsap_inst.Name + sys_ccn = kvmrsap_inst.SystemCreationClassName + sys_name = kvmrsap_inst.SystemName + + assoc_info = AssociatorNames(options.ip, an, kvm_ccn, + CreationClassName = kvm_ccn, + Name = kvmrsap_inst.Name, + SystemCreationClassName = sys_ccn, + SystemName = sys_name) + + status = verify_host(assoc_info, host_inst) + + if status != PASS: + raise Exception("Failed to verify KVMRedirectionSAPs") + + except Exception, details: + logger.error(details) + status = FAIL + + cxml.cim_destroy(options.ip) + cxml.undefine(options.ip) + return status + +if __name__ == "__main__": + sys.exit(main()) From rmaciel at linux.vnet.ibm.com Wed Feb 11 22:57:07 2009 From: rmaciel at linux.vnet.ibm.com (Richard Maciel) Date: Wed, 11 Feb 2009 20:57:07 -0200 Subject: [Libvirt-cim] [PATCH 1 of 2] [TEST] Created testcases for the forward HostedAccessPoint association (HostSystem -> KVMRedirectionSAP) In-Reply-To: References: Message-ID: <0aa0ba9d159694e924f6.1234393027@localhost.localdomain> # HG changeset patch # User Richard Maciel # Date 1234383042 7200 # Node ID 0aa0ba9d159694e924f6f26f87d30412be7baff5 # Parent 643ae1ea950d124b8453661080b18094f589a2bc [TEST] Created testcases for the forward HostedAccessPoint association (HostSystem -> KVMRedirectionSAP) Signed-off-by: Richard Maciel diff -r 643ae1ea950d -r 0aa0ba9d1596 suites/libvirt-cim/cimtest/HostedAccessPoint/01_forward.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/suites/libvirt-cim/cimtest/HostedAccessPoint/01_forward.py Wed Feb 11 18:10:42 2009 -0200 @@ -0,0 +1,154 @@ +#!/usr/bin/python +# +# Copyright 2009 IBM Corp. +# +# Authors: +# Richard Maciel +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# + +import sys +from CimTest.Globals import logger +from CimTest.ReturnCodes import PASS, FAIL +from XenKvmLib.vxml import get_class +from XenKvmLib.assoc import AssociatorNames +from XenKvmLib.classes import get_typed_class +from XenKvmLib.const import do_main, get_provider_version +from XenKvmLib.common_util import get_host_info +from XenKvmLib.enumclass import EnumInstances +from XenKvmLib.assoc import compare_all_prop + +libvirtcim_hostedAccPnt_changes = 782 + +sup_types = ['Xen', 'KVM', 'XenFV', 'LXC'] + +test_dom = "domu1" + +def setup_env(server, virt): + if virt == 'Xen': + test_disk = 'xvda' + else: + test_disk = 'hda' + + virt_xml = get_class(virt) + if virt == 'LXC': + cxml = virt_xml(test_dom) + else: + cxml = virt_xml(test_dom, disk = test_disk) + + ret = cxml.cim_define(server) + if not ret: + logger.error("Failed to define the dom: %s", test_dom) + return FAIL, cxml + + status = cxml.cim_start(server) + if status != PASS: + logger.error("Unable start dom '%s'", test_dom) + cxml.undefine(server) + return status, cxml + + return PASS, cxml + +def list_kvmrsap_inst(virt, ip): + list_kvmrsap = None + + try: + kvmrsap_cn = get_typed_class(virt, 'KVMRedirectionSAP') + list_kvmrsap = EnumInstances(ip, kvmrsap_cn) + + except Exception, details: + logger.error(details) + return list_kvmrsap, FAIL + + return list_kvmrsap, PASS + +def verify_kvmrsap(enum_list, list_kvmrsap): + + if len(enum_list) == 0: + return FAIL + + for item in enum_list: + found = FAIL + for kvmrsap in list_kvmrsap: + found = compare_all_prop(item, kvmrsap) + if found == PASS: + break + + if found == FAIL: + logger.error("Instance found in kvmrsap list but not in " + + "association list") + return FAIL + + return PASS + + at do_main(sup_types) +def main(): + options = main.options + status = FAIL + server = options.ip + virt = options.virt + + # This check is required for libvirt-cim providers which do not have + # HostedAccessPoint changes in it and the HostedAccessPoint + # association is available with revision >= 782. + curr_cim_rev, changeset = get_provider_version(virt, server) + if curr_cim_rev < libvirtcim_hostedAccPnt_changes: + logger.info("'HostedAccessPoint' provider not supported, hence " + + "skipping the tc ....") + return SKIP + + + status, cxml = setup_env(options.ip, options.virt) + if status != PASS: + cxml.undefine(options.ip) + return status + + try: + status, host_inst = get_host_info(server, virt) + if status != PASS: + raise Exception("Failed to get host info.") + + list_kvmrsap, status = list_kvmrsap_inst(options.virt, + options.ip) + if status != PASS: + raise Exception("Unable to fetch kvmrsap instance") + + if list_kvmrsap is None or len(list_kvmrsap) == 0: + raise Exception("No kvmrsap instance returned") + + an = get_typed_class(options.virt, 'HostedAccessPoint') + + host_ccn = host_inst.CreationClassName + + assoc_info = AssociatorNames(options.ip, an, host_ccn, + CreationClassName = host_ccn, + Name = host_inst.Name) + + status = verify_kvmrsap(assoc_info, list_kvmrsap) + + if status != PASS: + raise Exception("Failed to verify KVMRedirectionSAPs") + + except Exception, details: + logger.error(details) + status = FAIL + + cxml.cim_destroy(options.ip) + cxml.undefine(options.ip) + return status + +if __name__ == "__main__": + sys.exit(main()) From rmaciel at linux.vnet.ibm.com Wed Feb 11 23:01:15 2009 From: rmaciel at linux.vnet.ibm.com (Richard Maciel) Date: Wed, 11 Feb 2009 21:01:15 -0200 Subject: [Libvirt-cim] [PATCH 1 of 2] [TEST] Created test for association ServiceAccessBySAP (ConsoleRedirectionService -> KVMRedirecitonSAP) In-Reply-To: References: Message-ID: <04dd26997259610ca728.1234393275@localhost.localdomain> # HG changeset patch # User Richard Maciel # Date 1234393252 7200 # Node ID 04dd26997259610ca7281b08d44ef5120eb7d111 # Parent e7936ead9dc662463ca08e2f9dfbbac205dbf649 [TEST] Created test for association ServiceAccessBySAP (ConsoleRedirectionService -> KVMRedirecitonSAP) Signed-off-by: Richard Maciel diff -r e7936ead9dc6 -r 04dd26997259 suites/libvirt-cim/cimtest/ServiceAccessBySAP/01_forward.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/suites/libvirt-cim/cimtest/ServiceAccessBySAP/01_forward.py Wed Feb 11 21:00:52 2009 -0200 @@ -0,0 +1,184 @@ +#!/usr/bin/python +# +# Copyright 2009 IBM Corp. +# +# Authors: +# Richard Maciel +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# + +import sys +from VirtLib import utils +from XenKvmLib.classes import get_typed_class +from CimTest import Globals +from XenKvmLib.const import do_main +from CimTest.Globals import logger +from CimTest.ReturnCodes import PASS, FAIL, XFAIL +from XenKvmLib.const import get_provider_version +from XenKvmLib.enumclass import EnumInstances +from XenKvmLib.vxml import get_class +from XenKvmLib.assoc import AssociatorNames +from XenKvmLib.assoc import compare_all_prop + +libvirtcim_servaccsap_changes = 784 + +sup_types = ['Xen', 'KVM', 'XenFV', 'LXC'] + +test_dom = "domu1" + +def setup_env(server, virt): + if virt == 'Xen': + test_disk = 'xvda' + else: + test_disk = 'hda' + + virt_xml = get_class(virt) + + if virt == 'LXC': + cxml = virt_xml(test_dom) + else: + cxml = virt_xml(test_dom, disk = test_disk) + + ret = cxml.cim_define(server) + if not ret: + logger.error("Failed to define the dom: %s", test_dom) + return FAIL, cxml + + status = cxml.cim_start(server) + if status != PASS: + logger.error("Unable start dom '%s'", test_dom) + cxml.undefine(server) + return status, cxml + + return PASS, cxml + +def list_kvmrsap_inst(virt, ip): + list_kvmrsap = None + + try: + kvmrsap_cn = get_typed_class(virt, 'KVMRedirectionSAP') + list_kvmrsap = EnumInstances(ip, kvmrsap_cn) + + except Exception, details: + logger.error(details) + return list_kvmrsap, FAIL + + return list_kvmrsap, PASS + +def get_redirserv_inst(virt, ip): + redirserv_inst = None + + try: + redirserv_cn = get_typed_class(virt, 'ConsoleRedirectionService') + + enum_list = EnumInstances(ip, redirserv_cn) + + if len(enum_list) == 0: + raise Exception("No ConsoleRedirectionService instance found") + + redirserv_inst = enum_list[0] + + except Exception, details: + logger.error(details) + return redirserv_inst, FAIL + + return redirserv_inst, PASS + +def verify_kvmrsap(enum_list, list_kvmrsap): + status = PASS + + for item in enum_list: + found = FAIL + for kvmrsap in list_kvmrsap: + found = compare_all_prop(item, kvmrsap) + if found == PASS: + break + + if found == FAIL: + logger.error("Instance found in kvmrsap list but not in " + + "association list") + return FAIL + + return status + + at do_main(sup_types) +def main(): + options = main.options + server = options.ip + virt = options.virt + + status = FAIL + + # This check is required for libvirt-cim providers which do not have + # ServiceAccessBySAP changes in it and the ServiceAccessBySAP + # association is available with revision >= 784. + curr_cim_rev, changeset = get_provider_version(virt, server) + if curr_cim_rev < libvirtcim_servaccsap_changes: + logger.info("'Service' provider not supported, hence " + + "skipping the tc ....") + return SKIP + + + status, cxml = setup_env(options.ip, options.virt) + if status != PASS: + cxml.undefine(options.ip) + return status + + try: + redirserv_inst, status = get_redirserv_inst(options.virt, + options.ip) + + if status != PASS: + raise Exception("Unable to get RedirectionService instance") + + list_kvmrsap, status = list_kvmrsap_inst(options.virt, + options.ip) + + if status != PASS: + raise Exception("Unable to get kvmrsap instance") + if list_kvmrsap is None or len(list_kvmrsap) == 0: + raise Exception("No kvmrsap instance returned") + + an = get_typed_class(options.virt, 'ServiceAccessBySAP') + + sys_ccn = redirserv_inst.SystemCreationClassName + sys_name = redirserv_inst.SystemName + redirserv_ccn = redirserv_inst.CreationClassName + redirserv_name = redirserv_inst.Name + + assoc_info = AssociatorNames(options.ip, an, redirserv_ccn, + CreationClassName = redirserv_ccn, + Name = redirserv_name, + SystemCreationClassName = sys_ccn, + SystemName = sys_name) + + status = verify_kvmrsap(assoc_info, list_kvmrsap) + + if status != PASS: + raise Exception("Failed to verify KVMRedirectionSAPs") + + except Exception, details: + logger.error("Exception raised - ", details) + status = FAIL + + cxml.cim_destroy(options.ip) + cxml.undefine(options.ip) + return status + + +if __name__ == "__main__": + sys.exit(main()) + From rmaciel at linux.vnet.ibm.com Wed Feb 11 23:01:14 2009 From: rmaciel at linux.vnet.ibm.com (Richard Maciel) Date: Wed, 11 Feb 2009 21:01:14 -0200 Subject: [Libvirt-cim] [PATCH 0 of 2] [TEST] #2 Added testcases for the ServiceAccessBySAP association Message-ID: #2 Fixed code style From rmaciel at linux.vnet.ibm.com Wed Feb 11 23:01:16 2009 From: rmaciel at linux.vnet.ibm.com (Richard Maciel) Date: Wed, 11 Feb 2009 21:01:16 -0200 Subject: [Libvirt-cim] [PATCH 2 of 2] [TEST] Created test for association ServiceAccessBySAP (KVMRedirectionSAP -> ConsoleRedirectionService) In-Reply-To: References: Message-ID: # HG changeset patch # User Richard Maciel # Date 1234393252 7200 # Node ID de14e9bd224b0e969acc02d693965faa5a877d39 # Parent 04dd26997259610ca7281b08d44ef5120eb7d111 [TEST] Created test for association ServiceAccessBySAP (KVMRedirectionSAP -> ConsoleRedirectionService) Signed-off-by: Richard Maciel diff -r 04dd26997259 -r de14e9bd224b suites/libvirt-cim/cimtest/ServiceAccessBySAP/02_reverse.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/suites/libvirt-cim/cimtest/ServiceAccessBySAP/02_reverse.py Wed Feb 11 21:00:52 2009 -0200 @@ -0,0 +1,197 @@ +#!/usr/bin/python +# +# Copyright 2009 IBM Corp. +# +# Authors: +# Richard Maciel +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +import sys +from VirtLib import utils +from XenKvmLib.classes import get_typed_class +from CimTest import Globals +from XenKvmLib.const import do_main +from CimTest.Globals import logger +from CimTest.ReturnCodes import PASS, FAIL, XFAIL +from XenKvmLib.const import get_provider_version +from XenKvmLib.enumclass import EnumInstances +from XenKvmLib.vxml import get_class +from XenKvmLib.assoc import AssociatorNames +from XenKvmLib.assoc import compare_all_prop + +libvirtcim_servaccsap_changes = 784 + +sup_types = ['Xen', 'KVM', 'XenFV', 'LXC'] + +test_dom = "domu1" + +def setup_env(server, virt): + if virt == 'Xen': + test_disk = 'xvda' + else: + test_disk = 'hda' + + virt_xml = get_class(virt) + + if virt == 'LXC': + cxml = virt_xml(test_dom) + else: + cxml = virt_xml(test_dom, disk = test_disk) + + ret = cxml.cim_define(server) + if not ret: + logger.error("Failed to define the dom: %s", test_dom) + return FAIL, cxml + + status = cxml.cim_start(server) + if status != PASS: + logger.error("Unable start dom '%s'", test_dom) + cxml.undefine(server) + return status, cxml + + return PASS, cxml + +def get_kvmrsap_inst(virt, ip, guest_name): + kvmrsap_inst = None + + try: + kvmrsap_cn = get_typed_class(virt, 'KVMRedirectionSAP') + enum_list = EnumInstances(ip, kvmrsap_cn) + + for kvmrsap in enum_list: + if kvmrsap.SystemName == guest_name: + if kvmrsap_inst is not None: + raise Exception("More than one KVMRedirectionSAP found " + + "for the same guest") + kvmrsap_inst = kvmrsap + + if kvmrsap_inst is None: + raise Exception("No kvmrsap instance found") + + except Exception, details: + logger.error(details) + return kvmrsap_inst, FAIL + + return kvmrsap_inst, PASS + +def get_redirserv_inst(virt, ip): + redirserv_inst = None + + try: + redirserv_cn = get_typed_class(virt, 'ConsoleRedirectionService') + + enum_list = EnumInstances(ip, redirserv_cn) + + if len(enum_list) == 0: + raise Exception("No ConsoleRedirectionService instance found") + + redirserv_inst = enum_list[0] + + except Exception, details: + logger.error(details) + return redirserv_inst, FAIL + + return redirserv_inst, PASS + +def verify_redirserv(enum_list, redirserv_inst): + status = PASS + + try: + if len(enum_list) > 1: + raise Exception("Association returned more than one redirection " + + "service instance") + if len(enum_list) < 1: + raise Exception("Association didn't return any redirection " + + "service instance") + + item = enum_list[0] + + if compare_all_prop(item, redirserv_inst) == FAIL: + raise Exception("Redirection service returned by association is " + + "not equal redirection service instance returned " + + "by enumeration") + except Exception, details: + logger.error(details) + status = FAIL + + return status + + at do_main(sup_types) +def main(): + options = main.options + server = options.ip + virt = options.virt + + status = FAIL + + # This check is required for libvirt-cim providers which do not have + # ServiceAccessBySAP changes in it and the ServiceAccessBySAP + # association is available with revision >= 784. + curr_cim_rev, changeset = get_provider_version(virt, server) + if curr_cim_rev < libvirtcim_servaccsap_changes: + logger.info("'ServiceAccessBySAP' provider not supported, hence " + + "skipping the tc ....") + return SKIP + + status, cxml = setup_env(options.ip, options.virt) + if status != PASS: + cxml.undefine(options.ip) + return status + + + try: + redirserv_inst, status = get_redirserv_inst(options.virt, + options.ip) + + if status != PASS: + raise Exception("Unable to get redirection service instance") + + kvmrsap_inst, status = get_kvmrsap_inst(options.virt, + options.ip, + test_dom) + if status != PASS: + raise Exception("Unable to get kvmrsap instance") + + an = get_typed_class(options.virt, 'ServiceAccessBySAP') + + sys_name = kvmrsap_inst.SystemName + sys_ccn = kvmrsap_inst.SystemCreationClassName + kvmrsap_ccn = kvmrsap_inst.CreationClassName + kvmrsap_name = kvmrsap_inst.Name + + assoc_info = AssociatorNames(options.ip, an, kvmrsap_ccn, + CreationClassName = kvmrsap_ccn, + Name = kvmrsap_name, + SystemCreationClassName = sys_ccn, + SystemName = sys_name) + + status = verify_redirserv(assoc_info, redirserv_inst) + + if status != PASS: + raise Exception("Failed to verify redirection service") + + except Exception, details: + logger.error("Exception raised - ", details) + status = FAIL + + cxml.cim_destroy(options.ip) + cxml.undefine(options.ip) + return status + + +if __name__ == "__main__": + sys.exit(main()) + From yunguol at cn.ibm.com Thu Feb 12 05:19:27 2009 From: yunguol at cn.ibm.com (yunguol at cn.ibm.com) Date: Wed, 11 Feb 2009 21:19:27 -0800 Subject: [Libvirt-cim] [PATCH] [TEST] #2 Update libraries present to follow the new coding style Message-ID: # HG changeset patch # User Guolian Yun # Date 1234415960 28800 # Node ID ca6b0e4648f7441ffb96ab3f767094338572dba0 # Parent 0daae14ce5848711408fdd465fd2c03f20314466 [TEST] #2 Update libraries present to follow the new coding style Updates from 1 to 2: Fixed logger info description to avoid extra whitespace 1) Use commas instead of percent signs when passing parameters to logger.error() and logger.info() 2) Split lines to 80-char width limit Tested for KVM/LXC with current sources Signed-off-by: Guolian Yun diff -r 0daae14ce584 -r ca6b0e4648f7 suites/libvirt-cim/lib/XenKvmLib/assoc.py --- a/suites/libvirt-cim/lib/XenKvmLib/assoc.py Wed Feb 11 21:00:52 2009 -0200 +++ b/suites/libvirt-cim/lib/XenKvmLib/assoc.py Wed Feb 11 21:19:20 2009 -0800 @@ -139,8 +139,8 @@ val = eval('exp_inst.' + key) if prop_vals[i][1] != val: - logger.error("%s val mismatch: got %s, expected %s" % (key, - prop_vals[i][1], val)) + logger.error("%s val mismatch: got %s, expected %s", key, + prop_vals[i][1], val) return FAIL return PASS diff -r 0daae14ce584 -r ca6b0e4648f7 suites/libvirt-cim/lib/XenKvmLib/common_util.py --- a/suites/libvirt-cim/lib/XenKvmLib/common_util.py Wed Feb 11 21:00:52 2009 -0200 +++ b/suites/libvirt-cim/lib/XenKvmLib/common_util.py Wed Feb 11 21:19:20 2009 -0800 @@ -60,7 +60,7 @@ cs = enumclass.GetInstance(ip, cs_class, keys) if cs.Name != domain_name: - logger.error("VS %s is not found" % domain_name) + logger.error("VS %s is not found", domain_name) return (1, cs) except Exception, detail: @@ -104,11 +104,11 @@ return PASS return FAIL - logger.error('Unexpected rc code %s and description:\n %s' % (rc, desc)) + logger.error('Unexpected rc code %s and description:\n %s', rc, desc) return FAIL except Exception, details: - logger.error('Error invoke method `DefineSystem\'. %s' % details) + logger.error('Error invoke method `DefineSystem\'. %s', details) return FAIL if exp_err != None: @@ -150,7 +150,7 @@ TimeoutPeriod=pywbem.cim_types.CIMDateTime(time)) except Exception, detail: - logger.error("Exception: %s" % detail) + logger.error("Exception: %s", detail) return FAIL return PASS @@ -189,16 +189,16 @@ break except Exception, detail: - logger.error("Exception: %s" % detail) + logger.error("Exception: %s", detail) return FAIL, dom_cs if dom_cs is None or dom_cs.Name != dom: - logger.error("CS instance not returned for %s." % dom) + logger.error("CS instance not returned for %s.", dom) return FAIL, dom_cs if dom_cs.EnabledState != exp_state: - logger.error("EnabledState is %i instead of %i." % (dom_cs.EnabledState, - exp_state)) + logger.error("EnabledState is %i instead of %i.", dom_cs.EnabledState, + exp_state) logger.error("Try to increase the timeout and run the test again") return FAIL, dom_cs diff -r 0daae14ce584 -r ca6b0e4648f7 suites/libvirt-cim/lib/XenKvmLib/const.py --- a/suites/libvirt-cim/lib/XenKvmLib/const.py Wed Feb 11 21:00:52 2009 -0200 +++ b/suites/libvirt-cim/lib/XenKvmLib/const.py Wed Feb 11 21:19:20 2009 -0800 @@ -140,8 +140,8 @@ destroy_and_undefine_all(options.ip, options.virt) rc = f() except Exception, e: - logger.error('%s : %s' % (e.__class__.__name__, e)) - logger.error("%s" % traceback.print_exc()) + logger.error('%s : %s', e.__class__.__name__, e) + logger.error("%s", traceback.print_exc()) rc = FAIL return rc setattr(do_try, 'options', options) diff -r 0daae14ce584 -r ca6b0e4648f7 suites/libvirt-cim/lib/XenKvmLib/test_xml.py --- a/suites/libvirt-cim/lib/XenKvmLib/test_xml.py Wed Feb 11 21:00:52 2009 -0200 +++ b/suites/libvirt-cim/lib/XenKvmLib/test_xml.py Wed Feb 11 21:19:20 2009 -0800 @@ -45,10 +45,11 @@ default_mac = '11:22:33:aa:bb:cc' -def testxml(test_dom="domU1", mem = 128, vcpus = 1, mac = default_mac, \ - disk_file_path = disk_path, disk = "xvda"): +def testxml(test_dom="domU1", mem = 128, vcpus = 1, mac = default_mac, + disk_file_path = disk_path, disk = "xvda"): if not (os.path.exists(kernel_path) and os.path.exists(init_path)) : - logger.error("ERROR: Either the kernel image or the init_path does not exist") + logger.error("ERROR: Either the kernel image or the" + "init_path does not exist") sys.exit(SKIP) test_xml = """ @@ -76,19 +77,20 @@ - """ % ( test_dom, set_uuid(), kernel_path, init_path, mem*1024, vcpus, mac, \ - disk_file_path, disk ) + """ % ( test_dom, set_uuid(), kernel_path, init_path, mem*1024, vcpus, + mac, disk_file_path, disk ) return test_xml -def testxml_bl(test_dom="domU1", mem = 128, vcpus = 1, mac = default_mac, \ - disk_file_path = disk_path, disk = "xvda", server = "", \ +def testxml_bl(test_dom="domU1", mem = 128, vcpus = 1, mac = default_mac, + disk_file_path = disk_path, disk = "xvda", server = "", gtype = 0): if server == "": - logger.error("ERROR: Server info cannot be empty \ -specify either localhost or remote machine ip/name " ) + logger.error("ERROR: Server info cannot be empty" + "specify either localhost or remote machine ip/name ") sys.exit(SKIP) if not (os.path.exists(kernel_path) and os.path.exists(init_path)) : - logger.error("ERROR: Either the kernel image or the init_path does not exist") + logger.error("ERROR: Either the kernel image or the" + "init_path does not exist") sys.exit(SKIP) test_xml = """ @@ -117,15 +119,16 @@ - """ % ( test_dom, set_uuid(), bootloader(server, gtype), \ + """ % ( test_dom, set_uuid(), bootloader(server, gtype), kernel_path, init_path, mem*1024, vcpus, mac, disk_file_path, disk ) return test_xml -def testxml_bridge(test_dom="domU1", mem = 128, vcpus = 1, \ - mac = default_mac, disk_file_path = disk_path, - disk = "xvda", server = ""): +def testxml_bridge(test_dom="domU1", mem = 128, vcpus = 1, + mac = default_mac, disk_file_path = disk_path, + disk = "xvda", server = ""): if not (os.path.exists(kernel_path) and os.path.exists(init_path)) : - logger.error("ERROR: Either the kernel image or the init_path does not exist") + logger.error("ERROR: Either the kernel image or the" + "init_path does not exist") sys.exit(SKIP) vir_network = net_list(server) if len(vir_network) > 0 : @@ -140,7 +143,8 @@ net_xml, bridge = netxml(server, bridgename, networkname) ret = create_vnet(server, net_xml) if not ret: - logger.error("Failed to create the Virtual Network '%s'", networkname) + logger.error("Failed to create the Virtual Network '%s'", + networkname) sys.exit(SKIP) test_xml = """ @@ -179,7 +183,8 @@ if bridgename in bridges: bridge_name = bridgename + str(random.randint(1, 100)) if bridge_name in bridges: - logger.error("Need to give different bridge name since it alreay exists") + logger.error("Need to give different bridge name since" + "it alreay exists") sys.exit(SKIP) else: bridge_name = bridgename diff -r 0daae14ce584 -r ca6b0e4648f7 suites/libvirt-cim/lib/XenKvmLib/vsmigrations.py --- a/suites/libvirt-cim/lib/XenKvmLib/vsmigrations.py Wed Feb 11 21:00:52 2009 -0200 +++ b/suites/libvirt-cim/lib/XenKvmLib/vsmigrations.py Wed Feb 11 21:19:20 2009 -0800 @@ -78,7 +78,7 @@ DestinationHost=ip) except Exception, details: logger.error("Error invoke 'CheckVirtualSystemIsMigratableToHost\'.") - logger.error("%s" % details) + logger.error("%s", details) return FAIL if rc == None or rc[1]['IsMigratable'] != True: @@ -142,7 +142,7 @@ status = FAIL if status != PASS: - logger.error("%s migrate failed" % test_dom) + logger.error("%s migrate failed", test_dom) return FAIL return PASS @@ -155,7 +155,7 @@ for i in range(0, 50): if job_inst.JobState == 7: if job_inst.Status != "Completed": - logger.error("%s migrate failed" % test_dom) + logger.error("%s migrate failed", test_dom) return FAIL list_after = domain_list(ip) status = verify_domain_list(list_after, local_migrate, test_dom) diff -r 0daae14ce584 -r ca6b0e4648f7 suites/libvirt-cim/lib/XenKvmLib/vsms_util.py --- a/suites/libvirt-cim/lib/XenKvmLib/vsms_util.py Wed Feb 11 21:00:52 2009 -0200 +++ b/suites/libvirt-cim/lib/XenKvmLib/vsms_util.py Wed Feb 11 21:19:20 2009 -0800 @@ -28,7 +28,7 @@ get_bridge_from_network_xml def print_mod_err_msg(func_str, details): - logger.error('Error invoking ModifyRS: %s' % func_str) + logger.error('Error invoking ModifyRS: %s', func_str) logger.error(details) def mod_disk_res(server, service, cxml, dasd, ndpath): @@ -37,7 +37,7 @@ cxml.dumpxml(server) dpath = cxml.xml_get_disk_source() if dpath != ndpath: - logger.error("Got %s, exp %s." % (dpath, ndpath)) + logger.error("Got %s, exp %s.", dpath, ndpath) raise Exception('Error changing rs for disk path') logger.info('good status for disk path') except Exception, details: @@ -61,8 +61,8 @@ name = network_by_bridge(br_name, server, virt) if type != ntype or name != net_name: - logger.error('Got %s, exp %s. Got %s, exp %s' % - (type, ntype, name, net_name)) + logger.error('Got %s, exp %s. Got %s, exp %s', + type, ntype, name, net_name) raise Exception('Error changing rs for net mac') logger.info('good status for net mac') except Exception, details: @@ -77,7 +77,7 @@ cxml.dumpxml(server) mem = cxml.xml_get_mem() if int(mem) != int(nmem) * 1024: - logger.error("Got %d, exp %d." % (int(mem), (int(nmem) * 1024))) + logger.error("Got %d, exp %d.", int(mem), (int(nmem) * 1024)) raise Exception('Error changing rs for mem') logger.info('good status for mem') except Exception, details: @@ -96,7 +96,7 @@ logger.info("Unable to get vcpuinfo from virsh, using XML values") cpu = cxml.xml_get_vcpu() if int(cpu) != int(ncpu): - logger.error("Got %d, exp %d." % (int(cpu), int(ncpu))) + logger.error("Got %d, exp %d.", int(cpu), int(ncpu)) raise Exception('Error changing rs for vcpu') logger.info('good status for vcpu') except Exception, details: @@ -106,7 +106,7 @@ return PASS def print_add_err_msg(func_str, details): - logger.error('Error invoking AddRS: %s' % func_str) + logger.error('Error invoking AddRS: %s', func_str) logger.error(details) def add_disk_res(server, service, cxml, vssd_ref, dasd, attr): @@ -119,8 +119,8 @@ dpath = cxml.get_value_xpath( '/domain/devices/disk/source/@file[. = "%s"]' % attr['src_path']) if disk_dev != attr['nddev'] or dpath != attr['src_path']: - logger.error("Got %s, exp %s. Got %s, exp %s" % (disk_dev, - attr['nddev'], dpath, attr['src_path'])) + logger.error("Got %s, exp %s. Got %s, exp %s", disk_dev, + attr['nddev'], dpath, attr['src_path']) raise Exception('Error adding rs for disk_dev') logger.info('good status for disk path') except Exception, details: @@ -154,8 +154,8 @@ name = attr['net_name'] if mac != attr['nmac'] or name != attr['net_name']: - logger.error("Got %s, exp %s. Got %s, exp %s." % (mac, - attr['nmac'], name, attr['net_name'])) + logger.error("Got %s, exp %s. Got %s, exp %s.", mac, + attr['nmac'], name, attr['net_name']) raise Exception('Error adding rs for net mac') logger.info('good status for net_mac') diff -r 0daae14ce584 -r ca6b0e4648f7 suites/libvirt-cim/lib/XenKvmLib/vxml.py --- a/suites/libvirt-cim/lib/XenKvmLib/vxml.py Wed Feb 11 21:00:52 2009 -0200 +++ b/suites/libvirt-cim/lib/XenKvmLib/vxml.py Wed Feb 11 21:19:20 2009 -0800 @@ -525,14 +525,14 @@ ResourceSettings=res_settings, ReferenceConfiguration=ref_conf) except pywbem.CIMError, (rc, desc): - logger.error('Got CIM error %s with return code %s' % (desc, rc)) + logger.error('Got CIM error %s with return code %s', desc, rc) self.err_rc = rc self.err_desc = desc return False except Exception, details: - logger.error('Got error %s with exception %s' \ - % (details, details.__class__.__name__)) + logger.error('Got error %s with exception %s', + details, details.__class__.__name__) return False set_uuid(viruuid(self.domain_name, ip, self.virt)) @@ -546,15 +546,15 @@ try: ret = service.DestroySystem(AffectedSystem=target) except pywbem.CIMError, (rc, desc): - logger.error('Got CIM error %s with return code %s' % (desc, rc)) + logger.error('Got CIM error %s with return code %s', desc, rc) self.err_rc = rc self.err_desc = desc return False except Exception, details: logger.error('Error invoking DestroySystem') - logger.error('Got error %s with exception %s' \ - % (details, details.__class__.__name__)) + logger.error('Got error %s with exception %s', + details, details.__class__.__name__) return False return ret[0] == 0 @@ -580,7 +580,7 @@ except Exception, detail: logger.error("Unable to check guest state") - logger.error("Exception: %s" % detail) + logger.error("Exception: %s", detail) return FAIL return PASS @@ -604,7 +604,7 @@ TimeoutPeriod=time_period) except pywbem.CIMError, (rc, desc): - logger.error('Got CIM error %s with return code %s' % (desc, rc)) + logger.error('Got CIM error %s with return code %s', desc, rc) self.err_rc = rc self.err_desc = desc return FAIL From yunguol at cn.ibm.com Thu Feb 12 05:15:07 2009 From: yunguol at cn.ibm.com (Guo Lian Yun) Date: Thu, 12 Feb 2009 13:15:07 +0800 Subject: [Libvirt-cim] [PATCH] [TEST] Update libraries present to follow the new coding style In-Reply-To: <4993236A.9000105@linux.vnet.ibm.com> Message-ID: libvirt-cim-bounces at redhat.com wrote on 2009-02-12 03:13:46: > > > diff -r 1bb347c22e6e -r dd59a8d6a123 suites/libvirt- > cim/lib/XenKvmLib/const.py > > --- a/suites/libvirt-cim/lib/XenKvmLib/const.py Mon Feb 09 21: > 47:35 2009 -0800 > > +++ b/suites/libvirt-cim/lib/XenKvmLib/const.py Wed Feb 11 00: > 10:44 2009 -0800 > > @@ -140,8 +140,8 @@ > > destroy_and_undefine_all(options.ip, options.virt) > > rc = f() > > except Exception, e: > > - logger.error('%s : %s' % (e.__class__.__name__, e)) > > - logger.error("%s" % traceback.print_exc()) > > + logger.error('%s : %s', e.__class__.__name__, e) > > + logger.error("%s", traceback.print_exc()) > > rc = FAIL > > return rc > > setattr(do_try, 'options', options) > > diff -r 1bb347c22e6e -r dd59a8d6a123 suites/libvirt- > cim/lib/XenKvmLib/test_xml.py > > --- a/suites/libvirt-cim/lib/XenKvmLib/test_xml.py Mon Feb 09 > 21:47:35 2009 -0800 > > +++ b/suites/libvirt-cim/lib/XenKvmLib/test_xml.py Wed Feb 11 > 00:10:44 2009 -0800 > > @@ -48,7 +48,8 @@ > > def testxml(test_dom="domU1", mem = 128, vcpus = 1, mac = default_mac, \ > > disk_file_path = disk_path, disk = "xvda"): > > if not (os.path.exists(kernel_path) and os.path.exists(init_path)) : > > - logger.error("ERROR: Either the kernel image or the > init_path does not exist") > > + logger.error("ERROR: Either the kernel image or the \ > > + init_path does not exist") > > Can you do the following instead (otherwise extra whitespace will be > displayed when the line is printed): > > logger.error("ERROR: Either the kernel image or the" > "init_path does not exist") > > > sys.exit(SKIP) > > test_xml = """ > > > > @@ -76,8 +77,8 @@ > > > > > > > > - """ % ( test_dom, set_uuid(), kernel_path, init_path, > mem*1024, vcpus, mac, \ > > - disk_file_path, disk ) > > + """ % ( test_dom, set_uuid(), kernel_path, init_path, > mem*1024, vcpus, \ > > No need for the \ here. > > > + mac, disk_file_path, disk ) > > return test_xml > > > > def testxml_bl(test_dom="domU1", mem = 128, vcpus = 1, mac = default_mac, \ > > @@ -88,7 +89,8 @@ > > specify either localhost or remote machine ip/name " ) > > sys.exit(SKIP) > > if not (os.path.exists(kernel_path) and os.path.exists(init_path)) : > > - logger.error("ERROR: Either the kernel image or the > init_path does not exist") > > + logger.error("ERROR: Either the kernel image or the \ > > + init_path does not exist") > > > Can you do the following instead (otherwise extra whitespace will be > displayed when the line is printed): > > logger.error("ERROR: Either the kernel image or the" > "init_path does not exist") > > > sys.exit(SKIP) > > test_xml = """ > > > > @@ -125,7 +127,8 @@ > > mac = default_mac, disk_file_path = disk_path, > > disk = "xvda", server = ""): > > if not (os.path.exists(kernel_path) and os.path.exists(init_path)) : > > - logger.error("ERROR: Either the kernel image or the > init_path does not exist") > > + logger.error("ERROR: Either the kernel image or the \ > > + init_path does not exist") > > Same here. > > > sys.exit(SKIP) > > vir_network = net_list(server) > > if len(vir_network) > 0 : > > @@ -140,7 +143,8 @@ > > net_xml, bridge = netxml(server, bridgename, networkname) > > ret = create_vnet(server, net_xml) > > if not ret: > > - logger.error("Failed to create the Virtual Network '% > s'", networkname) > > + logger.error("Failed to create the Virtual Network '%s'", > > + networkname) > > sys.exit(SKIP) > > > > test_xml = """ > > @@ -179,7 +183,8 @@ > > if bridgename in bridges: > > bridge_name = bridgename + str(random.randint(1, 100)) > > if bridge_name in bridges: > > - logger.error("Need to give different bridge name > since it alreay exists") > > + logger.error("Need to give different bridge name since \ > > + it alreay exists") > > Same here. > Fixed all of them on #2 patch. Thanks! > -- > Kaitlin Rupert > IBM Linux Technology Center > kaitlin at linux.vnet.ibm.com > > _______________________________________________ > Libvirt-cim mailing list > Libvirt-cim at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-cim -------------- next part -------------- An HTML attachment was scrubbed... URL: From yunguol at cn.ibm.com Thu Feb 12 05:42:07 2009 From: yunguol at cn.ibm.com (yunguol at cn.ibm.com) Date: Wed, 11 Feb 2009 21:42:07 -0800 Subject: [Libvirt-cim] [PATCH] [TEST] Use commas when passing parameters to logger.info() in Globals.py Message-ID: <9234ee3665774985ff92.1234417327@elm3b197.beaverton.ibm.com> # HG changeset patch # User Guolian Yun # Date 1234417307 28800 # Node ID 9234ee3665774985ff9292f1a64b0ac69bd9e3f4 # Parent 0daae14ce5848711408fdd465fd2c03f20314466 [TEST] Use commas when passing parameters to logger.info() in Globals.py Tested for KVM/LXC with current sources Signed-off-by: Guolian Yun diff -r 0daae14ce584 -r 9234ee366577 lib/CimTest/Globals.py --- a/lib/CimTest/Globals.py Wed Feb 11 21:00:52 2009 -0200 +++ b/lib/CimTest/Globals.py Wed Feb 11 21:41:47 2009 -0800 @@ -98,6 +98,6 @@ logger.info("====%s Log====", CIM_TC) def log_bug(bug_num): - logger.info("Known Bug:%s" % bug_num) + logger.info("Known Bug:%s", bug_num) print "Bug:<%s>" % bug_num From deeptik at linux.vnet.ibm.com Thu Feb 12 08:16:24 2009 From: deeptik at linux.vnet.ibm.com (Deepti B Kalakeri) Date: Thu, 12 Feb 2009 13:46:24 +0530 Subject: [Libvirt-cim] [PATCH] [TEST] Use commas when passing parameters to logger.info() in Globals.py In-Reply-To: <9234ee3665774985ff92.1234417327@elm3b197.beaverton.ibm.com> References: <9234ee3665774985ff92.1234417327@elm3b197.beaverton.ibm.com> Message-ID: <4993DAD8.20603@linux.vnet.ibm.com> +1 yunguol at cn.ibm.com wrote: > # HG changeset patch > # User Guolian Yun > # Date 1234417307 28800 > # Node ID 9234ee3665774985ff9292f1a64b0ac69bd9e3f4 > # Parent 0daae14ce5848711408fdd465fd2c03f20314466 > [TEST] Use commas when passing parameters to logger.info() in Globals.py > > Tested for KVM/LXC with current sources > > Signed-off-by: Guolian Yun > > diff -r 0daae14ce584 -r 9234ee366577 lib/CimTest/Globals.py > --- a/lib/CimTest/Globals.py Wed Feb 11 21:00:52 2009 -0200 > +++ b/lib/CimTest/Globals.py Wed Feb 11 21:41:47 2009 -0800 > @@ -98,6 +98,6 @@ > logger.info("====%s Log====", CIM_TC) > > def log_bug(bug_num): > - logger.info("Known Bug:%s" % bug_num) > + logger.info("Known Bug:%s", bug_num) > print "Bug:<%s>" % bug_num > > > _______________________________________________ > Libvirt-cim mailing list > Libvirt-cim at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-cim > -- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik at linux.vnet.ibm.com From yunguol at cn.ibm.com Thu Feb 12 08:44:01 2009 From: yunguol at cn.ibm.com (yunguol at cn.ibm.com) Date: Thu, 12 Feb 2009 00:44:01 -0800 Subject: [Libvirt-cim] [PATCH] [TEST] Fix DiskRASD and InputRASD verification for LXC Message-ID: <7948c996ba56f86e2791.1234428241@elm3b197.beaverton.ibm.com> # HG changeset patch # User Guolian Yun # Date 1234428234 28800 # Node ID 7948c996ba56f86e2791a0d46d5f69266fa2ed8c # Parent 0daae14ce5848711408fdd465fd2c03f20314466 [TEST] Fix DiskRASD and InputRASD verification for LXC 1) Set test_disk as '/tmp' for LXC 2) Return XFAIL_RC when libvirt allows the user to specify a mouse with "xen" bus type for LXC Tested for KVM/LXC with current sources Signed-off-by: Guolian Yun diff -r 0daae14ce584 -r 7948c996ba56 suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/02_reverse.py --- a/suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/02_reverse.py Wed Feb 11 21:00:52 2009 -0200 +++ b/suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/02_reverse.py Thu Feb 12 00:43:54 2009 -0800 @@ -54,8 +54,9 @@ from XenKvmLib.rasd import InstId_err from CimTest.Globals import logger, CIM_ERROR_ASSOCIATORS from XenKvmLib.const import do_main -from CimTest.ReturnCodes import PASS, FAIL +from CimTest.ReturnCodes import PASS, FAIL, XFAIL_RC +bug_libvirt = "00009" sup_types = ['Xen', 'XenFV', 'KVM', 'LXC'] test_dom = "VSSDC_dom" @@ -66,7 +67,7 @@ def check_rasd_values(id, exp_id): try: if id != exp_id: - InstId_err(assoc_info[i], rasd_list['proc_rasd']) + logger.error("Returned %s instead of %s", id, exp_id) return FAIL except Exception, detail : @@ -127,6 +128,8 @@ elif inst.classname == input_cn: status = check_rasd_values(inst['InstanceID'], rasd_list['input_rasd']) + if status == FAIL and virt == "LXC": + return XFAIL_RC(bug_libvirt) elif inst.classname == grap_cn: status = check_rasd_values(inst['InstanceID'], rasd_list['grap_rasd']) @@ -154,6 +157,8 @@ global test_disk if options.virt == "Xen": test_disk = "xvdb" + elif options.virt == "LXC": + test_disk = "/tmp" else: test_disk = "hdb" From deeptik at linux.vnet.ibm.com Thu Feb 12 09:18:08 2009 From: deeptik at linux.vnet.ibm.com (Deepti B Kalakeri) Date: Thu, 12 Feb 2009 14:48:08 +0530 Subject: [Libvirt-cim] [PATCH] [TEST] #2 Update libraries present to follow the new coding style In-Reply-To: References: Message-ID: <4993E950.2040301@linux.vnet.ibm.com> yunguol at cn.ibm.com wrote: > # HG changeset patch > # User Guolian Yun > # Date 1234415960 28800 > # Node ID ca6b0e4648f7441ffb96ab3f767094338572dba0 > # Parent 0daae14ce5848711408fdd465fd2c03f20314466 > [TEST] #2 Update libraries present to follow the new coding style > > Updates from 1 to 2: > Fixed logger info description to avoid extra whitespace > > 1) Use commas instead of percent signs when passing parameters to logger.error() and logger.info() > 2) Split lines to 80-char width limit > > > Tested for KVM/LXC with current sources > > Signed-off-by: Guolian Yun > > diff -r 0daae14ce584 -r ca6b0e4648f7 suites/libvirt-cim/lib/XenKvmLib/assoc.py > --- a/suites/libvirt-cim/lib/XenKvmLib/assoc.py Wed Feb 11 21:00:52 2009 -0200 > +++ b/suites/libvirt-cim/lib/XenKvmLib/assoc.py Wed Feb 11 21:19:20 2009 -0800 > @@ -139,8 +139,8 @@ > val = eval('exp_inst.' + key) > > if prop_vals[i][1] != val: > - logger.error("%s val mismatch: got %s, expected %s" % (key, > - prop_vals[i][1], val)) > + logger.error("%s val mismatch: got %s, expected %s", key, > + prop_vals[i][1], val) > return FAIL > > return PASS > diff -r 0daae14ce584 -r ca6b0e4648f7 suites/libvirt-cim/lib/XenKvmLib/common_util.py > --- a/suites/libvirt-cim/lib/XenKvmLib/common_util.py Wed Feb 11 21:00:52 2009 -0200 > +++ b/suites/libvirt-cim/lib/XenKvmLib/common_util.py Wed Feb 11 21:19:20 2009 -0800 > @@ -60,7 +60,7 @@ > cs = enumclass.GetInstance(ip, cs_class, keys) > > if cs.Name != domain_name: > - logger.error("VS %s is not found" % domain_name) > + logger.error("VS %s is not found", domain_name) > return (1, cs) > > except Exception, detail: > @@ -104,11 +104,11 @@ > return PASS > return FAIL > > - logger.error('Unexpected rc code %s and description:\n %s' % (rc, desc)) > + logger.error('Unexpected rc code %s and description:\n %s', rc, desc) > return FAIL > > except Exception, details: > - logger.error('Error invoke method `DefineSystem\'. %s' % details) > + logger.error('Error invoke method `DefineSystem\'. %s', details) > return FAIL > > if exp_err != None: > @@ -150,7 +150,7 @@ > TimeoutPeriod=pywbem.cim_types.CIMDateTime(time)) > > except Exception, detail: > - logger.error("Exception: %s" % detail) > + logger.error("Exception: %s", detail) > return FAIL > > return PASS > @@ -189,16 +189,16 @@ > break > > except Exception, detail: > - logger.error("Exception: %s" % detail) > + logger.error("Exception: %s", detail) > return FAIL, dom_cs > > if dom_cs is None or dom_cs.Name != dom: > - logger.error("CS instance not returned for %s." % dom) > + logger.error("CS instance not returned for %s.", dom) > return FAIL, dom_cs > > if dom_cs.EnabledState != exp_state: > - logger.error("EnabledState is %i instead of %i." % (dom_cs.EnabledState, > - exp_state)) > + logger.error("EnabledState is %i instead of %i.", dom_cs.EnabledState, > + exp_state) > logger.error("Try to increase the timeout and run the test again") > return FAIL, dom_cs > > diff -r 0daae14ce584 -r ca6b0e4648f7 suites/libvirt-cim/lib/XenKvmLib/const.py > --- a/suites/libvirt-cim/lib/XenKvmLib/const.py Wed Feb 11 21:00:52 2009 -0200 > +++ b/suites/libvirt-cim/lib/XenKvmLib/const.py Wed Feb 11 21:19:20 2009 -0800 > @@ -140,8 +140,8 @@ > destroy_and_undefine_all(options.ip, options.virt) > rc = f() > except Exception, e: > - logger.error('%s : %s' % (e.__class__.__name__, e)) > - logger.error("%s" % traceback.print_exc()) > + logger.error('%s : %s', e.__class__.__name__, e) > + logger.error("%s", traceback.print_exc()) > rc = FAIL > return rc > setattr(do_try, 'options', options) > diff -r 0daae14ce584 -r ca6b0e4648f7 suites/libvirt-cim/lib/XenKvmLib/test_xml.py > --- a/suites/libvirt-cim/lib/XenKvmLib/test_xml.py Wed Feb 11 21:00:52 2009 -0200 > +++ b/suites/libvirt-cim/lib/XenKvmLib/test_xml.py Wed Feb 11 21:19:20 2009 -0800 > @@ -45,10 +45,11 @@ > > default_mac = '11:22:33:aa:bb:cc' > > -def testxml(test_dom="domU1", mem = 128, vcpus = 1, mac = default_mac, \ > - disk_file_path = disk_path, disk = "xvda"): > +def testxml(test_dom="domU1", mem = 128, vcpus = 1, mac = default_mac, > + disk_file_path = disk_path, disk = "xvda"): > if not (os.path.exists(kernel_path) and os.path.exists(init_path)) : > - logger.error("ERROR: Either the kernel image or the init_path does not exist") > + logger.error("ERROR: Either the kernel image or the" > + "init_path does not exist") > We need a space between "the" and "init_path" . But, I guess we can ignore this since we do not use test_xml.py and the library can be removed if there is no more dependency on it anymore. > sys.exit(SKIP) > test_xml = """ > > @@ -76,19 +77,20 @@ > > > > - """ % ( test_dom, set_uuid(), kernel_path, init_path, mem*1024, vcpus, mac, \ > - disk_file_path, disk ) > + """ % ( test_dom, set_uuid(), kernel_path, init_path, mem*1024, vcpus, > + mac, disk_file_path, disk ) > return test_xml > > -def testxml_bl(test_dom="domU1", mem = 128, vcpus = 1, mac = default_mac, \ > - disk_file_path = disk_path, disk = "xvda", server = "", \ > +def testxml_bl(test_dom="domU1", mem = 128, vcpus = 1, mac = default_mac, > + disk_file_path = disk_path, disk = "xvda", server = "", > gtype = 0): > if server == "": > - logger.error("ERROR: Server info cannot be empty \ > -specify either localhost or remote machine ip/name " ) > + logger.error("ERROR: Server info cannot be empty" > + "specify either localhost or remote machine ip/name ") > sys.exit(SKIP) > if not (os.path.exists(kernel_path) and os.path.exists(init_path)) : > - logger.error("ERROR: Either the kernel image or the init_path does not exist") > + logger.error("ERROR: Either the kernel image or the" > + "init_path does not exist") > same here missing space between "the" and "init_path". > sys.exit(SKIP) > test_xml = """ > > @@ -117,15 +119,16 @@ > > > > - """ % ( test_dom, set_uuid(), bootloader(server, gtype), \ > + """ % ( test_dom, set_uuid(), bootloader(server, gtype), > kernel_path, init_path, mem*1024, vcpus, mac, disk_file_path, disk ) > return test_xml > > -def testxml_bridge(test_dom="domU1", mem = 128, vcpus = 1, \ > - mac = default_mac, disk_file_path = disk_path, > - disk = "xvda", server = ""): > +def testxml_bridge(test_dom="domU1", mem = 128, vcpus = 1, > + mac = default_mac, disk_file_path = disk_path, > + disk = "xvda", server = ""): > if not (os.path.exists(kernel_path) and os.path.exists(init_path)) : > - logger.error("ERROR: Either the kernel image or the init_path does not exist") > + logger.error("ERROR: Either the kernel image or the" > + "init_path does not exist") > same here. > sys.exit(SKIP) > vir_network = net_list(server) > if len(vir_network) > 0 : > @@ -140,7 +143,8 @@ > net_xml, bridge = netxml(server, bridgename, networkname) > ret = create_vnet(server, net_xml) > if not ret: > - logger.error("Failed to create the Virtual Network '%s'", networkname) > + logger.error("Failed to create the Virtual Network '%s'", > + networkname) > sys.exit(SKIP) > > test_xml = """ > @@ -179,7 +183,8 @@ > if bridgename in bridges: > bridge_name = bridgename + str(random.randint(1, 100)) > if bridge_name in bridges: > - logger.error("Need to give different bridge name since it alreay exists") > + logger.error("Need to give different bridge name since" > + "it alreay exists") > same here. > sys.exit(SKIP) > else: > bridge_name = bridgename > diff -r 0daae14ce584 -r ca6b0e4648f7 suites/libvirt-cim/lib/XenKvmLib/vsmigrations.py > --- a/suites/libvirt-cim/lib/XenKvmLib/vsmigrations.py Wed Feb 11 21:00:52 2009 -0200 > +++ b/suites/libvirt-cim/lib/XenKvmLib/vsmigrations.py Wed Feb 11 21:19:20 2009 -0800 > @@ -78,7 +78,7 @@ > DestinationHost=ip) > except Exception, details: > logger.error("Error invoke 'CheckVirtualSystemIsMigratableToHost\'.") > - logger.error("%s" % details) > + logger.error("%s", details) > return FAIL > > if rc == None or rc[1]['IsMigratable'] != True: > @@ -142,7 +142,7 @@ > status = FAIL > > if status != PASS: > - logger.error("%s migrate failed" % test_dom) > + logger.error("%s migrate failed", test_dom) > return FAIL > > return PASS > @@ -155,7 +155,7 @@ > for i in range(0, 50): > if job_inst.JobState == 7: > if job_inst.Status != "Completed": > - logger.error("%s migrate failed" % test_dom) > + logger.error("%s migrate failed", test_dom) > return FAIL > list_after = domain_list(ip) > status = verify_domain_list(list_after, local_migrate, test_dom) > diff -r 0daae14ce584 -r ca6b0e4648f7 suites/libvirt-cim/lib/XenKvmLib/vsms_util.py > --- a/suites/libvirt-cim/lib/XenKvmLib/vsms_util.py Wed Feb 11 21:00:52 2009 -0200 > +++ b/suites/libvirt-cim/lib/XenKvmLib/vsms_util.py Wed Feb 11 21:19:20 2009 -0800 > @@ -28,7 +28,7 @@ > get_bridge_from_network_xml > > def print_mod_err_msg(func_str, details): > - logger.error('Error invoking ModifyRS: %s' % func_str) > + logger.error('Error invoking ModifyRS: %s', func_str) > logger.error(details) > > def mod_disk_res(server, service, cxml, dasd, ndpath): > @@ -37,7 +37,7 @@ > cxml.dumpxml(server) > dpath = cxml.xml_get_disk_source() > if dpath != ndpath: > - logger.error("Got %s, exp %s." % (dpath, ndpath)) > + logger.error("Got %s, exp %s.", dpath, ndpath) > raise Exception('Error changing rs for disk path') > logger.info('good status for disk path') > except Exception, details: > @@ -61,8 +61,8 @@ > name = network_by_bridge(br_name, server, virt) > > if type != ntype or name != net_name: > - logger.error('Got %s, exp %s. Got %s, exp %s' % > - (type, ntype, name, net_name)) > + logger.error('Got %s, exp %s. Got %s, exp %s', > + type, ntype, name, net_name) > raise Exception('Error changing rs for net mac') > logger.info('good status for net mac') > except Exception, details: > @@ -77,7 +77,7 @@ > cxml.dumpxml(server) > mem = cxml.xml_get_mem() > if int(mem) != int(nmem) * 1024: > - logger.error("Got %d, exp %d." % (int(mem), (int(nmem) * 1024))) > + logger.error("Got %d, exp %d.", int(mem), (int(nmem) * 1024)) > raise Exception('Error changing rs for mem') > logger.info('good status for mem') > except Exception, details: > @@ -96,7 +96,7 @@ > logger.info("Unable to get vcpuinfo from virsh, using XML values") > cpu = cxml.xml_get_vcpu() > if int(cpu) != int(ncpu): > - logger.error("Got %d, exp %d." % (int(cpu), int(ncpu))) > + logger.error("Got %d, exp %d.", int(cpu), int(ncpu)) > raise Exception('Error changing rs for vcpu') > logger.info('good status for vcpu') > except Exception, details: > @@ -106,7 +106,7 @@ > return PASS > > def print_add_err_msg(func_str, details): > - logger.error('Error invoking AddRS: %s' % func_str) > + logger.error('Error invoking AddRS: %s', func_str) > logger.error(details) > > def add_disk_res(server, service, cxml, vssd_ref, dasd, attr): > @@ -119,8 +119,8 @@ > dpath = cxml.get_value_xpath( > '/domain/devices/disk/source/@file[. = "%s"]' % attr['src_path']) > if disk_dev != attr['nddev'] or dpath != attr['src_path']: > - logger.error("Got %s, exp %s. Got %s, exp %s" % (disk_dev, > - attr['nddev'], dpath, attr['src_path'])) > + logger.error("Got %s, exp %s. Got %s, exp %s", disk_dev, > + attr['nddev'], dpath, attr['src_path']) > raise Exception('Error adding rs for disk_dev') > logger.info('good status for disk path') > except Exception, details: > @@ -154,8 +154,8 @@ > name = attr['net_name'] > > if mac != attr['nmac'] or name != attr['net_name']: > - logger.error("Got %s, exp %s. Got %s, exp %s." % (mac, > - attr['nmac'], name, attr['net_name'])) > + logger.error("Got %s, exp %s. Got %s, exp %s.", mac, > + attr['nmac'], name, attr['net_name']) > raise Exception('Error adding rs for net mac') > > logger.info('good status for net_mac') > diff -r 0daae14ce584 -r ca6b0e4648f7 suites/libvirt-cim/lib/XenKvmLib/vxml.py > --- a/suites/libvirt-cim/lib/XenKvmLib/vxml.py Wed Feb 11 21:00:52 2009 -0200 > +++ b/suites/libvirt-cim/lib/XenKvmLib/vxml.py Wed Feb 11 21:19:20 2009 -0800 > @@ -525,14 +525,14 @@ > ResourceSettings=res_settings, > ReferenceConfiguration=ref_conf) > except pywbem.CIMError, (rc, desc): > - logger.error('Got CIM error %s with return code %s' % (desc, rc)) > + logger.error('Got CIM error %s with return code %s', desc, rc) > self.err_rc = rc > self.err_desc = desc > return False > > except Exception, details: > - logger.error('Got error %s with exception %s' \ > - % (details, details.__class__.__name__)) > + logger.error('Got error %s with exception %s', > + details, details.__class__.__name__) > return False > > set_uuid(viruuid(self.domain_name, ip, self.virt)) > @@ -546,15 +546,15 @@ > try: > ret = service.DestroySystem(AffectedSystem=target) > except pywbem.CIMError, (rc, desc): > - logger.error('Got CIM error %s with return code %s' % (desc, rc)) > + logger.error('Got CIM error %s with return code %s', desc, rc) > self.err_rc = rc > self.err_desc = desc > return False > > except Exception, details: > logger.error('Error invoking DestroySystem') > - logger.error('Got error %s with exception %s' \ > - % (details, details.__class__.__name__)) > + logger.error('Got error %s with exception %s', > + details, details.__class__.__name__) > return False > return ret[0] == 0 > > @@ -580,7 +580,7 @@ > > except Exception, detail: > logger.error("Unable to check guest state") > - logger.error("Exception: %s" % detail) > + logger.error("Exception: %s", detail) > return FAIL > > return PASS > @@ -604,7 +604,7 @@ > TimeoutPeriod=time_period) > > except pywbem.CIMError, (rc, desc): > - logger.error('Got CIM error %s with return code %s' % (desc, rc)) > + logger.error('Got CIM error %s with return code %s', desc, rc) > self.err_rc = rc > self.err_desc = desc > return FAIL > > _______________________________________________ > Libvirt-cim mailing list > Libvirt-cim at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-cim > -- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik at linux.vnet.ibm.com From deeptik at linux.vnet.ibm.com Thu Feb 12 09:37:22 2009 From: deeptik at linux.vnet.ibm.com (Deepti B Kalakeri) Date: Thu, 12 Feb 2009 15:07:22 +0530 Subject: [Libvirt-cim] [PATCH] [TEST] Fix DiskRASD and InputRASD verification for LXC In-Reply-To: <7948c996ba56f86e2791.1234428241@elm3b197.beaverton.ibm.com> References: <7948c996ba56f86e2791.1234428241@elm3b197.beaverton.ibm.com> Message-ID: <4993EDD2.7080304@linux.vnet.ibm.com> +1 for me. yunguol at cn.ibm.com wrote: > # HG changeset patch > # User Guolian Yun > # Date 1234428234 28800 > # Node ID 7948c996ba56f86e2791a0d46d5f69266fa2ed8c > # Parent 0daae14ce5848711408fdd465fd2c03f20314466 > [TEST] Fix DiskRASD and InputRASD verification for LXC > > 1) Set test_disk as '/tmp' for LXC > 2) Return XFAIL_RC when libvirt allows the user to specify a mouse with "xen" bus type for LXC > > Tested for KVM/LXC with current sources > > Signed-off-by: Guolian Yun > > diff -r 0daae14ce584 -r 7948c996ba56 suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/02_reverse.py > --- a/suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/02_reverse.py Wed Feb 11 21:00:52 2009 -0200 > +++ b/suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/02_reverse.py Thu Feb 12 00:43:54 2009 -0800 > @@ -54,8 +54,9 @@ > from XenKvmLib.rasd import InstId_err > from CimTest.Globals import logger, CIM_ERROR_ASSOCIATORS > from XenKvmLib.const import do_main > -from CimTest.ReturnCodes import PASS, FAIL > +from CimTest.ReturnCodes import PASS, FAIL, XFAIL_RC > > +bug_libvirt = "00009" > sup_types = ['Xen', 'XenFV', 'KVM', 'LXC'] > > test_dom = "VSSDC_dom" > @@ -66,7 +67,7 @@ > def check_rasd_values(id, exp_id): > try: > if id != exp_id: > - InstId_err(assoc_info[i], rasd_list['proc_rasd']) > + logger.error("Returned %s instead of %s", id, exp_id) > return FAIL > > except Exception, detail : > @@ -127,6 +128,8 @@ > elif inst.classname == input_cn: > status = check_rasd_values(inst['InstanceID'], > rasd_list['input_rasd']) > + if status == FAIL and virt == "LXC": > + return XFAIL_RC(bug_libvirt) > elif inst.classname == grap_cn: > status = check_rasd_values(inst['InstanceID'], > rasd_list['grap_rasd']) > @@ -154,6 +157,8 @@ > global test_disk > if options.virt == "Xen": > test_disk = "xvdb" > + elif options.virt == "LXC": > + test_disk = "/tmp" > else: > test_disk = "hdb" > > > _______________________________________________ > Libvirt-cim mailing list > Libvirt-cim at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-cim > -- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik at linux.vnet.ibm.com From yunguol at cn.ibm.com Thu Feb 12 09:54:29 2009 From: yunguol at cn.ibm.com (yunguol at cn.ibm.com) Date: Thu, 12 Feb 2009 01:54:29 -0800 Subject: [Libvirt-cim] [PATCH] [TEST] #3 Update libraries present to follow the new coding style Message-ID: # HG changeset patch # User Guolian Yun # Date 1234432464 28800 # Node ID f457c790dad0152f5b46dec271e865ca15c1d492 # Parent 0daae14ce5848711408fdd465fd2c03f20314466 [TEST] #3 Update libraries present to follow the new coding style Updates from 2 to 3: Add a space in logger info when split lines Updates from 1 to 2: Fixed logger info description to avoid extra whitespace 1) Use commas instead of percent signs when passing parameters to logger.error() and logger.info() 2) Split lines to 80-char width limit Tested for KVM/LXC with current sources Signed-off-by: Guolian Yun diff -r 0daae14ce584 -r f457c790dad0 suites/libvirt-cim/lib/XenKvmLib/assoc.py --- a/suites/libvirt-cim/lib/XenKvmLib/assoc.py Wed Feb 11 21:00:52 2009 -0200 +++ b/suites/libvirt-cim/lib/XenKvmLib/assoc.py Thu Feb 12 01:54:24 2009 -0800 @@ -139,8 +139,8 @@ val = eval('exp_inst.' + key) if prop_vals[i][1] != val: - logger.error("%s val mismatch: got %s, expected %s" % (key, - prop_vals[i][1], val)) + logger.error("%s val mismatch: got %s, expected %s", key, + prop_vals[i][1], val) return FAIL return PASS diff -r 0daae14ce584 -r f457c790dad0 suites/libvirt-cim/lib/XenKvmLib/common_util.py --- a/suites/libvirt-cim/lib/XenKvmLib/common_util.py Wed Feb 11 21:00:52 2009 -0200 +++ b/suites/libvirt-cim/lib/XenKvmLib/common_util.py Thu Feb 12 01:54:24 2009 -0800 @@ -60,7 +60,7 @@ cs = enumclass.GetInstance(ip, cs_class, keys) if cs.Name != domain_name: - logger.error("VS %s is not found" % domain_name) + logger.error("VS %s is not found", domain_name) return (1, cs) except Exception, detail: @@ -104,11 +104,11 @@ return PASS return FAIL - logger.error('Unexpected rc code %s and description:\n %s' % (rc, desc)) + logger.error('Unexpected rc code %s and description:\n %s', rc, desc) return FAIL except Exception, details: - logger.error('Error invoke method `DefineSystem\'. %s' % details) + logger.error('Error invoke method `DefineSystem\'. %s', details) return FAIL if exp_err != None: @@ -150,7 +150,7 @@ TimeoutPeriod=pywbem.cim_types.CIMDateTime(time)) except Exception, detail: - logger.error("Exception: %s" % detail) + logger.error("Exception: %s", detail) return FAIL return PASS @@ -189,16 +189,16 @@ break except Exception, detail: - logger.error("Exception: %s" % detail) + logger.error("Exception: %s", detail) return FAIL, dom_cs if dom_cs is None or dom_cs.Name != dom: - logger.error("CS instance not returned for %s." % dom) + logger.error("CS instance not returned for %s.", dom) return FAIL, dom_cs if dom_cs.EnabledState != exp_state: - logger.error("EnabledState is %i instead of %i." % (dom_cs.EnabledState, - exp_state)) + logger.error("EnabledState is %i instead of %i.", dom_cs.EnabledState, + exp_state) logger.error("Try to increase the timeout and run the test again") return FAIL, dom_cs diff -r 0daae14ce584 -r f457c790dad0 suites/libvirt-cim/lib/XenKvmLib/const.py --- a/suites/libvirt-cim/lib/XenKvmLib/const.py Wed Feb 11 21:00:52 2009 -0200 +++ b/suites/libvirt-cim/lib/XenKvmLib/const.py Thu Feb 12 01:54:24 2009 -0800 @@ -140,8 +140,8 @@ destroy_and_undefine_all(options.ip, options.virt) rc = f() except Exception, e: - logger.error('%s : %s' % (e.__class__.__name__, e)) - logger.error("%s" % traceback.print_exc()) + logger.error('%s : %s', e.__class__.__name__, e) + logger.error("%s", traceback.print_exc()) rc = FAIL return rc setattr(do_try, 'options', options) diff -r 0daae14ce584 -r f457c790dad0 suites/libvirt-cim/lib/XenKvmLib/test_xml.py --- a/suites/libvirt-cim/lib/XenKvmLib/test_xml.py Wed Feb 11 21:00:52 2009 -0200 +++ b/suites/libvirt-cim/lib/XenKvmLib/test_xml.py Thu Feb 12 01:54:24 2009 -0800 @@ -45,10 +45,11 @@ default_mac = '11:22:33:aa:bb:cc' -def testxml(test_dom="domU1", mem = 128, vcpus = 1, mac = default_mac, \ - disk_file_path = disk_path, disk = "xvda"): +def testxml(test_dom="domU1", mem = 128, vcpus = 1, mac = default_mac, + disk_file_path = disk_path, disk = "xvda"): if not (os.path.exists(kernel_path) and os.path.exists(init_path)) : - logger.error("ERROR: Either the kernel image or the init_path does not exist") + logger.error("ERROR: Either the kernel image or the " + "init_path does not exist") sys.exit(SKIP) test_xml = """ @@ -76,19 +77,20 @@ - """ % ( test_dom, set_uuid(), kernel_path, init_path, mem*1024, vcpus, mac, \ - disk_file_path, disk ) + """ % ( test_dom, set_uuid(), kernel_path, init_path, mem*1024, vcpus, + mac, disk_file_path, disk ) return test_xml -def testxml_bl(test_dom="domU1", mem = 128, vcpus = 1, mac = default_mac, \ - disk_file_path = disk_path, disk = "xvda", server = "", \ +def testxml_bl(test_dom="domU1", mem = 128, vcpus = 1, mac = default_mac, + disk_file_path = disk_path, disk = "xvda", server = "", gtype = 0): if server == "": - logger.error("ERROR: Server info cannot be empty \ -specify either localhost or remote machine ip/name " ) + logger.error("ERROR: Server info cannot be empty " + "specify either localhost or remote machine ip/name ") sys.exit(SKIP) if not (os.path.exists(kernel_path) and os.path.exists(init_path)) : - logger.error("ERROR: Either the kernel image or the init_path does not exist") + logger.error("ERROR: Either the kernel image or the " + "init_path does not exist") sys.exit(SKIP) test_xml = """ @@ -117,15 +119,16 @@ - """ % ( test_dom, set_uuid(), bootloader(server, gtype), \ + """ % ( test_dom, set_uuid(), bootloader(server, gtype), kernel_path, init_path, mem*1024, vcpus, mac, disk_file_path, disk ) return test_xml -def testxml_bridge(test_dom="domU1", mem = 128, vcpus = 1, \ - mac = default_mac, disk_file_path = disk_path, - disk = "xvda", server = ""): +def testxml_bridge(test_dom="domU1", mem = 128, vcpus = 1, + mac = default_mac, disk_file_path = disk_path, + disk = "xvda", server = ""): if not (os.path.exists(kernel_path) and os.path.exists(init_path)) : - logger.error("ERROR: Either the kernel image or the init_path does not exist") + logger.error("ERROR: Either the kernel image or the " + "init_path does not exist") sys.exit(SKIP) vir_network = net_list(server) if len(vir_network) > 0 : @@ -140,7 +143,8 @@ net_xml, bridge = netxml(server, bridgename, networkname) ret = create_vnet(server, net_xml) if not ret: - logger.error("Failed to create the Virtual Network '%s'", networkname) + logger.error("Failed to create the Virtual Network '%s'", + networkname) sys.exit(SKIP) test_xml = """ @@ -179,7 +183,8 @@ if bridgename in bridges: bridge_name = bridgename + str(random.randint(1, 100)) if bridge_name in bridges: - logger.error("Need to give different bridge name since it alreay exists") + logger.error("Need to give different bridge name since " + "it alreay exists") sys.exit(SKIP) else: bridge_name = bridgename diff -r 0daae14ce584 -r f457c790dad0 suites/libvirt-cim/lib/XenKvmLib/vsmigrations.py --- a/suites/libvirt-cim/lib/XenKvmLib/vsmigrations.py Wed Feb 11 21:00:52 2009 -0200 +++ b/suites/libvirt-cim/lib/XenKvmLib/vsmigrations.py Thu Feb 12 01:54:24 2009 -0800 @@ -78,7 +78,7 @@ DestinationHost=ip) except Exception, details: logger.error("Error invoke 'CheckVirtualSystemIsMigratableToHost\'.") - logger.error("%s" % details) + logger.error("%s", details) return FAIL if rc == None or rc[1]['IsMigratable'] != True: @@ -142,7 +142,7 @@ status = FAIL if status != PASS: - logger.error("%s migrate failed" % test_dom) + logger.error("%s migrate failed", test_dom) return FAIL return PASS @@ -155,7 +155,7 @@ for i in range(0, 50): if job_inst.JobState == 7: if job_inst.Status != "Completed": - logger.error("%s migrate failed" % test_dom) + logger.error("%s migrate failed", test_dom) return FAIL list_after = domain_list(ip) status = verify_domain_list(list_after, local_migrate, test_dom) diff -r 0daae14ce584 -r f457c790dad0 suites/libvirt-cim/lib/XenKvmLib/vsms_util.py --- a/suites/libvirt-cim/lib/XenKvmLib/vsms_util.py Wed Feb 11 21:00:52 2009 -0200 +++ b/suites/libvirt-cim/lib/XenKvmLib/vsms_util.py Thu Feb 12 01:54:24 2009 -0800 @@ -28,7 +28,7 @@ get_bridge_from_network_xml def print_mod_err_msg(func_str, details): - logger.error('Error invoking ModifyRS: %s' % func_str) + logger.error('Error invoking ModifyRS: %s', func_str) logger.error(details) def mod_disk_res(server, service, cxml, dasd, ndpath): @@ -37,7 +37,7 @@ cxml.dumpxml(server) dpath = cxml.xml_get_disk_source() if dpath != ndpath: - logger.error("Got %s, exp %s." % (dpath, ndpath)) + logger.error("Got %s, exp %s.", dpath, ndpath) raise Exception('Error changing rs for disk path') logger.info('good status for disk path') except Exception, details: @@ -61,8 +61,8 @@ name = network_by_bridge(br_name, server, virt) if type != ntype or name != net_name: - logger.error('Got %s, exp %s. Got %s, exp %s' % - (type, ntype, name, net_name)) + logger.error('Got %s, exp %s. Got %s, exp %s', + type, ntype, name, net_name) raise Exception('Error changing rs for net mac') logger.info('good status for net mac') except Exception, details: @@ -77,7 +77,7 @@ cxml.dumpxml(server) mem = cxml.xml_get_mem() if int(mem) != int(nmem) * 1024: - logger.error("Got %d, exp %d." % (int(mem), (int(nmem) * 1024))) + logger.error("Got %d, exp %d.", int(mem), (int(nmem) * 1024)) raise Exception('Error changing rs for mem') logger.info('good status for mem') except Exception, details: @@ -96,7 +96,7 @@ logger.info("Unable to get vcpuinfo from virsh, using XML values") cpu = cxml.xml_get_vcpu() if int(cpu) != int(ncpu): - logger.error("Got %d, exp %d." % (int(cpu), int(ncpu))) + logger.error("Got %d, exp %d.", int(cpu), int(ncpu)) raise Exception('Error changing rs for vcpu') logger.info('good status for vcpu') except Exception, details: @@ -106,7 +106,7 @@ return PASS def print_add_err_msg(func_str, details): - logger.error('Error invoking AddRS: %s' % func_str) + logger.error('Error invoking AddRS: %s', func_str) logger.error(details) def add_disk_res(server, service, cxml, vssd_ref, dasd, attr): @@ -119,8 +119,8 @@ dpath = cxml.get_value_xpath( '/domain/devices/disk/source/@file[. = "%s"]' % attr['src_path']) if disk_dev != attr['nddev'] or dpath != attr['src_path']: - logger.error("Got %s, exp %s. Got %s, exp %s" % (disk_dev, - attr['nddev'], dpath, attr['src_path'])) + logger.error("Got %s, exp %s. Got %s, exp %s", disk_dev, + attr['nddev'], dpath, attr['src_path']) raise Exception('Error adding rs for disk_dev') logger.info('good status for disk path') except Exception, details: @@ -154,8 +154,8 @@ name = attr['net_name'] if mac != attr['nmac'] or name != attr['net_name']: - logger.error("Got %s, exp %s. Got %s, exp %s." % (mac, - attr['nmac'], name, attr['net_name'])) + logger.error("Got %s, exp %s. Got %s, exp %s.", mac, + attr['nmac'], name, attr['net_name']) raise Exception('Error adding rs for net mac') logger.info('good status for net_mac') diff -r 0daae14ce584 -r f457c790dad0 suites/libvirt-cim/lib/XenKvmLib/vxml.py --- a/suites/libvirt-cim/lib/XenKvmLib/vxml.py Wed Feb 11 21:00:52 2009 -0200 +++ b/suites/libvirt-cim/lib/XenKvmLib/vxml.py Thu Feb 12 01:54:24 2009 -0800 @@ -525,14 +525,14 @@ ResourceSettings=res_settings, ReferenceConfiguration=ref_conf) except pywbem.CIMError, (rc, desc): - logger.error('Got CIM error %s with return code %s' % (desc, rc)) + logger.error('Got CIM error %s with return code %s', desc, rc) self.err_rc = rc self.err_desc = desc return False except Exception, details: - logger.error('Got error %s with exception %s' \ - % (details, details.__class__.__name__)) + logger.error('Got error %s with exception %s', + details, details.__class__.__name__) return False set_uuid(viruuid(self.domain_name, ip, self.virt)) @@ -546,15 +546,15 @@ try: ret = service.DestroySystem(AffectedSystem=target) except pywbem.CIMError, (rc, desc): - logger.error('Got CIM error %s with return code %s' % (desc, rc)) + logger.error('Got CIM error %s with return code %s', desc, rc) self.err_rc = rc self.err_desc = desc return False except Exception, details: logger.error('Error invoking DestroySystem') - logger.error('Got error %s with exception %s' \ - % (details, details.__class__.__name__)) + logger.error('Got error %s with exception %s', + details, details.__class__.__name__) return False return ret[0] == 0 @@ -580,7 +580,7 @@ except Exception, detail: logger.error("Unable to check guest state") - logger.error("Exception: %s" % detail) + logger.error("Exception: %s", detail) return FAIL return PASS @@ -604,7 +604,7 @@ TimeoutPeriod=time_period) except pywbem.CIMError, (rc, desc): - logger.error('Got CIM error %s with return code %s' % (desc, rc)) + logger.error('Got CIM error %s with return code %s', desc, rc) self.err_rc = rc self.err_desc = desc return FAIL From yunguol at cn.ibm.com Thu Feb 12 09:41:05 2009 From: yunguol at cn.ibm.com (Guo Lian Yun) Date: Thu, 12 Feb 2009 17:41:05 +0800 Subject: [Libvirt-cim] [PATCH] [TEST] #2 Update libraries present to follow the new coding style In-Reply-To: <4993E950.2040301@linux.vnet.ibm.com> Message-ID: libvirt-cim-bounces at redhat.com wrote on 2009-02-12 17:18:08: > > > yunguol at cn.ibm.com wrote: > > # HG changeset patch > > # User Guolian Yun > > # Date 1234415960 28800 > > # Node ID ca6b0e4648f7441ffb96ab3f767094338572dba0 > > # Parent 0daae14ce5848711408fdd465fd2c03f20314466 > > [TEST] #2 Update libraries present to follow the new coding style > > > > Updates from 1 to 2: > > Fixed logger info description to avoid extra whitespace > > > > 1) Use commas instead of percent signs when passing parameters to > logger.error() and logger.info() > > 2) Split lines to 80-char width limit > > > > > > Tested for KVM/LXC with current sources > > > > Signed-off-by: Guolian Yun > > > > diff -r 0daae14ce584 -r ca6b0e4648f7 suites/libvirt- > cim/lib/XenKvmLib/assoc.py > > --- a/suites/libvirt-cim/lib/XenKvmLib/assoc.py Wed Feb 11 21: > 00:52 2009 -0200 > > +++ b/suites/libvirt-cim/lib/XenKvmLib/assoc.py Wed Feb 11 21: > 19:20 2009 -0800 > > @@ -139,8 +139,8 @@ > > val = eval('exp_inst.' + key) > > > > if prop_vals[i][1] != val: > > - logger.error("%s val mismatch: got %s, expected %s" % (key, > > - prop_vals[i][1], val)) > > + logger.error("%s val mismatch: got %s, expected %s", key, > > + prop_vals[i][1], val) > > return FAIL > > > > return PASS > > diff -r 0daae14ce584 -r ca6b0e4648f7 suites/libvirt- > cim/lib/XenKvmLib/common_util.py > > --- a/suites/libvirt-cim/lib/XenKvmLib/common_util.py Wed Feb 11 > 21:00:52 2009 -0200 > > +++ b/suites/libvirt-cim/lib/XenKvmLib/common_util.py Wed Feb 11 > 21:19:20 2009 -0800 > > @@ -60,7 +60,7 @@ > > cs = enumclass.GetInstance(ip, cs_class, keys) > > > > if cs.Name != domain_name: > > - logger.error("VS %s is not found" % domain_name) > > + logger.error("VS %s is not found", domain_name) > > return (1, cs) > > > > except Exception, detail: > > @@ -104,11 +104,11 @@ > > return PASS > > return FAIL > > > > - logger.error('Unexpected rc code %s and description:\n % > s' % (rc, desc)) > > + logger.error('Unexpected rc code %s and description:\n % > s', rc, desc) > > return FAIL > > > > except Exception, details: > > - logger.error('Error invoke method `DefineSystem\'. %s' % details) > > + logger.error('Error invoke method `DefineSystem\'. %s', details) > > return FAIL > > > > if exp_err != None: > > @@ -150,7 +150,7 @@ > > TimeoutPeriod=pywbem.cim_types. > CIMDateTime(time)) > > > > except Exception, detail: > > - logger.error("Exception: %s" % detail) > > + logger.error("Exception: %s", detail) > > return FAIL > > > > return PASS > > @@ -189,16 +189,16 @@ > > break > > > > except Exception, detail: > > - logger.error("Exception: %s" % detail) > > + logger.error("Exception: %s", detail) > > return FAIL, dom_cs > > > > if dom_cs is None or dom_cs.Name != dom: > > - logger.error("CS instance not returned for %s." % dom) > > + logger.error("CS instance not returned for %s.", dom) > > return FAIL, dom_cs > > > > if dom_cs.EnabledState != exp_state: > > - logger.error("EnabledState is %i instead of %i." % > (dom_cs.EnabledState, > > - exp_state)) > > + logger.error("EnabledState is %i instead of %i.", dom_cs. > EnabledState, > > + exp_state) > > logger.error("Try to increase the timeout and run the test again") > > return FAIL, dom_cs > > > > diff -r 0daae14ce584 -r ca6b0e4648f7 suites/libvirt- > cim/lib/XenKvmLib/const.py > > --- a/suites/libvirt-cim/lib/XenKvmLib/const.py Wed Feb 11 21: > 00:52 2009 -0200 > > +++ b/suites/libvirt-cim/lib/XenKvmLib/const.py Wed Feb 11 21: > 19:20 2009 -0800 > > @@ -140,8 +140,8 @@ > > destroy_and_undefine_all(options.ip, options.virt) > > rc = f() > > except Exception, e: > > - logger.error('%s : %s' % (e.__class__.__name__, e)) > > - logger.error("%s" % traceback.print_exc()) > > + logger.error('%s : %s', e.__class__.__name__, e) > > + logger.error("%s", traceback.print_exc()) > > rc = FAIL > > return rc > > setattr(do_try, 'options', options) > > diff -r 0daae14ce584 -r ca6b0e4648f7 suites/libvirt- > cim/lib/XenKvmLib/test_xml.py > > --- a/suites/libvirt-cim/lib/XenKvmLib/test_xml.py Wed Feb 11 > 21:00:52 2009 -0200 > > +++ b/suites/libvirt-cim/lib/XenKvmLib/test_xml.py Wed Feb 11 > 21:19:20 2009 -0800 > > @@ -45,10 +45,11 @@ > > > > default_mac = '11:22:33:aa:bb:cc' > > > > -def testxml(test_dom="domU1", mem = 128, vcpus = 1, mac = default_mac, \ > > - disk_file_path = disk_path, disk = "xvda"): > > +def testxml(test_dom="domU1", mem = 128, vcpus = 1, mac = default_mac, > > + disk_file_path = disk_path, disk = "xvda"): > > if not (os.path.exists(kernel_path) and os.path.exists(init_path)) : > > - logger.error("ERROR: Either the kernel image or the > init_path does not exist") > > + logger.error("ERROR: Either the kernel image or the" > > + "init_path does not exist") > > > We need a space between "the" and "init_path" . > But, I guess we can ignore this since we do not use test_xml.py and the > library can be removed if there is no more dependency on it anymore. I think it's bettet to fix it now. #3 patch on the way. > > sys.exit(SKIP) > > test_xml = """ > > > > @@ -76,19 +77,20 @@ > > > > > > > > - """ % ( test_dom, set_uuid(), kernel_path, init_path, > mem*1024, vcpus, mac, \ > > - disk_file_path, disk ) > > + """ % ( test_dom, set_uuid(), kernel_path, init_path, mem*1024, vcpus, > > + mac, disk_file_path, disk ) > > return test_xml > > > > -def testxml_bl(test_dom="domU1", mem = 128, vcpus = 1, mac = default_mac, \ > > - disk_file_path = disk_path, disk = "xvda", server = "", \ > > +def testxml_bl(test_dom="domU1", mem = 128, vcpus = 1, mac = default_mac, > > + disk_file_path = disk_path, disk = "xvda", server = "", > > gtype = 0): > > if server == "": > > - logger.error("ERROR: Server info cannot be empty \ > > -specify either localhost or remote machine ip/name " ) > > + logger.error("ERROR: Server info cannot be empty" > > + "specify either localhost or remote machine ip/name ") > > sys.exit(SKIP) > > if not (os.path.exists(kernel_path) and os.path.exists(init_path)) : > > - logger.error("ERROR: Either the kernel image or the > init_path does not exist") > > + logger.error("ERROR: Either the kernel image or the" > > + "init_path does not exist") > > > same here missing space between "the" and "init_path". Fixed. > > sys.exit(SKIP) > > test_xml = """ > > > > @@ -117,15 +119,16 @@ > > > > > > > > - """ % ( test_dom, set_uuid(), bootloader(server, gtype), \ > > + """ % ( test_dom, set_uuid(), bootloader(server, gtype), > > kernel_path, init_path, mem*1024, vcpus, mac, > disk_file_path, disk ) > > return test_xml > > > > -def testxml_bridge(test_dom="domU1", mem = 128, vcpus = 1, \ > > - mac = default_mac, disk_file_path = disk_path, > > - disk = "xvda", server = ""): > > +def testxml_bridge(test_dom="domU1", mem = 128, vcpus = 1, > > + mac = default_mac, disk_file_path = disk_path, > > + disk = "xvda", server = ""): > > if not (os.path.exists(kernel_path) and os.path.exists(init_path)) : > > - logger.error("ERROR: Either the kernel image or the > init_path does not exist") > > + logger.error("ERROR: Either the kernel image or the" > > + "init_path does not exist") > > > same here. Fixed. > > sys.exit(SKIP) > > vir_network = net_list(server) > > if len(vir_network) > 0 : > > @@ -140,7 +143,8 @@ > > net_xml, bridge = netxml(server, bridgename, networkname) > > ret = create_vnet(server, net_xml) > > if not ret: > > - logger.error("Failed to create the Virtual Network '% > s'", networkname) > > + logger.error("Failed to create the Virtual Network '%s'", > > + networkname) > > sys.exit(SKIP) > > > > test_xml = """ > > @@ -179,7 +183,8 @@ > > if bridgename in bridges: > > bridge_name = bridgename + str(random.randint(1, 100)) > > if bridge_name in bridges: > > - logger.error("Need to give different bridge name > since it alreay exists") > > + logger.error("Need to give different bridge name since" > > + "it alreay exists") > > > same here. Fixed. > > sys.exit(SKIP) > > else: > > bridge_name = bridgename > > diff -r 0daae14ce584 -r ca6b0e4648f7 suites/libvirt- > cim/lib/XenKvmLib/vsmigrations.py > > --- a/suites/libvirt-cim/lib/XenKvmLib/vsmigrations.py Wed Feb > 11 21:00:52 2009 -0200 > > +++ b/suites/libvirt-cim/lib/XenKvmLib/vsmigrations.py Wed Feb > 11 21:19:20 2009 -0800 > > @@ -78,7 +78,7 @@ > > > DestinationHost=ip) > > except Exception, details: > > logger.error("Error invoke > 'CheckVirtualSystemIsMigratableToHost\'.") > > - logger.error("%s" % details) > > + logger.error("%s", details) > > return FAIL > > > > if rc == None or rc[1]['IsMigratable'] != True: > > @@ -142,7 +142,7 @@ > > status = FAIL > > > > if status != PASS: > > - logger.error("%s migrate failed" % test_dom) > > + logger.error("%s migrate failed", test_dom) > > return FAIL > > > > return PASS > > @@ -155,7 +155,7 @@ > > for i in range(0, 50): > > if job_inst.JobState == 7: > > if job_inst.Status != "Completed": > > - logger.error("%s migrate failed" % test_dom) > > + logger.error("%s migrate failed", test_dom) > > return FAIL > > list_after = domain_list(ip) > > status = verify_domain_list(list_after, > local_migrate, test_dom) > > diff -r 0daae14ce584 -r ca6b0e4648f7 suites/libvirt- > cim/lib/XenKvmLib/vsms_util.py > > --- a/suites/libvirt-cim/lib/XenKvmLib/vsms_util.py Wed Feb 11 > 21:00:52 2009 -0200 > > +++ b/suites/libvirt-cim/lib/XenKvmLib/vsms_util.py Wed Feb 11 > 21:19:20 2009 -0800 > > @@ -28,7 +28,7 @@ > > get_bridge_from_network_xml > > > > def print_mod_err_msg(func_str, details): > > - logger.error('Error invoking ModifyRS: %s' % func_str) > > + logger.error('Error invoking ModifyRS: %s', func_str) > > logger.error(details) > > > > def mod_disk_res(server, service, cxml, dasd, ndpath): > > @@ -37,7 +37,7 @@ > > cxml.dumpxml(server) > > dpath = cxml.xml_get_disk_source() > > if dpath != ndpath: > > - logger.error("Got %s, exp %s." % (dpath, ndpath)) > > + logger.error("Got %s, exp %s.", dpath, ndpath) > > raise Exception('Error changing rs for disk path') > > logger.info('good status for disk path') > > except Exception, details: > > @@ -61,8 +61,8 @@ > > name = network_by_bridge(br_name, server, virt) > > > > if type != ntype or name != net_name: > > - logger.error('Got %s, exp %s. Got %s, exp %s' % > > - (type, ntype, name, net_name)) > > + logger.error('Got %s, exp %s. Got %s, exp %s', > > + type, ntype, name, net_name) > > raise Exception('Error changing rs for net mac') > > logger.info('good status for net mac') > > except Exception, details: > > @@ -77,7 +77,7 @@ > > cxml.dumpxml(server) > > mem = cxml.xml_get_mem() > > if int(mem) != int(nmem) * 1024: > > - logger.error("Got %d, exp %d." % (int(mem), > (int(nmem) * 1024))) > > + logger.error("Got %d, exp %d.", int(mem), (int(nmem) * 1024)) > > raise Exception('Error changing rs for mem') > > logger.info('good status for mem') > > except Exception, details: > > @@ -96,7 +96,7 @@ > > logger.info("Unable to get vcpuinfo from virsh, using > XML values") > > cpu = cxml.xml_get_vcpu() > > if int(cpu) != int(ncpu): > > - logger.error("Got %d, exp %d." % (int(cpu), int(ncpu))) > > + logger.error("Got %d, exp %d.", int(cpu), int(ncpu)) > > raise Exception('Error changing rs for vcpu') > > logger.info('good status for vcpu') > > except Exception, details: > > @@ -106,7 +106,7 @@ > > return PASS > > > > def print_add_err_msg(func_str, details): > > - logger.error('Error invoking AddRS: %s' % func_str) > > + logger.error('Error invoking AddRS: %s', func_str) > > logger.error(details) > > > > def add_disk_res(server, service, cxml, vssd_ref, dasd, attr): > > @@ -119,8 +119,8 @@ > > dpath = cxml.get_value_xpath( > > '/domain/devices/disk/source/@file[. = "%s"]' % > attr['src_path']) > > if disk_dev != attr['nddev'] or dpath != attr['src_path']: > > - logger.error("Got %s, exp %s. Got %s, exp %s" % (disk_dev, > > - attr['nddev'], dpath, attr['src_path'])) > > + logger.error("Got %s, exp %s. Got %s, exp %s", disk_dev, > > + attr['nddev'], dpath, attr['src_path']) > > raise Exception('Error adding rs for disk_dev') > > logger.info('good status for disk path') > > except Exception, details: > > @@ -154,8 +154,8 @@ > > name = attr['net_name'] > > > > if mac != attr['nmac'] or name != attr['net_name']: > > - logger.error("Got %s, exp %s. Got %s, exp %s." % (mac, > > - attr['nmac'], name, attr['net_name'])) > > + logger.error("Got %s, exp %s. Got %s, exp %s.", mac, > > + attr['nmac'], name, attr['net_name']) > > raise Exception('Error adding rs for net mac') > > > > logger.info('good status for net_mac') > > diff -r 0daae14ce584 -r ca6b0e4648f7 suites/libvirt- > cim/lib/XenKvmLib/vxml.py > > --- a/suites/libvirt-cim/lib/XenKvmLib/vxml.py Wed Feb 11 21:00: > 52 2009 -0200 > > +++ b/suites/libvirt-cim/lib/XenKvmLib/vxml.py Wed Feb 11 21:19: > 20 2009 -0800 > > @@ -525,14 +525,14 @@ > > ResourceSettings=res_settings, > > ReferenceConfiguration=ref_conf) > > except pywbem.CIMError, (rc, desc): > > - logger.error('Got CIM error %s with return code %s' % > (desc, rc)) > > + logger.error('Got CIM error %s with return code %s', desc, rc) > > self.err_rc = rc > > self.err_desc = desc > > return False > > > > except Exception, details: > > - logger.error('Got error %s with exception %s' \ > > - % (details, details.__class__.__name__)) > > + logger.error('Got error %s with exception %s', > > + details, details.__class__.__name__) > > return False > > > > set_uuid(viruuid(self.domain_name, ip, self.virt)) > > @@ -546,15 +546,15 @@ > > try: > > ret = service.DestroySystem(AffectedSystem=target) > > except pywbem.CIMError, (rc, desc): > > - logger.error('Got CIM error %s with return code %s' % > (desc, rc)) > > + logger.error('Got CIM error %s with return code %s', desc, rc) > > self.err_rc = rc > > self.err_desc = desc > > return False > > > > except Exception, details: > > logger.error('Error invoking DestroySystem') > > - logger.error('Got error %s with exception %s' \ > > - % (details, details.__class__.__name__)) > > + logger.error('Got error %s with exception %s', > > + details, details.__class__.__name__) > > return False > > return ret[0] == 0 > > > > @@ -580,7 +580,7 @@ > > > > except Exception, detail: > > logger.error("Unable to check guest state") > > - logger.error("Exception: %s" % detail) > > + logger.error("Exception: %s", detail) > > return FAIL > > > > return PASS > > @@ -604,7 +604,7 @@ > > TimeoutPeriod=time_period) > > > > except pywbem.CIMError, (rc, desc): > > - logger.error('Got CIM error %s with return code %s' % > (desc, rc)) > > + logger.error('Got CIM error %s with return code %s', desc, rc) > > self.err_rc = rc > > self.err_desc = desc > > return FAIL > > > > _______________________________________________ > > Libvirt-cim mailing list > > Libvirt-cim at redhat.com > > https://www.redhat.com/mailman/listinfo/libvirt-cim > > > > -- > Thanks and Regards, > Deepti B. Kalakeri > IBM Linux Technology Center > deeptik at linux.vnet.ibm.com > > _______________________________________________ > Libvirt-cim mailing list > Libvirt-cim at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-cim -------------- next part -------------- An HTML attachment was scrubbed... URL: From deeptik at linux.vnet.ibm.com Thu Feb 12 10:45:59 2009 From: deeptik at linux.vnet.ibm.com (Deepti B Kalakeri) Date: Thu, 12 Feb 2009 16:15:59 +0530 Subject: [Libvirt-cim] [PATCH] [TEST] #3 Update libraries present to follow the new coding style In-Reply-To: References: Message-ID: <4993FDE7.8070802@linux.vnet.ibm.com> +1 for me. -- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik at linux.vnet.ibm.com From kaitlin at linux.vnet.ibm.com Thu Feb 12 20:11:00 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Thu, 12 Feb 2009 12:11:00 -0800 Subject: [Libvirt-cim] [PATCH] [TEST] Fix DiskRASD and InputRASD verification for LXC In-Reply-To: <7948c996ba56f86e2791.1234428241@elm3b197.beaverton.ibm.com> References: <7948c996ba56f86e2791.1234428241@elm3b197.beaverton.ibm.com> Message-ID: <49948254.7050406@linux.vnet.ibm.com> yunguol at cn.ibm.com wrote: > # HG changeset patch > # User Guolian Yun > # Date 1234428234 28800 > # Node ID 7948c996ba56f86e2791a0d46d5f69266fa2ed8c > # Parent 0daae14ce5848711408fdd465fd2c03f20314466 > [TEST] Fix DiskRASD and InputRASD verification for LXC > > 1) Set test_disk as '/tmp' for LXC > 2) Return XFAIL_RC when libvirt allows the user to specify a mouse with "xen" bus type for LXC > > Tested for KVM/LXC with current sources > > Signed-off-by: Guolian Yun > > diff -r 0daae14ce584 -r 7948c996ba56 suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/02_reverse.py > --- a/suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/02_reverse.py Wed Feb 11 21:00:52 2009 -0200 > +++ b/suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/02_reverse.py Thu Feb 12 00:43:54 2009 -0800 > @@ -54,8 +54,9 @@ > from XenKvmLib.rasd import InstId_err Can you remove this? This function is no longer used in this test case.. -- Kaitlin Rupert IBM Linux Technology Center kaitlin at linux.vnet.ibm.com From yunguol at cn.ibm.com Fri Feb 13 02:24:45 2009 From: yunguol at cn.ibm.com (yunguol at cn.ibm.com) Date: Thu, 12 Feb 2009 18:24:45 -0800 Subject: [Libvirt-cim] [PATCH] [TEST] #2 Fix DiskRASD and InputRASD verification for LXC Message-ID: # HG changeset patch # User Guolian Yun # Date 1234491879 28800 # Node ID f5ef41b6e30f104813132be50f405afdef80cc8a # Parent 1c9b73e578833fd9fb6d496ebc506e04d52213cf [TEST] #2 Fix DiskRASD and InputRASD verification for LXC Updates from 1 to 2: Remove import lib of "from XenKvmLib.rasd import InstId_err", that is no longer used in this test case 1) Set test_disk as '/tmp' for LXC 2) Return XFAIL_RC when libvirt allows the user to specify a mouse with "xen" bus type for LXC Tested for KVM/LXC with current sources Signed-off-by: Guolian Yun diff -r 1c9b73e57883 -r f5ef41b6e30f suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/02_reverse.py --- a/suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/02_reverse.py Thu Feb 12 01:54:24 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemSettingDataComponent/02_reverse.py Thu Feb 12 18:24:39 2009 -0800 @@ -51,11 +51,11 @@ from XenKvmLib.test_doms import destroy_and_undefine_all from XenKvmLib import vxml from XenKvmLib.classes import get_typed_class -from XenKvmLib.rasd import InstId_err from CimTest.Globals import logger, CIM_ERROR_ASSOCIATORS from XenKvmLib.const import do_main -from CimTest.ReturnCodes import PASS, FAIL +from CimTest.ReturnCodes import PASS, FAIL, XFAIL_RC +bug_libvirt = "00009" sup_types = ['Xen', 'XenFV', 'KVM', 'LXC'] test_dom = "VSSDC_dom" @@ -66,7 +66,7 @@ def check_rasd_values(id, exp_id): try: if id != exp_id: - InstId_err(assoc_info[i], rasd_list['proc_rasd']) + logger.error("Returned %s instead of %s", id, exp_id) return FAIL except Exception, detail : @@ -127,6 +127,8 @@ elif inst.classname == input_cn: status = check_rasd_values(inst['InstanceID'], rasd_list['input_rasd']) + if status == FAIL and virt == "LXC": + return XFAIL_RC(bug_libvirt) elif inst.classname == grap_cn: status = check_rasd_values(inst['InstanceID'], rasd_list['grap_rasd']) @@ -154,6 +156,8 @@ global test_disk if options.virt == "Xen": test_disk = "xvdb" + elif options.virt == "LXC": + test_disk = "/tmp" else: test_disk = "hdb" From yunguol at cn.ibm.com Fri Feb 13 02:06:38 2009 From: yunguol at cn.ibm.com (Guo Lian Yun) Date: Fri, 13 Feb 2009 10:06:38 +0800 Subject: [Libvirt-cim] [PATCH] [TEST] Fix DiskRASD and InputRASD verification for LXC In-Reply-To: <49948254.7050406@linux.vnet.ibm.com> Message-ID: libvirt-cim-bounces at redhat.com wrote on 2009-02-13 04:11:00: > yunguol at cn.ibm.com wrote: > > # HG changeset patch > > # User Guolian Yun > > # Date 1234428234 28800 > > # Node ID 7948c996ba56f86e2791a0d46d5f69266fa2ed8c > > # Parent 0daae14ce5848711408fdd465fd2c03f20314466 > > [TEST] Fix DiskRASD and InputRASD verification for LXC > > > > 1) Set test_disk as '/tmp' for LXC > > 2) Return XFAIL_RC when libvirt allows the user to specify a mouse > with "xen" bus type for LXC > > > > Tested for KVM/LXC with current sources > > > > Signed-off-by: Guolian Yun > > > > diff -r 0daae14ce584 -r 7948c996ba56 suites/libvirt- > cim/cimtest/VirtualSystemSettingDataComponent/02_reverse.py > > --- a/suites/libvirt- > cim/cimtest/VirtualSystemSettingDataComponent/02_reverse.py Wed > Feb 11 21:00:52 2009 -0200 > > +++ b/suites/libvirt- > cim/cimtest/VirtualSystemSettingDataComponent/02_reverse.py Thu > Feb 12 00:43:54 2009 -0800 > > @@ -54,8 +54,9 @@ > > from XenKvmLib.rasd import InstId_err > > > Can you remove this? This function is no longer used in this test case.. Good catch. I will fix it on the next patch. Thanks! > > -- > Kaitlin Rupert > IBM Linux Technology Center > kaitlin at linux.vnet.ibm.com > > _______________________________________________ > Libvirt-cim mailing list > Libvirt-cim at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-cim -------------- next part -------------- An HTML attachment was scrubbed... URL: From deeptik at linux.vnet.ibm.com Fri Feb 13 07:31:20 2009 From: deeptik at linux.vnet.ibm.com (Deepti B. Kalakeri) Date: Thu, 12 Feb 2009 23:31:20 -0800 Subject: [Libvirt-cim] [PATCH] [TEST] Fixing VSMS 09_procrasd_persist.py tc Message-ID: <2a980012c95deb888c86.1234510280@elm3b43.beaverton.ibm.com> # HG changeset patch # User Deepti B. Kalakeri # Date 1234510269 28800 # Node ID 2a980012c95deb888c86072476277a73ffd4587e # Parent 1c9b73e578833fd9fb6d496ebc506e04d52213cf [TEST] Fixing VSMS 09_procrasd_persist.py tc. 1) Added description to the tc. 2) Removed unnecessary import stmts 3) Changed the tc to use cim_define(), cim_start(), cim_destroy(). 4) Added the check to verify the VirtualQuantity 5) Aligned the tc to fit in 80 columns Added verification of the Linmit, Weight, VirtualQuantity persistance over sequence of define/start/destroy sequence. Tested for KVM/Xen/LXC with current sources, KVM with F9 rpm. This tc fails with KVM on F10. Signed-off-by: Deepti B. Kalakeri diff -r 1c9b73e57883 -r 2a980012c95d suites/libvirt-cim/cimtest/VirtualSystemManagementService/09_procrasd_persist.py --- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/09_procrasd_persist.py Thu Feb 12 01:54:24 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/09_procrasd_persist.py Thu Feb 12 23:31:09 2009 -0800 @@ -19,56 +19,88 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # +# Purpose: +# Verify values for VirtualQuantity, limit and weight of ProcRASD are +# persisted properly over define/start/destroy sequence of the guest. +# +# Steps: +# 1) Get the default rasds +# 2) Set the ProcRASD VirtualQuantity, Weight, Limit, InstanceID values +# 3) Define the guest using the configuration +# 4) Verify the proc settings of the guest +# 5) start the guest and verify the proc settings of the guest +# 6) Destroy and undefine the guest +# Repeat the Sequence 3 - 6 in loop to see that +# the VirtualQuantity, limit and weight are maintained as passed to +# via the ProcRASD. +# import sys -import pywbem -from XenKvmLib.common_util import call_request_state_change, \ - poll_for_state_change -from XenKvmLib import vsms -from XenKvmLib.enumclass import GetInstance -from XenKvmLib.common_util import get_typed_class -from VirtLib import utils +from pywbem.cim_types import Uint64, Uint32 +from XenKvmLib.vxml import get_class +from XenKvmLib.enumclass import EnumInstances +from XenKvmLib.classes import get_typed_class, inst_to_mof from CimTest.Globals import logger from XenKvmLib.const import do_main from CimTest.ReturnCodes import FAIL, PASS -from XenKvmLib.test_doms import destroy_and_undefine_domain +from XenKvmLib.rasd import get_default_rasds sup_types = ['Xen', 'XenFV', 'KVM'] -default_dom = 'rstest_domain' +test_dom = 'procrasd_persist_dom' -nvcpu = 2 +nvcpu = 3 weight = 124 -limit = 256 +limit = 512 -REQUESTED_STATE = 2 -TIME = "00000000000000.000000:000" +def setup_guest(ip, virt, cxml, prasd_cn): + rasds = get_default_rasds(ip, virt) + rasd_list= { prasd_cn : None } + + for rasd in rasds: + if rasd.classname == prasd_cn: + rasd['InstanceID'] = '%s/proc' %test_dom + rasd['VirtualQuantity'] = Uint64(nvcpu) + rasd['Weight'] = Uint32(weight) + rasd['Limit'] = Uint64(limit) + rasd_list[prasd_cn] = inst_to_mof(rasd) -def setup_rasd_mof(ip, vtype): - vssd, rasd = vsms.default_vssd_rasd_str(default_dom, virt=vtype) + if rasd_list[prasd_cn] is None: + logger.error("Unable to set template ProcRASD") + return FAIL - class_pasd = vsms.get_pasd_class(vtype) - proc_inst = class_pasd(default_dom, nvcpu, weight, limit) - proc_mof = proc_inst.mof() + cxml.set_res_settings(rasd_list) + ret = cxml.cim_define(ip) + if not ret: + logger.error("Unable to define %s ", test_dom) + return FAIL - for i in range(len(rasd)): - if "ProcResourceAllocationSettingData" in rasd[i]: - rasd[i] = proc_mof - return PASS, vssd, rasd + return PASS - return FAIL, vssd, rasd +def check_proc_sched(server, cn_name): + try: + proc_rasd = None + rasds = EnumInstances(server, cn_name, ret_cim_inst=True) + for rasd in rasds: + if test_dom in rasd["InstanceID"]: + proc_rasd = rasd -def check_proc_sched(server, virt): - try: - key_list = {"InstanceID" : '%s/proc' %default_dom} - cn_name = get_typed_class(virt, 'ProcResourceAllocationSettingData') - proc = GetInstance(server, cn_name, key_list) + if proc_rasd == None: + logger.error("Did not find test RASD on server") + return FAIL - if proc.Limit != limit: - logger.error("Limit is %i, expected %i", proc.Limit, limit) + if proc_rasd["VirtualQuantity"] != nvcpu: + logger.error("VirtualQuantity is %i, expected %i", + proc_rasd["VirtualQuantity"], nvcpu) return FAIL - if proc.Weight != weight: - logger.error("Weight is %i, expected %i", proc.Weight, weight) + if proc_rasd["Limit"] != limit: + logger.error("Limit is %i, expected %i", + proc_rasd["Limit"], limit) + return FAIL + + if proc_rasd["Weight"] != weight: + logger.error("Weight is %i, expected %i", + proc_rasd["Weight"], weight) return FAIL except Exception, details: @@ -79,40 +111,50 @@ def check_proc_sched(server, virt): @do_main(sup_types) def main(): - options = main.options + options = main.options + virt = options.virt + server = options.ip + + cxml = get_class(virt)(test_dom) + prasd_cn = get_typed_class(virt, "ProcResourceAllocationSettingData") + dom_define = dom_start = False + try: + for count in range(3): + status = setup_guest(server, virt, cxml, prasd_cn) + if status != PASS: + return status + + dom_define = True + status = check_proc_sched(server, prasd_cn) + if status != PASS: + raise Exception("CPU scheduling not set properly for " + " defined dom: %s" % test_dom) + + status = cxml.cim_start(server) + if status != PASS: + raise Exception("Unable to start %s " % test_dom) - status, vssd, rasd = setup_rasd_mof(options.ip, options.virt) - if status != PASS: - return status + dom_start = True + status = check_proc_sched(server, prasd_cn) + if status != PASS: + raise Exception("CPU scheduling not set properly for the dom: " + "%s" % test_dom) - try: - service = vsms.get_vsms_class(options.virt)(options.ip) - service.DefineSystem(SystemSettings=vssd, - ResourceSettings=rasd, - ReferenceConfiguration=' ') + cxml.cim_destroy(server) + dom_start = False - rc = call_request_state_change(default_dom, options.ip, - REQUESTED_STATE, TIME, options.virt) - if rc != 0: - raise Exception("Unable to start %s using RequestedStateChange()" % - default_dom) - - status, dom_cs = poll_for_state_change(options.ip, options.virt, - default_dom, REQUESTED_STATE) - if status != PASS: - raise Exception("%s didn't change state as expected" % default_dom) - - status = check_proc_sched(options.ip, options.virt) - if status != PASS: - raise Exception("%s CPU scheduling not set properly" % default_dom) - - status = PASS + cxml.undefine(server) + dom_define = False except Exception, details: logger.error("Exception: details %s", details) status = FAIL - destroy_and_undefine_domain(default_dom, options.ip, options.virt) + if dom_start == True: + cxml.cim_destroy(server) + + if dom_define == True: + cxml.undefine(server) return status From deeptik at linux.vnet.ibm.com Fri Feb 13 12:41:14 2009 From: deeptik at linux.vnet.ibm.com (Deepti B Kalakeri) Date: Fri, 13 Feb 2009 18:11:14 +0530 Subject: [Libvirt-cim] ProcRASD VirtualQuantity Field issue for KVM on F10. Message-ID: <49956A6A.9030905@linux.vnet.ibm.com> Hi, The VirtualQuantity field of the ProcRASD is not getting set properly in case of a *running* KVM guest on F10 with the libvirt-0.5.0-1.fc10.x86_64. While this is not the case for running KVM guest on F9 with libvirt-0.4.4-2.fc9.x86_64. Also, there is no problem with a *running* Xen guest. The following is the error message in the KVM debug output: libvir: Domain error : invalid argument in virDomainGetVcpus libvir: Domain error : invalid argument in virDomainGetVcpus This is coming from the call to virDomainGetVcpus() from the domain_vcpu_count() function defined in libxkutil/misc_util.c file. I verified the signature of the virDomainGetVcpus() with the one given on libvirt.org and it matches. The problem is only when the guest is started, else for the defined guest the VirtualQuantity field of the ProcRASD is set to the vcpu value used. _Steps to reproduce: _1) Apply the patch "Fixing VSMS 09_procrasd_persist.py tc" and run Or 2) use the following xml: procrasd_persist destroy destroy ca793060-a7d0-42d9-9bd2-1db7149f2fe1 hvm 131072 131072 1 1) Define the guest using the above xml. 2) Verify the VirtualQuantity field of the ProcRASD. It will be set to the value given in the vcpu. 3) start the guest. 4) Verify the VirtualQuantity field of the ProcRASD. It will be set to 0 and not to the value given in the vcpu. I am not sure if this is expected behavior for KVM only or if Xen guest should also behave in the same way, or is it a probable regression in the latest libvirt library on F10. I suspect the libvirt library though. Any thoughts ??? -- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik at linux.vnet.ibm.com From deeptik at linux.vnet.ibm.com Fri Feb 13 14:39:46 2009 From: deeptik at linux.vnet.ibm.com (Deepti B Kalakeri) Date: Fri, 13 Feb 2009 20:09:46 +0530 Subject: [Libvirt-cim] Re: Test Run Summary (Feb 09 2009): Xen on Red Hat Enterprise Linux Server release 5.2 Beta (Tikanga) with Pegasus In-Reply-To: <498FD3B8.2020604@linux.vnet.ibm.com> References: <498FD097.4030605@linux.vnet.ibm.com> <498FD3B8.2020604@linux.vnet.ibm.com> Message-ID: <49958632.6080102@linux.vnet.ibm.com> Deepti B Kalakeri wrote: > > > Deepti B Kalakeri wrote: >> ================================================= >> Test Run Summary (Feb 09 2009): Xen on Red Hat Enterprise Linux >> Server release 5.2 Beta (Tikanga) with Pegasus >> ================================================= >> Distro: Red Hat Enterprise Linux Server release 5.2 Beta (Tikanga) >> Kernel: 2.6.18-88.el5xen >> libvirt: 0.3.3 >> Hypervisor: Xen 3.1.0 >> CIMOM: Pegasus 2.7.0 >> Libvirt-cim revision: 811 >> Libvirt-cim changeset: 72dc446be12c >> Cimtest revision: 615 >> Cimtest changeset: 263e285881ac >> ================================================= >> FAIL : 6 >> XFAIL : 1 >> SKIP : 3 >> PASS : 132 >> ----------------- >> Total : 142 >> ================================================= >> FAIL Test Summary: >> ElementConforms - 01_forward.py: FAIL >> HostSystem - 03_hs_to_settdefcap.py: FAIL > Fix for the above 2 are under progress. >> KVMRedirectionSAP - 01_enum_KVMredSAP.py: FAIL > This test case fails for Xen. The tc is not able to assign the port > num values given in the XML configuration. This tc passes with the latest RHEL5.3. > >> RASD - 01_verify_rasd_fields.py: FAIL > Passed when run manually. >> SettingsDefineCapabilities - 01_forward.py: FAIL > Fix for this is under progress. >> VirtualSystemMigrationService - 02_host_migrate_type.py: FAIL >> >> > -- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik at linux.vnet.ibm.com From kaitlin at linux.vnet.ibm.com Fri Feb 13 18:27:17 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Fri, 13 Feb 2009 10:27:17 -0800 Subject: [Libvirt-cim] [PATCH] [TEST] Create default LXC mount directory as part of image build process In-Reply-To: <9efbee1b4a6dbf8525e3.1233956335@localhost.localdomain> References: <9efbee1b4a6dbf8525e3.1233956335@localhost.localdomain> Message-ID: <4995BB85.3030407@linux.vnet.ibm.com> Kaitlin Rupert wrote: > # HG changeset patch > # User Kaitlin Rupert > # Date 1233956315 28800 > # Node ID 9efbee1b4a6dbf8525e3d2694e38a5937955af7d > # Parent 263e285881acde9b99849cd133399298219c9d65 > [TEST] Create default LXC mount directory as part of image build process > > Signed-off-by: Kaitlin Rupert > > diff -r 263e285881ac -r 9efbee1b4a6d suites/libvirt-cim/images/Makefile Can someone review this patch please? Thanks! -- Kaitlin Rupert IBM Linux Technology Center kaitlin at linux.vnet.ibm.com From kaitlin at linux.vnet.ibm.com Fri Feb 13 23:29:24 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Fri, 13 Feb 2009 15:29:24 -0800 Subject: [Libvirt-cim] ProcRASD VirtualQuantity Field issue for KVM on F10. In-Reply-To: <49956A6A.9030905@linux.vnet.ibm.com> References: <49956A6A.9030905@linux.vnet.ibm.com> Message-ID: <49960254.3010706@linux.vnet.ibm.com> Deepti B Kalakeri wrote: > Hi, > > The VirtualQuantity field of the ProcRASD is not getting set properly in > case of a *running* KVM guest on F10 with the libvirt-0.5.0-1.fc10.x86_64. > While this is not the case for running KVM guest on F9 with > libvirt-0.4.4-2.fc9.x86_64. Also, there is no problem with a *running* > Xen guest. This doesn't happen with F9 because the domain_vcpu_count() doesn't exist in the 0.5.1-5 version of the providers. > > The following is the error message in the KVM debug output: > > libvir: Domain error : invalid argument in virDomainGetVcpus > libvir: Domain error : invalid argument in virDomainGetVcpus > > This is coming from the call to virDomainGetVcpus() from the > domain_vcpu_count() function defined in libxkutil/misc_util.c file. > I verified the signature of the virDomainGetVcpus() with the one given > on libvirt.org and it matches. > > The problem is only when the guest is started, else for the defined > guest the VirtualQuantity field of the ProcRASD is set to the vcpu > value used. > > I am not sure if this is expected behavior for KVM only or if Xen guest > should also behave in the same way, or is it a probable regression in > the latest libvirt library on F10. > I suspect the libvirt library though. Any thoughts ??? > I tracked the issue down on a F10 system (with libvirt-0.6.0-3). We are passing NULL for the cpumaps parameter: count = virDomainGetVcpus(dom, info, max, NULL, 0); but libvirt receives a non-NULL value. This causes the following check in virDomainGetVcpus() to fail: if (cpumaps != NULL && maplen < 1) { However, I'm not sure why libvirt is receiving a non-NULL value when we're clearly sending NULL... I'm following up with the libvirt team. -- Kaitlin Rupert IBM Linux Technology Center kaitlin at linux.vnet.ibm.com From kaitlin at linux.vnet.ibm.com Sat Feb 14 00:05:13 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Fri, 13 Feb 2009 16:05:13 -0800 Subject: [Libvirt-cim] [PATCH] [TEST] Fixing VSMS 09_procrasd_persist.py tc In-Reply-To: <2a980012c95deb888c86.1234510280@elm3b43.beaverton.ibm.com> References: <2a980012c95deb888c86.1234510280@elm3b43.beaverton.ibm.com> Message-ID: <49960AB9.806@linux.vnet.ibm.com> > + try: > + proc_rasd = None > + rasds = EnumInstances(server, cn_name, ret_cim_inst=True) > + for rasd in rasds: > + if test_dom in rasd["InstanceID"]: > + proc_rasd = rasd Break from the loop once you've found the RASD you're looking for. Looks good otherwise! -- Kaitlin Rupert IBM Linux Technology Center kaitlin at linux.vnet.ibm.com From yunguol at cn.ibm.com Mon Feb 16 02:28:06 2009 From: yunguol at cn.ibm.com (Guo Lian Yun) Date: Mon, 16 Feb 2009 10:28:06 +0800 Subject: [Libvirt-cim] Test Run Summary (Feb 16 2009): LXC on Fedora release 9.90.1 (Rawhide) with sfcb Message-ID: ================================================= Test Run Summary (Feb 16 2009): LXC on Fedora release 9.90.1 (Rawhide) with sfcb ================================================= Distro: Fedora release 9.90.1 (Rawhide) Kernel: 2.6.27-0.323.rc6.fc10.x86_64 libvirt: 0.4.5 Hypervisor: QEMU 0.9.1 CIMOM: sfcb sfcbd 1.3.3preview Libvirt-cim revision: 811 Libvirt-cim changeset: 72dc446be12c Cimtest revision: 625 Cimtest changeset: f5ef41b6e30f ================================================= FAIL : 1 XFAIL : 9 SKIP : 32 PASS : 104 ----------------- Total : 146 ================================================= FAIL Test Summary: ElementConforms - 01_forward.py: FAIL ================================================= XFAIL Test Summary: ComputerSystem - 06_paused_active_suspend.py: XFAIL ComputerSystem - 23_pause_pause.py: XFAIL ComputerSystem - 32_start_reboot.py: XFAIL ComputerSystem - 33_suspend_reboot.py: XFAIL HostSystem - 02_hostsystem_to_rasd.py: XFAIL HostedDependency - 03_enabledstate.py: XFAIL VSSD - 04_vssd_to_rasd.py: XFAIL VirtualSystemManagementService - 15_mod_system_settings.py: XFAIL VirtualSystemSettingDataComponent - 02_reverse.py: XFAIL ================================================= SKIP Test Summary: ComputerSystem - 02_nosystems.py: SKIP ComputerSystem - 41_cs_to_settingdefinestate.py: SKIP ComputerSystemIndication - 01_created_indication.py: SKIP ElementAllocatedFromPool - 03_reverse_errs.py: SKIP ElementAllocatedFromPool - 04_forward_errs.py: SKIP LogicalDisk - 01_disk.py: SKIP LogicalDisk - 02_nodevs.py: SKIP LogicalDisk - 03_ld_gi_errs.py: SKIP NetworkPort - 01_netport.py: SKIP NetworkPort - 02_np_gi_errors.py: SKIP NetworkPort - 03_user_netport.py: SKIP Processor - 01_processor.py: SKIP Processor - 02_definesys_get_procs.py: SKIP Processor - 03_proc_gi_errs.py: SKIP RASD - 04_disk_rasd_size.py: SKIP RASD - 05_disk_rasd_emu_type.py: SKIP ResourceAllocationFromPool - 05_RAPF_err.py: SKIP ResourcePoolConfigurationService - 03_CreateResourcePool.py: SKIP ResourcePoolConfigurationService - 04_CreateChildResourcePool.py: SKIP ResourcePoolConfigurationService - 05_AddResourcesToResourcePool.py: SKIP ResourcePoolConfigurationService - 06_RemoveResourcesFromResourcePool.py: SKIP ResourcePoolConfigurationService - 07_DeleteResourcePool.py: SKIP VSSD - 02_bootldr.py: SKIP VirtualSystemManagementService - 06_addresource.py: SKIP VirtualSystemManagementService - 08_modifyresource.py: SKIP VirtualSystemManagementService - 09_procrasd_persist.py: SKIP VirtualSystemManagementService - 11_define_memrasdunits.py: SKIP VirtualSystemManagementService - 12_referenced_config.py: SKIP VirtualSystemManagementService - 13_refconfig_additional_devs.py: SKIP VirtualSystemMigrationService - 01_migratable_host.py: SKIP VirtualSystemMigrationService - 02_host_migrate_type.py: SKIP VirtualSystemMigrationService - 05_migratable_host_errs.py: SKIP ================================================= Full report: -------------------------------------------------------------------- AllocationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- AllocationCapabilities - 02_alloccap_gi_errs.py: PASS -------------------------------------------------------------------- ComputerSystem - 01_enum.py: PASS -------------------------------------------------------------------- ComputerSystem - 02_nosystems.py: SKIP ERROR - System has defined domains; unable to run -------------------------------------------------------------------- ComputerSystem - 03_defineVS.py: PASS -------------------------------------------------------------------- ComputerSystem - 04_defineStartVS.py: PASS -------------------------------------------------------------------- ComputerSystem - 05_activate_defined_start.py: PASS -------------------------------------------------------------------- ComputerSystem - 06_paused_active_suspend.py: XFAIL ERROR - Got CIM error Unable to pause domain: this function is not supported by the hypervisor: virDomainSuspend with return code 1 ERROR - Exception variable: Unable pause dom 'DomST1' InvokeMethod(RequestStateChange): Unable to pause domain: this function is not supported by the hypervisor: virDomainSuspend Bug:<00011> -------------------------------------------------------------------- ComputerSystem - 22_define_suspend.py: PASS -------------------------------------------------------------------- ComputerSystem - 23_pause_pause.py: XFAIL ERROR - Got CIM error Unable to pause domain: this function is not supported by the hypervisor: virDomainSuspend with return code 1 ERROR - Exception: 'Unable pause dom 'cs_test_domain'' InvokeMethod(RequestStateChange): Unable to pause domain: this function is not supported by the hypervisor: virDomainSuspend Bug:<00011> -------------------------------------------------------------------- ComputerSystem - 27_define_pause_errs.py: PASS -------------------------------------------------------------------- ComputerSystem - 32_start_reboot.py: XFAIL ERROR - Got CIM error Unable to reboot domain: this function is not supported by the hypervisor: virDomainReboot with return code 1 ERROR - Exception: Unable reboot dom 'cs_test_domain' InvokeMethod(RequestStateChange): Unable to reboot domain: this function is not supported by the hypervisor: virDomainReboot Bug:<00005> -------------------------------------------------------------------- ComputerSystem - 33_suspend_reboot.py: XFAIL ERROR - Got CIM error State not supported with return code 7 ERROR - Exception: Unable Suspend dom 'test_domain' InvokeMethod(RequestStateChange): State not supported Bug:<00012> -------------------------------------------------------------------- ComputerSystem - 35_start_reset.py: PASS -------------------------------------------------------------------- ComputerSystem - 40_RSC_start.py: PASS -------------------------------------------------------------------- ComputerSystem - 41_cs_to_settingdefinestate.py: SKIP -------------------------------------------------------------------- ComputerSystem - 42_cs_gi_errs.py: PASS -------------------------------------------------------------------- ComputerSystemIndication - 01_created_indication.py: SKIP -------------------------------------------------------------------- ElementAllocatedFromPool - 01_forward.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 02_reverse.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 03_reverse_errs.py: SKIP -------------------------------------------------------------------- ElementAllocatedFromPool - 04_forward_errs.py: SKIP -------------------------------------------------------------------- ElementCapabilities - 01_forward.py: PASS -------------------------------------------------------------------- ElementCapabilities - 02_reverse.py: PASS -------------------------------------------------------------------- ElementCapabilities - 03_forward_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 04_reverse_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 05_hostsystem_cap.py: PASS -------------------------------------------------------------------- ElementConforms - 01_forward.py: FAIL ERROR - verify_fields() exception: u'LXC_AllocationCapabilities' ERROR - Exception: Failed to verify instance Class not found -------------------------------------------------------------------- ElementConforms - 02_reverse.py: PASS -------------------------------------------------------------------- ElementConforms - 03_ectp_fwd_errs.py: PASS -------------------------------------------------------------------- ElementConforms - 04_ectp_rev_errs.py: PASS -------------------------------------------------------------------- ElementSettingData - 01_forward.py: PASS -------------------------------------------------------------------- ElementSettingData - 03_esd_assoc_with_rasd_errs.py: PASS -------------------------------------------------------------------- EnabledLogicalElementCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- EnabledLogicalElementCapabilities - 02_elecap_gi_errs.py: PASS -------------------------------------------------------------------- HostSystem - 01_enum.py: PASS -------------------------------------------------------------------- HostSystem - 02_hostsystem_to_rasd.py: XFAIL ERROR - InstanceID Mismatch ERROR - Returned CrossClass_GuestDom/mouse:xen instead of CrossClass_GuestDom/mouse:usb Class not found Bug:<00009> -------------------------------------------------------------------- HostSystem - 03_hs_to_settdefcap.py: PASS -------------------------------------------------------------------- HostSystem - 04_hs_to_EAPF.py: PASS -------------------------------------------------------------------- HostSystem - 05_hs_gi_errs.py: PASS -------------------------------------------------------------------- HostSystem - 06_hs_to_vsms.py: PASS -------------------------------------------------------------------- HostedAccessPoint - 01_forward.py: PASS -------------------------------------------------------------------- HostedAccessPoint - 02_reverse.py: PASS -------------------------------------------------------------------- HostedDependency - 01_forward.py: PASS -------------------------------------------------------------------- HostedDependency - 02_reverse.py: PASS -------------------------------------------------------------------- HostedDependency - 03_enabledstate.py: XFAIL ERROR - Exception: (1, u'Unable to pause domain: this function is not supported by the hypervisor: virDomainSuspend') ERROR - Failed to suspend the dom: hd_domain1 InvokeMethod(RequestStateChange): Unable to pause domain: this function is not supported by the hypervisor: virDomainSuspend Bug:<00011> -------------------------------------------------------------------- HostedDependency - 04_reverse_errs.py: PASS -------------------------------------------------------------------- HostedResourcePool - 01_forward.py: PASS -------------------------------------------------------------------- HostedResourcePool - 02_reverse.py: PASS -------------------------------------------------------------------- HostedResourcePool - 03_forward_errs.py: PASS -------------------------------------------------------------------- HostedResourcePool - 04_reverse_errs.py: PASS -------------------------------------------------------------------- HostedService - 01_forward.py: PASS -------------------------------------------------------------------- HostedService - 02_reverse.py: PASS -------------------------------------------------------------------- HostedService - 03_forward_errs.py: PASS -------------------------------------------------------------------- HostedService - 04_reverse_errs.py: PASS -------------------------------------------------------------------- KVMRedirectionSAP - 01_enum_KVMredSAP.py: PASS -------------------------------------------------------------------- LogicalDisk - 01_disk.py: SKIP -------------------------------------------------------------------- LogicalDisk - 02_nodevs.py: SKIP ERROR - System has defined domains; unable to run -------------------------------------------------------------------- LogicalDisk - 03_ld_gi_errs.py: SKIP -------------------------------------------------------------------- Memory - 01_memory.py: PASS -------------------------------------------------------------------- Memory - 02_defgetmem.py: PASS -------------------------------------------------------------------- Memory - 03_mem_gi_errs.py: PASS -------------------------------------------------------------------- NetworkPort - 01_netport.py: SKIP -------------------------------------------------------------------- NetworkPort - 02_np_gi_errors.py: SKIP -------------------------------------------------------------------- NetworkPort - 03_user_netport.py: SKIP -------------------------------------------------------------------- Processor - 01_processor.py: SKIP -------------------------------------------------------------------- Processor - 02_definesys_get_procs.py: SKIP -------------------------------------------------------------------- Processor - 03_proc_gi_errs.py: SKIP -------------------------------------------------------------------- Profile - 01_enum.py: PASS -------------------------------------------------------------------- Profile - 02_profile_to_elec.py: PASS -------------------------------------------------------------------- Profile - 03_rprofile_gi_errs.py: PASS -------------------------------------------------------------------- RASD - 01_verify_rasd_fields.py: PASS -------------------------------------------------------------------- RASD - 02_enum.py: PASS -------------------------------------------------------------------- RASD - 03_rasd_errs.py: PASS -------------------------------------------------------------------- RASD - 04_disk_rasd_size.py: SKIP -------------------------------------------------------------------- RASD - 05_disk_rasd_emu_type.py: SKIP -------------------------------------------------------------------- RedirectionService - 01_enum_crs.py: PASS -------------------------------------------------------------------- RedirectionService - 02_enum_crscap.py: PASS -------------------------------------------------------------------- RedirectionService - 03_RedirectionSAP_errs.py: PASS -------------------------------------------------------------------- ReferencedProfile - 01_verify_refprof.py: PASS -------------------------------------------------------------------- ReferencedProfile - 02_refprofile_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 01_forward.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 02_reverse.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 03_forward_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 04_reverse_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 05_RAPF_err.py: SKIP -------------------------------------------------------------------- ResourcePool - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePool - 02_rp_gi_errors.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationCapabilities - 02_rpcc_gi_errs.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 02_rcps_gi_errors.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 03_CreateResourcePool.py: SKIP -------------------------------------------------------------------- ResourcePoolConfigurationService - 04_CreateChildResourcePool.py: SKIP -------------------------------------------------------------------- ResourcePoolConfigurationService - 05_AddResourcesToResourcePool.py: SKIP -------------------------------------------------------------------- ResourcePoolConfigurationService - 06_RemoveResourcesFromResourcePool.py: SKIP -------------------------------------------------------------------- ResourcePoolConfigurationService - 07_DeleteResourcePool.py: SKIP -------------------------------------------------------------------- ServiceAccessBySAP - 01_forward.py: PASS -------------------------------------------------------------------- ServiceAccessBySAP - 02_reverse.py: PASS -------------------------------------------------------------------- SettingsDefine - 01_forward.py: PASS -------------------------------------------------------------------- SettingsDefine - 02_reverse.py: PASS -------------------------------------------------------------------- SettingsDefine - 03_sds_fwd_errs.py: PASS -------------------------------------------------------------------- SettingsDefine - 04_sds_rev_errs.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 01_forward.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 03_forward_errs.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 04_forward_vsmsdata.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 05_reverse_vsmcap.py: PASS -------------------------------------------------------------------- SystemDevice - 01_forward.py: PASS -------------------------------------------------------------------- SystemDevice - 02_reverse.py: PASS -------------------------------------------------------------------- SystemDevice - 03_fwderrs.py: PASS -------------------------------------------------------------------- VSSD - 01_enum.py: PASS -------------------------------------------------------------------- VSSD - 02_bootldr.py: SKIP -------------------------------------------------------------------- VSSD - 03_vssd_gi_errs.py: PASS -------------------------------------------------------------------- VSSD - 04_vssd_to_rasd.py: XFAIL ERROR - InstanceID Mismatch ERROR - Returned VSSDC_dom/mouse:xen instead of VSSDC_dom/mouse:usb Bug:<00009> -------------------------------------------------------------------- VirtualSystemManagementCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemManagementCapabilities - 02_vsmcap_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 01_definesystem_name.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 02_destroysystem.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 03_definesystem_ess.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 04_definesystem_ers.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 05_destroysystem_neg.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 06_addresource.py: SKIP -------------------------------------------------------------------- VirtualSystemManagementService - 07_addresource_neg.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 08_modifyresource.py: SKIP -------------------------------------------------------------------- VirtualSystemManagementService - 09_procrasd_persist.py: SKIP -------------------------------------------------------------------- VirtualSystemManagementService - 10_hv_version.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 11_define_memrasdunits.py: SKIP -------------------------------------------------------------------- VirtualSystemManagementService - 12_referenced_config.py: SKIP -------------------------------------------------------------------- VirtualSystemManagementService - 13_refconfig_additional_devs.py: SKIP -------------------------------------------------------------------- VirtualSystemManagementService - 14_define_sys_disk.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 15_mod_system_settings.py: XFAIL ERROR - rstest_domain not updated properly. ERROR - Exp AutomaticRecoveryAction=3, got 2 Bug:<00008> -------------------------------------------------------------------- VirtualSystemMigrationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationCapabilities - 02_vsmc_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationService - 01_migratable_host.py: SKIP -------------------------------------------------------------------- VirtualSystemMigrationService - 02_host_migrate_type.py: SKIP -------------------------------------------------------------------- VirtualSystemMigrationService - 05_migratable_host_errs.py: SKIP -------------------------------------------------------------------- VirtualSystemMigrationSettingData - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationSettingData - 02_vsmsd_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 01_forward.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 02_reverse.py: XFAIL ERROR - Returned VSSDC_dom/mouse:xen instead of VSSDC_dom/mouse:usb Bug:<00009> -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 03_vssdc_fwd_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 04_vssdc_rev_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotService - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotService - 02_vs_sservice_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotServiceCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotServiceCapabilities - 02_vs_sservicecap_gi_errs.py: PASS -------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From yunguol at cn.ibm.com Mon Feb 16 02:28:58 2009 From: yunguol at cn.ibm.com (Guo Lian Yun) Date: Mon, 16 Feb 2009 10:28:58 +0800 Subject: [Libvirt-cim] Test Run Summary (Feb 16 2009): KVM on Fedora release 9.90.1 (Rawhide) with sfcb Message-ID: ================================================= Test Run Summary (Feb 16 2009): KVM on Fedora release 9.90.1 (Rawhide) with sfcb ================================================= Distro: Fedora release 9.90.1 (Rawhide) Kernel: 2.6.27-0.323.rc6.fc10.x86_64 libvirt: 0.4.5 Hypervisor: QEMU 0.9.1 CIMOM: sfcb sfcbd 1.3.3preview Libvirt-cim revision: 811 Libvirt-cim changeset: 72dc446be12c Cimtest revision: 625 Cimtest changeset: f5ef41b6e30f ================================================= FAIL : 1 XFAIL : 2 SKIP : 4 PASS : 139 ----------------- Total : 146 ================================================= FAIL Test Summary: ElementConforms - 01_forward.py: FAIL ================================================= XFAIL Test Summary: ComputerSystem - 32_start_reboot.py: XFAIL ComputerSystem - 33_suspend_reboot.py: XFAIL ================================================= SKIP Test Summary: VSSD - 02_bootldr.py: SKIP VirtualSystemMigrationService - 01_migratable_host.py: SKIP VirtualSystemMigrationService - 02_host_migrate_type.py: SKIP VirtualSystemMigrationService - 05_migratable_host_errs.py: SKIP ================================================= Full report: -------------------------------------------------------------------- AllocationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- AllocationCapabilities - 02_alloccap_gi_errs.py: PASS -------------------------------------------------------------------- ComputerSystem - 01_enum.py: PASS -------------------------------------------------------------------- ComputerSystem - 02_nosystems.py: PASS -------------------------------------------------------------------- ComputerSystem - 03_defineVS.py: PASS -------------------------------------------------------------------- ComputerSystem - 04_defineStartVS.py: PASS -------------------------------------------------------------------- ComputerSystem - 05_activate_defined_start.py: PASS -------------------------------------------------------------------- ComputerSystem - 06_paused_active_suspend.py: PASS -------------------------------------------------------------------- ComputerSystem - 22_define_suspend.py: PASS -------------------------------------------------------------------- ComputerSystem - 23_pause_pause.py: PASS -------------------------------------------------------------------- ComputerSystem - 27_define_pause_errs.py: PASS -------------------------------------------------------------------- ComputerSystem - 32_start_reboot.py: XFAIL ERROR - Got CIM error Unable to reboot domain: this function is not supported by the hypervisor: virDomainReboot with return code 1 ERROR - Exception: Unable reboot dom 'cs_test_domain' InvokeMethod(RequestStateChange): Unable to reboot domain: this function is not supported by the hypervisor: virDomainReboot Bug:<00005> -------------------------------------------------------------------- ComputerSystem - 33_suspend_reboot.py: XFAIL ERROR - Got CIM error State not supported with return code 7 ERROR - Exception: Unable Suspend dom 'test_domain' InvokeMethod(RequestStateChange): State not supported Bug:<00012> -------------------------------------------------------------------- ComputerSystem - 35_start_reset.py: PASS -------------------------------------------------------------------- ComputerSystem - 40_RSC_start.py: PASS -------------------------------------------------------------------- ComputerSystem - 41_cs_to_settingdefinestate.py: PASS -------------------------------------------------------------------- ComputerSystem - 42_cs_gi_errs.py: PASS -------------------------------------------------------------------- ComputerSystemIndication - 01_created_indication.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 01_forward.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 02_reverse.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 03_reverse_errs.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 04_forward_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 01_forward.py: PASS -------------------------------------------------------------------- ElementCapabilities - 02_reverse.py: PASS -------------------------------------------------------------------- ElementCapabilities - 03_forward_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 04_reverse_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 05_hostsystem_cap.py: PASS -------------------------------------------------------------------- ElementConforms - 01_forward.py: FAIL ERROR - verify_fields() exception: u'KVM_AllocationCapabilities' ERROR - Exception: Failed to verify instance Class not found -------------------------------------------------------------------- ElementConforms - 02_reverse.py: PASS -------------------------------------------------------------------- ElementConforms - 03_ectp_fwd_errs.py: PASS -------------------------------------------------------------------- ElementConforms - 04_ectp_rev_errs.py: PASS -------------------------------------------------------------------- ElementSettingData - 01_forward.py: PASS -------------------------------------------------------------------- ElementSettingData - 03_esd_assoc_with_rasd_errs.py: PASS -------------------------------------------------------------------- EnabledLogicalElementCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- EnabledLogicalElementCapabilities - 02_elecap_gi_errs.py: PASS -------------------------------------------------------------------- HostSystem - 01_enum.py: PASS -------------------------------------------------------------------- HostSystem - 02_hostsystem_to_rasd.py: PASS -------------------------------------------------------------------- HostSystem - 03_hs_to_settdefcap.py: PASS -------------------------------------------------------------------- HostSystem - 04_hs_to_EAPF.py: PASS -------------------------------------------------------------------- HostSystem - 05_hs_gi_errs.py: PASS -------------------------------------------------------------------- HostSystem - 06_hs_to_vsms.py: PASS -------------------------------------------------------------------- HostedAccessPoint - 01_forward.py: PASS -------------------------------------------------------------------- HostedAccessPoint - 02_reverse.py: PASS -------------------------------------------------------------------- HostedDependency - 01_forward.py: PASS -------------------------------------------------------------------- HostedDependency - 02_reverse.py: PASS -------------------------------------------------------------------- HostedDependency - 03_enabledstate.py: PASS -------------------------------------------------------------------- HostedDependency - 04_reverse_errs.py: PASS -------------------------------------------------------------------- HostedResourcePool - 01_forward.py: PASS -------------------------------------------------------------------- HostedResourcePool - 02_reverse.py: PASS -------------------------------------------------------------------- HostedResourcePool - 03_forward_errs.py: PASS -------------------------------------------------------------------- HostedResourcePool - 04_reverse_errs.py: PASS -------------------------------------------------------------------- HostedService - 01_forward.py: PASS -------------------------------------------------------------------- HostedService - 02_reverse.py: PASS -------------------------------------------------------------------- HostedService - 03_forward_errs.py: PASS -------------------------------------------------------------------- HostedService - 04_reverse_errs.py: PASS -------------------------------------------------------------------- KVMRedirectionSAP - 01_enum_KVMredSAP.py: PASS -------------------------------------------------------------------- LogicalDisk - 01_disk.py: PASS -------------------------------------------------------------------- LogicalDisk - 02_nodevs.py: PASS -------------------------------------------------------------------- LogicalDisk - 03_ld_gi_errs.py: PASS -------------------------------------------------------------------- Memory - 01_memory.py: PASS -------------------------------------------------------------------- Memory - 02_defgetmem.py: PASS -------------------------------------------------------------------- Memory - 03_mem_gi_errs.py: PASS -------------------------------------------------------------------- NetworkPort - 01_netport.py: PASS -------------------------------------------------------------------- NetworkPort - 02_np_gi_errors.py: PASS -------------------------------------------------------------------- NetworkPort - 03_user_netport.py: PASS -------------------------------------------------------------------- Processor - 01_processor.py: PASS -------------------------------------------------------------------- Processor - 02_definesys_get_procs.py: PASS -------------------------------------------------------------------- Processor - 03_proc_gi_errs.py: PASS -------------------------------------------------------------------- Profile - 01_enum.py: PASS -------------------------------------------------------------------- Profile - 02_profile_to_elec.py: PASS -------------------------------------------------------------------- Profile - 03_rprofile_gi_errs.py: PASS -------------------------------------------------------------------- RASD - 01_verify_rasd_fields.py: PASS -------------------------------------------------------------------- RASD - 02_enum.py: PASS -------------------------------------------------------------------- RASD - 03_rasd_errs.py: PASS -------------------------------------------------------------------- RASD - 04_disk_rasd_size.py: PASS -------------------------------------------------------------------- RASD - 05_disk_rasd_emu_type.py: PASS -------------------------------------------------------------------- RedirectionService - 01_enum_crs.py: PASS -------------------------------------------------------------------- RedirectionService - 02_enum_crscap.py: PASS -------------------------------------------------------------------- RedirectionService - 03_RedirectionSAP_errs.py: PASS -------------------------------------------------------------------- ReferencedProfile - 01_verify_refprof.py: PASS -------------------------------------------------------------------- ReferencedProfile - 02_refprofile_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 01_forward.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 02_reverse.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 03_forward_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 04_reverse_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 05_RAPF_err.py: PASS -------------------------------------------------------------------- ResourcePool - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePool - 02_rp_gi_errors.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationCapabilities - 02_rpcc_gi_errs.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 02_rcps_gi_errors.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 03_CreateResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 04_CreateChildResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 05_AddResourcesToResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 06_RemoveResourcesFromResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 07_DeleteResourcePool.py: PASS -------------------------------------------------------------------- ServiceAccessBySAP - 01_forward.py: PASS -------------------------------------------------------------------- ServiceAccessBySAP - 02_reverse.py: PASS -------------------------------------------------------------------- SettingsDefine - 01_forward.py: PASS -------------------------------------------------------------------- SettingsDefine - 02_reverse.py: PASS -------------------------------------------------------------------- SettingsDefine - 03_sds_fwd_errs.py: PASS -------------------------------------------------------------------- SettingsDefine - 04_sds_rev_errs.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 01_forward.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 03_forward_errs.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 04_forward_vsmsdata.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 05_reverse_vsmcap.py: PASS -------------------------------------------------------------------- SystemDevice - 01_forward.py: PASS -------------------------------------------------------------------- SystemDevice - 02_reverse.py: PASS -------------------------------------------------------------------- SystemDevice - 03_fwderrs.py: PASS -------------------------------------------------------------------- VSSD - 01_enum.py: PASS -------------------------------------------------------------------- VSSD - 02_bootldr.py: SKIP -------------------------------------------------------------------- VSSD - 03_vssd_gi_errs.py: PASS -------------------------------------------------------------------- VSSD - 04_vssd_to_rasd.py: PASS -------------------------------------------------------------------- VirtualSystemManagementCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemManagementCapabilities - 02_vsmcap_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 01_definesystem_name.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 02_destroysystem.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 03_definesystem_ess.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 04_definesystem_ers.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 05_destroysystem_neg.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 06_addresource.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 07_addresource_neg.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 08_modifyresource.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 09_procrasd_persist.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 10_hv_version.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 11_define_memrasdunits.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 12_referenced_config.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 13_refconfig_additional_devs.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 14_define_sys_disk.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 15_mod_system_settings.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationCapabilities - 02_vsmc_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationService - 01_migratable_host.py: SKIP -------------------------------------------------------------------- VirtualSystemMigrationService - 02_host_migrate_type.py: SKIP -------------------------------------------------------------------- VirtualSystemMigrationService - 05_migratable_host_errs.py: SKIP -------------------------------------------------------------------- VirtualSystemMigrationSettingData - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationSettingData - 02_vsmsd_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 01_forward.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 02_reverse.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 03_vssdc_fwd_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 04_vssdc_rev_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotService - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotService - 02_vs_sservice_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotServiceCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotServiceCapabilities - 02_vs_sservicecap_gi_errs.py: PASS -------------------------------------------------------------------- Best, Regards Daisy (???) VSM Team, China Systems & Technology Labs (CSTL) E-mail: yunguol at cn.ibm.com TEL: (86)-21-60922403 Building 10, 399 Ke Yuan Rd, Pudong Shanghai, 201203 -------------- next part -------------- An HTML attachment was scrubbed... URL: From yunguol at cn.ibm.com Mon Feb 16 02:30:27 2009 From: yunguol at cn.ibm.com (Guo Lian Yun) Date: Mon, 16 Feb 2009 10:30:27 +0800 Subject: [Libvirt-cim] Test Run Summary (Feb 16 2009): LXC on Fedora release 9.90.1 (Rawhide) with sfcb In-Reply-To: Message-ID: libvirt-cim-bounces at redhat.com wrote on 2009-02-16 10:28:06: > > ================================================= > Test Run Summary (Feb 16 2009): LXC on Fedora release 9.90.1 > (Rawhide) with sfcb > ================================================= > Distro: Fedora release 9.90.1 (Rawhide) > Kernel: 2.6.27-0.323.rc6.fc10.x86_64 > libvirt: 0.4.5 > Hypervisor: QEMU 0.9.1 > CIMOM: sfcb sfcbd 1.3.3preview > Libvirt-cim revision: 811 > Libvirt-cim changeset: 72dc446be12c > Cimtest revision: 625 > Cimtest changeset: f5ef41b6e30f > ================================================= > FAIL : 1 > XFAIL : 9 > SKIP : 32 > PASS : 104 > ----------------- > Total : 146 > ================================================= > FAIL Test Summary: > ElementConforms - 01_forward.py: FAIL > The patch with fix this is under progress. > ================================================= > XFAIL Test Summary: > ComputerSystem - 06_paused_active_suspend.py: XFAIL > ComputerSystem - 23_pause_pause.py: XFAIL > ComputerSystem - 32_start_reboot.py: XFAIL > ComputerSystem - 33_suspend_reboot.py: XFAIL > HostSystem - 02_hostsystem_to_rasd.py: XFAIL > HostedDependency - 03_enabledstate.py: XFAIL > VSSD - 04_vssd_to_rasd.py: XFAIL > VirtualSystemManagementService - 15_mod_system_settings.py: XFAIL > VirtualSystemSettingDataComponent - 02_reverse.py: XFAIL > > ================================================= > SKIP Test Summary: > ComputerSystem - 02_nosystems.py: SKIP > ComputerSystem - 41_cs_to_settingdefinestate.py: SKIP > ComputerSystemIndication - 01_created_indication.py: SKIP > ElementAllocatedFromPool - 03_reverse_errs.py: SKIP > ElementAllocatedFromPool - 04_forward_errs.py: SKIP > LogicalDisk - 01_disk.py: SKIP > LogicalDisk - 02_nodevs.py: SKIP > LogicalDisk - 03_ld_gi_errs.py: SKIP > NetworkPort - 01_netport.py: SKIP > NetworkPort - 02_np_gi_errors.py: SKIP > NetworkPort - 03_user_netport.py: SKIP > Processor - 01_processor.py: SKIP > Processor - 02_definesys_get_procs.py: SKIP > Processor - 03_proc_gi_errs.py: SKIP > RASD - 04_disk_rasd_size.py: SKIP > RASD - 05_disk_rasd_emu_type.py: SKIP > ResourceAllocationFromPool - 05_RAPF_err.py: SKIP > ResourcePoolConfigurationService - 03_CreateResourcePool.py: SKIP > ResourcePoolConfigurationService - 04_CreateChildResourcePool.py: SKIP > ResourcePoolConfigurationService - 05_AddResourcesToResourcePool.py: SKIP > ResourcePoolConfigurationService - 06_RemoveResourcesFromResourcePool.py: SKIP > ResourcePoolConfigurationService - 07_DeleteResourcePool.py: SKIP > VSSD - 02_bootldr.py: SKIP > VirtualSystemManagementService - 06_addresource.py: SKIP > VirtualSystemManagementService - 08_modifyresource.py: SKIP > VirtualSystemManagementService - 09_procrasd_persist.py: SKIP > VirtualSystemManagementService - 11_define_memrasdunits.py: SKIP > VirtualSystemManagementService - 12_referenced_config.py: SKIP > VirtualSystemManagementService - 13_refconfig_additional_devs.py: SKIP > VirtualSystemMigrationService - 01_migratable_host.py: SKIP > VirtualSystemMigrationService - 02_host_migrate_type.py: SKIP > VirtualSystemMigrationService - 05_migratable_host_errs.py: SKIP > > ================================================= > Full report: > -------------------------------------------------------------------- > AllocationCapabilities - 01_enum.py: PASS > -------------------------------------------------------------------- > AllocationCapabilities - 02_alloccap_gi_errs.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 01_enum.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 02_nosystems.py: SKIP > ERROR - System has defined domains; unable to run > -------------------------------------------------------------------- > ComputerSystem - 03_defineVS.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 04_defineStartVS.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 05_activate_defined_start.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 06_paused_active_suspend.py: XFAIL > ERROR - Got CIM error Unable to pause domain: this > function is not supported by the hypervisor: virDomainSuspend with > return code 1 > ERROR - Exception variable: Unable pause dom 'DomST1' > InvokeMethod(RequestStateChange): Unable to pause domain: this > function is not supported by the hypervisor: virDomainSuspend > Bug:<00011> > -------------------------------------------------------------------- > ComputerSystem - 22_define_suspend.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 23_pause_pause.py: XFAIL > ERROR - Got CIM error Unable to pause domain: this > function is not supported by the hypervisor: virDomainSuspend with > return code 1 > ERROR - Exception: 'Unable pause dom 'cs_test_domain'' > InvokeMethod(RequestStateChange): Unable to pause domain: this > function is not supported by the hypervisor: virDomainSuspend > Bug:<00011> > -------------------------------------------------------------------- > ComputerSystem - 27_define_pause_errs.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 32_start_reboot.py: XFAIL > ERROR - Got CIM error Unable to reboot domain: this > function is not supported by the hypervisor: virDomainReboot with > return code 1 > ERROR - Exception: Unable reboot dom 'cs_test_domain' > InvokeMethod(RequestStateChange): Unable to reboot domain: this > function is not supported by the hypervisor: virDomainReboot > Bug:<00005> > -------------------------------------------------------------------- > ComputerSystem - 33_suspend_reboot.py: XFAIL > ERROR - Got CIM error State not supported with return code 7 > ERROR - Exception: Unable Suspend dom 'test_domain' > InvokeMethod(RequestStateChange): State not supported > Bug:<00012> > -------------------------------------------------------------------- > ComputerSystem - 35_start_reset.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 40_RSC_start.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 41_cs_to_settingdefinestate.py: SKIP > -------------------------------------------------------------------- > ComputerSystem - 42_cs_gi_errs.py: PASS > -------------------------------------------------------------------- > ComputerSystemIndication - 01_created_indication.py: SKIP > -------------------------------------------------------------------- > ElementAllocatedFromPool - 01_forward.py: PASS > -------------------------------------------------------------------- > ElementAllocatedFromPool - 02_reverse.py: PASS > -------------------------------------------------------------------- > ElementAllocatedFromPool - 03_reverse_errs.py: SKIP > -------------------------------------------------------------------- > ElementAllocatedFromPool - 04_forward_errs.py: SKIP > -------------------------------------------------------------------- > ElementCapabilities - 01_forward.py: PASS > -------------------------------------------------------------------- > ElementCapabilities - 02_reverse.py: PASS > -------------------------------------------------------------------- > ElementCapabilities - 03_forward_errs.py: PASS > -------------------------------------------------------------------- > ElementCapabilities - 04_reverse_errs.py: PASS > -------------------------------------------------------------------- > ElementCapabilities - 05_hostsystem_cap.py: PASS > -------------------------------------------------------------------- > ElementConforms - 01_forward.py: FAIL > ERROR - verify_fields() exception: > u'LXC_AllocationCapabilities' > ERROR - Exception: Failed to verify instance > Class not found > -------------------------------------------------------------------- > ElementConforms - 02_reverse.py: PASS > -------------------------------------------------------------------- > ElementConforms - 03_ectp_fwd_errs.py: PASS > -------------------------------------------------------------------- > ElementConforms - 04_ectp_rev_errs.py: PASS > -------------------------------------------------------------------- > ElementSettingData - 01_forward.py: PASS > -------------------------------------------------------------------- > ElementSettingData - 03_esd_assoc_with_rasd_errs.py: PASS > -------------------------------------------------------------------- > EnabledLogicalElementCapabilities - 01_enum.py: PASS > -------------------------------------------------------------------- > EnabledLogicalElementCapabilities - 02_elecap_gi_errs.py: PASS > -------------------------------------------------------------------- > HostSystem - 01_enum.py: PASS > -------------------------------------------------------------------- > HostSystem - 02_hostsystem_to_rasd.py: XFAIL > ERROR - InstanceID Mismatch > ERROR - Returned CrossClass_GuestDom/mouse:xen > instead of CrossClass_GuestDom/mouse:usb > Class not found > Bug:<00009> > -------------------------------------------------------------------- > HostSystem - 03_hs_to_settdefcap.py: PASS > -------------------------------------------------------------------- > HostSystem - 04_hs_to_EAPF.py: PASS > -------------------------------------------------------------------- > HostSystem - 05_hs_gi_errs.py: PASS > -------------------------------------------------------------------- > HostSystem - 06_hs_to_vsms.py: PASS > -------------------------------------------------------------------- > HostedAccessPoint - 01_forward.py: PASS > -------------------------------------------------------------------- > HostedAccessPoint - 02_reverse.py: PASS > -------------------------------------------------------------------- > HostedDependency - 01_forward.py: PASS > -------------------------------------------------------------------- > HostedDependency - 02_reverse.py: PASS > -------------------------------------------------------------------- > HostedDependency - 03_enabledstate.py: XFAIL > ERROR - Exception: (1, u'Unable to pause domain: > this function is not supported by the hypervisor: virDomainSuspend') > ERROR - Failed to suspend the dom: hd_domain1 > InvokeMethod(RequestStateChange): Unable to pause domain: this > function is not supported by the hypervisor: virDomainSuspend > Bug:<00011> > -------------------------------------------------------------------- > HostedDependency - 04_reverse_errs.py: PASS > -------------------------------------------------------------------- > HostedResourcePool - 01_forward.py: PASS > -------------------------------------------------------------------- > HostedResourcePool - 02_reverse.py: PASS > -------------------------------------------------------------------- > HostedResourcePool - 03_forward_errs.py: PASS > -------------------------------------------------------------------- > HostedResourcePool - 04_reverse_errs.py: PASS > -------------------------------------------------------------------- > HostedService - 01_forward.py: PASS > -------------------------------------------------------------------- > HostedService - 02_reverse.py: PASS > -------------------------------------------------------------------- > HostedService - 03_forward_errs.py: PASS > -------------------------------------------------------------------- > HostedService - 04_reverse_errs.py: PASS > -------------------------------------------------------------------- > KVMRedirectionSAP - 01_enum_KVMredSAP.py: PASS > -------------------------------------------------------------------- > LogicalDisk - 01_disk.py: SKIP > -------------------------------------------------------------------- > LogicalDisk - 02_nodevs.py: SKIP > ERROR - System has defined domains; unable to run > -------------------------------------------------------------------- > LogicalDisk - 03_ld_gi_errs.py: SKIP > -------------------------------------------------------------------- > Memory - 01_memory.py: PASS > -------------------------------------------------------------------- > Memory - 02_defgetmem.py: PASS > -------------------------------------------------------------------- > Memory - 03_mem_gi_errs.py: PASS > -------------------------------------------------------------------- > NetworkPort - 01_netport.py: SKIP > -------------------------------------------------------------------- > NetworkPort - 02_np_gi_errors.py: SKIP > -------------------------------------------------------------------- > NetworkPort - 03_user_netport.py: SKIP > -------------------------------------------------------------------- > Processor - 01_processor.py: SKIP > -------------------------------------------------------------------- > Processor - 02_definesys_get_procs.py: SKIP > -------------------------------------------------------------------- > Processor - 03_proc_gi_errs.py: SKIP > -------------------------------------------------------------------- > Profile - 01_enum.py: PASS > -------------------------------------------------------------------- > Profile - 02_profile_to_elec.py: PASS > -------------------------------------------------------------------- > Profile - 03_rprofile_gi_errs.py: PASS > -------------------------------------------------------------------- > RASD - 01_verify_rasd_fields.py: PASS > -------------------------------------------------------------------- > RASD - 02_enum.py: PASS > -------------------------------------------------------------------- > RASD - 03_rasd_errs.py: PASS > -------------------------------------------------------------------- > RASD - 04_disk_rasd_size.py: SKIP > -------------------------------------------------------------------- > RASD - 05_disk_rasd_emu_type.py: SKIP > -------------------------------------------------------------------- > RedirectionService - 01_enum_crs.py: PASS > -------------------------------------------------------------------- > RedirectionService - 02_enum_crscap.py: PASS > -------------------------------------------------------------------- > RedirectionService - 03_RedirectionSAP_errs.py: PASS > -------------------------------------------------------------------- > ReferencedProfile - 01_verify_refprof.py: PASS > -------------------------------------------------------------------- > ReferencedProfile - 02_refprofile_errs.py: PASS > -------------------------------------------------------------------- > ResourceAllocationFromPool - 01_forward.py: PASS > -------------------------------------------------------------------- > ResourceAllocationFromPool - 02_reverse.py: PASS > -------------------------------------------------------------------- > ResourceAllocationFromPool - 03_forward_errs.py: PASS > -------------------------------------------------------------------- > ResourceAllocationFromPool - 04_reverse_errs.py: PASS > -------------------------------------------------------------------- > ResourceAllocationFromPool - 05_RAPF_err.py: SKIP > -------------------------------------------------------------------- > ResourcePool - 01_enum.py: PASS > -------------------------------------------------------------------- > ResourcePool - 02_rp_gi_errors.py: PASS > -------------------------------------------------------------------- > ResourcePoolConfigurationCapabilities - 01_enum.py: PASS > -------------------------------------------------------------------- > ResourcePoolConfigurationCapabilities - 02_rpcc_gi_errs.py: PASS > -------------------------------------------------------------------- > ResourcePoolConfigurationService - 01_enum.py: PASS > -------------------------------------------------------------------- > ResourcePoolConfigurationService - 02_rcps_gi_errors.py: PASS > -------------------------------------------------------------------- > ResourcePoolConfigurationService - 03_CreateResourcePool.py: SKIP > -------------------------------------------------------------------- > ResourcePoolConfigurationService - 04_CreateChildResourcePool.py: SKIP > -------------------------------------------------------------------- > ResourcePoolConfigurationService - 05_AddResourcesToResourcePool.py: SKIP > -------------------------------------------------------------------- > ResourcePoolConfigurationService - 06_RemoveResourcesFromResourcePool.py: SKIP > -------------------------------------------------------------------- > ResourcePoolConfigurationService - 07_DeleteResourcePool.py: SKIP > -------------------------------------------------------------------- > ServiceAccessBySAP - 01_forward.py: PASS > -------------------------------------------------------------------- > ServiceAccessBySAP - 02_reverse.py: PASS > -------------------------------------------------------------------- > SettingsDefine - 01_forward.py: PASS > -------------------------------------------------------------------- > SettingsDefine - 02_reverse.py: PASS > -------------------------------------------------------------------- > SettingsDefine - 03_sds_fwd_errs.py: PASS > -------------------------------------------------------------------- > SettingsDefine - 04_sds_rev_errs.py: PASS > -------------------------------------------------------------------- > SettingsDefineCapabilities - 01_forward.py: PASS > -------------------------------------------------------------------- > SettingsDefineCapabilities - 03_forward_errs.py: PASS > -------------------------------------------------------------------- > SettingsDefineCapabilities - 04_forward_vsmsdata.py: PASS > -------------------------------------------------------------------- > SettingsDefineCapabilities - 05_reverse_vsmcap.py: PASS > -------------------------------------------------------------------- > SystemDevice - 01_forward.py: PASS > -------------------------------------------------------------------- > SystemDevice - 02_reverse.py: PASS > -------------------------------------------------------------------- > SystemDevice - 03_fwderrs.py: PASS > -------------------------------------------------------------------- > VSSD - 01_enum.py: PASS > -------------------------------------------------------------------- > VSSD - 02_bootldr.py: SKIP > -------------------------------------------------------------------- > VSSD - 03_vssd_gi_errs.py: PASS > -------------------------------------------------------------------- > VSSD - 04_vssd_to_rasd.py: XFAIL > ERROR - InstanceID Mismatch > ERROR - Returned VSSDC_dom/mouse:xen instead of > VSSDC_dom/mouse:usb > Bug:<00009> > -------------------------------------------------------------------- > VirtualSystemManagementCapabilities - 01_enum.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementCapabilities - 02_vsmcap_gi_errs.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 01_definesystem_name.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 02_destroysystem.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 03_definesystem_ess.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 04_definesystem_ers.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 05_destroysystem_neg.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 06_addresource.py: SKIP > -------------------------------------------------------------------- > VirtualSystemManagementService - 07_addresource_neg.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 08_modifyresource.py: SKIP > -------------------------------------------------------------------- > VirtualSystemManagementService - 09_procrasd_persist.py: SKIP > -------------------------------------------------------------------- > VirtualSystemManagementService - 10_hv_version.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 11_define_memrasdunits.py: SKIP > -------------------------------------------------------------------- > VirtualSystemManagementService - 12_referenced_config.py: SKIP > -------------------------------------------------------------------- > VirtualSystemManagementService - 13_refconfig_additional_devs.py: SKIP > -------------------------------------------------------------------- > VirtualSystemManagementService - 14_define_sys_disk.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 15_mod_system_settings.py: XFAIL > ERROR - rstest_domain not updated properly. > ERROR - Exp AutomaticRecoveryAction=3, got 2 > Bug:<00008> > -------------------------------------------------------------------- > VirtualSystemMigrationCapabilities - 01_enum.py: PASS > -------------------------------------------------------------------- > VirtualSystemMigrationCapabilities - 02_vsmc_gi_errs.py: PASS > -------------------------------------------------------------------- > VirtualSystemMigrationService - 01_migratable_host.py: SKIP > -------------------------------------------------------------------- > VirtualSystemMigrationService - 02_host_migrate_type.py: SKIP > -------------------------------------------------------------------- > VirtualSystemMigrationService - 05_migratable_host_errs.py: SKIP > -------------------------------------------------------------------- > VirtualSystemMigrationSettingData - 01_enum.py: PASS > -------------------------------------------------------------------- > VirtualSystemMigrationSettingData - 02_vsmsd_gi_errs.py: PASS > -------------------------------------------------------------------- > VirtualSystemSettingDataComponent - 01_forward.py: PASS > -------------------------------------------------------------------- > VirtualSystemSettingDataComponent - 02_reverse.py: XFAIL > ERROR - Returned VSSDC_dom/mouse:xen instead of > VSSDC_dom/mouse:usb > Bug:<00009> > -------------------------------------------------------------------- > VirtualSystemSettingDataComponent - 03_vssdc_fwd_errs.py: PASS > -------------------------------------------------------------------- > VirtualSystemSettingDataComponent - 04_vssdc_rev_errs.py: PASS > -------------------------------------------------------------------- > VirtualSystemSnapshotService - 01_enum.py: PASS > -------------------------------------------------------------------- > VirtualSystemSnapshotService - 02_vs_sservice_gi_errs.py: PASS > -------------------------------------------------------------------- > VirtualSystemSnapshotServiceCapabilities - 01_enum.py: PASS > -------------------------------------------------------------------- > VirtualSystemSnapshotServiceCapabilities - 02_vs_sservicecap_gi_errs.py: PASS > -------------------------------------------------------------------- > _______________________________________________ > Libvirt-cim mailing list > Libvirt-cim at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-cim -------------- next part -------------- An HTML attachment was scrubbed... URL: From yunguol at cn.ibm.com Mon Feb 16 02:31:49 2009 From: yunguol at cn.ibm.com (Guo Lian Yun) Date: Mon, 16 Feb 2009 10:31:49 +0800 Subject: [Libvirt-cim] Test Run Summary (Feb 16 2009): KVM on Fedora release 9.90.1 (Rawhide) with sfcb In-Reply-To: Message-ID: libvirt-cim-bounces at redhat.com wrote on 2009-02-16 10:28:58: > > ================================================= > Test Run Summary (Feb 16 2009): KVM on Fedora release 9.90.1 > (Rawhide) with sfcb > ================================================= > Distro: Fedora release 9.90.1 (Rawhide) > Kernel: 2.6.27-0.323.rc6.fc10.x86_64 > libvirt: 0.4.5 > Hypervisor: QEMU 0.9.1 > CIMOM: sfcb sfcbd 1.3.3preview > Libvirt-cim revision: 811 > Libvirt-cim changeset: 72dc446be12c > Cimtest revision: 625 > Cimtest changeset: f5ef41b6e30f > ================================================= > FAIL : 1 > XFAIL : 2 > SKIP : 4 > PASS : 139 > ----------------- > Total : 146 > ================================================= > FAIL Test Summary: > ElementConforms - 01_forward.py: FAIL > The patch with fix this is under progress. Deepti - Is there any schedule to work it out? Thanks! > ================================================= > XFAIL Test Summary: > ComputerSystem - 32_start_reboot.py: XFAIL > ComputerSystem - 33_suspend_reboot.py: XFAIL > > ================================================= > SKIP Test Summary: > VSSD - 02_bootldr.py: SKIP > VirtualSystemMigrationService - 01_migratable_host.py: SKIP > VirtualSystemMigrationService - 02_host_migrate_type.py: SKIP > VirtualSystemMigrationService - 05_migratable_host_errs.py: SKIP > > ================================================= > Full report: > -------------------------------------------------------------------- > AllocationCapabilities - 01_enum.py: PASS > -------------------------------------------------------------------- > AllocationCapabilities - 02_alloccap_gi_errs.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 01_enum.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 02_nosystems.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 03_defineVS.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 04_defineStartVS.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 05_activate_defined_start.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 06_paused_active_suspend.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 22_define_suspend.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 23_pause_pause.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 27_define_pause_errs.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 32_start_reboot.py: XFAIL > ERROR - Got CIM error Unable to reboot domain: this > function is not supported by the hypervisor: virDomainReboot with > return code 1 > ERROR - Exception: Unable reboot dom 'cs_test_domain' > InvokeMethod(RequestStateChange): Unable to reboot domain: this > function is not supported by the hypervisor: virDomainReboot > Bug:<00005> > -------------------------------------------------------------------- > ComputerSystem - 33_suspend_reboot.py: XFAIL > ERROR - Got CIM error State not supported with return code 7 > ERROR - Exception: Unable Suspend dom 'test_domain' > InvokeMethod(RequestStateChange): State not supported > Bug:<00012> > -------------------------------------------------------------------- > ComputerSystem - 35_start_reset.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 40_RSC_start.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 41_cs_to_settingdefinestate.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 42_cs_gi_errs.py: PASS > -------------------------------------------------------------------- > ComputerSystemIndication - 01_created_indication.py: PASS > -------------------------------------------------------------------- > ElementAllocatedFromPool - 01_forward.py: PASS > -------------------------------------------------------------------- > ElementAllocatedFromPool - 02_reverse.py: PASS > -------------------------------------------------------------------- > ElementAllocatedFromPool - 03_reverse_errs.py: PASS > -------------------------------------------------------------------- > ElementAllocatedFromPool - 04_forward_errs.py: PASS > -------------------------------------------------------------------- > ElementCapabilities - 01_forward.py: PASS > -------------------------------------------------------------------- > ElementCapabilities - 02_reverse.py: PASS > -------------------------------------------------------------------- > ElementCapabilities - 03_forward_errs.py: PASS > -------------------------------------------------------------------- > ElementCapabilities - 04_reverse_errs.py: PASS > -------------------------------------------------------------------- > ElementCapabilities - 05_hostsystem_cap.py: PASS > -------------------------------------------------------------------- > ElementConforms - 01_forward.py: FAIL > ERROR - verify_fields() exception: > u'KVM_AllocationCapabilities' > ERROR - Exception: Failed to verify instance > Class not found > -------------------------------------------------------------------- > ElementConforms - 02_reverse.py: PASS > -------------------------------------------------------------------- > ElementConforms - 03_ectp_fwd_errs.py: PASS > -------------------------------------------------------------------- > ElementConforms - 04_ectp_rev_errs.py: PASS > -------------------------------------------------------------------- > ElementSettingData - 01_forward.py: PASS > -------------------------------------------------------------------- > ElementSettingData - 03_esd_assoc_with_rasd_errs.py: PASS > -------------------------------------------------------------------- > EnabledLogicalElementCapabilities - 01_enum.py: PASS > -------------------------------------------------------------------- > EnabledLogicalElementCapabilities - 02_elecap_gi_errs.py: PASS > -------------------------------------------------------------------- > HostSystem - 01_enum.py: PASS > -------------------------------------------------------------------- > HostSystem - 02_hostsystem_to_rasd.py: PASS > -------------------------------------------------------------------- > HostSystem - 03_hs_to_settdefcap.py: PASS > -------------------------------------------------------------------- > HostSystem - 04_hs_to_EAPF.py: PASS > -------------------------------------------------------------------- > HostSystem - 05_hs_gi_errs.py: PASS > -------------------------------------------------------------------- > HostSystem - 06_hs_to_vsms.py: PASS > -------------------------------------------------------------------- > HostedAccessPoint - 01_forward.py: PASS > -------------------------------------------------------------------- > HostedAccessPoint - 02_reverse.py: PASS > -------------------------------------------------------------------- > HostedDependency - 01_forward.py: PASS > -------------------------------------------------------------------- > HostedDependency - 02_reverse.py: PASS > -------------------------------------------------------------------- > HostedDependency - 03_enabledstate.py: PASS > -------------------------------------------------------------------- > HostedDependency - 04_reverse_errs.py: PASS > -------------------------------------------------------------------- > HostedResourcePool - 01_forward.py: PASS > -------------------------------------------------------------------- > HostedResourcePool - 02_reverse.py: PASS > -------------------------------------------------------------------- > HostedResourcePool - 03_forward_errs.py: PASS > -------------------------------------------------------------------- > HostedResourcePool - 04_reverse_errs.py: PASS > -------------------------------------------------------------------- > HostedService - 01_forward.py: PASS > -------------------------------------------------------------------- > HostedService - 02_reverse.py: PASS > -------------------------------------------------------------------- > HostedService - 03_forward_errs.py: PASS > -------------------------------------------------------------------- > HostedService - 04_reverse_errs.py: PASS > -------------------------------------------------------------------- > KVMRedirectionSAP - 01_enum_KVMredSAP.py: PASS > -------------------------------------------------------------------- > LogicalDisk - 01_disk.py: PASS > -------------------------------------------------------------------- > LogicalDisk - 02_nodevs.py: PASS > -------------------------------------------------------------------- > LogicalDisk - 03_ld_gi_errs.py: PASS > -------------------------------------------------------------------- > Memory - 01_memory.py: PASS > -------------------------------------------------------------------- > Memory - 02_defgetmem.py: PASS > -------------------------------------------------------------------- > Memory - 03_mem_gi_errs.py: PASS > -------------------------------------------------------------------- > NetworkPort - 01_netport.py: PASS > -------------------------------------------------------------------- > NetworkPort - 02_np_gi_errors.py: PASS > -------------------------------------------------------------------- > NetworkPort - 03_user_netport.py: PASS > -------------------------------------------------------------------- > Processor - 01_processor.py: PASS > -------------------------------------------------------------------- > Processor - 02_definesys_get_procs.py: PASS > -------------------------------------------------------------------- > Processor - 03_proc_gi_errs.py: PASS > -------------------------------------------------------------------- > Profile - 01_enum.py: PASS > -------------------------------------------------------------------- > Profile - 02_profile_to_elec.py: PASS > -------------------------------------------------------------------- > Profile - 03_rprofile_gi_errs.py: PASS > -------------------------------------------------------------------- > RASD - 01_verify_rasd_fields.py: PASS > -------------------------------------------------------------------- > RASD - 02_enum.py: PASS > -------------------------------------------------------------------- > RASD - 03_rasd_errs.py: PASS > -------------------------------------------------------------------- > RASD - 04_disk_rasd_size.py: PASS > -------------------------------------------------------------------- > RASD - 05_disk_rasd_emu_type.py: PASS > -------------------------------------------------------------------- > RedirectionService - 01_enum_crs.py: PASS > -------------------------------------------------------------------- > RedirectionService - 02_enum_crscap.py: PASS > -------------------------------------------------------------------- > RedirectionService - 03_RedirectionSAP_errs.py: PASS > -------------------------------------------------------------------- > ReferencedProfile - 01_verify_refprof.py: PASS > -------------------------------------------------------------------- > ReferencedProfile - 02_refprofile_errs.py: PASS > -------------------------------------------------------------------- > ResourceAllocationFromPool - 01_forward.py: PASS > -------------------------------------------------------------------- > ResourceAllocationFromPool - 02_reverse.py: PASS > -------------------------------------------------------------------- > ResourceAllocationFromPool - 03_forward_errs.py: PASS > -------------------------------------------------------------------- > ResourceAllocationFromPool - 04_reverse_errs.py: PASS > -------------------------------------------------------------------- > ResourceAllocationFromPool - 05_RAPF_err.py: PASS > -------------------------------------------------------------------- > ResourcePool - 01_enum.py: PASS > -------------------------------------------------------------------- > ResourcePool - 02_rp_gi_errors.py: PASS > -------------------------------------------------------------------- > ResourcePoolConfigurationCapabilities - 01_enum.py: PASS > -------------------------------------------------------------------- > ResourcePoolConfigurationCapabilities - 02_rpcc_gi_errs.py: PASS > -------------------------------------------------------------------- > ResourcePoolConfigurationService - 01_enum.py: PASS > -------------------------------------------------------------------- > ResourcePoolConfigurationService - 02_rcps_gi_errors.py: PASS > -------------------------------------------------------------------- > ResourcePoolConfigurationService - 03_CreateResourcePool.py: PASS > -------------------------------------------------------------------- > ResourcePoolConfigurationService - 04_CreateChildResourcePool.py: PASS > -------------------------------------------------------------------- > ResourcePoolConfigurationService - 05_AddResourcesToResourcePool.py: PASS > -------------------------------------------------------------------- > ResourcePoolConfigurationService - 06_RemoveResourcesFromResourcePool.py: PASS > -------------------------------------------------------------------- > ResourcePoolConfigurationService - 07_DeleteResourcePool.py: PASS > -------------------------------------------------------------------- > ServiceAccessBySAP - 01_forward.py: PASS > -------------------------------------------------------------------- > ServiceAccessBySAP - 02_reverse.py: PASS > -------------------------------------------------------------------- > SettingsDefine - 01_forward.py: PASS > -------------------------------------------------------------------- > SettingsDefine - 02_reverse.py: PASS > -------------------------------------------------------------------- > SettingsDefine - 03_sds_fwd_errs.py: PASS > -------------------------------------------------------------------- > SettingsDefine - 04_sds_rev_errs.py: PASS > -------------------------------------------------------------------- > SettingsDefineCapabilities - 01_forward.py: PASS > -------------------------------------------------------------------- > SettingsDefineCapabilities - 03_forward_errs.py: PASS > -------------------------------------------------------------------- > SettingsDefineCapabilities - 04_forward_vsmsdata.py: PASS > -------------------------------------------------------------------- > SettingsDefineCapabilities - 05_reverse_vsmcap.py: PASS > -------------------------------------------------------------------- > SystemDevice - 01_forward.py: PASS > -------------------------------------------------------------------- > SystemDevice - 02_reverse.py: PASS > -------------------------------------------------------------------- > SystemDevice - 03_fwderrs.py: PASS > -------------------------------------------------------------------- > VSSD - 01_enum.py: PASS > -------------------------------------------------------------------- > VSSD - 02_bootldr.py: SKIP > -------------------------------------------------------------------- > VSSD - 03_vssd_gi_errs.py: PASS > -------------------------------------------------------------------- > VSSD - 04_vssd_to_rasd.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementCapabilities - 01_enum.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementCapabilities - 02_vsmcap_gi_errs.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 01_definesystem_name.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 02_destroysystem.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 03_definesystem_ess.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 04_definesystem_ers.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 05_destroysystem_neg.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 06_addresource.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 07_addresource_neg.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 08_modifyresource.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 09_procrasd_persist.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 10_hv_version.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 11_define_memrasdunits.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 12_referenced_config.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 13_refconfig_additional_devs.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 14_define_sys_disk.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 15_mod_system_settings.py: PASS > -------------------------------------------------------------------- > VirtualSystemMigrationCapabilities - 01_enum.py: PASS > -------------------------------------------------------------------- > VirtualSystemMigrationCapabilities - 02_vsmc_gi_errs.py: PASS > -------------------------------------------------------------------- > VirtualSystemMigrationService - 01_migratable_host.py: SKIP > -------------------------------------------------------------------- > VirtualSystemMigrationService - 02_host_migrate_type.py: SKIP > -------------------------------------------------------------------- > VirtualSystemMigrationService - 05_migratable_host_errs.py: SKIP > -------------------------------------------------------------------- > VirtualSystemMigrationSettingData - 01_enum.py: PASS > -------------------------------------------------------------------- > VirtualSystemMigrationSettingData - 02_vsmsd_gi_errs.py: PASS > -------------------------------------------------------------------- > VirtualSystemSettingDataComponent - 01_forward.py: PASS > -------------------------------------------------------------------- > VirtualSystemSettingDataComponent - 02_reverse.py: PASS > -------------------------------------------------------------------- > VirtualSystemSettingDataComponent - 03_vssdc_fwd_errs.py: PASS > -------------------------------------------------------------------- > VirtualSystemSettingDataComponent - 04_vssdc_rev_errs.py: PASS > -------------------------------------------------------------------- > VirtualSystemSnapshotService - 01_enum.py: PASS > -------------------------------------------------------------------- > VirtualSystemSnapshotService - 02_vs_sservice_gi_errs.py: PASS > -------------------------------------------------------------------- > VirtualSystemSnapshotServiceCapabilities - 01_enum.py: PASS > -------------------------------------------------------------------- > VirtualSystemSnapshotServiceCapabilities - 02_vs_sservicecap_gi_errs.py: PASS > -------------------------------------------------------------------- > > > Best, > Regards > > Daisy (???) > VSM Team, China Systems & Technology Labs (CSTL) > E-mail: yunguol at cn.ibm.com > TEL: (86)-21-60922403 > Building 10, 399 Ke Yuan Rd, Pudong Shanghai, 201203 > _______________________________________________ > Libvirt-cim mailing list > Libvirt-cim at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-cim -------------- next part -------------- An HTML attachment was scrubbed... URL: From yunguol at cn.ibm.com Mon Feb 16 03:04:12 2009 From: yunguol at cn.ibm.com (Guo Lian Yun) Date: Mon, 16 Feb 2009 11:04:12 +0800 Subject: [Libvirt-cim] Test Run Summary (Feb 16 2009): KVM on Fedora release 9 (Sulphur) with Pegasus Message-ID: ================================================= Test Run Summary (Feb 16 2009): KVM on Fedora release 9 (Sulphur) with Pegasus ================================================= Distro: Fedora release 9 (Sulphur) Kernel: 2.6.25.14-108.fc9.x86_64 libvirt: 0.4.4 Hypervisor: QEMU 0.9.1 CIMOM: Pegasus 2.7.0 Libvirt-cim revision: 613 Libvirt-cim changeset: 1fcf330fadf8+ Cimtest revision: 625 Cimtest changeset: f5ef41b6e30f ================================================= FAIL : 0 XFAIL : 3 SKIP : 13 PASS : 129 ----------------- Total : 145 ================================================= XFAIL Test Summary: ComputerSystem - 32_start_reboot.py: XFAIL ComputerSystem - 33_suspend_reboot.py: XFAIL VirtualSystemManagementService - 15_mod_system_settings.py: XFAIL ================================================= SKIP Test Summary: HostedAccessPoint - 01_forward.py: SKIP HostedAccessPoint - 02_reverse.py: SKIP KVMRedirectionSAP - 01_enum_KVMredSAP.py: SKIP RASD - 05_disk_rasd_emu_type.py: SKIP RedirectionService - 01_enum_crs.py: SKIP RedirectionService - 02_enum_crscap.py: SKIP RedirectionService - 03_RedirectionSAP_errs.py: SKIP ServiceAccessBySAP - 01_forward.py: SKIP ServiceAccessBySAP - 02_reverse.py: SKIP VSSD - 02_bootldr.py: SKIP VirtualSystemMigrationService - 01_migratable_host.py: SKIP VirtualSystemMigrationService - 02_host_migrate_type.py: SKIP VirtualSystemMigrationService - 05_migratable_host_errs.py: SKIP ================================================= Full report: -------------------------------------------------------------------- AllocationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- AllocationCapabilities - 02_alloccap_gi_errs.py: PASS -------------------------------------------------------------------- ComputerSystem - 01_enum.py: PASS -------------------------------------------------------------------- ComputerSystem - 02_nosystems.py: PASS -------------------------------------------------------------------- ComputerSystem - 03_defineVS.py: PASS -------------------------------------------------------------------- ComputerSystem - 04_defineStartVS.py: PASS -------------------------------------------------------------------- ComputerSystem - 05_activate_defined_start.py: PASS -------------------------------------------------------------------- ComputerSystem - 06_paused_active_suspend.py: PASS -------------------------------------------------------------------- ComputerSystem - 22_define_suspend.py: PASS -------------------------------------------------------------------- ComputerSystem - 23_pause_pause.py: PASS -------------------------------------------------------------------- ComputerSystem - 27_define_pause_errs.py: PASS -------------------------------------------------------------------- ComputerSystem - 32_start_reboot.py: XFAIL ERROR - Got CIM error CIM_ERR_FAILED: Domain Operation Failed with return code 1 ERROR - Exception: Unable reboot dom 'cs_test_domain' InvokeMethod(RequestStateChange): CIM_ERR_FAILED: Domain Operation Failed Bug:<00005> -------------------------------------------------------------------- ComputerSystem - 33_suspend_reboot.py: XFAIL ERROR - Got CIM error CIM_ERR_NOT_SUPPORTED: State not supported with return code 7 ERROR - Exception: Unable Suspend dom 'test_domain' InvokeMethod(RequestStateChange): CIM_ERR_NOT_SUPPORTED: State not supported Bug:<00012> -------------------------------------------------------------------- ComputerSystem - 35_start_reset.py: PASS -------------------------------------------------------------------- ComputerSystem - 40_RSC_start.py: PASS -------------------------------------------------------------------- ComputerSystem - 41_cs_to_settingdefinestate.py: PASS -------------------------------------------------------------------- ComputerSystem - 42_cs_gi_errs.py: PASS -------------------------------------------------------------------- ComputerSystemIndication - 01_created_indication.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 01_forward.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 02_reverse.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 03_reverse_errs.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 04_forward_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 01_forward.py: PASS -------------------------------------------------------------------- ElementCapabilities - 02_reverse.py: PASS -------------------------------------------------------------------- ElementCapabilities - 03_forward_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 04_reverse_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 05_hostsystem_cap.py: PASS -------------------------------------------------------------------- ElementConforms - 01_forward.py: PASS -------------------------------------------------------------------- ElementConforms - 02_reverse.py: PASS -------------------------------------------------------------------- ElementConforms - 03_ectp_fwd_errs.py: PASS -------------------------------------------------------------------- ElementConforms - 04_ectp_rev_errs.py: PASS -------------------------------------------------------------------- ElementSettingData - 01_forward.py: PASS -------------------------------------------------------------------- ElementSettingData - 03_esd_assoc_with_rasd_errs.py: PASS -------------------------------------------------------------------- EnabledLogicalElementCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- EnabledLogicalElementCapabilities - 02_elecap_gi_errs.py: PASS -------------------------------------------------------------------- HostSystem - 01_enum.py: PASS -------------------------------------------------------------------- HostSystem - 02_hostsystem_to_rasd.py: PASS -------------------------------------------------------------------- HostSystem - 03_hs_to_settdefcap.py: PASS -------------------------------------------------------------------- HostSystem - 04_hs_to_EAPF.py: PASS -------------------------------------------------------------------- HostSystem - 05_hs_gi_errs.py: PASS -------------------------------------------------------------------- HostSystem - 06_hs_to_vsms.py: PASS -------------------------------------------------------------------- HostedAccessPoint - 01_forward.py: SKIP -------------------------------------------------------------------- HostedAccessPoint - 02_reverse.py: SKIP -------------------------------------------------------------------- HostedDependency - 01_forward.py: PASS -------------------------------------------------------------------- HostedDependency - 02_reverse.py: PASS -------------------------------------------------------------------- HostedDependency - 03_enabledstate.py: PASS -------------------------------------------------------------------- HostedDependency - 04_reverse_errs.py: PASS -------------------------------------------------------------------- HostedResourcePool - 01_forward.py: PASS -------------------------------------------------------------------- HostedResourcePool - 02_reverse.py: PASS -------------------------------------------------------------------- HostedResourcePool - 03_forward_errs.py: PASS -------------------------------------------------------------------- HostedResourcePool - 04_reverse_errs.py: PASS -------------------------------------------------------------------- HostedService - 01_forward.py: PASS -------------------------------------------------------------------- HostedService - 02_reverse.py: PASS -------------------------------------------------------------------- HostedService - 03_forward_errs.py: PASS -------------------------------------------------------------------- HostedService - 04_reverse_errs.py: PASS -------------------------------------------------------------------- KVMRedirectionSAP - 01_enum_KVMredSAP.py: SKIP -------------------------------------------------------------------- LogicalDisk - 01_disk.py: PASS -------------------------------------------------------------------- LogicalDisk - 02_nodevs.py: PASS -------------------------------------------------------------------- LogicalDisk - 03_ld_gi_errs.py: PASS -------------------------------------------------------------------- Memory - 01_memory.py: PASS -------------------------------------------------------------------- Memory - 02_defgetmem.py: PASS -------------------------------------------------------------------- Memory - 03_mem_gi_errs.py: PASS -------------------------------------------------------------------- NetworkPort - 01_netport.py: PASS -------------------------------------------------------------------- NetworkPort - 02_np_gi_errors.py: PASS -------------------------------------------------------------------- NetworkPort - 03_user_netport.py: PASS -------------------------------------------------------------------- Processor - 01_processor.py: PASS -------------------------------------------------------------------- Processor - 02_definesys_get_procs.py: PASS -------------------------------------------------------------------- Processor - 03_proc_gi_errs.py: PASS -------------------------------------------------------------------- Profile - 01_enum.py: PASS -------------------------------------------------------------------- Profile - 02_profile_to_elec.py: PASS -------------------------------------------------------------------- Profile - 03_rprofile_gi_errs.py: PASS -------------------------------------------------------------------- RASD - 01_verify_rasd_fields.py: PASS -------------------------------------------------------------------- RASD - 02_enum.py: PASS -------------------------------------------------------------------- RASD - 03_rasd_errs.py: PASS -------------------------------------------------------------------- RASD - 04_disk_rasd_size.py: PASS -------------------------------------------------------------------- RASD - 05_disk_rasd_emu_type.py: SKIP -------------------------------------------------------------------- RedirectionService - 01_enum_crs.py: SKIP -------------------------------------------------------------------- RedirectionService - 02_enum_crscap.py: SKIP -------------------------------------------------------------------- RedirectionService - 03_RedirectionSAP_errs.py: SKIP -------------------------------------------------------------------- ReferencedProfile - 01_verify_refprof.py: PASS -------------------------------------------------------------------- ReferencedProfile - 02_refprofile_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 01_forward.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 02_reverse.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 03_forward_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 04_reverse_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 05_RAPF_err.py: PASS -------------------------------------------------------------------- ResourcePool - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePool - 02_rp_gi_errors.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationCapabilities - 02_rpcc_gi_errs.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 02_rcps_gi_errors.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 03_CreateResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 04_CreateChildResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 05_AddResourcesToResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 06_RemoveResourcesFromResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 07_DeleteResourcePool.py: PASS -------------------------------------------------------------------- ServiceAccessBySAP - 01_forward.py: SKIP -------------------------------------------------------------------- ServiceAccessBySAP - 02_reverse.py: SKIP -------------------------------------------------------------------- SettingsDefine - 01_forward.py: PASS -------------------------------------------------------------------- SettingsDefine - 02_reverse.py: PASS -------------------------------------------------------------------- SettingsDefine - 03_sds_fwd_errs.py: PASS -------------------------------------------------------------------- SettingsDefine - 04_sds_rev_errs.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 01_forward.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 03_forward_errs.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 04_forward_vsmsdata.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 05_reverse_vsmcap.py: PASS -------------------------------------------------------------------- SystemDevice - 01_forward.py: PASS -------------------------------------------------------------------- SystemDevice - 02_reverse.py: PASS -------------------------------------------------------------------- SystemDevice - 03_fwderrs.py: PASS -------------------------------------------------------------------- VSSD - 01_enum.py: PASS -------------------------------------------------------------------- VSSD - 02_bootldr.py: SKIP -------------------------------------------------------------------- VSSD - 03_vssd_gi_errs.py: PASS -------------------------------------------------------------------- VSSD - 04_vssd_to_rasd.py: PASS -------------------------------------------------------------------- VirtualSystemManagementCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemManagementCapabilities - 02_vsmcap_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 01_definesystem_name.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 02_destroysystem.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 03_definesystem_ess.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 04_definesystem_ers.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 05_destroysystem_neg.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 06_addresource.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 07_addresource_neg.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 08_modifyresource.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 10_hv_version.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 11_define_memrasdunits.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 12_referenced_config.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 13_refconfig_additional_devs.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 14_define_sys_disk.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 15_mod_system_settings.py: XFAIL ERROR - rstest_domain not updated properly. ERROR - Exp AutomaticRecoveryAction=3, got 2 Bug:<00010> -------------------------------------------------------------------- VirtualSystemMigrationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationCapabilities - 02_vsmc_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationService - 01_migratable_host.py: SKIP -------------------------------------------------------------------- VirtualSystemMigrationService - 02_host_migrate_type.py: SKIP -------------------------------------------------------------------- VirtualSystemMigrationService - 05_migratable_host_errs.py: SKIP -------------------------------------------------------------------- VirtualSystemMigrationSettingData - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationSettingData - 02_vsmsd_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 01_forward.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 02_reverse.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 03_vssdc_fwd_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 04_vssdc_rev_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotService - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotService - 02_vs_sservice_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotServiceCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotServiceCapabilities - 02_vs_sservicecap_gi_errs.py: PASS -------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From deeptik at linux.vnet.ibm.com Mon Feb 16 04:58:51 2009 From: deeptik at linux.vnet.ibm.com (Deepti B. Kalakeri) Date: Sun, 15 Feb 2009 20:58:51 -0800 Subject: [Libvirt-cim] [PATCH] [TEST] #2 Fixing VSMS 09_procrasd_persist.py tc Message-ID: # HG changeset patch # User Deepti B. Kalakeri # Date 1234760288 28800 # Node ID bb5fd2a23299b381d177ef7a5ffb14a21034da70 # Parent f5ef41b6e30f104813132be50f405afdef80cc8a [TEST] #2 Fixing VSMS 09_procrasd_persist.py tc. Changes: -------- Patch 2: -------- 1) Added a break stmt to exit the for loop when the desired dom ProcRASD info is found. Patch 1: -------- 1) Added description to the tc. 2) Removed unnecessary import stmts 3) Changed the tc to use cim_define(), cim_start(), cim_destroy(). 4) Added the check to verify the VirtualQuantity 5) Aligned the tc to fit in 80 columns Added verification of the Linmit, Weight, VirtualQuantity persistance over sequence of define/start/destroy sequence. Tested for KVM/Xen/LXC with current sources, KVM with F9 rpm. This tc fails with KVM on F10. Signed-off-by: Deepti B. Kalakeri diff -r f5ef41b6e30f -r bb5fd2a23299 suites/libvirt-cim/cimtest/VirtualSystemManagementService/09_procrasd_persist.py --- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/09_procrasd_persist.py Thu Feb 12 18:24:39 2009 -0800 +++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/09_procrasd_persist.py Sun Feb 15 20:58:08 2009 -0800 @@ -19,56 +19,89 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # +# Purpose: +# Verify values for VirtualQuantity, limit and weight of ProcRASD are +# persisted properly over define/start/destroy sequence of the guest. +# +# Steps: +# 1) Get the default rasds +# 2) Set the ProcRASD VirtualQuantity, Weight, Limit, InstanceID values +# 3) Define the guest using the configuration +# 4) Verify the proc settings of the guest +# 5) start the guest and verify the proc settings of the guest +# 6) Destroy and undefine the guest +# Repeat the Sequence 3 - 6 in loop to see that +# the VirtualQuantity, limit and weight are maintained as passed to +# via the ProcRASD. +# import sys -import pywbem -from XenKvmLib.common_util import call_request_state_change, \ - poll_for_state_change -from XenKvmLib import vsms -from XenKvmLib.enumclass import GetInstance -from XenKvmLib.common_util import get_typed_class -from VirtLib import utils +from pywbem.cim_types import Uint64, Uint32 +from XenKvmLib.vxml import get_class +from XenKvmLib.enumclass import EnumInstances +from XenKvmLib.classes import get_typed_class, inst_to_mof from CimTest.Globals import logger from XenKvmLib.const import do_main from CimTest.ReturnCodes import FAIL, PASS -from XenKvmLib.test_doms import destroy_and_undefine_domain +from XenKvmLib.rasd import get_default_rasds sup_types = ['Xen', 'XenFV', 'KVM'] -default_dom = 'rstest_domain' +test_dom = 'procrasd_persist_dom' -nvcpu = 2 +nvcpu = 3 weight = 124 -limit = 256 +limit = 512 -REQUESTED_STATE = 2 -TIME = "00000000000000.000000:000" +def setup_guest(ip, virt, cxml, prasd_cn): + rasds = get_default_rasds(ip, virt) + rasd_list= { prasd_cn : None } + + for rasd in rasds: + if rasd.classname == prasd_cn: + rasd['InstanceID'] = '%s/proc' %test_dom + rasd['VirtualQuantity'] = Uint64(nvcpu) + rasd['Weight'] = Uint32(weight) + rasd['Limit'] = Uint64(limit) + rasd_list[prasd_cn] = inst_to_mof(rasd) -def setup_rasd_mof(ip, vtype): - vssd, rasd = vsms.default_vssd_rasd_str(default_dom, virt=vtype) + if rasd_list[prasd_cn] is None: + logger.error("Unable to set template ProcRASD") + return FAIL - class_pasd = vsms.get_pasd_class(vtype) - proc_inst = class_pasd(default_dom, nvcpu, weight, limit) - proc_mof = proc_inst.mof() + cxml.set_res_settings(rasd_list) + ret = cxml.cim_define(ip) + if not ret: + logger.error("Unable to define %s ", test_dom) + return FAIL - for i in range(len(rasd)): - if "ProcResourceAllocationSettingData" in rasd[i]: - rasd[i] = proc_mof - return PASS, vssd, rasd + return PASS - return FAIL, vssd, rasd +def check_proc_sched(server, cn_name): + try: + proc_rasd = None + rasds = EnumInstances(server, cn_name, ret_cim_inst=True) + for rasd in rasds: + if test_dom in rasd["InstanceID"]: + proc_rasd = rasd + break -def check_proc_sched(server, virt): - try: - key_list = {"InstanceID" : '%s/proc' %default_dom} - cn_name = get_typed_class(virt, 'ProcResourceAllocationSettingData') - proc = GetInstance(server, cn_name, key_list) + if proc_rasd == None: + logger.error("Did not find test RASD on server") + return FAIL - if proc.Limit != limit: - logger.error("Limit is %i, expected %i", proc.Limit, limit) + if proc_rasd["VirtualQuantity"] != nvcpu: + logger.error("VirtualQuantity is %i, expected %i", + proc_rasd["VirtualQuantity"], nvcpu) return FAIL - if proc.Weight != weight: - logger.error("Weight is %i, expected %i", proc.Weight, weight) + if proc_rasd["Limit"] != limit: + logger.error("Limit is %i, expected %i", + proc_rasd["Limit"], limit) + return FAIL + + if proc_rasd["Weight"] != weight: + logger.error("Weight is %i, expected %i", + proc_rasd["Weight"], weight) return FAIL except Exception, details: @@ -79,40 +112,50 @@ def check_proc_sched(server, virt): @do_main(sup_types) def main(): - options = main.options + options = main.options + virt = options.virt + server = options.ip + + cxml = get_class(virt)(test_dom) + prasd_cn = get_typed_class(virt, "ProcResourceAllocationSettingData") + dom_define = dom_start = False + try: + for count in range(3): + status = setup_guest(server, virt, cxml, prasd_cn) + if status != PASS: + return status + + dom_define = True + status = check_proc_sched(server, prasd_cn) + if status != PASS: + raise Exception("CPU scheduling not set properly for " + " defined dom: %s" % test_dom) + + status = cxml.cim_start(server) + if status != PASS: + raise Exception("Unable to start %s " % test_dom) - status, vssd, rasd = setup_rasd_mof(options.ip, options.virt) - if status != PASS: - return status + dom_start = True + status = check_proc_sched(server, prasd_cn) + if status != PASS: + raise Exception("CPU scheduling not set properly for the dom: " + "%s" % test_dom) - try: - service = vsms.get_vsms_class(options.virt)(options.ip) - service.DefineSystem(SystemSettings=vssd, - ResourceSettings=rasd, - ReferenceConfiguration=' ') + cxml.cim_destroy(server) + dom_start = False - rc = call_request_state_change(default_dom, options.ip, - REQUESTED_STATE, TIME, options.virt) - if rc != 0: - raise Exception("Unable to start %s using RequestedStateChange()" % - default_dom) - - status, dom_cs = poll_for_state_change(options.ip, options.virt, - default_dom, REQUESTED_STATE) - if status != PASS: - raise Exception("%s didn't change state as expected" % default_dom) - - status = check_proc_sched(options.ip, options.virt) - if status != PASS: - raise Exception("%s CPU scheduling not set properly" % default_dom) - - status = PASS + cxml.undefine(server) + dom_define = False except Exception, details: logger.error("Exception: details %s", details) status = FAIL - destroy_and_undefine_domain(default_dom, options.ip, options.virt) + if dom_start == True: + cxml.cim_destroy(server) + + if dom_define == True: + cxml.undefine(server) return status From deeptik at linux.vnet.ibm.com Mon Feb 16 04:39:28 2009 From: deeptik at linux.vnet.ibm.com (Deepti B Kalakeri) Date: Mon, 16 Feb 2009 10:09:28 +0530 Subject: [Libvirt-cim] [PATCH] [TEST] #3 Update VSMS 14_define_sys_disk.py to use cim_define() In-Reply-To: <2d445349b1e6fc2dff2f.1233789487@localhost.localdomain> References: <2d445349b1e6fc2dff2f.1233789487@localhost.localdomain> Message-ID: <4998EE00.5060102@linux.vnet.ibm.com> +1. -- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik at linux.vnet.ibm.com From yunguol at cn.ibm.com Mon Feb 16 05:14:50 2009 From: yunguol at cn.ibm.com (Guo Lian Yun) Date: Mon, 16 Feb 2009 13:14:50 +0800 Subject: [Libvirt-cim] Test Run Summary (Feb 16 2009): KVM on Fedora release 9 (Sulphur) with Pegasus In-Reply-To: Message-ID: Actually, there is one tc fails for KVM on F9 rpm. That is VirtualSystemManagementService - 09_procrasd_persist.py, which will crash the Pegasus when I run the cimtest automatically. So I remove it from the cimtest. It passes for me with Deepti's patch. Thanks! libvirt-cim-bounces at redhat.com wrote on 2009-02-16 11:04:12: > > ================================================= > Test Run Summary (Feb 16 2009): KVM on Fedora release 9 (Sulphur) with Pegasus > ================================================= > Distro: Fedora release 9 (Sulphur) > Kernel: 2.6.25.14-108.fc9.x86_64 > libvirt: 0.4.4 > Hypervisor: QEMU 0.9.1 > CIMOM: Pegasus 2.7.0 > Libvirt-cim revision: 613 > Libvirt-cim changeset: 1fcf330fadf8+ > Cimtest revision: 625 > Cimtest changeset: f5ef41b6e30f > ================================================= > FAIL : 0 > XFAIL : 3 > SKIP : 13 > PASS : 129 > ----------------- > Total : 145 > ================================================= > XFAIL Test Summary: > ComputerSystem - 32_start_reboot.py: XFAIL > ComputerSystem - 33_suspend_reboot.py: XFAIL > VirtualSystemManagementService - 15_mod_system_settings.py: XFAIL > > ================================================= > SKIP Test Summary: > HostedAccessPoint - 01_forward.py: SKIP > HostedAccessPoint - 02_reverse.py: SKIP > KVMRedirectionSAP - 01_enum_KVMredSAP.py: SKIP > RASD - 05_disk_rasd_emu_type.py: SKIP > RedirectionService - 01_enum_crs.py: SKIP > RedirectionService - 02_enum_crscap.py: SKIP > RedirectionService - 03_RedirectionSAP_errs.py: SKIP > ServiceAccessBySAP - 01_forward.py: SKIP > ServiceAccessBySAP - 02_reverse.py: SKIP > VSSD - 02_bootldr.py: SKIP > VirtualSystemMigrationService - 01_migratable_host.py: SKIP > VirtualSystemMigrationService - 02_host_migrate_type.py: SKIP > VirtualSystemMigrationService - 05_migratable_host_errs.py: SKIP > > ================================================= > Full report: > -------------------------------------------------------------------- > AllocationCapabilities - 01_enum.py: PASS > -------------------------------------------------------------------- > AllocationCapabilities - 02_alloccap_gi_errs.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 01_enum.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 02_nosystems.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 03_defineVS.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 04_defineStartVS.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 05_activate_defined_start.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 06_paused_active_suspend.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 22_define_suspend.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 23_pause_pause.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 27_define_pause_errs.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 32_start_reboot.py: XFAIL > ERROR - Got CIM error CIM_ERR_FAILED: Domain > Operation Failed with return code 1 > ERROR - Exception: Unable reboot dom 'cs_test_domain' > InvokeMethod(RequestStateChange): CIM_ERR_FAILED: Domain Operation Failed > Bug:<00005> > -------------------------------------------------------------------- > ComputerSystem - 33_suspend_reboot.py: XFAIL > ERROR - Got CIM error CIM_ERR_NOT_SUPPORTED: State > not supported with return code 7 > ERROR - Exception: Unable Suspend dom 'test_domain' > InvokeMethod(RequestStateChange): CIM_ERR_NOT_SUPPORTED: State not supported > Bug:<00012> > -------------------------------------------------------------------- > ComputerSystem - 35_start_reset.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 40_RSC_start.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 41_cs_to_settingdefinestate.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 42_cs_gi_errs.py: PASS > -------------------------------------------------------------------- > ComputerSystemIndication - 01_created_indication.py: PASS > -------------------------------------------------------------------- > ElementAllocatedFromPool - 01_forward.py: PASS > -------------------------------------------------------------------- > ElementAllocatedFromPool - 02_reverse.py: PASS > -------------------------------------------------------------------- > ElementAllocatedFromPool - 03_reverse_errs.py: PASS > -------------------------------------------------------------------- > ElementAllocatedFromPool - 04_forward_errs.py: PASS > -------------------------------------------------------------------- > ElementCapabilities - 01_forward.py: PASS > -------------------------------------------------------------------- > ElementCapabilities - 02_reverse.py: PASS > -------------------------------------------------------------------- > ElementCapabilities - 03_forward_errs.py: PASS > -------------------------------------------------------------------- > ElementCapabilities - 04_reverse_errs.py: PASS > -------------------------------------------------------------------- > ElementCapabilities - 05_hostsystem_cap.py: PASS > -------------------------------------------------------------------- > ElementConforms - 01_forward.py: PASS > -------------------------------------------------------------------- > ElementConforms - 02_reverse.py: PASS > -------------------------------------------------------------------- > ElementConforms - 03_ectp_fwd_errs.py: PASS > -------------------------------------------------------------------- > ElementConforms - 04_ectp_rev_errs.py: PASS > -------------------------------------------------------------------- > ElementSettingData - 01_forward.py: PASS > -------------------------------------------------------------------- > ElementSettingData - 03_esd_assoc_with_rasd_errs.py: PASS > -------------------------------------------------------------------- > EnabledLogicalElementCapabilities - 01_enum.py: PASS > -------------------------------------------------------------------- > EnabledLogicalElementCapabilities - 02_elecap_gi_errs.py: PASS > -------------------------------------------------------------------- > HostSystem - 01_enum.py: PASS > -------------------------------------------------------------------- > HostSystem - 02_hostsystem_to_rasd.py: PASS > -------------------------------------------------------------------- > HostSystem - 03_hs_to_settdefcap.py: PASS > -------------------------------------------------------------------- > HostSystem - 04_hs_to_EAPF.py: PASS > -------------------------------------------------------------------- > HostSystem - 05_hs_gi_errs.py: PASS > -------------------------------------------------------------------- > HostSystem - 06_hs_to_vsms.py: PASS > -------------------------------------------------------------------- > HostedAccessPoint - 01_forward.py: SKIP > -------------------------------------------------------------------- > HostedAccessPoint - 02_reverse.py: SKIP > -------------------------------------------------------------------- > HostedDependency - 01_forward.py: PASS > -------------------------------------------------------------------- > HostedDependency - 02_reverse.py: PASS > -------------------------------------------------------------------- > HostedDependency - 03_enabledstate.py: PASS > -------------------------------------------------------------------- > HostedDependency - 04_reverse_errs.py: PASS > -------------------------------------------------------------------- > HostedResourcePool - 01_forward.py: PASS > -------------------------------------------------------------------- > HostedResourcePool - 02_reverse.py: PASS > -------------------------------------------------------------------- > HostedResourcePool - 03_forward_errs.py: PASS > -------------------------------------------------------------------- > HostedResourcePool - 04_reverse_errs.py: PASS > -------------------------------------------------------------------- > HostedService - 01_forward.py: PASS > -------------------------------------------------------------------- > HostedService - 02_reverse.py: PASS > -------------------------------------------------------------------- > HostedService - 03_forward_errs.py: PASS > -------------------------------------------------------------------- > HostedService - 04_reverse_errs.py: PASS > -------------------------------------------------------------------- > KVMRedirectionSAP - 01_enum_KVMredSAP.py: SKIP > -------------------------------------------------------------------- > LogicalDisk - 01_disk.py: PASS > -------------------------------------------------------------------- > LogicalDisk - 02_nodevs.py: PASS > -------------------------------------------------------------------- > LogicalDisk - 03_ld_gi_errs.py: PASS > -------------------------------------------------------------------- > Memory - 01_memory.py: PASS > -------------------------------------------------------------------- > Memory - 02_defgetmem.py: PASS > -------------------------------------------------------------------- > Memory - 03_mem_gi_errs.py: PASS > -------------------------------------------------------------------- > NetworkPort - 01_netport.py: PASS > -------------------------------------------------------------------- > NetworkPort - 02_np_gi_errors.py: PASS > -------------------------------------------------------------------- > NetworkPort - 03_user_netport.py: PASS > -------------------------------------------------------------------- > Processor - 01_processor.py: PASS > -------------------------------------------------------------------- > Processor - 02_definesys_get_procs.py: PASS > -------------------------------------------------------------------- > Processor - 03_proc_gi_errs.py: PASS > -------------------------------------------------------------------- > Profile - 01_enum.py: PASS > -------------------------------------------------------------------- > Profile - 02_profile_to_elec.py: PASS > -------------------------------------------------------------------- > Profile - 03_rprofile_gi_errs.py: PASS > -------------------------------------------------------------------- > RASD - 01_verify_rasd_fields.py: PASS > -------------------------------------------------------------------- > RASD - 02_enum.py: PASS > -------------------------------------------------------------------- > RASD - 03_rasd_errs.py: PASS > -------------------------------------------------------------------- > RASD - 04_disk_rasd_size.py: PASS > -------------------------------------------------------------------- > RASD - 05_disk_rasd_emu_type.py: SKIP > -------------------------------------------------------------------- > RedirectionService - 01_enum_crs.py: SKIP > -------------------------------------------------------------------- > RedirectionService - 02_enum_crscap.py: SKIP > -------------------------------------------------------------------- > RedirectionService - 03_RedirectionSAP_errs.py: SKIP > -------------------------------------------------------------------- > ReferencedProfile - 01_verify_refprof.py: PASS > -------------------------------------------------------------------- > ReferencedProfile - 02_refprofile_errs.py: PASS > -------------------------------------------------------------------- > ResourceAllocationFromPool - 01_forward.py: PASS > -------------------------------------------------------------------- > ResourceAllocationFromPool - 02_reverse.py: PASS > -------------------------------------------------------------------- > ResourceAllocationFromPool - 03_forward_errs.py: PASS > -------------------------------------------------------------------- > ResourceAllocationFromPool - 04_reverse_errs.py: PASS > -------------------------------------------------------------------- > ResourceAllocationFromPool - 05_RAPF_err.py: PASS > -------------------------------------------------------------------- > ResourcePool - 01_enum.py: PASS > -------------------------------------------------------------------- > ResourcePool - 02_rp_gi_errors.py: PASS > -------------------------------------------------------------------- > ResourcePoolConfigurationCapabilities - 01_enum.py: PASS > -------------------------------------------------------------------- > ResourcePoolConfigurationCapabilities - 02_rpcc_gi_errs.py: PASS > -------------------------------------------------------------------- > ResourcePoolConfigurationService - 01_enum.py: PASS > -------------------------------------------------------------------- > ResourcePoolConfigurationService - 02_rcps_gi_errors.py: PASS > -------------------------------------------------------------------- > ResourcePoolConfigurationService - 03_CreateResourcePool.py: PASS > -------------------------------------------------------------------- > ResourcePoolConfigurationService - 04_CreateChildResourcePool.py: PASS > -------------------------------------------------------------------- > ResourcePoolConfigurationService - 05_AddResourcesToResourcePool.py: PASS > -------------------------------------------------------------------- > ResourcePoolConfigurationService - 06_RemoveResourcesFromResourcePool.py: PASS > -------------------------------------------------------------------- > ResourcePoolConfigurationService - 07_DeleteResourcePool.py: PASS > -------------------------------------------------------------------- > ServiceAccessBySAP - 01_forward.py: SKIP > -------------------------------------------------------------------- > ServiceAccessBySAP - 02_reverse.py: SKIP > -------------------------------------------------------------------- > SettingsDefine - 01_forward.py: PASS > -------------------------------------------------------------------- > SettingsDefine - 02_reverse.py: PASS > -------------------------------------------------------------------- > SettingsDefine - 03_sds_fwd_errs.py: PASS > -------------------------------------------------------------------- > SettingsDefine - 04_sds_rev_errs.py: PASS > -------------------------------------------------------------------- > SettingsDefineCapabilities - 01_forward.py: PASS > -------------------------------------------------------------------- > SettingsDefineCapabilities - 03_forward_errs.py: PASS > -------------------------------------------------------------------- > SettingsDefineCapabilities - 04_forward_vsmsdata.py: PASS > -------------------------------------------------------------------- > SettingsDefineCapabilities - 05_reverse_vsmcap.py: PASS > -------------------------------------------------------------------- > SystemDevice - 01_forward.py: PASS > -------------------------------------------------------------------- > SystemDevice - 02_reverse.py: PASS > -------------------------------------------------------------------- > SystemDevice - 03_fwderrs.py: PASS > -------------------------------------------------------------------- > VSSD - 01_enum.py: PASS > -------------------------------------------------------------------- > VSSD - 02_bootldr.py: SKIP > -------------------------------------------------------------------- > VSSD - 03_vssd_gi_errs.py: PASS > -------------------------------------------------------------------- > VSSD - 04_vssd_to_rasd.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementCapabilities - 01_enum.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementCapabilities - 02_vsmcap_gi_errs.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 01_definesystem_name.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 02_destroysystem.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 03_definesystem_ess.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 04_definesystem_ers.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 05_destroysystem_neg.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 06_addresource.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 07_addresource_neg.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 08_modifyresource.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 10_hv_version.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 11_define_memrasdunits.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 12_referenced_config.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 13_refconfig_additional_devs.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 14_define_sys_disk.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 15_mod_system_settings.py: XFAIL > ERROR - rstest_domain not updated properly. > ERROR - Exp AutomaticRecoveryAction=3, got 2 > Bug:<00010> > -------------------------------------------------------------------- > VirtualSystemMigrationCapabilities - 01_enum.py: PASS > -------------------------------------------------------------------- > VirtualSystemMigrationCapabilities - 02_vsmc_gi_errs.py: PASS > -------------------------------------------------------------------- > VirtualSystemMigrationService - 01_migratable_host.py: SKIP > -------------------------------------------------------------------- > VirtualSystemMigrationService - 02_host_migrate_type.py: SKIP > -------------------------------------------------------------------- > VirtualSystemMigrationService - 05_migratable_host_errs.py: SKIP > -------------------------------------------------------------------- > VirtualSystemMigrationSettingData - 01_enum.py: PASS > -------------------------------------------------------------------- > VirtualSystemMigrationSettingData - 02_vsmsd_gi_errs.py: PASS > -------------------------------------------------------------------- > VirtualSystemSettingDataComponent - 01_forward.py: PASS > -------------------------------------------------------------------- > VirtualSystemSettingDataComponent - 02_reverse.py: PASS > -------------------------------------------------------------------- > VirtualSystemSettingDataComponent - 03_vssdc_fwd_errs.py: PASS > -------------------------------------------------------------------- > VirtualSystemSettingDataComponent - 04_vssdc_rev_errs.py: PASS > -------------------------------------------------------------------- > VirtualSystemSnapshotService - 01_enum.py: PASS > -------------------------------------------------------------------- > VirtualSystemSnapshotService - 02_vs_sservice_gi_errs.py: PASS > -------------------------------------------------------------------- > VirtualSystemSnapshotServiceCapabilities - 01_enum.py: PASS > -------------------------------------------------------------------- > VirtualSystemSnapshotServiceCapabilities - 02_vs_sservicecap_gi_errs.py: PASS > -------------------------------------------------------------------- > _______________________________________________ > Libvirt-cim mailing list > Libvirt-cim at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-cim -------------- next part -------------- An HTML attachment was scrubbed... URL: From deeptik at linux.vnet.ibm.com Mon Feb 16 05:49:11 2009 From: deeptik at linux.vnet.ibm.com (Deepti B Kalakeri) Date: Mon, 16 Feb 2009 11:19:11 +0530 Subject: [Libvirt-cim] Test Run Summary (Feb 16 2009): KVM on Fedora release 9.90.1 (Rawhide) with sfcb In-Reply-To: References: Message-ID: <4998FE57.5040701@linux.vnet.ibm.com> Guo Lian Yun wrote: > > libvirt-cim-bounces at redhat.com wrote on 2009-02-16 10:28:58: > > > > > ================================================= > > Test Run Summary (Feb 16 2009): KVM on Fedora release 9.90.1 > > (Rawhide) with sfcb > > ================================================= > > Distro: Fedora release 9.90.1 (Rawhide) > > Kernel: 2.6.27-0.323.rc6.fc10.x86_64 > > libvirt: 0.4.5 > > Hypervisor: QEMU 0.9.1 > > CIMOM: sfcb sfcbd 1.3.3preview > > Libvirt-cim revision: 811 > > Libvirt-cim changeset: 72dc446be12c > > Cimtest revision: 625 > > Cimtest changeset: f5ef41b6e30f > > ================================================= > > FAIL : 1 > > XFAIL : 2 > > SKIP : 4 > > PASS : 139 > > ----------------- > > Total : 146 > > ================================================= > > FAIL Test Summary: > > ElementConforms - 01_forward.py: FAIL > > The patch with fix this is under progress. > Deepti - Is there any schedule to work it out? Daisy, I am not currently working on this. Can you pick it up ? -- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik at linux.vnet.ibm.com From deeptik at linux.vnet.ibm.com Mon Feb 16 08:36:05 2009 From: deeptik at linux.vnet.ibm.com (Deepti B Kalakeri) Date: Mon, 16 Feb 2009 14:06:05 +0530 Subject: [Libvirt-cim] Test Run Summary (Feb 16 2009): Xen on Red Hat Enterprise Linux Server release 5.3 (Tikanga) with Pegasus Message-ID: <49992575.3060009@linux.vnet.ibm.com> ================================================= Test Run Summary (Feb 16 2009): Xen on Red Hat Enterprise Linux Server release 5.3 (Tikanga) with Pegasus ================================================= Distro: Red Hat Enterprise Linux Server release 5.3 (Tikanga) Kernel: 2.6.18-128.el5xen libvirt: 0.3.3 Hypervisor: Xen 3.1.0 CIMOM: Pegasus 2.7.1 Libvirt-cim revision: 613 Libvirt-cim changeset: 1fcf330fadf8+ Cimtest revision: Cimtest changeset: ================================================= FAIL : 8 XFAIL : 1 SKIP : 12 PASS : 125 ----------------- Total : 146 ================================================= FAIL Test Summary: HostSystem - 03_hs_to_settdefcap.py: FAIL VirtualSystemManagementService - 09_procrasd_persist.py: FAIL VirtualSystemMigrationService - 01_migratable_host.py: FAIL VirtualSystemMigrationService - 02_host_migrate_type.py: FAIL VirtualSystemMigrationService - 05_migratable_host_errs.py: FAIL VirtualSystemSettingDataComponent - 02_reverse.py: FAIL VirtualSystemSettingDataComponent - 03_vssdc_fwd_errs.py: FAIL VirtualSystemSettingDataComponent - 04_vssdc_rev_errs.py: FAIL ================================================= XFAIL Test Summary: ComputerSystem - 33_suspend_reboot.py: XFAIL ================================================= SKIP Test Summary: ComputerSystem - 02_nosystems.py: SKIP HostedAccessPoint - 01_forward.py: SKIP HostedAccessPoint - 02_reverse.py: SKIP KVMRedirectionSAP - 01_enum_KVMredSAP.py: SKIP LogicalDisk - 02_nodevs.py: SKIP NetworkPort - 03_user_netport.py: SKIP RASD - 05_disk_rasd_emu_type.py: SKIP RedirectionService - 01_enum_crs.py: SKIP RedirectionService - 02_enum_crscap.py: SKIP RedirectionService - 03_RedirectionSAP_errs.py: SKIP ServiceAccessBySAP - 01_forward.py: SKIP ServiceAccessBySAP - 02_reverse.py: SKIP ================================================= Full report: -------------------------------------------------------------------- AllocationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- AllocationCapabilities - 02_alloccap_gi_errs.py: PASS -------------------------------------------------------------------- ComputerSystem - 01_enum.py: PASS -------------------------------------------------------------------- ComputerSystem - 02_nosystems.py: SKIP -------------------------------------------------------------------- ComputerSystem - 03_defineVS.py: PASS -------------------------------------------------------------------- ComputerSystem - 04_defineStartVS.py: PASS -------------------------------------------------------------------- ComputerSystem - 05_activate_defined_start.py: PASS -------------------------------------------------------------------- ComputerSystem - 06_paused_active_suspend.py: PASS -------------------------------------------------------------------- ComputerSystem - 22_define_suspend.py: PASS -------------------------------------------------------------------- ComputerSystem - 23_pause_pause.py: PASS -------------------------------------------------------------------- ComputerSystem - 27_define_pause_errs.py: PASS -------------------------------------------------------------------- ComputerSystem - 32_start_reboot.py: PASS -------------------------------------------------------------------- ComputerSystem - 33_suspend_reboot.py: XFAIL ERROR - Got CIM error CIM_ERR_NOT_SUPPORTED: State not supported with return code 7 ERROR - Exception: Unable Suspend dom 'test_domain' InvokeMethod(RequestStateChange): CIM_ERR_NOT_SUPPORTED: State not supported Bug:<00012> -------------------------------------------------------------------- ComputerSystem - 35_start_reset.py: PASS -------------------------------------------------------------------- ComputerSystem - 40_RSC_start.py: PASS -------------------------------------------------------------------- ComputerSystem - 41_cs_to_settingdefinestate.py: PASS -------------------------------------------------------------------- ComputerSystem - 42_cs_gi_errs.py: PASS -------------------------------------------------------------------- ComputerSystemIndication - 01_created_indication.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 01_forward.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 02_reverse.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 03_reverse_errs.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 04_forward_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 01_forward.py: PASS -------------------------------------------------------------------- ElementCapabilities - 02_reverse.py: PASS -------------------------------------------------------------------- ElementCapabilities - 03_forward_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 04_reverse_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 05_hostsystem_cap.py: PASS -------------------------------------------------------------------- ElementConforms - 01_forward.py: PASS -------------------------------------------------------------------- ElementConforms - 02_reverse.py: PASS -------------------------------------------------------------------- ElementConforms - 03_ectp_fwd_errs.py: PASS -------------------------------------------------------------------- ElementConforms - 04_ectp_rev_errs.py: PASS -------------------------------------------------------------------- ElementSettingData - 01_forward.py: PASS -------------------------------------------------------------------- ElementSettingData - 03_esd_assoc_with_rasd_errs.py: PASS -------------------------------------------------------------------- EnabledLogicalElementCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- EnabledLogicalElementCapabilities - 02_elecap_gi_errs.py: PASS -------------------------------------------------------------------- HostSystem - 01_enum.py: PASS -------------------------------------------------------------------- HostSystem - 02_hostsystem_to_rasd.py: PASS -------------------------------------------------------------------- HostSystem - 03_hs_to_settdefcap.py: FAIL ERROR - Failed to get associatornames according to Xen_AllocationCapabilities ERROR - Exception: global name 'libvirt_read_new_changes' is not defined CIM_ERR_INVALID_CLASS: Linux_ComputerSystem -------------------------------------------------------------------- HostSystem - 04_hs_to_EAPF.py: PASS -------------------------------------------------------------------- HostSystem - 05_hs_gi_errs.py: PASS -------------------------------------------------------------------- HostSystem - 06_hs_to_vsms.py: PASS -------------------------------------------------------------------- HostedAccessPoint - 01_forward.py: SKIP -------------------------------------------------------------------- HostedAccessPoint - 02_reverse.py: SKIP -------------------------------------------------------------------- HostedDependency - 01_forward.py: PASS -------------------------------------------------------------------- HostedDependency - 02_reverse.py: PASS -------------------------------------------------------------------- HostedDependency - 03_enabledstate.py: PASS -------------------------------------------------------------------- HostedDependency - 04_reverse_errs.py: PASS -------------------------------------------------------------------- HostedResourcePool - 01_forward.py: PASS -------------------------------------------------------------------- HostedResourcePool - 02_reverse.py: PASS -------------------------------------------------------------------- HostedResourcePool - 03_forward_errs.py: PASS -------------------------------------------------------------------- HostedResourcePool - 04_reverse_errs.py: PASS -------------------------------------------------------------------- HostedService - 01_forward.py: PASS -------------------------------------------------------------------- HostedService - 02_reverse.py: PASS -------------------------------------------------------------------- HostedService - 03_forward_errs.py: PASS -------------------------------------------------------------------- HostedService - 04_reverse_errs.py: PASS -------------------------------------------------------------------- KVMRedirectionSAP - 01_enum_KVMredSAP.py: SKIP -------------------------------------------------------------------- LogicalDisk - 01_disk.py: PASS -------------------------------------------------------------------- LogicalDisk - 02_nodevs.py: SKIP ERROR - System has defined domains; unable to run -------------------------------------------------------------------- LogicalDisk - 03_ld_gi_errs.py: PASS -------------------------------------------------------------------- Memory - 01_memory.py: PASS -------------------------------------------------------------------- Memory - 02_defgetmem.py: PASS -------------------------------------------------------------------- Memory - 03_mem_gi_errs.py: PASS -------------------------------------------------------------------- NetworkPort - 01_netport.py: PASS -------------------------------------------------------------------- NetworkPort - 02_np_gi_errors.py: PASS -------------------------------------------------------------------- NetworkPort - 03_user_netport.py: SKIP -------------------------------------------------------------------- Processor - 01_processor.py: PASS -------------------------------------------------------------------- Processor - 02_definesys_get_procs.py: PASS -------------------------------------------------------------------- Processor - 03_proc_gi_errs.py: PASS -------------------------------------------------------------------- Profile - 01_enum.py: PASS -------------------------------------------------------------------- Profile - 02_profile_to_elec.py: PASS -------------------------------------------------------------------- Profile - 03_rprofile_gi_errs.py: PASS -------------------------------------------------------------------- RASD - 01_verify_rasd_fields.py: PASS -------------------------------------------------------------------- RASD - 02_enum.py: PASS -------------------------------------------------------------------- RASD - 03_rasd_errs.py: PASS -------------------------------------------------------------------- RASD - 04_disk_rasd_size.py: PASS -------------------------------------------------------------------- RASD - 05_disk_rasd_emu_type.py: SKIP -------------------------------------------------------------------- RedirectionService - 01_enum_crs.py: SKIP -------------------------------------------------------------------- RedirectionService - 02_enum_crscap.py: SKIP -------------------------------------------------------------------- RedirectionService - 03_RedirectionSAP_errs.py: SKIP -------------------------------------------------------------------- ReferencedProfile - 01_verify_refprof.py: PASS -------------------------------------------------------------------- ReferencedProfile - 02_refprofile_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 01_forward.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 02_reverse.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 03_forward_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 04_reverse_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 05_RAPF_err.py: PASS -------------------------------------------------------------------- ResourcePool - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePool - 02_rp_gi_errors.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationCapabilities - 02_rpcc_gi_errs.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 02_rcps_gi_errors.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 03_CreateResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 04_CreateChildResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 05_AddResourcesToResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 06_RemoveResourcesFromResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 07_DeleteResourcePool.py: PASS -------------------------------------------------------------------- ServiceAccessBySAP - 01_forward.py: SKIP -------------------------------------------------------------------- ServiceAccessBySAP - 02_reverse.py: SKIP -------------------------------------------------------------------- SettingsDefine - 01_forward.py: PASS -------------------------------------------------------------------- SettingsDefine - 02_reverse.py: PASS -------------------------------------------------------------------- SettingsDefine - 03_sds_fwd_errs.py: PASS -------------------------------------------------------------------- SettingsDefine - 04_sds_rev_errs.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 01_forward.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 03_forward_errs.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 04_forward_vsmsdata.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 05_reverse_vsmcap.py: PASS -------------------------------------------------------------------- SystemDevice - 01_forward.py: PASS -------------------------------------------------------------------- SystemDevice - 02_reverse.py: PASS -------------------------------------------------------------------- SystemDevice - 03_fwderrs.py: PASS -------------------------------------------------------------------- VSSD - 01_enum.py: PASS -------------------------------------------------------------------- VSSD - 02_bootldr.py: PASS -------------------------------------------------------------------- VSSD - 03_vssd_gi_errs.py: PASS -------------------------------------------------------------------- VSSD - 04_vssd_to_rasd.py: PASS -------------------------------------------------------------------- VirtualSystemManagementCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemManagementCapabilities - 02_vsmcap_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 01_definesystem_name.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 02_destroysystem.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 03_definesystem_ess.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 04_definesystem_ers.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 05_destroysystem_neg.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 06_addresource.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 07_addresource_neg.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 08_modifyresource.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 09_procrasd_persist.py: FAIL ERROR - Exception: details (1, u'CIM_ERR_FAILED: Unable to parse embedded object') InvokeMethod(DefineSystem): CIM_ERR_FAILED: Unable to parse embedded object -------------------------------------------------------------------- VirtualSystemManagementService - 10_hv_version.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 11_define_memrasdunits.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 12_referenced_config.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 13_refconfig_additional_devs.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 14_define_sys_disk.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 15_mod_system_settings.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationCapabilities - 02_vsmc_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationService - 01_migratable_host.py: FAIL ERROR - MigrateVirtualSystemToHost took too long Xen_ComputerSystem.CreationClassName="Xen_ComputerSystem",Name="dom_migrate" -------------------------------------------------------------------- VirtualSystemMigrationService - 02_host_migrate_type.py: FAIL ERROR - Got CIM error CIM_ERR_FAILED: Failed to lookup resulting system with return code 1 ERROR - CS instance not returned for dom_migrate. ERROR - Error start domain dom_migrate InvokeMethod(DefineSystem): CIM_ERR_FAILED: Failed to lookup resulting system CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). -------------------------------------------------------------------- VirtualSystemMigrationService - 05_migratable_host_errs.py: FAIL ERROR - Got CIM error CIM_ERR_FAILED: Unable to start domain with return code 1 ERROR - Error start domain dom_migration InvokeMethod(RequestStateChange): CIM_ERR_FAILED: Unable to start domain -------------------------------------------------------------------- VirtualSystemMigrationSettingData - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationSettingData - 02_vsmsd_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 01_forward.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 02_reverse.py: FAIL ERROR - Got CIM error CIM_ERR_FAILED: Unable to start domain with return code 1 ERROR - Failed to start the dom: VSSDC_dom InvokeMethod(RequestStateChange): CIM_ERR_FAILED: Unable to start domain -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 03_vssdc_fwd_errs.py: FAIL ERROR - Got CIM error CIM_ERR_FAILED: Unable to start domain with return code 1 ERROR - Unable to start domain domu1 InvokeMethod(RequestStateChange): CIM_ERR_FAILED: Unable to start domain -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 04_vssdc_rev_errs.py: FAIL ERROR - Got CIM error CIM_ERR_FAILED: Unable to start domain with return code 1 ERROR - Unable to start domain domu1 InvokeMethod(RequestStateChange): CIM_ERR_FAILED: Unable to start domain -------------------------------------------------------------------- VirtualSystemSnapshotService - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotService - 02_vs_sservice_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotServiceCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotServiceCapabilities - 02_vs_sservicecap_gi_errs.py: PASS -------------------------------------------------------------------- -- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik at linux.vnet.ibm.com From deeptik at linux.vnet.ibm.com Mon Feb 16 08:37:24 2009 From: deeptik at linux.vnet.ibm.com (Deepti B Kalakeri) Date: Mon, 16 Feb 2009 14:07:24 +0530 Subject: [Libvirt-cim] Test Run Summary (Feb 16 2009): XenFV on Red Hat Enterprise Linux Server release 5.3 (Tikanga) with Pegasus Message-ID: <499925C4.3080601@linux.vnet.ibm.com> ================================================= Test Run Summary (Feb 16 2009): XenFV on Red Hat Enterprise Linux Server release 5.3 (Tikanga) with Pegasus ================================================= Distro: Red Hat Enterprise Linux Server release 5.3 (Tikanga) Kernel: 2.6.18-128.el5xen libvirt: 0.3.3 Hypervisor: Xen 3.1.0 CIMOM: Pegasus 2.7.1 Libvirt-cim revision: 613 Libvirt-cim changeset: 1fcf330fadf8+ Cimtest revision: Cimtest changeset: ================================================= FAIL : 5 XFAIL : 1 SKIP : 13 PASS : 127 ----------------- Total : 146 ================================================= FAIL Test Summary: HostSystem - 03_hs_to_settdefcap.py: FAIL NetworkPort - 02_np_gi_errors.py: FAIL VirtualSystemManagementService - 09_procrasd_persist.py: FAIL VirtualSystemMigrationService - 01_migratable_host.py: FAIL VirtualSystemMigrationService - 02_host_migrate_type.py: FAIL ================================================= XFAIL Test Summary: ComputerSystem - 33_suspend_reboot.py: XFAIL ================================================= SKIP Test Summary: ComputerSystem - 02_nosystems.py: SKIP HostedAccessPoint - 01_forward.py: SKIP HostedAccessPoint - 02_reverse.py: SKIP KVMRedirectionSAP - 01_enum_KVMredSAP.py: SKIP LogicalDisk - 02_nodevs.py: SKIP NetworkPort - 03_user_netport.py: SKIP RASD - 05_disk_rasd_emu_type.py: SKIP RedirectionService - 01_enum_crs.py: SKIP RedirectionService - 02_enum_crscap.py: SKIP RedirectionService - 03_RedirectionSAP_errs.py: SKIP ServiceAccessBySAP - 01_forward.py: SKIP ServiceAccessBySAP - 02_reverse.py: SKIP VSSD - 02_bootldr.py: SKIP ================================================= Full report: -------------------------------------------------------------------- AllocationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- AllocationCapabilities - 02_alloccap_gi_errs.py: PASS -------------------------------------------------------------------- ComputerSystem - 01_enum.py: PASS -------------------------------------------------------------------- ComputerSystem - 02_nosystems.py: SKIP -------------------------------------------------------------------- ComputerSystem - 03_defineVS.py: PASS -------------------------------------------------------------------- ComputerSystem - 04_defineStartVS.py: PASS -------------------------------------------------------------------- ComputerSystem - 05_activate_defined_start.py: PASS -------------------------------------------------------------------- ComputerSystem - 06_paused_active_suspend.py: PASS -------------------------------------------------------------------- ComputerSystem - 22_define_suspend.py: PASS -------------------------------------------------------------------- ComputerSystem - 23_pause_pause.py: PASS -------------------------------------------------------------------- ComputerSystem - 27_define_pause_errs.py: PASS -------------------------------------------------------------------- ComputerSystem - 32_start_reboot.py: PASS -------------------------------------------------------------------- ComputerSystem - 33_suspend_reboot.py: XFAIL ERROR - Got CIM error CIM_ERR_NOT_SUPPORTED: State not supported with return code 7 ERROR - Exception: Unable Suspend dom 'test_domain' InvokeMethod(RequestStateChange): CIM_ERR_NOT_SUPPORTED: State not supported Bug:<00012> -------------------------------------------------------------------- ComputerSystem - 35_start_reset.py: PASS -------------------------------------------------------------------- ComputerSystem - 40_RSC_start.py: PASS -------------------------------------------------------------------- ComputerSystem - 41_cs_to_settingdefinestate.py: PASS -------------------------------------------------------------------- ComputerSystem - 42_cs_gi_errs.py: PASS -------------------------------------------------------------------- ComputerSystemIndication - 01_created_indication.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 01_forward.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 02_reverse.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 03_reverse_errs.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 04_forward_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 01_forward.py: PASS -------------------------------------------------------------------- ElementCapabilities - 02_reverse.py: PASS -------------------------------------------------------------------- ElementCapabilities - 03_forward_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 04_reverse_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 05_hostsystem_cap.py: PASS -------------------------------------------------------------------- ElementConforms - 01_forward.py: PASS -------------------------------------------------------------------- ElementConforms - 02_reverse.py: PASS -------------------------------------------------------------------- ElementConforms - 03_ectp_fwd_errs.py: PASS -------------------------------------------------------------------- ElementConforms - 04_ectp_rev_errs.py: PASS -------------------------------------------------------------------- ElementSettingData - 01_forward.py: PASS -------------------------------------------------------------------- ElementSettingData - 03_esd_assoc_with_rasd_errs.py: PASS -------------------------------------------------------------------- EnabledLogicalElementCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- EnabledLogicalElementCapabilities - 02_elecap_gi_errs.py: PASS -------------------------------------------------------------------- HostSystem - 01_enum.py: PASS -------------------------------------------------------------------- HostSystem - 02_hostsystem_to_rasd.py: PASS -------------------------------------------------------------------- HostSystem - 03_hs_to_settdefcap.py: FAIL ERROR - Failed to get associatornames according to Xen_AllocationCapabilities ERROR - Exception: global name 'libvirt_read_new_changes' is not defined CIM_ERR_INVALID_CLASS: Linux_ComputerSystem -------------------------------------------------------------------- HostSystem - 04_hs_to_EAPF.py: PASS -------------------------------------------------------------------- HostSystem - 05_hs_gi_errs.py: PASS -------------------------------------------------------------------- HostSystem - 06_hs_to_vsms.py: PASS -------------------------------------------------------------------- HostedAccessPoint - 01_forward.py: SKIP -------------------------------------------------------------------- HostedAccessPoint - 02_reverse.py: SKIP -------------------------------------------------------------------- HostedDependency - 01_forward.py: PASS -------------------------------------------------------------------- HostedDependency - 02_reverse.py: PASS -------------------------------------------------------------------- HostedDependency - 03_enabledstate.py: PASS -------------------------------------------------------------------- HostedDependency - 04_reverse_errs.py: PASS -------------------------------------------------------------------- HostedResourcePool - 01_forward.py: PASS -------------------------------------------------------------------- HostedResourcePool - 02_reverse.py: PASS -------------------------------------------------------------------- HostedResourcePool - 03_forward_errs.py: PASS -------------------------------------------------------------------- HostedResourcePool - 04_reverse_errs.py: PASS -------------------------------------------------------------------- HostedService - 01_forward.py: PASS -------------------------------------------------------------------- HostedService - 02_reverse.py: PASS -------------------------------------------------------------------- HostedService - 03_forward_errs.py: PASS -------------------------------------------------------------------- HostedService - 04_reverse_errs.py: PASS -------------------------------------------------------------------- KVMRedirectionSAP - 01_enum_KVMredSAP.py: SKIP -------------------------------------------------------------------- LogicalDisk - 01_disk.py: PASS -------------------------------------------------------------------- LogicalDisk - 02_nodevs.py: SKIP ERROR - System has defined domains; unable to run -------------------------------------------------------------------- LogicalDisk - 03_ld_gi_errs.py: PASS -------------------------------------------------------------------- Memory - 01_memory.py: PASS -------------------------------------------------------------------- Memory - 02_defgetmem.py: PASS -------------------------------------------------------------------- Memory - 03_mem_gi_errs.py: PASS -------------------------------------------------------------------- NetworkPort - 01_netport.py: PASS -------------------------------------------------------------------- NetworkPort - 02_np_gi_errors.py: FAIL ERROR - (6, u'CIM_ERR_NOT_FOUND: No such instance (domU/00:16:3e:5d:c7:9e)') -------------------------------------------------------------------- NetworkPort - 03_user_netport.py: SKIP -------------------------------------------------------------------- Processor - 01_processor.py: PASS -------------------------------------------------------------------- Processor - 02_definesys_get_procs.py: PASS -------------------------------------------------------------------- Processor - 03_proc_gi_errs.py: PASS -------------------------------------------------------------------- Profile - 01_enum.py: PASS -------------------------------------------------------------------- Profile - 02_profile_to_elec.py: PASS -------------------------------------------------------------------- Profile - 03_rprofile_gi_errs.py: PASS -------------------------------------------------------------------- RASD - 01_verify_rasd_fields.py: PASS -------------------------------------------------------------------- RASD - 02_enum.py: PASS -------------------------------------------------------------------- RASD - 03_rasd_errs.py: PASS -------------------------------------------------------------------- RASD - 04_disk_rasd_size.py: PASS -------------------------------------------------------------------- RASD - 05_disk_rasd_emu_type.py: SKIP -------------------------------------------------------------------- RedirectionService - 01_enum_crs.py: SKIP -------------------------------------------------------------------- RedirectionService - 02_enum_crscap.py: SKIP -------------------------------------------------------------------- RedirectionService - 03_RedirectionSAP_errs.py: SKIP -------------------------------------------------------------------- ReferencedProfile - 01_verify_refprof.py: PASS -------------------------------------------------------------------- ReferencedProfile - 02_refprofile_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 01_forward.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 02_reverse.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 03_forward_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 04_reverse_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 05_RAPF_err.py: PASS -------------------------------------------------------------------- ResourcePool - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePool - 02_rp_gi_errors.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationCapabilities - 02_rpcc_gi_errs.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 02_rcps_gi_errors.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 03_CreateResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 04_CreateChildResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 05_AddResourcesToResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 06_RemoveResourcesFromResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 07_DeleteResourcePool.py: PASS -------------------------------------------------------------------- ServiceAccessBySAP - 01_forward.py: SKIP -------------------------------------------------------------------- ServiceAccessBySAP - 02_reverse.py: SKIP -------------------------------------------------------------------- SettingsDefine - 01_forward.py: PASS -------------------------------------------------------------------- SettingsDefine - 02_reverse.py: PASS -------------------------------------------------------------------- SettingsDefine - 03_sds_fwd_errs.py: PASS -------------------------------------------------------------------- SettingsDefine - 04_sds_rev_errs.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 01_forward.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 03_forward_errs.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 04_forward_vsmsdata.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 05_reverse_vsmcap.py: PASS -------------------------------------------------------------------- SystemDevice - 01_forward.py: PASS -------------------------------------------------------------------- SystemDevice - 02_reverse.py: PASS -------------------------------------------------------------------- SystemDevice - 03_fwderrs.py: PASS -------------------------------------------------------------------- VSSD - 01_enum.py: PASS -------------------------------------------------------------------- VSSD - 02_bootldr.py: SKIP -------------------------------------------------------------------- VSSD - 03_vssd_gi_errs.py: PASS -------------------------------------------------------------------- VSSD - 04_vssd_to_rasd.py: PASS -------------------------------------------------------------------- VirtualSystemManagementCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemManagementCapabilities - 02_vsmcap_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 01_definesystem_name.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 02_destroysystem.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 03_definesystem_ess.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 04_definesystem_ers.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 05_destroysystem_neg.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 06_addresource.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 07_addresource_neg.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 08_modifyresource.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 09_procrasd_persist.py: FAIL ERROR - Exception: details (1, u'CIM_ERR_FAILED: Unable to parse embedded object') InvokeMethod(DefineSystem): CIM_ERR_FAILED: Unable to parse embedded object -------------------------------------------------------------------- VirtualSystemManagementService - 10_hv_version.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 11_define_memrasdunits.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 12_referenced_config.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 13_refconfig_additional_devs.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 14_define_sys_disk.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 15_mod_system_settings.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationCapabilities - 02_vsmc_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationService - 01_migratable_host.py: FAIL ERROR - dom_migrate migrate failed Xen_ComputerSystem.CreationClassName="Xen_ComputerSystem",Name="dom_migrate" -------------------------------------------------------------------- VirtualSystemMigrationService - 02_host_migrate_type.py: FAIL ERROR - MigrateVirtualSystemToHost took too long -------------------------------------------------------------------- VirtualSystemMigrationService - 05_migratable_host_errs.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationSettingData - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationSettingData - 02_vsmsd_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 01_forward.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 02_reverse.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 03_vssdc_fwd_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 04_vssdc_rev_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotService - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotService - 02_vs_sservice_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotServiceCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotServiceCapabilities - 02_vs_sservicecap_gi_errs.py: PASS -------------------------------------------------------------------- -- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik at linux.vnet.ibm.com From deeptik at linux.vnet.ibm.com Mon Feb 16 08:46:09 2009 From: deeptik at linux.vnet.ibm.com (Deepti B Kalakeri) Date: Mon, 16 Feb 2009 14:16:09 +0530 Subject: [Libvirt-cim] [PATCH] [TEST] Create default LXC mount directory as part of image build process In-Reply-To: <9efbee1b4a6dbf8525e3.1233956335@localhost.localdomain> References: <9efbee1b4a6dbf8525e3.1233956335@localhost.localdomain> Message-ID: <499927D1.6020004@linux.vnet.ibm.com> +1 . I think this eliminates the need of create_lxc_file() function in the vxml.py. -- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik at linux.vnet.ibm.com From yunguol at cn.ibm.com Mon Feb 16 08:57:49 2009 From: yunguol at cn.ibm.com (Guo Lian Yun) Date: Mon, 16 Feb 2009 16:57:49 +0800 Subject: [Libvirt-cim] Test Run Summary (Feb 16 2009): Xen on Red Hat Enterprise Linux Server release 5.3 (Tikanga) with Pegasus In-Reply-To: <49992575.3060009@linux.vnet.ibm.com> Message-ID: libvirt-cim-bounces at redhat.com wrote on 2009-02-16 16:36:05: > ================================================= > Test Run Summary (Feb 16 2009): Xen on Red Hat Enterprise Linux > Server release 5.3 (Tikanga) with Pegasus > ================================================= > Distro: Red Hat Enterprise Linux Server release 5.3 (Tikanga) > Kernel: 2.6.18-128.el5xen > libvirt: 0.3.3 > Hypervisor: Xen 3.1.0 > CIMOM: Pegasus 2.7.1 > Libvirt-cim revision: 613 > Libvirt-cim changeset: 1fcf330fadf8+ > Cimtest revision: > Cimtest changeset: > ================================================= > FAIL : 8 > XFAIL : 1 > SKIP : 12 > PASS : 125 > ----------------- > Total : 146 > ================================================= > FAIL Test Summary: > HostSystem - 03_hs_to_settdefcap.py: FAIL I fixed it with a patch. > VirtualSystemManagementService - 09_procrasd_persist.py: FAIL > VirtualSystemMigrationService - 01_migratable_host.py: FAIL > VirtualSystemMigrationService - 02_host_migrate_type.py: FAIL > VirtualSystemMigrationService - 05_migratable_host_errs.py: FAIL > VirtualSystemSettingDataComponent - 02_reverse.py: FAIL > VirtualSystemSettingDataComponent - 03_vssdc_fwd_errs.py: FAIL > VirtualSystemSettingDataComponent - 04_vssdc_rev_errs.py: FAIL > > ================================================= > XFAIL Test Summary: > ComputerSystem - 33_suspend_reboot.py: XFAIL > > ================================================= > SKIP Test Summary: > ComputerSystem - 02_nosystems.py: SKIP > HostedAccessPoint - 01_forward.py: SKIP > HostedAccessPoint - 02_reverse.py: SKIP > KVMRedirectionSAP - 01_enum_KVMredSAP.py: SKIP > LogicalDisk - 02_nodevs.py: SKIP > NetworkPort - 03_user_netport.py: SKIP > RASD - 05_disk_rasd_emu_type.py: SKIP > RedirectionService - 01_enum_crs.py: SKIP > RedirectionService - 02_enum_crscap.py: SKIP > RedirectionService - 03_RedirectionSAP_errs.py: SKIP > ServiceAccessBySAP - 01_forward.py: SKIP > ServiceAccessBySAP - 02_reverse.py: SKIP > > ================================================= > Full report: > -------------------------------------------------------------------- > AllocationCapabilities - 01_enum.py: PASS > -------------------------------------------------------------------- > AllocationCapabilities - 02_alloccap_gi_errs.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 01_enum.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 02_nosystems.py: SKIP > -------------------------------------------------------------------- > ComputerSystem - 03_defineVS.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 04_defineStartVS.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 05_activate_defined_start.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 06_paused_active_suspend.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 22_define_suspend.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 23_pause_pause.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 27_define_pause_errs.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 32_start_reboot.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 33_suspend_reboot.py: XFAIL > ERROR - Got CIM error CIM_ERR_NOT_SUPPORTED: State not supported > with return code 7 > ERROR - Exception: Unable Suspend dom 'test_domain' > InvokeMethod(RequestStateChange): CIM_ERR_NOT_SUPPORTED: State not supported > Bug:<00012> > -------------------------------------------------------------------- > ComputerSystem - 35_start_reset.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 40_RSC_start.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 41_cs_to_settingdefinestate.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 42_cs_gi_errs.py: PASS > -------------------------------------------------------------------- > ComputerSystemIndication - 01_created_indication.py: PASS > -------------------------------------------------------------------- > ElementAllocatedFromPool - 01_forward.py: PASS > -------------------------------------------------------------------- > ElementAllocatedFromPool - 02_reverse.py: PASS > -------------------------------------------------------------------- > ElementAllocatedFromPool - 03_reverse_errs.py: PASS > -------------------------------------------------------------------- > ElementAllocatedFromPool - 04_forward_errs.py: PASS > -------------------------------------------------------------------- > ElementCapabilities - 01_forward.py: PASS > -------------------------------------------------------------------- > ElementCapabilities - 02_reverse.py: PASS > -------------------------------------------------------------------- > ElementCapabilities - 03_forward_errs.py: PASS > -------------------------------------------------------------------- > ElementCapabilities - 04_reverse_errs.py: PASS > -------------------------------------------------------------------- > ElementCapabilities - 05_hostsystem_cap.py: PASS > -------------------------------------------------------------------- > ElementConforms - 01_forward.py: PASS > -------------------------------------------------------------------- > ElementConforms - 02_reverse.py: PASS > -------------------------------------------------------------------- > ElementConforms - 03_ectp_fwd_errs.py: PASS > -------------------------------------------------------------------- > ElementConforms - 04_ectp_rev_errs.py: PASS > -------------------------------------------------------------------- > ElementSettingData - 01_forward.py: PASS > -------------------------------------------------------------------- > ElementSettingData - 03_esd_assoc_with_rasd_errs.py: PASS > -------------------------------------------------------------------- > EnabledLogicalElementCapabilities - 01_enum.py: PASS > -------------------------------------------------------------------- > EnabledLogicalElementCapabilities - 02_elecap_gi_errs.py: PASS > -------------------------------------------------------------------- > HostSystem - 01_enum.py: PASS > -------------------------------------------------------------------- > HostSystem - 02_hostsystem_to_rasd.py: PASS > -------------------------------------------------------------------- > HostSystem - 03_hs_to_settdefcap.py: FAIL > ERROR - Failed to get associatornames according to > Xen_AllocationCapabilities > ERROR - Exception: global name 'libvirt_read_new_changes' is not defined > CIM_ERR_INVALID_CLASS: Linux_ComputerSystem > -------------------------------------------------------------------- > HostSystem - 04_hs_to_EAPF.py: PASS > -------------------------------------------------------------------- > HostSystem - 05_hs_gi_errs.py: PASS > -------------------------------------------------------------------- > HostSystem - 06_hs_to_vsms.py: PASS > -------------------------------------------------------------------- > HostedAccessPoint - 01_forward.py: SKIP > -------------------------------------------------------------------- > HostedAccessPoint - 02_reverse.py: SKIP > -------------------------------------------------------------------- > HostedDependency - 01_forward.py: PASS > -------------------------------------------------------------------- > HostedDependency - 02_reverse.py: PASS > -------------------------------------------------------------------- > HostedDependency - 03_enabledstate.py: PASS > -------------------------------------------------------------------- > HostedDependency - 04_reverse_errs.py: PASS > -------------------------------------------------------------------- > HostedResourcePool - 01_forward.py: PASS > -------------------------------------------------------------------- > HostedResourcePool - 02_reverse.py: PASS > -------------------------------------------------------------------- > HostedResourcePool - 03_forward_errs.py: PASS > -------------------------------------------------------------------- > HostedResourcePool - 04_reverse_errs.py: PASS > -------------------------------------------------------------------- > HostedService - 01_forward.py: PASS > -------------------------------------------------------------------- > HostedService - 02_reverse.py: PASS > -------------------------------------------------------------------- > HostedService - 03_forward_errs.py: PASS > -------------------------------------------------------------------- > HostedService - 04_reverse_errs.py: PASS > -------------------------------------------------------------------- > KVMRedirectionSAP - 01_enum_KVMredSAP.py: SKIP > -------------------------------------------------------------------- > LogicalDisk - 01_disk.py: PASS > -------------------------------------------------------------------- > LogicalDisk - 02_nodevs.py: SKIP > ERROR - System has defined domains; unable to run > -------------------------------------------------------------------- > LogicalDisk - 03_ld_gi_errs.py: PASS > -------------------------------------------------------------------- > Memory - 01_memory.py: PASS > -------------------------------------------------------------------- > Memory - 02_defgetmem.py: PASS > -------------------------------------------------------------------- > Memory - 03_mem_gi_errs.py: PASS > -------------------------------------------------------------------- > NetworkPort - 01_netport.py: PASS > -------------------------------------------------------------------- > NetworkPort - 02_np_gi_errors.py: PASS > -------------------------------------------------------------------- > NetworkPort - 03_user_netport.py: SKIP > -------------------------------------------------------------------- > Processor - 01_processor.py: PASS > -------------------------------------------------------------------- > Processor - 02_definesys_get_procs.py: PASS > -------------------------------------------------------------------- > Processor - 03_proc_gi_errs.py: PASS > -------------------------------------------------------------------- > Profile - 01_enum.py: PASS > -------------------------------------------------------------------- > Profile - 02_profile_to_elec.py: PASS > -------------------------------------------------------------------- > Profile - 03_rprofile_gi_errs.py: PASS > -------------------------------------------------------------------- > RASD - 01_verify_rasd_fields.py: PASS > -------------------------------------------------------------------- > RASD - 02_enum.py: PASS > -------------------------------------------------------------------- > RASD - 03_rasd_errs.py: PASS > -------------------------------------------------------------------- > RASD - 04_disk_rasd_size.py: PASS > -------------------------------------------------------------------- > RASD - 05_disk_rasd_emu_type.py: SKIP > -------------------------------------------------------------------- > RedirectionService - 01_enum_crs.py: SKIP > -------------------------------------------------------------------- > RedirectionService - 02_enum_crscap.py: SKIP > -------------------------------------------------------------------- > RedirectionService - 03_RedirectionSAP_errs.py: SKIP > -------------------------------------------------------------------- > ReferencedProfile - 01_verify_refprof.py: PASS > -------------------------------------------------------------------- > ReferencedProfile - 02_refprofile_errs.py: PASS > -------------------------------------------------------------------- > ResourceAllocationFromPool - 01_forward.py: PASS > -------------------------------------------------------------------- > ResourceAllocationFromPool - 02_reverse.py: PASS > -------------------------------------------------------------------- > ResourceAllocationFromPool - 03_forward_errs.py: PASS > -------------------------------------------------------------------- > ResourceAllocationFromPool - 04_reverse_errs.py: PASS > -------------------------------------------------------------------- > ResourceAllocationFromPool - 05_RAPF_err.py: PASS > -------------------------------------------------------------------- > ResourcePool - 01_enum.py: PASS > -------------------------------------------------------------------- > ResourcePool - 02_rp_gi_errors.py: PASS > -------------------------------------------------------------------- > ResourcePoolConfigurationCapabilities - 01_enum.py: PASS > -------------------------------------------------------------------- > ResourcePoolConfigurationCapabilities - 02_rpcc_gi_errs.py: PASS > -------------------------------------------------------------------- > ResourcePoolConfigurationService - 01_enum.py: PASS > -------------------------------------------------------------------- > ResourcePoolConfigurationService - 02_rcps_gi_errors.py: PASS > -------------------------------------------------------------------- > ResourcePoolConfigurationService - 03_CreateResourcePool.py: PASS > -------------------------------------------------------------------- > ResourcePoolConfigurationService - 04_CreateChildResourcePool.py: PASS > -------------------------------------------------------------------- > ResourcePoolConfigurationService - 05_AddResourcesToResourcePool.py: PASS > -------------------------------------------------------------------- > ResourcePoolConfigurationService - 06_RemoveResourcesFromResourcePool.py: PASS > -------------------------------------------------------------------- > ResourcePoolConfigurationService - 07_DeleteResourcePool.py: PASS > -------------------------------------------------------------------- > ServiceAccessBySAP - 01_forward.py: SKIP > -------------------------------------------------------------------- > ServiceAccessBySAP - 02_reverse.py: SKIP > -------------------------------------------------------------------- > SettingsDefine - 01_forward.py: PASS > -------------------------------------------------------------------- > SettingsDefine - 02_reverse.py: PASS > -------------------------------------------------------------------- > SettingsDefine - 03_sds_fwd_errs.py: PASS > -------------------------------------------------------------------- > SettingsDefine - 04_sds_rev_errs.py: PASS > -------------------------------------------------------------------- > SettingsDefineCapabilities - 01_forward.py: PASS > -------------------------------------------------------------------- > SettingsDefineCapabilities - 03_forward_errs.py: PASS > -------------------------------------------------------------------- > SettingsDefineCapabilities - 04_forward_vsmsdata.py: PASS > -------------------------------------------------------------------- > SettingsDefineCapabilities - 05_reverse_vsmcap.py: PASS > -------------------------------------------------------------------- > SystemDevice - 01_forward.py: PASS > -------------------------------------------------------------------- > SystemDevice - 02_reverse.py: PASS > -------------------------------------------------------------------- > SystemDevice - 03_fwderrs.py: PASS > -------------------------------------------------------------------- > VSSD - 01_enum.py: PASS > -------------------------------------------------------------------- > VSSD - 02_bootldr.py: PASS > -------------------------------------------------------------------- > VSSD - 03_vssd_gi_errs.py: PASS > -------------------------------------------------------------------- > VSSD - 04_vssd_to_rasd.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementCapabilities - 01_enum.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementCapabilities - 02_vsmcap_gi_errs.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 01_definesystem_name.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 02_destroysystem.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 03_definesystem_ess.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 04_definesystem_ers.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 05_destroysystem_neg.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 06_addresource.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 07_addresource_neg.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 08_modifyresource.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 09_procrasd_persist.py: FAIL > ERROR - Exception: details (1, u'CIM_ERR_FAILED: Unable to parse > embedded object') > InvokeMethod(DefineSystem): CIM_ERR_FAILED: Unable to parse embedded object > -------------------------------------------------------------------- > VirtualSystemManagementService - 10_hv_version.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 11_define_memrasdunits.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 12_referenced_config.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 13_refconfig_additional_devs.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 14_define_sys_disk.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 15_mod_system_settings.py: PASS > -------------------------------------------------------------------- > VirtualSystemMigrationCapabilities - 01_enum.py: PASS > -------------------------------------------------------------------- > VirtualSystemMigrationCapabilities - 02_vsmc_gi_errs.py: PASS > -------------------------------------------------------------------- > VirtualSystemMigrationService - 01_migratable_host.py: FAIL > ERROR - MigrateVirtualSystemToHost took too long > Xen_ComputerSystem.CreationClassName="Xen_ComputerSystem",Name="dom_migrate" > -------------------------------------------------------------------- > VirtualSystemMigrationService - 02_host_migrate_type.py: FAIL > ERROR - Got CIM error CIM_ERR_FAILED: Failed to lookup resulting > system with return code 1 > ERROR - CS instance not returned for dom_migrate. > ERROR - Error start domain dom_migrate > InvokeMethod(DefineSystem): CIM_ERR_FAILED: Failed to lookup resulting system > CIM_ERR_NOT_FOUND: No such instance (dom_migrate). > CIM_ERR_NOT_FOUND: No such instance (dom_migrate). > CIM_ERR_NOT_FOUND: No such instance (dom_migrate). > CIM_ERR_NOT_FOUND: No such instance (dom_migrate). > CIM_ERR_NOT_FOUND: No such instance (dom_migrate). > CIM_ERR_NOT_FOUND: No such instance (dom_migrate). > CIM_ERR_NOT_FOUND: No such instance (dom_migrate). > CIM_ERR_NOT_FOUND: No such instance (dom_migrate). > CIM_ERR_NOT_FOUND: No such instance (dom_migrate). > CIM_ERR_NOT_FOUND: No such instance (dom_migrate). > CIM_ERR_NOT_FOUND: No such instance (dom_migrate). > CIM_ERR_NOT_FOUND: No such instance (dom_migrate). > CIM_ERR_NOT_FOUND: No such instance (dom_migrate). > CIM_ERR_NOT_FOUND: No such instance (dom_migrate). > CIM_ERR_NOT_FOUND: No such instance (dom_migrate). > CIM_ERR_NOT_FOUND: No such instance (dom_migrate). > CIM_ERR_NOT_FOUND: No such instance (dom_migrate). > CIM_ERR_NOT_FOUND: No such instance (dom_migrate). > CIM_ERR_NOT_FOUND: No such instance (dom_migrate). > CIM_ERR_NOT_FOUND: No such instance (dom_migrate). > CIM_ERR_NOT_FOUND: No such instance (dom_migrate). > CIM_ERR_NOT_FOUND: No such instance (dom_migrate). > CIM_ERR_NOT_FOUND: No such instance (dom_migrate). > CIM_ERR_NOT_FOUND: No such instance (dom_migrate). > CIM_ERR_NOT_FOUND: No such instance (dom_migrate). > CIM_ERR_NOT_FOUND: No such instance (dom_migrate). > CIM_ERR_NOT_FOUND: No such instance (dom_migrate). > CIM_ERR_NOT_FOUND: No such instance (dom_migrate). > CIM_ERR_NOT_FOUND: No such instance (dom_migrate). > CIM_ERR_NOT_FOUND: No such instance (dom_migrate). > -------------------------------------------------------------------- > VirtualSystemMigrationService - 05_migratable_host_errs.py: FAIL > ERROR - Got CIM error CIM_ERR_FAILED: Unable to start domain with > return code 1 > ERROR - Error start domain dom_migration > InvokeMethod(RequestStateChange): CIM_ERR_FAILED: Unable to start domain > -------------------------------------------------------------------- > VirtualSystemMigrationSettingData - 01_enum.py: PASS > -------------------------------------------------------------------- > VirtualSystemMigrationSettingData - 02_vsmsd_gi_errs.py: PASS > -------------------------------------------------------------------- > VirtualSystemSettingDataComponent - 01_forward.py: PASS > -------------------------------------------------------------------- > VirtualSystemSettingDataComponent - 02_reverse.py: FAIL > ERROR - Got CIM error CIM_ERR_FAILED: Unable to start domain with > return code 1 > ERROR - Failed to start the dom: VSSDC_dom > InvokeMethod(RequestStateChange): CIM_ERR_FAILED: Unable to start domain > -------------------------------------------------------------------- > VirtualSystemSettingDataComponent - 03_vssdc_fwd_errs.py: FAIL > ERROR - Got CIM error CIM_ERR_FAILED: Unable to start domain with > return code 1 > ERROR - Unable to start domain domu1 > InvokeMethod(RequestStateChange): CIM_ERR_FAILED: Unable to start domain > -------------------------------------------------------------------- > VirtualSystemSettingDataComponent - 04_vssdc_rev_errs.py: FAIL > ERROR - Got CIM error CIM_ERR_FAILED: Unable to start domain with > return code 1 > ERROR - Unable to start domain domu1 > InvokeMethod(RequestStateChange): CIM_ERR_FAILED: Unable to start domain > -------------------------------------------------------------------- > VirtualSystemSnapshotService - 01_enum.py: PASS > -------------------------------------------------------------------- > VirtualSystemSnapshotService - 02_vs_sservice_gi_errs.py: PASS > -------------------------------------------------------------------- > VirtualSystemSnapshotServiceCapabilities - 01_enum.py: PASS > -------------------------------------------------------------------- > VirtualSystemSnapshotServiceCapabilities - 02_vs_sservicecap_gi_errs.py: PASS > -------------------------------------------------------------------- > > > -- > Thanks and Regards, > Deepti B. Kalakeri > IBM Linux Technology Center > deeptik at linux.vnet.ibm.com > > _______________________________________________ > Libvirt-cim mailing list > Libvirt-cim at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-cim -------------- next part -------------- An HTML attachment was scrubbed... URL: From yunguol at cn.ibm.com Mon Feb 16 08:58:35 2009 From: yunguol at cn.ibm.com (Guo Lian Yun) Date: Mon, 16 Feb 2009 16:58:35 +0800 Subject: [Libvirt-cim] Test Run Summary (Feb 16 2009): XenFV on Red Hat Enterprise Linux Server release 5.3 (Tikanga) with Pegasus In-Reply-To: <499925C4.3080601@linux.vnet.ibm.com> Message-ID: libvirt-cim-bounces at redhat.com wrote on 2009-02-16 16:37:24: > ================================================= > Test Run Summary (Feb 16 2009): XenFV on Red Hat Enterprise Linux > Server release 5.3 (Tikanga) with Pegasus > ================================================= > Distro: Red Hat Enterprise Linux Server release 5.3 (Tikanga) > Kernel: 2.6.18-128.el5xen > libvirt: 0.3.3 > Hypervisor: Xen 3.1.0 > CIMOM: Pegasus 2.7.1 > Libvirt-cim revision: 613 > Libvirt-cim changeset: 1fcf330fadf8+ > Cimtest revision: > Cimtest changeset: > ================================================= > FAIL : 5 > XFAIL : 1 > SKIP : 13 > PASS : 127 > ----------------- > Total : 146 > ================================================= > FAIL Test Summary: > HostSystem - 03_hs_to_settdefcap.py: FAIL I fixed it with a patch. > NetworkPort - 02_np_gi_errors.py: FAIL > VirtualSystemManagementService - 09_procrasd_persist.py: FAIL > VirtualSystemMigrationService - 01_migratable_host.py: FAIL > VirtualSystemMigrationService - 02_host_migrate_type.py: FAIL > > ================================================= > XFAIL Test Summary: > ComputerSystem - 33_suspend_reboot.py: XFAIL > > ================================================= > SKIP Test Summary: > ComputerSystem - 02_nosystems.py: SKIP > HostedAccessPoint - 01_forward.py: SKIP > HostedAccessPoint - 02_reverse.py: SKIP > KVMRedirectionSAP - 01_enum_KVMredSAP.py: SKIP > LogicalDisk - 02_nodevs.py: SKIP > NetworkPort - 03_user_netport.py: SKIP > RASD - 05_disk_rasd_emu_type.py: SKIP > RedirectionService - 01_enum_crs.py: SKIP > RedirectionService - 02_enum_crscap.py: SKIP > RedirectionService - 03_RedirectionSAP_errs.py: SKIP > ServiceAccessBySAP - 01_forward.py: SKIP > ServiceAccessBySAP - 02_reverse.py: SKIP > VSSD - 02_bootldr.py: SKIP > > ================================================= > Full report: > -------------------------------------------------------------------- > AllocationCapabilities - 01_enum.py: PASS > -------------------------------------------------------------------- > AllocationCapabilities - 02_alloccap_gi_errs.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 01_enum.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 02_nosystems.py: SKIP > -------------------------------------------------------------------- > ComputerSystem - 03_defineVS.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 04_defineStartVS.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 05_activate_defined_start.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 06_paused_active_suspend.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 22_define_suspend.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 23_pause_pause.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 27_define_pause_errs.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 32_start_reboot.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 33_suspend_reboot.py: XFAIL > ERROR - Got CIM error CIM_ERR_NOT_SUPPORTED: State not supported > with return code 7 > ERROR - Exception: Unable Suspend dom 'test_domain' > InvokeMethod(RequestStateChange): CIM_ERR_NOT_SUPPORTED: State not supported > Bug:<00012> > -------------------------------------------------------------------- > ComputerSystem - 35_start_reset.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 40_RSC_start.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 41_cs_to_settingdefinestate.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 42_cs_gi_errs.py: PASS > -------------------------------------------------------------------- > ComputerSystemIndication - 01_created_indication.py: PASS > -------------------------------------------------------------------- > ElementAllocatedFromPool - 01_forward.py: PASS > -------------------------------------------------------------------- > ElementAllocatedFromPool - 02_reverse.py: PASS > -------------------------------------------------------------------- > ElementAllocatedFromPool - 03_reverse_errs.py: PASS > -------------------------------------------------------------------- > ElementAllocatedFromPool - 04_forward_errs.py: PASS > -------------------------------------------------------------------- > ElementCapabilities - 01_forward.py: PASS > -------------------------------------------------------------------- > ElementCapabilities - 02_reverse.py: PASS > -------------------------------------------------------------------- > ElementCapabilities - 03_forward_errs.py: PASS > -------------------------------------------------------------------- > ElementCapabilities - 04_reverse_errs.py: PASS > -------------------------------------------------------------------- > ElementCapabilities - 05_hostsystem_cap.py: PASS > -------------------------------------------------------------------- > ElementConforms - 01_forward.py: PASS > -------------------------------------------------------------------- > ElementConforms - 02_reverse.py: PASS > -------------------------------------------------------------------- > ElementConforms - 03_ectp_fwd_errs.py: PASS > -------------------------------------------------------------------- > ElementConforms - 04_ectp_rev_errs.py: PASS > -------------------------------------------------------------------- > ElementSettingData - 01_forward.py: PASS > -------------------------------------------------------------------- > ElementSettingData - 03_esd_assoc_with_rasd_errs.py: PASS > -------------------------------------------------------------------- > EnabledLogicalElementCapabilities - 01_enum.py: PASS > -------------------------------------------------------------------- > EnabledLogicalElementCapabilities - 02_elecap_gi_errs.py: PASS > -------------------------------------------------------------------- > HostSystem - 01_enum.py: PASS > -------------------------------------------------------------------- > HostSystem - 02_hostsystem_to_rasd.py: PASS > -------------------------------------------------------------------- > HostSystem - 03_hs_to_settdefcap.py: FAIL > ERROR - Failed to get associatornames according to > Xen_AllocationCapabilities > ERROR - Exception: global name 'libvirt_read_new_changes' is not defined > CIM_ERR_INVALID_CLASS: Linux_ComputerSystem > -------------------------------------------------------------------- > HostSystem - 04_hs_to_EAPF.py: PASS > -------------------------------------------------------------------- > HostSystem - 05_hs_gi_errs.py: PASS > -------------------------------------------------------------------- > HostSystem - 06_hs_to_vsms.py: PASS > -------------------------------------------------------------------- > HostedAccessPoint - 01_forward.py: SKIP > -------------------------------------------------------------------- > HostedAccessPoint - 02_reverse.py: SKIP > -------------------------------------------------------------------- > HostedDependency - 01_forward.py: PASS > -------------------------------------------------------------------- > HostedDependency - 02_reverse.py: PASS > -------------------------------------------------------------------- > HostedDependency - 03_enabledstate.py: PASS > -------------------------------------------------------------------- > HostedDependency - 04_reverse_errs.py: PASS > -------------------------------------------------------------------- > HostedResourcePool - 01_forward.py: PASS > -------------------------------------------------------------------- > HostedResourcePool - 02_reverse.py: PASS > -------------------------------------------------------------------- > HostedResourcePool - 03_forward_errs.py: PASS > -------------------------------------------------------------------- > HostedResourcePool - 04_reverse_errs.py: PASS > -------------------------------------------------------------------- > HostedService - 01_forward.py: PASS > -------------------------------------------------------------------- > HostedService - 02_reverse.py: PASS > -------------------------------------------------------------------- > HostedService - 03_forward_errs.py: PASS > -------------------------------------------------------------------- > HostedService - 04_reverse_errs.py: PASS > -------------------------------------------------------------------- > KVMRedirectionSAP - 01_enum_KVMredSAP.py: SKIP > -------------------------------------------------------------------- > LogicalDisk - 01_disk.py: PASS > -------------------------------------------------------------------- > LogicalDisk - 02_nodevs.py: SKIP > ERROR - System has defined domains; unable to run > -------------------------------------------------------------------- > LogicalDisk - 03_ld_gi_errs.py: PASS > -------------------------------------------------------------------- > Memory - 01_memory.py: PASS > -------------------------------------------------------------------- > Memory - 02_defgetmem.py: PASS > -------------------------------------------------------------------- > Memory - 03_mem_gi_errs.py: PASS > -------------------------------------------------------------------- > NetworkPort - 01_netport.py: PASS > -------------------------------------------------------------------- > NetworkPort - 02_np_gi_errors.py: FAIL > ERROR - (6, u'CIM_ERR_NOT_FOUND: No such instance (domU/00:16:3e: > 5d:c7:9e)') > -------------------------------------------------------------------- > NetworkPort - 03_user_netport.py: SKIP > -------------------------------------------------------------------- > Processor - 01_processor.py: PASS > -------------------------------------------------------------------- > Processor - 02_definesys_get_procs.py: PASS > -------------------------------------------------------------------- > Processor - 03_proc_gi_errs.py: PASS > -------------------------------------------------------------------- > Profile - 01_enum.py: PASS > -------------------------------------------------------------------- > Profile - 02_profile_to_elec.py: PASS > -------------------------------------------------------------------- > Profile - 03_rprofile_gi_errs.py: PASS > -------------------------------------------------------------------- > RASD - 01_verify_rasd_fields.py: PASS > -------------------------------------------------------------------- > RASD - 02_enum.py: PASS > -------------------------------------------------------------------- > RASD - 03_rasd_errs.py: PASS > -------------------------------------------------------------------- > RASD - 04_disk_rasd_size.py: PASS > -------------------------------------------------------------------- > RASD - 05_disk_rasd_emu_type.py: SKIP > -------------------------------------------------------------------- > RedirectionService - 01_enum_crs.py: SKIP > -------------------------------------------------------------------- > RedirectionService - 02_enum_crscap.py: SKIP > -------------------------------------------------------------------- > RedirectionService - 03_RedirectionSAP_errs.py: SKIP > -------------------------------------------------------------------- > ReferencedProfile - 01_verify_refprof.py: PASS > -------------------------------------------------------------------- > ReferencedProfile - 02_refprofile_errs.py: PASS > -------------------------------------------------------------------- > ResourceAllocationFromPool - 01_forward.py: PASS > -------------------------------------------------------------------- > ResourceAllocationFromPool - 02_reverse.py: PASS > -------------------------------------------------------------------- > ResourceAllocationFromPool - 03_forward_errs.py: PASS > -------------------------------------------------------------------- > ResourceAllocationFromPool - 04_reverse_errs.py: PASS > -------------------------------------------------------------------- > ResourceAllocationFromPool - 05_RAPF_err.py: PASS > -------------------------------------------------------------------- > ResourcePool - 01_enum.py: PASS > -------------------------------------------------------------------- > ResourcePool - 02_rp_gi_errors.py: PASS > -------------------------------------------------------------------- > ResourcePoolConfigurationCapabilities - 01_enum.py: PASS > -------------------------------------------------------------------- > ResourcePoolConfigurationCapabilities - 02_rpcc_gi_errs.py: PASS > -------------------------------------------------------------------- > ResourcePoolConfigurationService - 01_enum.py: PASS > -------------------------------------------------------------------- > ResourcePoolConfigurationService - 02_rcps_gi_errors.py: PASS > -------------------------------------------------------------------- > ResourcePoolConfigurationService - 03_CreateResourcePool.py: PASS > -------------------------------------------------------------------- > ResourcePoolConfigurationService - 04_CreateChildResourcePool.py: PASS > -------------------------------------------------------------------- > ResourcePoolConfigurationService - 05_AddResourcesToResourcePool.py: PASS > -------------------------------------------------------------------- > ResourcePoolConfigurationService - 06_RemoveResourcesFromResourcePool.py: PASS > -------------------------------------------------------------------- > ResourcePoolConfigurationService - 07_DeleteResourcePool.py: PASS > -------------------------------------------------------------------- > ServiceAccessBySAP - 01_forward.py: SKIP > -------------------------------------------------------------------- > ServiceAccessBySAP - 02_reverse.py: SKIP > -------------------------------------------------------------------- > SettingsDefine - 01_forward.py: PASS > -------------------------------------------------------------------- > SettingsDefine - 02_reverse.py: PASS > -------------------------------------------------------------------- > SettingsDefine - 03_sds_fwd_errs.py: PASS > -------------------------------------------------------------------- > SettingsDefine - 04_sds_rev_errs.py: PASS > -------------------------------------------------------------------- > SettingsDefineCapabilities - 01_forward.py: PASS > -------------------------------------------------------------------- > SettingsDefineCapabilities - 03_forward_errs.py: PASS > -------------------------------------------------------------------- > SettingsDefineCapabilities - 04_forward_vsmsdata.py: PASS > -------------------------------------------------------------------- > SettingsDefineCapabilities - 05_reverse_vsmcap.py: PASS > -------------------------------------------------------------------- > SystemDevice - 01_forward.py: PASS > -------------------------------------------------------------------- > SystemDevice - 02_reverse.py: PASS > -------------------------------------------------------------------- > SystemDevice - 03_fwderrs.py: PASS > -------------------------------------------------------------------- > VSSD - 01_enum.py: PASS > -------------------------------------------------------------------- > VSSD - 02_bootldr.py: SKIP > -------------------------------------------------------------------- > VSSD - 03_vssd_gi_errs.py: PASS > -------------------------------------------------------------------- > VSSD - 04_vssd_to_rasd.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementCapabilities - 01_enum.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementCapabilities - 02_vsmcap_gi_errs.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 01_definesystem_name.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 02_destroysystem.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 03_definesystem_ess.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 04_definesystem_ers.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 05_destroysystem_neg.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 06_addresource.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 07_addresource_neg.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 08_modifyresource.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 09_procrasd_persist.py: FAIL > ERROR - Exception: details (1, u'CIM_ERR_FAILED: Unable to parse > embedded object') > InvokeMethod(DefineSystem): CIM_ERR_FAILED: Unable to parse embedded object > -------------------------------------------------------------------- > VirtualSystemManagementService - 10_hv_version.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 11_define_memrasdunits.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 12_referenced_config.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 13_refconfig_additional_devs.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 14_define_sys_disk.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 15_mod_system_settings.py: PASS > -------------------------------------------------------------------- > VirtualSystemMigrationCapabilities - 01_enum.py: PASS > -------------------------------------------------------------------- > VirtualSystemMigrationCapabilities - 02_vsmc_gi_errs.py: PASS > -------------------------------------------------------------------- > VirtualSystemMigrationService - 01_migratable_host.py: FAIL > ERROR - dom_migrate migrate failed > Xen_ComputerSystem.CreationClassName="Xen_ComputerSystem",Name="dom_migrate" > -------------------------------------------------------------------- > VirtualSystemMigrationService - 02_host_migrate_type.py: FAIL > ERROR - MigrateVirtualSystemToHost took too long > -------------------------------------------------------------------- > VirtualSystemMigrationService - 05_migratable_host_errs.py: PASS > -------------------------------------------------------------------- > VirtualSystemMigrationSettingData - 01_enum.py: PASS > -------------------------------------------------------------------- > VirtualSystemMigrationSettingData - 02_vsmsd_gi_errs.py: PASS > -------------------------------------------------------------------- > VirtualSystemSettingDataComponent - 01_forward.py: PASS > -------------------------------------------------------------------- > VirtualSystemSettingDataComponent - 02_reverse.py: PASS > -------------------------------------------------------------------- > VirtualSystemSettingDataComponent - 03_vssdc_fwd_errs.py: PASS > -------------------------------------------------------------------- > VirtualSystemSettingDataComponent - 04_vssdc_rev_errs.py: PASS > -------------------------------------------------------------------- > VirtualSystemSnapshotService - 01_enum.py: PASS > -------------------------------------------------------------------- > VirtualSystemSnapshotService - 02_vs_sservice_gi_errs.py: PASS > -------------------------------------------------------------------- > VirtualSystemSnapshotServiceCapabilities - 01_enum.py: PASS > -------------------------------------------------------------------- > VirtualSystemSnapshotServiceCapabilities - 02_vs_sservicecap_gi_errs.py: PASS > -------------------------------------------------------------------- > > > -- > Thanks and Regards, > Deepti B. Kalakeri > IBM Linux Technology Center > deeptik at linux.vnet.ibm.com > > _______________________________________________ > Libvirt-cim mailing list > Libvirt-cim at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-cim -------------- next part -------------- An HTML attachment was scrubbed... URL: From deeptik at linux.vnet.ibm.com Mon Feb 16 09:37:14 2009 From: deeptik at linux.vnet.ibm.com (Deepti B. Kalakeri) Date: Mon, 16 Feb 2009 01:37:14 -0800 Subject: [Libvirt-cim] [PATCH] [TEST] Fixing HostSystem/03_hs_to_settdefcap.py tc to work with RHEL5.3 rpm Message-ID: <5708c1704aa8f0fc6bae.1234777034@elm3b43.beaverton.ibm.com> # HG changeset patch # User Deepti B. Kalakeri # Date 1234776999 28800 # Node ID 5708c1704aa8f0fc6bae342419fe7312e2512c0c # Parent f5ef41b6e30f104813132be50f405afdef80cc8a [TEST] Fixing HostSystem/03_hs_to_settdefcap.py tc to work with RHEL5.3 rpm. Tested on KVM/LXC with current sources and Xen with RHEL 5.3 /KVM with F9 rpms. Signed-off-by: Deepti B. Kalakeri diff -r f5ef41b6e30f -r 5708c1704aa8 suites/libvirt-cim/cimtest/HostSystem/03_hs_to_settdefcap.py --- a/suites/libvirt-cim/cimtest/HostSystem/03_hs_to_settdefcap.py Thu Feb 12 18:24:39 2009 -0800 +++ b/suites/libvirt-cim/cimtest/HostSystem/03_hs_to_settdefcap.py Mon Feb 16 01:36:39 2009 -0800 @@ -222,9 +222,9 @@ def get_rasddetails(server, alloccap, vi # hence 4 * 2 = 8 records if virt == 'Xen': if curr_cim_rev >= libvirt_rasd_template_changes and \ - curr_cim_rev < libvirt_read_new_changes: + curr_cim_rev < libvirt_rasd_new_changes: exp_len = 8 - if curr_cim_rev >= libvirt_read_new_changes: + if curr_cim_rev >= libvirt_rasd_new_changes: exp_len = 16 if virt == 'KVM': if curr_cim_rev >= libvirt_rasd_new_changes: From yunguol at cn.ibm.com Mon Feb 16 09:08:16 2009 From: yunguol at cn.ibm.com (Guo Lian Yun) Date: Mon, 16 Feb 2009 17:08:16 +0800 Subject: [Libvirt-cim] Test Run Summary (Feb 16 2009): KVM on Fedora release 9.90.1 (Rawhide) with sfcb In-Reply-To: <4998FE57.5040701@linux.vnet.ibm.com> Message-ID: libvirt-cim-bounces at redhat.com wrote on 2009-02-16 13:49:11: > > > Guo Lian Yun wrote: > > > > libvirt-cim-bounces at redhat.com wrote on 2009-02-16 10:28:58: > > > > > > > > ================================================= > > > Test Run Summary (Feb 16 2009): KVM on Fedora release 9.90.1 > > > (Rawhide) with sfcb > > > ================================================= > > > Distro: Fedora release 9.90.1 (Rawhide) > > > Kernel: 2.6.27-0.323.rc6.fc10.x86_64 > > > libvirt: 0.4.5 > > > Hypervisor: QEMU 0.9.1 > > > CIMOM: sfcb sfcbd 1.3.3preview > > > Libvirt-cim revision: 811 > > > Libvirt-cim changeset: 72dc446be12c > > > Cimtest revision: 625 > > > Cimtest changeset: f5ef41b6e30f > > > ================================================= > > > FAIL : 1 > > > XFAIL : 2 > > > SKIP : 4 > > > PASS : 139 > > > ----------------- > > > Total : 146 > > > ================================================= > > > FAIL Test Summary: > > > ElementConforms - 01_forward.py: FAIL > > > The patch with fix this is under progress. > > Deepti - Is there any schedule to work it out? > Daisy, > I am not currently working on this. > Can you pick it up ? I will put it in my work plan. Maybe two days later. I'm working on another project these two days. Thanks! > > -- > Thanks and Regards, > Deepti B. Kalakeri > IBM Linux Technology Center > deeptik at linux.vnet.ibm.com > > _______________________________________________ > Libvirt-cim mailing list > Libvirt-cim at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-cim -------------- next part -------------- An HTML attachment was scrubbed... URL: From deeptik at linux.vnet.ibm.com Mon Feb 16 09:14:14 2009 From: deeptik at linux.vnet.ibm.com (Deepti B Kalakeri) Date: Mon, 16 Feb 2009 14:44:14 +0530 Subject: [Libvirt-cim] Test Run Summary (Feb 16 2009): XenFV on Red Hat Enterprise Linux Server release 5.3 (Tikanga) with Pegasus In-Reply-To: References: Message-ID: <49992E66.2070100@linux.vnet.ibm.com> Guo Lian Yun wrote: > > libvirt-cim-bounces at redhat.com wrote on 2009-02-16 16:37:24: > > > ================================================= > > Test Run Summary (Feb 16 2009): XenFV on Red Hat Enterprise Linux > > Server release 5.3 (Tikanga) with Pegasus > > ================================================= > > Distro: Red Hat Enterprise Linux Server release 5.3 (Tikanga) > > Kernel: 2.6.18-128.el5xen > > libvirt: 0.3.3 > > Hypervisor: Xen 3.1.0 > > CIMOM: Pegasus 2.7.1 > > Libvirt-cim revision: 613 > > Libvirt-cim changeset: 1fcf330fadf8+ > > Cimtest revision: > > Cimtest changeset: > > ================================================= > > FAIL : 5 > > XFAIL : 1 > > SKIP : 13 > > PASS : 127 > > ----------------- > > Total : 146 > > ================================================= > > FAIL Test Summary: > > HostSystem - 03_hs_to_settdefcap.py: FAIL > I fixed it with a patch. > oops! I sent a patch too. When did you send the patch since I have not received the patch yet. -- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik at linux.vnet.ibm.com From yunguol at cn.ibm.com Mon Feb 16 09:15:16 2009 From: yunguol at cn.ibm.com (yunguol at cn.ibm.com) Date: Mon, 16 Feb 2009 01:15:16 -0800 Subject: [Libvirt-cim] [PATCH] [TEST] Fix typos in HostSystem/03_hs_to_settdefcap.py Message-ID: # HG changeset patch # User Guolian Yun # Date 1234775709 28800 # Node ID e1c4c9f852c9edf499afb727379337e4766c2e34 # Parent f5ef41b6e30f104813132be50f405afdef80cc8a [TEST] Fix typos in HostSystem/03_hs_to_settdefcap.py Tested for KVM/LXC/Xen/XenFV with current sources Signed-off-by: Guolian Yun diff -r f5ef41b6e30f -r e1c4c9f852c9 suites/libvirt-cim/cimtest/HostSystem/03_hs_to_settdefcap.py --- a/suites/libvirt-cim/cimtest/HostSystem/03_hs_to_settdefcap.py Thu Feb 12 18:24:39 2009 -0800 +++ b/suites/libvirt-cim/cimtest/HostSystem/03_hs_to_settdefcap.py Mon Feb 16 01:15:09 2009 -0800 @@ -222,9 +222,9 @@ # hence 4 * 2 = 8 records if virt == 'Xen': if curr_cim_rev >= libvirt_rasd_template_changes and \ - curr_cim_rev < libvirt_read_new_changes: + curr_cim_rev < libvirt_rasd_new_changes: exp_len = 8 - if curr_cim_rev >= libvirt_read_new_changes: + if curr_cim_rev >= libvirt_rasd_new_changes: exp_len = 16 if virt == 'KVM': if curr_cim_rev >= libvirt_rasd_new_changes: From yunguol at cn.ibm.com Mon Feb 16 09:11:35 2009 From: yunguol at cn.ibm.com (Guo Lian Yun) Date: Mon, 16 Feb 2009 17:11:35 +0800 Subject: [Libvirt-cim] Test Run Summary (Feb 16 2009): XenFV on Red Hat Enterprise Linux Server release 5.3 (Tikanga) with Pegasus In-Reply-To: <49992E66.2070100@linux.vnet.ibm.com> Message-ID: libvirt-cim-bounces at redhat.com wrote on 2009-02-16 17:14:14: > > > Guo Lian Yun wrote: > > > > libvirt-cim-bounces at redhat.com wrote on 2009-02-16 16:37:24: > > > > > ================================================= > > > Test Run Summary (Feb 16 2009): XenFV on Red Hat Enterprise Linux > > > Server release 5.3 (Tikanga) with Pegasus > > > ================================================= > > > Distro: Red Hat Enterprise Linux Server release 5.3 (Tikanga) > > > Kernel: 2.6.18-128.el5xen > > > libvirt: 0.3.3 > > > Hypervisor: Xen 3.1.0 > > > CIMOM: Pegasus 2.7.1 > > > Libvirt-cim revision: 613 > > > Libvirt-cim changeset: 1fcf330fadf8+ > > > Cimtest revision: > > > Cimtest changeset: > > > ================================================= > > > FAIL : 5 > > > XFAIL : 1 > > > SKIP : 13 > > > PASS : 127 > > > ----------------- > > > Total : 146 > > > ================================================= > > > FAIL Test Summary: > > > HostSystem - 03_hs_to_settdefcap.py: FAIL > > I fixed it with a patch. > > > oops! I sent a patch too. > When did you send the patch since I have not received the patch yet. I sent it several minutes ago =) > > -- > Thanks and Regards, > Deepti B. Kalakeri > IBM Linux Technology Center > deeptik at linux.vnet.ibm.com > > _______________________________________________ > Libvirt-cim mailing list > Libvirt-cim at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-cim -------------- next part -------------- An HTML attachment was scrubbed... URL: From deeptik at linux.vnet.ibm.com Mon Feb 16 09:49:37 2009 From: deeptik at linux.vnet.ibm.com (Deepti B Kalakeri) Date: Mon, 16 Feb 2009 15:19:37 +0530 Subject: [Libvirt-cim] Re: Test Run Summary (Feb 16 2009): Xen on Red Hat Enterprise Linux Server release 5.3 (Tikanga) with Pegasus In-Reply-To: <200902160824.n1G8OMCL007288@d01av02.pok.ibm.com> References: <200902160824.n1G8OMCL007288@d01av02.pok.ibm.com> Message-ID: <499936B1.2010706@linux.vnet.ibm.com> Kaitlin Rupert wrote: > ================================================= > Test Run Summary (Feb 16 2009): Xen on Red Hat Enterprise Linux Server release 5.3 (Tikanga) with Pegasus > ================================================= > Distro: Red Hat Enterprise Linux Server release 5.3 (Tikanga) > Kernel: 2.6.18-128.el5xen > libvirt: 0.3.3 > Hypervisor: Xen 3.1.0 > CIMOM: Pegasus 2.7.1 > Libvirt-cim revision: 613 > Libvirt-cim changeset: 1fcf330fadf8+ > Cimtest revision: > Cimtest changeset: > ================================================= > FAIL : 8 > XFAIL : 1 > SKIP : 12 > PASS : 125 > ----------------- > Total : 146 > ================================================= > FAIL Test Summary: > HostSystem - 03_hs_to_settdefcap.py: FAIL > Fix Submitted. > VirtualSystemManagementService - 09_procrasd_persist.py: FAIL > VirtualSystemMigrationService - 01_migratable_host.py: FAIL > VirtualSystemMigrationService - 02_host_migrate_type.py: FAIL > VirtualSystemMigrationService - 05_migratable_host_errs.py: FAIL > VirtualSystemSettingDataComponent - 02_reverse.py: FAIL > VirtualSystemSettingDataComponent - 03_vssdc_fwd_errs.py: FAIL > VirtualSystemSettingDataComponent - 04_vssdc_rev_errs.py: FAIL > Need to investigate on these. > -- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik at linux.vnet.ibm.com From kaitlin at linux.vnet.ibm.com Mon Feb 16 15:44:38 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Mon, 16 Feb 2009 07:44:38 -0800 Subject: [Libvirt-cim] [PATCH] [TEST] Create default LXC mount directory as part of image build process In-Reply-To: <499927D1.6020004@linux.vnet.ibm.com> References: <9efbee1b4a6dbf8525e3.1233956335@localhost.localdomain> <499927D1.6020004@linux.vnet.ibm.com> Message-ID: <499989E6.6030501@linux.vnet.ibm.com> Deepti B Kalakeri wrote: > +1 . > I think this eliminates the need of create_lxc_file() function in the > vxml.py. > If create_lxc_file() isn't being used anywhere, it can be removed. -- Kaitlin Rupert IBM Linux Technology Center kaitlin at linux.vnet.ibm.com From rmaciel at linux.vnet.ibm.com Wed Feb 18 18:28:28 2009 From: rmaciel at linux.vnet.ibm.com (Richard Maciel) Date: Wed, 18 Feb 2009 15:28:28 -0300 Subject: [Libvirt-cim] [PATCH 0 of 3] This series of patches exposes errors provided from executions of libvirt functions Message-ID: From rmaciel at linux.vnet.ibm.com Wed Feb 18 18:28:29 2009 From: rmaciel at linux.vnet.ibm.com (Richard Maciel) Date: Wed, 18 Feb 2009 15:28:29 -0300 Subject: [Libvirt-cim] [PATCH 1 of 3] This patch exposes error messages from libvirt calls in VirtualSystemManagementService In-Reply-To: References: Message-ID: <9aeb111b89fb3b1428f8.1234981709@localhost.localdomain> # HG changeset patch # User Richard Maciel # Date 1234981382 10800 # Node ID 9aeb111b89fb3b1428f8b21af5368a6b5c57f948 # Parent 72dc446be12ca8ae1dc60a1aad97ff72eecd7b66 This patch exposes error messages from libvirt calls in VirtualSystemManagementService Signed-off-by: Richard Maciel diff -r 72dc446be12c -r 9aeb111b89fb src/Virt_VirtualSystemManagementService.c --- a/src/Virt_VirtualSystemManagementService.c Wed Feb 04 08:35:04 2009 -0800 +++ b/src/Virt_VirtualSystemManagementService.c Wed Feb 18 15:23:02 2009 -0300 @@ -963,9 +963,10 @@ dom = virDomainLookupByName(conn, dominfo->name); if (dom == NULL) { - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_NOT_FOUND, - "Unable to lookup domain `%s'", dominfo->name); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_NOT_FOUND, + conn, + "Unable to lookup domain `%s'", dominfo->name); goto out; } @@ -1068,6 +1069,10 @@ cu_statusf(_BROKER, &s, CMPI_RC_ERR_NOT_FOUND, "Referenced domain `%s' does not exist", name); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_NOT_FOUND, + conn, + "Referenced domain `%s' does not exist", name); goto out; } @@ -1252,6 +1257,10 @@ dom = virDomainLookupByName(conn, dom_name); if (dom == NULL) { CU_DEBUG("No such domain `%s'", dom_name); + virt_set_status(_BROKER, &status, + CMPI_RC_ERR_NOT_FOUND, + conn, + "Referenced domain `%s' does not exist", dom_name); rc = IM_RC_SYS_NOT_FOUND; goto error; } @@ -1320,8 +1329,13 @@ goto out; dom = virDomainLookupByName(conn, name); - if (dom == NULL) + if (dom == NULL) { + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_NOT_FOUND, + conn, + "Referenced domain `%s' does not exist", name); goto out; + } if (!get_dominfo(dom, &dominfo)) { cu_statusf(_BROKER, &s, @@ -1825,9 +1839,11 @@ dom = virDomainLookupByName(conn, name); if (dom == NULL) { - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_FAILED, - "Unknown system `%s'", name); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_NOT_FOUND, + conn, + "Referenced domain `%s' \ + does not exist", name); goto end; } From rmaciel at linux.vnet.ibm.com Wed Feb 18 18:28:30 2009 From: rmaciel at linux.vnet.ibm.com (Richard Maciel) Date: Wed, 18 Feb 2009 15:28:30 -0300 Subject: [Libvirt-cim] [PATCH 2 of 3] This patch exposes error messages from libvirt calls in ComputerSystem In-Reply-To: References: Message-ID: <9ffb5f88de2b5abc58d8.1234981710@localhost.localdomain> # HG changeset patch # User Richard Maciel # Date 1234981406 10800 # Node ID 9ffb5f88de2b5abc58d80bb647c352e5ddf94de4 # Parent 9aeb111b89fb3b1428f8b21af5368a6b5c57f948 This patch exposes error messages from libvirt calls in ComputerSystem Signed-off-by: Richard Maciel diff -r 9aeb111b89fb -r 9ffb5f88de2b src/Virt_ComputerSystem.c --- a/src/Virt_ComputerSystem.c Wed Feb 18 15:23:02 2009 -0300 +++ b/src/Virt_ComputerSystem.c Wed Feb 18 15:23:26 2009 -0300 @@ -570,10 +570,11 @@ dom = virDomainLookupByName(conn, name); if (dom == NULL) { - cu_statusf(broker, &s, - CMPI_RC_ERR_NOT_FOUND, - "No such instance (%s).", - name); + virt_set_status(broker, &s, + CMPI_RC_ERR_NOT_FOUND, + conn, + "Referenced domain `%s' does not exist", + name); goto out; } @@ -790,9 +791,10 @@ xml = virDomainGetXMLDesc(dom, 0); if (xml == NULL) { CU_DEBUG("Unable to retrieve domain XML"); - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_FAILED, - "Unable to get domain definition"); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_FAILED, + conn, + "Unable to get domain definition"); return s; } @@ -1003,16 +1005,18 @@ dom = virDomainLookupByName(conn, name); if (dom == NULL) { - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_FAILED, - "Domain not found"); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_FAILED, + conn, + "Domain not found"); goto out; } if (virDomainGetInfo(dom, &info) != 0) { - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_FAILED, - "Unable to get current state"); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_FAILED, + conn, + "Unable to get current state"); goto out; } From rmaciel at linux.vnet.ibm.com Wed Feb 18 18:28:31 2009 From: rmaciel at linux.vnet.ibm.com (Richard Maciel) Date: Wed, 18 Feb 2009 15:28:31 -0300 Subject: [Libvirt-cim] [PATCH 3 of 3] This patch exposes error messages from libvirt calls in VSMigrationService In-Reply-To: References: Message-ID: <2d7444518de4a50e511a.1234981711@localhost.localdomain> # HG changeset patch # User Richard Maciel # Date 1234981421 10800 # Node ID 2d7444518de4a50e511a2a854aa80634f3b559bf # Parent 9ffb5f88de2b5abc58d80bb647c352e5ddf94de4 This patch exposes error messages from libvirt calls in VSMigrationService Signed-off-by: Richard Maciel diff -r 9ffb5f88de2b -r 2d7444518de4 src/Virt_VSMigrationService.c --- a/src/Virt_VSMigrationService.c Wed Feb 18 15:23:26 2009 -0300 +++ b/src/Virt_VSMigrationService.c Wed Feb 18 15:23:41 2009 -0300 @@ -259,16 +259,18 @@ unsigned long remote; if (virConnectGetVersion(conn, &local)) { - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_FAILED, - "Unable to get local Hypervisor version"); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_FAILED, + conn, + "Unable to get local Hypervisor version"); goto out; } if (virConnectGetVersion(dconn, &remote)) { - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_FAILED, - "Unable to get remote hypervisor version"); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_FAILED, + conn, + "Unable to get remote Hypervisor version"); goto out; } @@ -396,12 +398,28 @@ pid_t pid; int i; int rc = -1; + virConnectPtr conn = virDomainGetConnect(dom); + const char *name = virDomainGetName(dom); + const char *uri = virConnectGetURI(conn); + + if (name == NULL) { + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_FAILED, + conn, + "Failed to get domain name"); + goto out; + } + + if (uri == NULL) { + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_FAILED, + conn, + "Failed to get URI of connection"); + goto out; + } pid = fork(); if (pid == 0) { - virConnectPtr conn = virDomainGetConnect(dom); - const char *name = virDomainGetName(dom); - const char *uri = virConnectGetURI(conn); if (setpgrp() == -1) perror("setpgrp"); @@ -436,6 +454,7 @@ free(name); } + out: return s; } @@ -589,9 +608,10 @@ dom = virDomainLookupByName(conn, domain); if (dom == NULL) { - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_NOT_FOUND, - "No such domain"); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_NOT_FOUND, + conn, + "No such domain"); goto out; } @@ -930,9 +950,10 @@ ret = virDomainGetInfo(dom, &info); if (ret == -1) { - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_FAILED, - "Error getting domain info"); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_FAILED, + conn, + "Error getting domain info"); goto out; } @@ -969,9 +990,10 @@ CU_DEBUG("Shutting down domain for migration"); ret = virDomainShutdown(dom); if (ret != 0) { - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_FAILED, - "Unable to shutdown guest"); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_FAILED, + dconn, + "Unable to shutdown guest"); goto out; } @@ -1005,10 +1027,21 @@ *xml = virDomainGetXMLDesc(dom, 0); if (*xml == NULL) { - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_FAILED, - "Unable to retrieve domain XML."); - goto out; + + virConnectPtr conn = virDomainGetConnect(dom); + if (conn == NULL) { + cu_statusf(_BROKER, &s, + CMPI_RC_ERR_FAILED, + "Unable to retrieve domain XML."); + goto out; + } + + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_FAILED, + conn, + "Unable to retrieve domain XML"); + + goto out; } out: @@ -1036,6 +1069,13 @@ virDomainGetName(ldom)); if (dom == NULL) { CU_DEBUG("Unable to re-lookup domain"); + + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_NOT_FOUND, + rconn, + "Domain `%s' not found", + virDomainGetName(ldom)); + ret = -1; break; } @@ -1055,9 +1095,10 @@ newdom = virDomainDefineXML(rconn, xml); if (newdom == NULL) { - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_FAILED, - "Failed to define domain"); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_FAILED, + rconn, + "Failed to define domain"); goto out; } @@ -1067,9 +1108,11 @@ CU_DEBUG("Restarting domain on remote host"); if (virDomainCreate(newdom) != 0) { CU_DEBUG("Failed to start domain on remote host"); - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_FAILED, - "Failed to start domain on remote host"); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_FAILED, + rconn, + "Failed to start domain on remote \ + host"); } } out: @@ -1086,9 +1129,20 @@ ret = virDomainGetInfo(dom, &info); if (ret == -1) { - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_FAILED, - "Error getting domain info"); + virConnectPtr conn = virDomainGetConnect(dom); + if (conn == NULL) { + cu_statusf(_BROKER, &s, + CMPI_RC_ERR_FAILED, + "Error getting domain info"); + + goto out; + } + + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_FAILED, + conn, + "Error getting domain info"); + goto out; } @@ -1117,9 +1171,11 @@ dom = virDomainLookupByName(conn, job->domain); if (dom == NULL) { CU_DEBUG("Failed to lookup `%s'", job->domain); - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_FAILED, - "Failed to lookup domain `%s'", job->domain); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_FAILED, + conn, + "Failed to lookup domain `%s'", job->domain); + goto out; } From kaitlin at linux.vnet.ibm.com Wed Feb 18 23:55:11 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Wed, 18 Feb 2009 15:55:11 -0800 Subject: [Libvirt-cim] [PATCH 1 of 3] This patch exposes error messages from libvirt calls in VirtualSystemManagementService In-Reply-To: <9aeb111b89fb3b1428f8.1234981709@localhost.localdomain> References: <9aeb111b89fb3b1428f8.1234981709@localhost.localdomain> Message-ID: <499C9FDF.2080508@linux.vnet.ibm.com> > @@ -1068,6 +1069,10 @@ > cu_statusf(_BROKER, &s, > CMPI_RC_ERR_NOT_FOUND, > "Referenced domain `%s' does not exist", name); Remove the call to cu_statusf(). > + virt_set_status(_BROKER, &s, > + CMPI_RC_ERR_NOT_FOUND, > + conn, > + "Referenced domain `%s' does not exist", name); > goto out; > } > > @@ -1252,6 +1257,10 @@ > dom = virDomainLookupByName(conn, dom_name); > if (dom == NULL) { > CU_DEBUG("No such domain `%s'", dom_name); > + virt_set_status(_BROKER, &status, > + CMPI_RC_ERR_NOT_FOUND, > + conn, > + "Referenced domain `%s' does not exist", dom_name); When you set the status here, it will get overwritten by the calls to cu_statusf() on lines 1285 - 1292. Instead, replace the cu_statusf() calls on lines 1285 - 1292 with calls to virt_set_status(). > @@ -1825,9 +1839,11 @@ > > dom = virDomainLookupByName(conn, name); > if (dom == NULL) { > - cu_statusf(_BROKER, &s, > - CMPI_RC_ERR_FAILED, > - "Unknown system `%s'", name); > + virt_set_status(_BROKER, &s, > + CMPI_RC_ERR_NOT_FOUND, > + conn, > + "Referenced domain `%s' \ > + does not exist", name); Instead of splitting the string up, format like the following: virt_set_status(_BROKER, &s, CMPI_RC_ERR_NOT_FOUND, conn, "Referenced domain `%s' does not exist", name); -- Kaitlin Rupert IBM Linux Technology Center kaitlin at linux.vnet.ibm.com From kaitlin at linux.vnet.ibm.com Thu Feb 19 00:07:22 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Wed, 18 Feb 2009 16:07:22 -0800 Subject: [Libvirt-cim] [PATCH 1 of 3] This patch exposes error messages from libvirt calls in VirtualSystemManagementService In-Reply-To: <499C9FDF.2080508@linux.vnet.ibm.com> References: <9aeb111b89fb3b1428f8.1234981709@localhost.localdomain> <499C9FDF.2080508@linux.vnet.ibm.com> Message-ID: <499CA2BA.4030509@linux.vnet.ibm.com> Also, what about changing line 1476? -- Kaitlin Rupert IBM Linux Technology Center kaitlin at linux.vnet.ibm.com From kaitlin at linux.vnet.ibm.com Thu Feb 19 00:07:31 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Wed, 18 Feb 2009 16:07:31 -0800 Subject: [Libvirt-cim] [PATCH 2 of 3] This patch exposes error messages from libvirt calls in ComputerSystem In-Reply-To: <9ffb5f88de2b5abc58d8.1234981710@localhost.localdomain> References: <9ffb5f88de2b5abc58d8.1234981710@localhost.localdomain> Message-ID: <499CA2C3.2020700@linux.vnet.ibm.com> Richard Maciel wrote: > # HG changeset patch > # User Richard Maciel > # Date 1234981406 10800 > # Node ID 9ffb5f88de2b5abc58d80bb647c352e5ddf94de4 > # Parent 9aeb111b89fb3b1428f8b21af5368a6b5c57f948 > This patch exposes error messages from libvirt calls in ComputerSystem > > Signed-off-by: Richard Maciel > > diff -r 9aeb111b89fb -r 9ffb5f88de2b src/Virt_ComputerSystem.c What about calls to: virDomainGetUUIDString() - line 101 (the error can be printed on line 413) virDomainGetInfo - line 275 -- Kaitlin Rupert IBM Linux Technology Center kaitlin at linux.vnet.ibm.com From kaitlin at linux.vnet.ibm.com Thu Feb 19 00:24:22 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Wed, 18 Feb 2009 16:24:22 -0800 Subject: [Libvirt-cim] [PATCH 3 of 3] This patch exposes error messages from libvirt calls in VSMigrationService In-Reply-To: <2d7444518de4a50e511a.1234981711@localhost.localdomain> References: <2d7444518de4a50e511a.1234981711@localhost.localdomain> Message-ID: <499CA6B6.2060009@linux.vnet.ibm.com> > if (virConnectGetVersion(dconn, &remote)) { > - cu_statusf(_BROKER, &s, > - CMPI_RC_ERR_FAILED, > - "Unable to get remote hypervisor version"); > + virt_set_status(_BROKER, &s, > + CMPI_RC_ERR_FAILED, > + conn, This needs to be dconn, not conn. > @@ -930,9 +950,10 @@ > > ret = virDomainGetInfo(dom, &info); > if (ret == -1) { > - cu_statusf(_BROKER, &s, > - CMPI_RC_ERR_FAILED, > - "Error getting domain info"); > + virt_set_status(_BROKER, &s, > + CMPI_RC_ERR_FAILED, > + conn, There isn't a conn variable in this function. You need to use: virDomainGetConnect(dom); > + "Error getting domain info"); > goto out; > } > Can you fix the bug on line 973? That should be using dconn, not virDomainGetConnect(dom); > @@ -969,9 +990,10 @@ > CU_DEBUG("Shutting down domain for migration"); > ret = virDomainShutdown(dom); > if (ret != 0) { > - cu_statusf(_BROKER, &s, > - CMPI_RC_ERR_FAILED, > - "Unable to shutdown guest"); > + virt_set_status(_BROKER, &s, > + CMPI_RC_ERR_FAILED, > + dconn, This should be virDomainGetConnect(dom), not dconn. You're shutting down the guest on the local system, but the remote system. Actually.. dconn isn't used in the function. Should be removed from the function at some point, but that's a different patch altogether.... > + "Unable to shutdown guest"); > goto out; > } > > @@ -1005,10 +1027,21 @@ > > *xml = virDomainGetXMLDesc(dom, 0); > if (*xml == NULL) { > - cu_statusf(_BROKER, &s, > - CMPI_RC_ERR_FAILED, > - "Unable to retrieve domain XML."); > - goto out; > + > + virConnectPtr conn = virDomainGetConnect(dom); > + if (conn == NULL) { > + cu_statusf(_BROKER, &s, > + CMPI_RC_ERR_FAILED, > + "Unable to retrieve domain XML."); > + goto out; > + } No need for this check here. virt_set_status() handles NULL connections. > + > + virt_set_status(_BROKER, &s, > + CMPI_RC_ERR_FAILED, > + conn, > + "Unable to retrieve domain XML"); > + > + goto out; The goto out isn't aligned properly. > } > > out: > @@ -1036,6 +1069,13 @@ > virDomainGetName(ldom)); > if (dom == NULL) { > CU_DEBUG("Unable to re-lookup domain"); > + > + virt_set_status(_BROKER, &s, > + CMPI_RC_ERR_NOT_FOUND, > + rconn, Should use virDomainGetConnect(ldom) instead of rconn. > + "Domain `%s' not found", > + virDomainGetName(ldom)); > + > @@ -1086,9 +1129,20 @@ > > ret = virDomainGetInfo(dom, &info); > if (ret == -1) { > - cu_statusf(_BROKER, &s, > - CMPI_RC_ERR_FAILED, > - "Error getting domain info"); > + virConnectPtr conn = virDomainGetConnect(dom); > + if (conn == NULL) { > + cu_statusf(_BROKER, &s, > + CMPI_RC_ERR_FAILED, > + "Error getting domain info"); > + > + goto out; > + } No need to do this check - virt_set_status() handles NULL connections. -- Kaitlin Rupert IBM Linux Technology Center kaitlin at linux.vnet.ibm.com From kaitlin at linux.vnet.ibm.com Thu Feb 19 20:24:34 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Thu, 19 Feb 2009 12:24:34 -0800 Subject: [Libvirt-cim] [PATCH] Add AllocationCapabilities support to ECTP Message-ID: <4d161d191f46bbb0efc3.1235075074@localhost.localdomain> # HG changeset patch # User Kaitlin Rupert # Date 1235075052 28800 # Node ID 4d161d191f46bbb0efc386d4b4e3457b623b9d9f # Parent e6bfaef960c05131608b55a4e612ca516754ef83 Add AllocationCapabilities support to ECTP. Also make sure AllocationCapabilities is properly registered to the root/interop namespace. Signed-off-by: Kaitlin Rupert diff -r e6bfaef960c0 -r 4d161d191f46 Makefile.am --- a/Makefile.am Tue Feb 17 12:19:07 2009 -0800 +++ b/Makefile.am Thu Feb 19 12:24:12 2009 -0800 @@ -67,7 +67,8 @@ schema/ProcessorPool.mof \ schema/VSMigrationService.mof \ schema/ElementConformsToProfile.mof \ - schema/ReferencedProfile.mof + schema/ReferencedProfile.mof \ + schema/AllocationCapabilities.mof CIMV2_MOFS = \ schema/HostedResourcePool.mof \ diff -r e6bfaef960c0 -r 4d161d191f46 base_schema/cimv216-interop_mof --- a/base_schema/cimv216-interop_mof Tue Feb 17 12:19:07 2009 -0800 +++ b/base_schema/cimv216-interop_mof Thu Feb 19 12:24:12 2009 -0800 @@ -22,3 +22,5 @@ #pragma include ("Core/CIM_Job.mof") #pragma include ("Core/CIM_ConcreteJob.mof") #pragma include ("Core/CIM_ResourcePool.mof") +#pragma include ("Core/CIM_Capabilities.mof") +#pragma include ("Core/CIM_AllocationCapabilities.mof") diff -r e6bfaef960c0 -r 4d161d191f46 libvirt-cim.spec.in --- a/libvirt-cim.spec.in Tue Feb 17 12:19:07 2009 -0800 +++ b/libvirt-cim.spec.in Thu Feb 19 12:24:12 2009 -0800 @@ -52,7 +52,7 @@ %define SCHEMA %{_datadir}/%{name}/*.mof %define INTEROP_REG %{_datadir}/%{name}/{RegisteredProfile,ElementConformsToProfile,ReferencedProfile}.registration -%define INTEROP_MOF %{_datadir}/%{name}/{ComputerSystem,HostSystem,RegisteredProfile,DiskPool,MemoryPool,NetPool,ProcessorPool,VSMigrationService,ElementConformsToProfile,ReferencedProfile}.mof +%define INTEROP_MOF %{_datadir}/%{name}/{ComputerSystem,HostSystem,RegisteredProfile,DiskPool,MemoryPool,NetPool,ProcessorPool,VSMigrationService,ElementConformsToProfile,ReferencedProfile,AllocationCapabilities}.mof %define CIMV2_REG %{_datadir}/%{name}/{HostedResourcePool,ElementCapabilities,HostedService,HostedDependency,ElementConformsToProfile,HostedAccessPoint}.registration %define CIMV2_MOF %{_datadir}/%{name}/{HostedResourcePool,ElementCapabilities,HostedService,HostedDependency,RegisteredProfile,ComputerSystem,ElementConformsToProfile,HostedAccessPoint}.mof diff -r e6bfaef960c0 -r 4d161d191f46 src/Virt_ElementConformsToProfile.c --- a/src/Virt_ElementConformsToProfile.c Tue Feb 17 12:19:07 2009 -0800 +++ b/src/Virt_ElementConformsToProfile.c Thu Feb 19 12:24:12 2009 -0800 @@ -249,6 +249,7 @@ "Xen_ProcessorPool", "Xen_VirtualSystemMigrationService", "Xen_ConsoleRedirectionService", + "Xen_AllocationCapabilities", "KVM_HostSystem", "KVM_ComputerSystem", "KVM_DiskPool", @@ -257,6 +258,7 @@ "KVM_ProcessorPool", "KVM_VirtualSystemMigrationService", "KVM_ConsoleRedirectionService", + "KVM_AllocationCapabilities", "LXC_HostSystem", "LXC_ComputerSystem", "LXC_DiskPool", @@ -265,6 +267,7 @@ "LXC_ProcessorPool", "LXC_VirtualSystemMigrationService", "LXC_ConsoleRedirectionService", + "LXC_AllocationCapabilities", "Linux_ComputerSystem", NULL }; From yunguol at cn.ibm.com Mon Feb 23 05:49:05 2009 From: yunguol at cn.ibm.com (Guo Lian Yun) Date: Mon, 23 Feb 2009 13:49:05 +0800 Subject: [Libvirt-cim] Test Run Summary (Feb 23 2009): KVM on Fedora release 9.90.1 (Rawhide) with sfcb Message-ID: ================================================= Test Run Summary (Feb 23 2009): KVM on Fedora release 9.90.1 (Rawhide) with sfcb ================================================= Distro: Fedora release 9.90.1 (Rawhide) Kernel: 2.6.27-0.323.rc6.fc10.x86_64 libvirt: 0.4.5 Hypervisor: QEMU 0.9.1 CIMOM: sfcb sfcbd 1.3.3preview Libvirt-cim revision: 813 Libvirt-cim changeset: e6bfaef960c0 Cimtest revision: 632 Cimtest changeset: 6f8acadebaae ================================================= FAIL : 2 XFAIL : 2 SKIP : 4 PASS : 138 ----------------- Total : 146 ================================================= FAIL Test Summary: ElementConforms - 01_forward.py: FAIL VirtualSystemManagementService - 09_procrasd_persist.py: FAIL ================================================= XFAIL Test Summary: ComputerSystem - 32_start_reboot.py: XFAIL ComputerSystem - 33_suspend_reboot.py: XFAIL ================================================= SKIP Test Summary: VSSD - 02_bootldr.py: SKIP VirtualSystemMigrationService - 01_migratable_host.py: SKIP VirtualSystemMigrationService - 02_host_migrate_type.py: SKIP VirtualSystemMigrationService - 05_migratable_host_errs.py: SKIP ================================================= Full report: -------------------------------------------------------------------- AllocationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- AllocationCapabilities - 02_alloccap_gi_errs.py: PASS -------------------------------------------------------------------- ComputerSystem - 01_enum.py: PASS -------------------------------------------------------------------- ComputerSystem - 02_nosystems.py: PASS -------------------------------------------------------------------- ComputerSystem - 03_defineVS.py: PASS -------------------------------------------------------------------- ComputerSystem - 04_defineStartVS.py: PASS -------------------------------------------------------------------- ComputerSystem - 05_activate_defined_start.py: PASS -------------------------------------------------------------------- ComputerSystem - 06_paused_active_suspend.py: PASS -------------------------------------------------------------------- ComputerSystem - 22_define_suspend.py: PASS -------------------------------------------------------------------- ComputerSystem - 23_pause_pause.py: PASS -------------------------------------------------------------------- ComputerSystem - 27_define_pause_errs.py: PASS -------------------------------------------------------------------- ComputerSystem - 32_start_reboot.py: XFAIL ERROR - Got CIM error Unable to reboot domain: this function is not supported by the hypervisor: virDomainReboot with return code 1 ERROR - Exception: Unable reboot dom 'cs_test_domain' InvokeMethod(RequestStateChange): Unable to reboot domain: this function is not supported by the hypervisor: virDomainReboot Bug:<00005> -------------------------------------------------------------------- ComputerSystem - 33_suspend_reboot.py: XFAIL ERROR - Got CIM error State not supported with return code 7 ERROR - Exception: Unable Suspend dom 'test_domain' InvokeMethod(RequestStateChange): State not supported Bug:<00012> -------------------------------------------------------------------- ComputerSystem - 35_start_reset.py: PASS -------------------------------------------------------------------- ComputerSystem - 40_RSC_start.py: PASS -------------------------------------------------------------------- ComputerSystem - 41_cs_to_settingdefinestate.py: PASS -------------------------------------------------------------------- ComputerSystem - 42_cs_gi_errs.py: PASS -------------------------------------------------------------------- ComputerSystemIndication - 01_created_indication.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 01_forward.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 02_reverse.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 03_reverse_errs.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 04_forward_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 01_forward.py: PASS -------------------------------------------------------------------- ElementCapabilities - 02_reverse.py: PASS -------------------------------------------------------------------- ElementCapabilities - 03_forward_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 04_reverse_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 05_hostsystem_cap.py: PASS -------------------------------------------------------------------- ElementConforms - 01_forward.py: FAIL ERROR - verify_fields() exception: u'KVM_AllocationCapabilities' ERROR - Exception: Failed to verify instance Class not found -------------------------------------------------------------------- ElementConforms - 02_reverse.py: PASS -------------------------------------------------------------------- ElementConforms - 03_ectp_fwd_errs.py: PASS -------------------------------------------------------------------- ElementConforms - 04_ectp_rev_errs.py: PASS -------------------------------------------------------------------- ElementSettingData - 01_forward.py: PASS -------------------------------------------------------------------- ElementSettingData - 03_esd_assoc_with_rasd_errs.py: PASS -------------------------------------------------------------------- EnabledLogicalElementCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- EnabledLogicalElementCapabilities - 02_elecap_gi_errs.py: PASS -------------------------------------------------------------------- HostSystem - 01_enum.py: PASS -------------------------------------------------------------------- HostSystem - 02_hostsystem_to_rasd.py: PASS -------------------------------------------------------------------- HostSystem - 03_hs_to_settdefcap.py: PASS -------------------------------------------------------------------- HostSystem - 04_hs_to_EAPF.py: PASS -------------------------------------------------------------------- HostSystem - 05_hs_gi_errs.py: PASS -------------------------------------------------------------------- HostSystem - 06_hs_to_vsms.py: PASS -------------------------------------------------------------------- HostedAccessPoint - 01_forward.py: PASS -------------------------------------------------------------------- HostedAccessPoint - 02_reverse.py: PASS -------------------------------------------------------------------- HostedDependency - 01_forward.py: PASS -------------------------------------------------------------------- HostedDependency - 02_reverse.py: PASS -------------------------------------------------------------------- HostedDependency - 03_enabledstate.py: PASS -------------------------------------------------------------------- HostedDependency - 04_reverse_errs.py: PASS -------------------------------------------------------------------- HostedResourcePool - 01_forward.py: PASS -------------------------------------------------------------------- HostedResourcePool - 02_reverse.py: PASS -------------------------------------------------------------------- HostedResourcePool - 03_forward_errs.py: PASS -------------------------------------------------------------------- HostedResourcePool - 04_reverse_errs.py: PASS -------------------------------------------------------------------- HostedService - 01_forward.py: PASS -------------------------------------------------------------------- HostedService - 02_reverse.py: PASS -------------------------------------------------------------------- HostedService - 03_forward_errs.py: PASS -------------------------------------------------------------------- HostedService - 04_reverse_errs.py: PASS -------------------------------------------------------------------- KVMRedirectionSAP - 01_enum_KVMredSAP.py: PASS -------------------------------------------------------------------- LogicalDisk - 01_disk.py: PASS -------------------------------------------------------------------- LogicalDisk - 02_nodevs.py: PASS -------------------------------------------------------------------- LogicalDisk - 03_ld_gi_errs.py: PASS -------------------------------------------------------------------- Memory - 01_memory.py: PASS -------------------------------------------------------------------- Memory - 02_defgetmem.py: PASS -------------------------------------------------------------------- Memory - 03_mem_gi_errs.py: PASS -------------------------------------------------------------------- NetworkPort - 01_netport.py: PASS -------------------------------------------------------------------- NetworkPort - 02_np_gi_errors.py: PASS -------------------------------------------------------------------- NetworkPort - 03_user_netport.py: PASS -------------------------------------------------------------------- Processor - 01_processor.py: PASS -------------------------------------------------------------------- Processor - 02_definesys_get_procs.py: PASS -------------------------------------------------------------------- Processor - 03_proc_gi_errs.py: PASS -------------------------------------------------------------------- Profile - 01_enum.py: PASS -------------------------------------------------------------------- Profile - 02_profile_to_elec.py: PASS -------------------------------------------------------------------- Profile - 03_rprofile_gi_errs.py: PASS -------------------------------------------------------------------- RASD - 01_verify_rasd_fields.py: PASS -------------------------------------------------------------------- RASD - 02_enum.py: PASS -------------------------------------------------------------------- RASD - 03_rasd_errs.py: PASS -------------------------------------------------------------------- RASD - 04_disk_rasd_size.py: PASS -------------------------------------------------------------------- RASD - 05_disk_rasd_emu_type.py: PASS -------------------------------------------------------------------- RedirectionService - 01_enum_crs.py: PASS -------------------------------------------------------------------- RedirectionService - 02_enum_crscap.py: PASS -------------------------------------------------------------------- RedirectionService - 03_RedirectionSAP_errs.py: PASS -------------------------------------------------------------------- ReferencedProfile - 01_verify_refprof.py: PASS -------------------------------------------------------------------- ReferencedProfile - 02_refprofile_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 01_forward.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 02_reverse.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 03_forward_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 04_reverse_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 05_RAPF_err.py: PASS -------------------------------------------------------------------- ResourcePool - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePool - 02_rp_gi_errors.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationCapabilities - 02_rpcc_gi_errs.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 02_rcps_gi_errors.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 03_CreateResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 04_CreateChildResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 05_AddResourcesToResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 06_RemoveResourcesFromResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 07_DeleteResourcePool.py: PASS -------------------------------------------------------------------- ServiceAccessBySAP - 01_forward.py: PASS -------------------------------------------------------------------- ServiceAccessBySAP - 02_reverse.py: PASS -------------------------------------------------------------------- SettingsDefine - 01_forward.py: PASS -------------------------------------------------------------------- SettingsDefine - 02_reverse.py: PASS -------------------------------------------------------------------- SettingsDefine - 03_sds_fwd_errs.py: PASS -------------------------------------------------------------------- SettingsDefine - 04_sds_rev_errs.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 01_forward.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 03_forward_errs.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 04_forward_vsmsdata.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 05_reverse_vsmcap.py: PASS -------------------------------------------------------------------- SystemDevice - 01_forward.py: PASS -------------------------------------------------------------------- SystemDevice - 02_reverse.py: PASS -------------------------------------------------------------------- SystemDevice - 03_fwderrs.py: PASS -------------------------------------------------------------------- VSSD - 01_enum.py: PASS -------------------------------------------------------------------- VSSD - 02_bootldr.py: SKIP -------------------------------------------------------------------- VSSD - 03_vssd_gi_errs.py: PASS -------------------------------------------------------------------- VSSD - 04_vssd_to_rasd.py: PASS -------------------------------------------------------------------- VirtualSystemManagementCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemManagementCapabilities - 02_vsmcap_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 01_definesystem_name.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 02_destroysystem.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 03_definesystem_ess.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 04_definesystem_ers.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 05_destroysystem_neg.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 06_addresource.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 07_addresource_neg.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 08_modifyresource.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 09_procrasd_persist.py: FAIL ERROR - VirtualQuantity is 0, expected 3 ERROR - Exception: details CPU scheduling not set properly for the dom: procrasd_persist_dom -------------------------------------------------------------------- VirtualSystemManagementService - 10_hv_version.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 11_define_memrasdunits.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 12_referenced_config.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 13_refconfig_additional_devs.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 14_define_sys_disk.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 15_mod_system_settings.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationCapabilities - 02_vsmc_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationService - 01_migratable_host.py: SKIP -------------------------------------------------------------------- VirtualSystemMigrationService - 02_host_migrate_type.py: SKIP -------------------------------------------------------------------- VirtualSystemMigrationService - 05_migratable_host_errs.py: SKIP -------------------------------------------------------------------- VirtualSystemMigrationSettingData - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationSettingData - 02_vsmsd_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 01_forward.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 02_reverse.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 03_vssdc_fwd_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 04_vssdc_rev_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotService - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotService - 02_vs_sservice_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotServiceCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotServiceCapabilities - 02_vs_sservicecap_gi_errs.py: PASS -------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From yunguol at cn.ibm.com Mon Feb 23 06:11:23 2009 From: yunguol at cn.ibm.com (Guo Lian Yun) Date: Mon, 23 Feb 2009 14:11:23 +0800 Subject: [Libvirt-cim] Test Run Summary (Feb 23 2009): LXC on Fedora release 9.90.1 (Rawhide) with sfcb Message-ID: ================================================= Test Run Summary (Feb 23 2009): LXC on Fedora release 9.90.1 (Rawhide) with sfcb ================================================= Distro: Fedora release 9.90.1 (Rawhide) Kernel: 2.6.27-0.323.rc6.fc10.x86_64 libvirt: 0.4.5 Hypervisor: QEMU 0.9.1 CIMOM: sfcb sfcbd 1.3.3preview Libvirt-cim revision: 813 Libvirt-cim changeset: e6bfaef960c0 Cimtest revision: 632 Cimtest changeset: 6f8acadebaae ================================================= FAIL : 1 XFAIL : 9 SKIP : 32 PASS : 104 ----------------- Total : 146 ================================================= FAIL Test Summary: ElementConforms - 01_forward.py: FAIL ================================================= XFAIL Test Summary: ComputerSystem - 06_paused_active_suspend.py: XFAIL ComputerSystem - 23_pause_pause.py: XFAIL ComputerSystem - 32_start_reboot.py: XFAIL ComputerSystem - 33_suspend_reboot.py: XFAIL HostSystem - 02_hostsystem_to_rasd.py: XFAIL HostedDependency - 03_enabledstate.py: XFAIL VSSD - 04_vssd_to_rasd.py: XFAIL VirtualSystemManagementService - 15_mod_system_settings.py: XFAIL VirtualSystemSettingDataComponent - 02_reverse.py: XFAIL ================================================= SKIP Test Summary: ComputerSystem - 02_nosystems.py: SKIP ComputerSystem - 41_cs_to_settingdefinestate.py: SKIP ComputerSystemIndication - 01_created_indication.py: SKIP ElementAllocatedFromPool - 03_reverse_errs.py: SKIP ElementAllocatedFromPool - 04_forward_errs.py: SKIP LogicalDisk - 01_disk.py: SKIP LogicalDisk - 02_nodevs.py: SKIP LogicalDisk - 03_ld_gi_errs.py: SKIP NetworkPort - 01_netport.py: SKIP NetworkPort - 02_np_gi_errors.py: SKIP NetworkPort - 03_user_netport.py: SKIP Processor - 01_processor.py: SKIP Processor - 02_definesys_get_procs.py: SKIP Processor - 03_proc_gi_errs.py: SKIP RASD - 04_disk_rasd_size.py: SKIP RASD - 05_disk_rasd_emu_type.py: SKIP ResourceAllocationFromPool - 05_RAPF_err.py: SKIP ResourcePoolConfigurationService - 03_CreateResourcePool.py: SKIP ResourcePoolConfigurationService - 04_CreateChildResourcePool.py: SKIP ResourcePoolConfigurationService - 05_AddResourcesToResourcePool.py: SKIP ResourcePoolConfigurationService - 06_RemoveResourcesFromResourcePool.py: SKIP ResourcePoolConfigurationService - 07_DeleteResourcePool.py: SKIP VSSD - 02_bootldr.py: SKIP VirtualSystemManagementService - 06_addresource.py: SKIP VirtualSystemManagementService - 08_modifyresource.py: SKIP VirtualSystemManagementService - 09_procrasd_persist.py: SKIP VirtualSystemManagementService - 11_define_memrasdunits.py: SKIP VirtualSystemManagementService - 12_referenced_config.py: SKIP VirtualSystemManagementService - 13_refconfig_additional_devs.py: SKIP VirtualSystemMigrationService - 01_migratable_host.py: SKIP VirtualSystemMigrationService - 02_host_migrate_type.py: SKIP VirtualSystemMigrationService - 05_migratable_host_errs.py: SKIP ================================================= Full report: -------------------------------------------------------------------- AllocationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- AllocationCapabilities - 02_alloccap_gi_errs.py: PASS -------------------------------------------------------------------- ComputerSystem - 01_enum.py: PASS -------------------------------------------------------------------- ComputerSystem - 02_nosystems.py: SKIP ERROR - System has defined domains; unable to run -------------------------------------------------------------------- ComputerSystem - 03_defineVS.py: PASS -------------------------------------------------------------------- ComputerSystem - 04_defineStartVS.py: PASS -------------------------------------------------------------------- ComputerSystem - 05_activate_defined_start.py: PASS -------------------------------------------------------------------- ComputerSystem - 06_paused_active_suspend.py: XFAIL ERROR - Got CIM error Unable to pause domain: this function is not supported by the hypervisor: virDomainSuspend with return code 1 ERROR - Exception variable: Unable pause dom 'DomST1' InvokeMethod(RequestStateChange): Unable to pause domain: this function is not supported by the hypervisor: virDomainSuspend Bug:<00011> -------------------------------------------------------------------- ComputerSystem - 22_define_suspend.py: PASS -------------------------------------------------------------------- ComputerSystem - 23_pause_pause.py: XFAIL ERROR - Got CIM error Unable to pause domain: this function is not supported by the hypervisor: virDomainSuspend with return code 1 ERROR - Exception: 'Unable pause dom 'cs_test_domain'' InvokeMethod(RequestStateChange): Unable to pause domain: this function is not supported by the hypervisor: virDomainSuspend Bug:<00011> -------------------------------------------------------------------- ComputerSystem - 27_define_pause_errs.py: PASS -------------------------------------------------------------------- ComputerSystem - 32_start_reboot.py: XFAIL ERROR - Got CIM error Unable to reboot domain: this function is not supported by the hypervisor: virDomainReboot with return code 1 ERROR - Exception: Unable reboot dom 'cs_test_domain' InvokeMethod(RequestStateChange): Unable to reboot domain: this function is not supported by the hypervisor: virDomainReboot Bug:<00005> -------------------------------------------------------------------- ComputerSystem - 33_suspend_reboot.py: XFAIL ERROR - Got CIM error State not supported with return code 7 ERROR - Exception: Unable Suspend dom 'test_domain' InvokeMethod(RequestStateChange): State not supported Bug:<00012> -------------------------------------------------------------------- ComputerSystem - 35_start_reset.py: PASS -------------------------------------------------------------------- ComputerSystem - 40_RSC_start.py: PASS -------------------------------------------------------------------- ComputerSystem - 41_cs_to_settingdefinestate.py: SKIP -------------------------------------------------------------------- ComputerSystem - 42_cs_gi_errs.py: PASS -------------------------------------------------------------------- ComputerSystemIndication - 01_created_indication.py: SKIP -------------------------------------------------------------------- ElementAllocatedFromPool - 01_forward.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 02_reverse.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 03_reverse_errs.py: SKIP -------------------------------------------------------------------- ElementAllocatedFromPool - 04_forward_errs.py: SKIP -------------------------------------------------------------------- ElementCapabilities - 01_forward.py: PASS -------------------------------------------------------------------- ElementCapabilities - 02_reverse.py: PASS -------------------------------------------------------------------- ElementCapabilities - 03_forward_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 04_reverse_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 05_hostsystem_cap.py: PASS -------------------------------------------------------------------- ElementConforms - 01_forward.py: FAIL ERROR - verify_fields() exception: u'LXC_AllocationCapabilities' ERROR - Exception: Failed to verify instance Class not found -------------------------------------------------------------------- ElementConforms - 02_reverse.py: PASS -------------------------------------------------------------------- ElementConforms - 03_ectp_fwd_errs.py: PASS -------------------------------------------------------------------- ElementConforms - 04_ectp_rev_errs.py: PASS -------------------------------------------------------------------- ElementSettingData - 01_forward.py: PASS -------------------------------------------------------------------- ElementSettingData - 03_esd_assoc_with_rasd_errs.py: PASS -------------------------------------------------------------------- EnabledLogicalElementCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- EnabledLogicalElementCapabilities - 02_elecap_gi_errs.py: PASS -------------------------------------------------------------------- HostSystem - 01_enum.py: PASS -------------------------------------------------------------------- HostSystem - 02_hostsystem_to_rasd.py: XFAIL ERROR - InstanceID Mismatch ERROR - Returned CrossClass_GuestDom/mouse:xen instead of CrossClass_GuestDom/mouse:usb Class not found Bug:<00009> -------------------------------------------------------------------- HostSystem - 03_hs_to_settdefcap.py: PASS -------------------------------------------------------------------- HostSystem - 04_hs_to_EAPF.py: PASS -------------------------------------------------------------------- HostSystem - 05_hs_gi_errs.py: PASS -------------------------------------------------------------------- HostSystem - 06_hs_to_vsms.py: PASS -------------------------------------------------------------------- HostedAccessPoint - 01_forward.py: PASS -------------------------------------------------------------------- HostedAccessPoint - 02_reverse.py: PASS -------------------------------------------------------------------- HostedDependency - 01_forward.py: PASS -------------------------------------------------------------------- HostedDependency - 02_reverse.py: PASS -------------------------------------------------------------------- HostedDependency - 03_enabledstate.py: XFAIL ERROR - Exception: (1, u'Unable to pause domain: this function is not supported by the hypervisor: virDomainSuspend') ERROR - Failed to suspend the dom: hd_domain1 InvokeMethod(RequestStateChange): Unable to pause domain: this function is not supported by the hypervisor: virDomainSuspend Bug:<00011> -------------------------------------------------------------------- HostedDependency - 04_reverse_errs.py: PASS -------------------------------------------------------------------- HostedResourcePool - 01_forward.py: PASS -------------------------------------------------------------------- HostedResourcePool - 02_reverse.py: PASS -------------------------------------------------------------------- HostedResourcePool - 03_forward_errs.py: PASS -------------------------------------------------------------------- HostedResourcePool - 04_reverse_errs.py: PASS -------------------------------------------------------------------- HostedService - 01_forward.py: PASS -------------------------------------------------------------------- HostedService - 02_reverse.py: PASS -------------------------------------------------------------------- HostedService - 03_forward_errs.py: PASS -------------------------------------------------------------------- HostedService - 04_reverse_errs.py: PASS -------------------------------------------------------------------- KVMRedirectionSAP - 01_enum_KVMredSAP.py: PASS -------------------------------------------------------------------- LogicalDisk - 01_disk.py: SKIP -------------------------------------------------------------------- LogicalDisk - 02_nodevs.py: SKIP ERROR - System has defined domains; unable to run -------------------------------------------------------------------- LogicalDisk - 03_ld_gi_errs.py: SKIP -------------------------------------------------------------------- Memory - 01_memory.py: PASS -------------------------------------------------------------------- Memory - 02_defgetmem.py: PASS -------------------------------------------------------------------- Memory - 03_mem_gi_errs.py: PASS -------------------------------------------------------------------- NetworkPort - 01_netport.py: SKIP -------------------------------------------------------------------- NetworkPort - 02_np_gi_errors.py: SKIP -------------------------------------------------------------------- NetworkPort - 03_user_netport.py: SKIP -------------------------------------------------------------------- Processor - 01_processor.py: SKIP -------------------------------------------------------------------- Processor - 02_definesys_get_procs.py: SKIP -------------------------------------------------------------------- Processor - 03_proc_gi_errs.py: SKIP -------------------------------------------------------------------- Profile - 01_enum.py: PASS -------------------------------------------------------------------- Profile - 02_profile_to_elec.py: PASS -------------------------------------------------------------------- Profile - 03_rprofile_gi_errs.py: PASS -------------------------------------------------------------------- RASD - 01_verify_rasd_fields.py: PASS -------------------------------------------------------------------- RASD - 02_enum.py: PASS -------------------------------------------------------------------- RASD - 03_rasd_errs.py: PASS -------------------------------------------------------------------- RASD - 04_disk_rasd_size.py: SKIP -------------------------------------------------------------------- RASD - 05_disk_rasd_emu_type.py: SKIP -------------------------------------------------------------------- RedirectionService - 01_enum_crs.py: PASS -------------------------------------------------------------------- RedirectionService - 02_enum_crscap.py: PASS -------------------------------------------------------------------- RedirectionService - 03_RedirectionSAP_errs.py: PASS -------------------------------------------------------------------- ReferencedProfile - 01_verify_refprof.py: PASS -------------------------------------------------------------------- ReferencedProfile - 02_refprofile_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 01_forward.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 02_reverse.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 03_forward_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 04_reverse_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 05_RAPF_err.py: SKIP -------------------------------------------------------------------- ResourcePool - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePool - 02_rp_gi_errors.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationCapabilities - 02_rpcc_gi_errs.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 02_rcps_gi_errors.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 03_CreateResourcePool.py: SKIP -------------------------------------------------------------------- ResourcePoolConfigurationService - 04_CreateChildResourcePool.py: SKIP -------------------------------------------------------------------- ResourcePoolConfigurationService - 05_AddResourcesToResourcePool.py: SKIP -------------------------------------------------------------------- ResourcePoolConfigurationService - 06_RemoveResourcesFromResourcePool.py: SKIP -------------------------------------------------------------------- ResourcePoolConfigurationService - 07_DeleteResourcePool.py: SKIP -------------------------------------------------------------------- ServiceAccessBySAP - 01_forward.py: PASS -------------------------------------------------------------------- ServiceAccessBySAP - 02_reverse.py: PASS -------------------------------------------------------------------- SettingsDefine - 01_forward.py: PASS -------------------------------------------------------------------- SettingsDefine - 02_reverse.py: PASS -------------------------------------------------------------------- SettingsDefine - 03_sds_fwd_errs.py: PASS -------------------------------------------------------------------- SettingsDefine - 04_sds_rev_errs.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 01_forward.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 03_forward_errs.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 04_forward_vsmsdata.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 05_reverse_vsmcap.py: PASS -------------------------------------------------------------------- SystemDevice - 01_forward.py: PASS -------------------------------------------------------------------- SystemDevice - 02_reverse.py: PASS -------------------------------------------------------------------- SystemDevice - 03_fwderrs.py: PASS -------------------------------------------------------------------- VSSD - 01_enum.py: PASS -------------------------------------------------------------------- VSSD - 02_bootldr.py: SKIP -------------------------------------------------------------------- VSSD - 03_vssd_gi_errs.py: PASS -------------------------------------------------------------------- VSSD - 04_vssd_to_rasd.py: XFAIL ERROR - InstanceID Mismatch ERROR - Returned VSSDC_dom/mouse:xen instead of VSSDC_dom/mouse:usb Bug:<00009> -------------------------------------------------------------------- VirtualSystemManagementCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemManagementCapabilities - 02_vsmcap_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 01_definesystem_name.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 02_destroysystem.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 03_definesystem_ess.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 04_definesystem_ers.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 05_destroysystem_neg.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 06_addresource.py: SKIP -------------------------------------------------------------------- VirtualSystemManagementService - 07_addresource_neg.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 08_modifyresource.py: SKIP -------------------------------------------------------------------- VirtualSystemManagementService - 09_procrasd_persist.py: SKIP -------------------------------------------------------------------- VirtualSystemManagementService - 10_hv_version.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 11_define_memrasdunits.py: SKIP -------------------------------------------------------------------- VirtualSystemManagementService - 12_referenced_config.py: SKIP -------------------------------------------------------------------- VirtualSystemManagementService - 13_refconfig_additional_devs.py: SKIP -------------------------------------------------------------------- VirtualSystemManagementService - 14_define_sys_disk.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 15_mod_system_settings.py: XFAIL ERROR - rstest_domain not updated properly. ERROR - Exp AutomaticRecoveryAction=3, got 2 Bug:<00008> -------------------------------------------------------------------- VirtualSystemMigrationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationCapabilities - 02_vsmc_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationService - 01_migratable_host.py: SKIP -------------------------------------------------------------------- VirtualSystemMigrationService - 02_host_migrate_type.py: SKIP -------------------------------------------------------------------- VirtualSystemMigrationService - 05_migratable_host_errs.py: SKIP -------------------------------------------------------------------- VirtualSystemMigrationSettingData - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationSettingData - 02_vsmsd_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 01_forward.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 02_reverse.py: XFAIL ERROR - Returned VSSDC_dom/mouse:xen instead of VSSDC_dom/mouse:usb Bug:<00009> -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 03_vssdc_fwd_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 04_vssdc_rev_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotService - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotService - 02_vs_sservice_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotServiceCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotServiceCapabilities - 02_vs_sservicecap_gi_errs.py: PASS -------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From yunguol at cn.ibm.com Mon Feb 23 08:45:52 2009 From: yunguol at cn.ibm.com (Guo Lian Yun) Date: Mon, 23 Feb 2009 16:45:52 +0800 Subject: [Libvirt-cim] Test Run Summary (Feb 23 2009): LXC on Fedora release 9.90.1 (Rawhide) with sfcb In-Reply-To: Message-ID: libvirt-cim-bounces at redhat.com wrote on 2009-02-23 14:11:23: > > ================================================= > Test Run Summary (Feb 23 2009): LXC on Fedora release 9.90.1 > (Rawhide) with sfcb > ================================================= > Distro: Fedora release 9.90.1 (Rawhide) > Kernel: 2.6.27-0.323.rc6.fc10.x86_64 > libvirt: 0.4.5 > Hypervisor: QEMU 0.9.1 > CIMOM: sfcb sfcbd 1.3.3preview > Libvirt-cim revision: 813 > Libvirt-cim changeset: e6bfaef960c0 > Cimtest revision: 632 > Cimtest changeset: 6f8acadebaae > ================================================= > FAIL : 1 > XFAIL : 9 > SKIP : 32 > PASS : 104 > ----------------- > Total : 146 > ================================================= > FAIL Test Summary: > ElementConforms - 01_forward.py: FAIL Kaitlin submit a patch with fix this. Kaitlin -- When the patch will be applied into the repository? Thanks! > > ================================================= > XFAIL Test Summary: > ComputerSystem - 06_paused_active_suspend.py: XFAIL > ComputerSystem - 23_pause_pause.py: XFAIL > ComputerSystem - 32_start_reboot.py: XFAIL > ComputerSystem - 33_suspend_reboot.py: XFAIL > HostSystem - 02_hostsystem_to_rasd.py: XFAIL > HostedDependency - 03_enabledstate.py: XFAIL > VSSD - 04_vssd_to_rasd.py: XFAIL > VirtualSystemManagementService - 15_mod_system_settings.py: XFAIL > VirtualSystemSettingDataComponent - 02_reverse.py: XFAIL > > ================================================= > SKIP Test Summary: > ComputerSystem - 02_nosystems.py: SKIP > ComputerSystem - 41_cs_to_settingdefinestate.py: SKIP > ComputerSystemIndication - 01_created_indication.py: SKIP > ElementAllocatedFromPool - 03_reverse_errs.py: SKIP > ElementAllocatedFromPool - 04_forward_errs.py: SKIP > LogicalDisk - 01_disk.py: SKIP > LogicalDisk - 02_nodevs.py: SKIP > LogicalDisk - 03_ld_gi_errs.py: SKIP > NetworkPort - 01_netport.py: SKIP > NetworkPort - 02_np_gi_errors.py: SKIP > NetworkPort - 03_user_netport.py: SKIP > Processor - 01_processor.py: SKIP > Processor - 02_definesys_get_procs.py: SKIP > Processor - 03_proc_gi_errs.py: SKIP > RASD - 04_disk_rasd_size.py: SKIP > RASD - 05_disk_rasd_emu_type.py: SKIP > ResourceAllocationFromPool - 05_RAPF_err.py: SKIP > ResourcePoolConfigurationService - 03_CreateResourcePool.py: SKIP > ResourcePoolConfigurationService - 04_CreateChildResourcePool.py: SKIP > ResourcePoolConfigurationService - 05_AddResourcesToResourcePool.py: SKIP > ResourcePoolConfigurationService - 06_RemoveResourcesFromResourcePool.py: SKIP > ResourcePoolConfigurationService - 07_DeleteResourcePool.py: SKIP > VSSD - 02_bootldr.py: SKIP > VirtualSystemManagementService - 06_addresource.py: SKIP > VirtualSystemManagementService - 08_modifyresource.py: SKIP > VirtualSystemManagementService - 09_procrasd_persist.py: SKIP > VirtualSystemManagementService - 11_define_memrasdunits.py: SKIP > VirtualSystemManagementService - 12_referenced_config.py: SKIP > VirtualSystemManagementService - 13_refconfig_additional_devs.py: SKIP > VirtualSystemMigrationService - 01_migratable_host.py: SKIP > VirtualSystemMigrationService - 02_host_migrate_type.py: SKIP > VirtualSystemMigrationService - 05_migratable_host_errs.py: SKIP > > ================================================= > Full report: > -------------------------------------------------------------------- > AllocationCapabilities - 01_enum.py: PASS > -------------------------------------------------------------------- > AllocationCapabilities - 02_alloccap_gi_errs.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 01_enum.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 02_nosystems.py: SKIP > ERROR - System has defined domains; unable to run > -------------------------------------------------------------------- > ComputerSystem - 03_defineVS.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 04_defineStartVS.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 05_activate_defined_start.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 06_paused_active_suspend.py: XFAIL > ERROR - Got CIM error Unable to pause domain: this > function is not supported by the hypervisor: virDomainSuspend with > return code 1 > ERROR - Exception variable: Unable pause dom 'DomST1' > InvokeMethod(RequestStateChange): Unable to pause domain: this > function is not supported by the hypervisor: virDomainSuspend > Bug:<00011> > -------------------------------------------------------------------- > ComputerSystem - 22_define_suspend.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 23_pause_pause.py: XFAIL > ERROR - Got CIM error Unable to pause domain: this > function is not supported by the hypervisor: virDomainSuspend with > return code 1 > ERROR - Exception: 'Unable pause dom 'cs_test_domain'' > InvokeMethod(RequestStateChange): Unable to pause domain: this > function is not supported by the hypervisor: virDomainSuspend > Bug:<00011> > -------------------------------------------------------------------- > ComputerSystem - 27_define_pause_errs.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 32_start_reboot.py: XFAIL > ERROR - Got CIM error Unable to reboot domain: this > function is not supported by the hypervisor: virDomainReboot with > return code 1 > ERROR - Exception: Unable reboot dom 'cs_test_domain' > InvokeMethod(RequestStateChange): Unable to reboot domain: this > function is not supported by the hypervisor: virDomainReboot > Bug:<00005> > -------------------------------------------------------------------- > ComputerSystem - 33_suspend_reboot.py: XFAIL > ERROR - Got CIM error State not supported with return code 7 > ERROR - Exception: Unable Suspend dom 'test_domain' > InvokeMethod(RequestStateChange): State not supported > Bug:<00012> > -------------------------------------------------------------------- > ComputerSystem - 35_start_reset.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 40_RSC_start.py: PASS > -------------------------------------------------------------------- > ComputerSystem - 41_cs_to_settingdefinestate.py: SKIP > -------------------------------------------------------------------- > ComputerSystem - 42_cs_gi_errs.py: PASS > -------------------------------------------------------------------- > ComputerSystemIndication - 01_created_indication.py: SKIP > -------------------------------------------------------------------- > ElementAllocatedFromPool - 01_forward.py: PASS > -------------------------------------------------------------------- > ElementAllocatedFromPool - 02_reverse.py: PASS > -------------------------------------------------------------------- > ElementAllocatedFromPool - 03_reverse_errs.py: SKIP > -------------------------------------------------------------------- > ElementAllocatedFromPool - 04_forward_errs.py: SKIP > -------------------------------------------------------------------- > ElementCapabilities - 01_forward.py: PASS > -------------------------------------------------------------------- > ElementCapabilities - 02_reverse.py: PASS > -------------------------------------------------------------------- > ElementCapabilities - 03_forward_errs.py: PASS > -------------------------------------------------------------------- > ElementCapabilities - 04_reverse_errs.py: PASS > -------------------------------------------------------------------- > ElementCapabilities - 05_hostsystem_cap.py: PASS > -------------------------------------------------------------------- > ElementConforms - 01_forward.py: FAIL > ERROR - verify_fields() exception: > u'LXC_AllocationCapabilities' > ERROR - Exception: Failed to verify instance > Class not found > -------------------------------------------------------------------- > ElementConforms - 02_reverse.py: PASS > -------------------------------------------------------------------- > ElementConforms - 03_ectp_fwd_errs.py: PASS > -------------------------------------------------------------------- > ElementConforms - 04_ectp_rev_errs.py: PASS > -------------------------------------------------------------------- > ElementSettingData - 01_forward.py: PASS > -------------------------------------------------------------------- > ElementSettingData - 03_esd_assoc_with_rasd_errs.py: PASS > -------------------------------------------------------------------- > EnabledLogicalElementCapabilities - 01_enum.py: PASS > -------------------------------------------------------------------- > EnabledLogicalElementCapabilities - 02_elecap_gi_errs.py: PASS > -------------------------------------------------------------------- > HostSystem - 01_enum.py: PASS > -------------------------------------------------------------------- > HostSystem - 02_hostsystem_to_rasd.py: XFAIL > ERROR - InstanceID Mismatch > ERROR - Returned CrossClass_GuestDom/mouse:xen > instead of CrossClass_GuestDom/mouse:usb > Class not found > Bug:<00009> > -------------------------------------------------------------------- > HostSystem - 03_hs_to_settdefcap.py: PASS > -------------------------------------------------------------------- > HostSystem - 04_hs_to_EAPF.py: PASS > -------------------------------------------------------------------- > HostSystem - 05_hs_gi_errs.py: PASS > -------------------------------------------------------------------- > HostSystem - 06_hs_to_vsms.py: PASS > -------------------------------------------------------------------- > HostedAccessPoint - 01_forward.py: PASS > -------------------------------------------------------------------- > HostedAccessPoint - 02_reverse.py: PASS > -------------------------------------------------------------------- > HostedDependency - 01_forward.py: PASS > -------------------------------------------------------------------- > HostedDependency - 02_reverse.py: PASS > -------------------------------------------------------------------- > HostedDependency - 03_enabledstate.py: XFAIL > ERROR - Exception: (1, u'Unable to pause domain: > this function is not supported by the hypervisor: virDomainSuspend') > ERROR - Failed to suspend the dom: hd_domain1 > InvokeMethod(RequestStateChange): Unable to pause domain: this > function is not supported by the hypervisor: virDomainSuspend > Bug:<00011> > -------------------------------------------------------------------- > HostedDependency - 04_reverse_errs.py: PASS > -------------------------------------------------------------------- > HostedResourcePool - 01_forward.py: PASS > -------------------------------------------------------------------- > HostedResourcePool - 02_reverse.py: PASS > -------------------------------------------------------------------- > HostedResourcePool - 03_forward_errs.py: PASS > -------------------------------------------------------------------- > HostedResourcePool - 04_reverse_errs.py: PASS > -------------------------------------------------------------------- > HostedService - 01_forward.py: PASS > -------------------------------------------------------------------- > HostedService - 02_reverse.py: PASS > -------------------------------------------------------------------- > HostedService - 03_forward_errs.py: PASS > -------------------------------------------------------------------- > HostedService - 04_reverse_errs.py: PASS > -------------------------------------------------------------------- > KVMRedirectionSAP - 01_enum_KVMredSAP.py: PASS > -------------------------------------------------------------------- > LogicalDisk - 01_disk.py: SKIP > -------------------------------------------------------------------- > LogicalDisk - 02_nodevs.py: SKIP > ERROR - System has defined domains; unable to run > -------------------------------------------------------------------- > LogicalDisk - 03_ld_gi_errs.py: SKIP > -------------------------------------------------------------------- > Memory - 01_memory.py: PASS > -------------------------------------------------------------------- > Memory - 02_defgetmem.py: PASS > -------------------------------------------------------------------- > Memory - 03_mem_gi_errs.py: PASS > -------------------------------------------------------------------- > NetworkPort - 01_netport.py: SKIP > -------------------------------------------------------------------- > NetworkPort - 02_np_gi_errors.py: SKIP > -------------------------------------------------------------------- > NetworkPort - 03_user_netport.py: SKIP > -------------------------------------------------------------------- > Processor - 01_processor.py: SKIP > -------------------------------------------------------------------- > Processor - 02_definesys_get_procs.py: SKIP > -------------------------------------------------------------------- > Processor - 03_proc_gi_errs.py: SKIP > -------------------------------------------------------------------- > Profile - 01_enum.py: PASS > -------------------------------------------------------------------- > Profile - 02_profile_to_elec.py: PASS > -------------------------------------------------------------------- > Profile - 03_rprofile_gi_errs.py: PASS > -------------------------------------------------------------------- > RASD - 01_verify_rasd_fields.py: PASS > -------------------------------------------------------------------- > RASD - 02_enum.py: PASS > -------------------------------------------------------------------- > RASD - 03_rasd_errs.py: PASS > -------------------------------------------------------------------- > RASD - 04_disk_rasd_size.py: SKIP > -------------------------------------------------------------------- > RASD - 05_disk_rasd_emu_type.py: SKIP > -------------------------------------------------------------------- > RedirectionService - 01_enum_crs.py: PASS > -------------------------------------------------------------------- > RedirectionService - 02_enum_crscap.py: PASS > -------------------------------------------------------------------- > RedirectionService - 03_RedirectionSAP_errs.py: PASS > -------------------------------------------------------------------- > ReferencedProfile - 01_verify_refprof.py: PASS > -------------------------------------------------------------------- > ReferencedProfile - 02_refprofile_errs.py: PASS > -------------------------------------------------------------------- > ResourceAllocationFromPool - 01_forward.py: PASS > -------------------------------------------------------------------- > ResourceAllocationFromPool - 02_reverse.py: PASS > -------------------------------------------------------------------- > ResourceAllocationFromPool - 03_forward_errs.py: PASS > -------------------------------------------------------------------- > ResourceAllocationFromPool - 04_reverse_errs.py: PASS > -------------------------------------------------------------------- > ResourceAllocationFromPool - 05_RAPF_err.py: SKIP > -------------------------------------------------------------------- > ResourcePool - 01_enum.py: PASS > -------------------------------------------------------------------- > ResourcePool - 02_rp_gi_errors.py: PASS > -------------------------------------------------------------------- > ResourcePoolConfigurationCapabilities - 01_enum.py: PASS > -------------------------------------------------------------------- > ResourcePoolConfigurationCapabilities - 02_rpcc_gi_errs.py: PASS > -------------------------------------------------------------------- > ResourcePoolConfigurationService - 01_enum.py: PASS > -------------------------------------------------------------------- > ResourcePoolConfigurationService - 02_rcps_gi_errors.py: PASS > -------------------------------------------------------------------- > ResourcePoolConfigurationService - 03_CreateResourcePool.py: SKIP > -------------------------------------------------------------------- > ResourcePoolConfigurationService - 04_CreateChildResourcePool.py: SKIP > -------------------------------------------------------------------- > ResourcePoolConfigurationService - 05_AddResourcesToResourcePool.py: SKIP > -------------------------------------------------------------------- > ResourcePoolConfigurationService - 06_RemoveResourcesFromResourcePool.py: SKIP > -------------------------------------------------------------------- > ResourcePoolConfigurationService - 07_DeleteResourcePool.py: SKIP > -------------------------------------------------------------------- > ServiceAccessBySAP - 01_forward.py: PASS > -------------------------------------------------------------------- > ServiceAccessBySAP - 02_reverse.py: PASS > -------------------------------------------------------------------- > SettingsDefine - 01_forward.py: PASS > -------------------------------------------------------------------- > SettingsDefine - 02_reverse.py: PASS > -------------------------------------------------------------------- > SettingsDefine - 03_sds_fwd_errs.py: PASS > -------------------------------------------------------------------- > SettingsDefine - 04_sds_rev_errs.py: PASS > -------------------------------------------------------------------- > SettingsDefineCapabilities - 01_forward.py: PASS > -------------------------------------------------------------------- > SettingsDefineCapabilities - 03_forward_errs.py: PASS > -------------------------------------------------------------------- > SettingsDefineCapabilities - 04_forward_vsmsdata.py: PASS > -------------------------------------------------------------------- > SettingsDefineCapabilities - 05_reverse_vsmcap.py: PASS > -------------------------------------------------------------------- > SystemDevice - 01_forward.py: PASS > -------------------------------------------------------------------- > SystemDevice - 02_reverse.py: PASS > -------------------------------------------------------------------- > SystemDevice - 03_fwderrs.py: PASS > -------------------------------------------------------------------- > VSSD - 01_enum.py: PASS > -------------------------------------------------------------------- > VSSD - 02_bootldr.py: SKIP > -------------------------------------------------------------------- > VSSD - 03_vssd_gi_errs.py: PASS > -------------------------------------------------------------------- > VSSD - 04_vssd_to_rasd.py: XFAIL > ERROR - InstanceID Mismatch > ERROR - Returned VSSDC_dom/mouse:xen instead of > VSSDC_dom/mouse:usb > Bug:<00009> > -------------------------------------------------------------------- > VirtualSystemManagementCapabilities - 01_enum.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementCapabilities - 02_vsmcap_gi_errs.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 01_definesystem_name.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 02_destroysystem.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 03_definesystem_ess.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 04_definesystem_ers.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 05_destroysystem_neg.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 06_addresource.py: SKIP > -------------------------------------------------------------------- > VirtualSystemManagementService - 07_addresource_neg.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 08_modifyresource.py: SKIP > -------------------------------------------------------------------- > VirtualSystemManagementService - 09_procrasd_persist.py: SKIP > -------------------------------------------------------------------- > VirtualSystemManagementService - 10_hv_version.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 11_define_memrasdunits.py: SKIP > -------------------------------------------------------------------- > VirtualSystemManagementService - 12_referenced_config.py: SKIP > -------------------------------------------------------------------- > VirtualSystemManagementService - 13_refconfig_additional_devs.py: SKIP > -------------------------------------------------------------------- > VirtualSystemManagementService - 14_define_sys_disk.py: PASS > -------------------------------------------------------------------- > VirtualSystemManagementService - 15_mod_system_settings.py: XFAIL > ERROR - rstest_domain not updated properly. > ERROR - Exp AutomaticRecoveryAction=3, got 2 > Bug:<00008> > -------------------------------------------------------------------- > VirtualSystemMigrationCapabilities - 01_enum.py: PASS > -------------------------------------------------------------------- > VirtualSystemMigrationCapabilities - 02_vsmc_gi_errs.py: PASS > -------------------------------------------------------------------- > VirtualSystemMigrationService - 01_migratable_host.py: SKIP > -------------------------------------------------------------------- > VirtualSystemMigrationService - 02_host_migrate_type.py: SKIP > -------------------------------------------------------------------- > VirtualSystemMigrationService - 05_migratable_host_errs.py: SKIP > -------------------------------------------------------------------- > VirtualSystemMigrationSettingData - 01_enum.py: PASS > -------------------------------------------------------------------- > VirtualSystemMigrationSettingData - 02_vsmsd_gi_errs.py: PASS > -------------------------------------------------------------------- > VirtualSystemSettingDataComponent - 01_forward.py: PASS > -------------------------------------------------------------------- > VirtualSystemSettingDataComponent - 02_reverse.py: XFAIL > ERROR - Returned VSSDC_dom/mouse:xen instead of > VSSDC_dom/mouse:usb > Bug:<00009> > -------------------------------------------------------------------- > VirtualSystemSettingDataComponent - 03_vssdc_fwd_errs.py: PASS > -------------------------------------------------------------------- > VirtualSystemSettingDataComponent - 04_vssdc_rev_errs.py: PASS > -------------------------------------------------------------------- > VirtualSystemSnapshotService - 01_enum.py: PASS > -------------------------------------------------------------------- > VirtualSystemSnapshotService - 02_vs_sservice_gi_errs.py: PASS > -------------------------------------------------------------------- > VirtualSystemSnapshotServiceCapabilities - 01_enum.py: PASS > -------------------------------------------------------------------- > VirtualSystemSnapshotServiceCapabilities - 02_vs_sservicecap_gi_errs.py: PASS > -------------------------------------------------------------------- > _______________________________________________ > Libvirt-cim mailing list > Libvirt-cim at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-cim -------------- next part -------------- An HTML attachment was scrubbed... URL: From kaitlin at linux.vnet.ibm.com Mon Feb 23 23:42:13 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Mon, 23 Feb 2009 15:42:13 -0800 Subject: [Libvirt-cim] Test Run Summary (Feb 23 2009): LXC on Fedora release 9.90.1 (Rawhide) with sfcb In-Reply-To: References: Message-ID: <49A33455.6030503@linux.vnet.ibm.com> > > ================================================= > > FAIL : 1 > > XFAIL : 9 > > SKIP : 32 > > PASS : 104 > > ----------------- > > Total : 146 > > ================================================= > > FAIL Test Summary: > > ElementConforms - 01_forward.py: FAIL > > Kaitlin submit a patch with fix this. > Kaitlin -- When the patch will be applied into the repository? > The patch is waiting for review. Have you tested it out to see if it fixes the issue? -- Kaitlin Rupert IBM Linux Technology Center kaitlin at linux.vnet.ibm.com From deeptik at linux.vnet.ibm.com Tue Feb 24 12:10:21 2009 From: deeptik at linux.vnet.ibm.com (Deepti B Kalakeri) Date: Tue, 24 Feb 2009 17:40:21 +0530 Subject: [Libvirt-cim] Test Run Summary (Feb 24 2009): Xen on Red Hat Enterprise Linux Server release 5.3 (Tikanga) with Pegasus Message-ID: <49A3E3AD.5080708@linux.vnet.ibm.com> ================================================= Test Run Summary (Feb 24 2009): Xen on Red Hat Enterprise Linux Server release 5.3 (Tikanga) with Pegasus ================================================= Distro: Red Hat Enterprise Linux Server release 5.3 (Tikanga) Kernel: 2.6.18-128.el5xen libvirt: 0.3.3 Hypervisor: Xen 3.1.0 CIMOM: Pegasus 2.7.1 Libvirt-cim revision: 613 Libvirt-cim changeset: 1fcf330fadf8+ Cimtest revision: 632 Cimtest changeset: 6f8acadebaae ================================================= FAIL : 15 XFAIL : 1 SKIP : 12 PASS : 118 ----------------- Total : 146 ================================================= FAIL Test Summary: ComputerSystem - 01_enum.py: FAIL ElementAllocatedFromPool - 02_reverse.py: FAIL ElementCapabilities - 01_forward.py: FAIL ElementCapabilities - 02_reverse.py: FAIL ElementSettingData - 03_esd_assoc_with_rasd_errs.py: FAIL EnabledLogicalElementCapabilities - 01_enum.py: FAIL HostedDependency - 04_reverse_errs.py: FAIL SettingsDefine - 03_sds_fwd_errs.py: FAIL SettingsDefine - 04_sds_rev_errs.py: FAIL SystemDevice - 01_forward.py: FAIL SystemDevice - 02_reverse.py: FAIL SystemDevice - 03_fwderrs.py: FAIL VirtualSystemManagementService - 14_define_sys_disk.py: FAIL VirtualSystemMigrationService - 01_migratable_host.py: FAIL VirtualSystemMigrationService - 02_host_migrate_type.py: FAIL ================================================= XFAIL Test Summary: ComputerSystem - 33_suspend_reboot.py: XFAIL ================================================= SKIP Test Summary: ComputerSystem - 02_nosystems.py: SKIP HostedAccessPoint - 01_forward.py: SKIP HostedAccessPoint - 02_reverse.py: SKIP KVMRedirectionSAP - 01_enum_KVMredSAP.py: SKIP LogicalDisk - 02_nodevs.py: SKIP NetworkPort - 03_user_netport.py: SKIP RASD - 05_disk_rasd_emu_type.py: SKIP RedirectionService - 01_enum_crs.py: SKIP RedirectionService - 02_enum_crscap.py: SKIP RedirectionService - 03_RedirectionSAP_errs.py: SKIP ServiceAccessBySAP - 01_forward.py: SKIP ServiceAccessBySAP - 02_reverse.py: SKIP ================================================= Full report: -------------------------------------------------------------------- AllocationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- AllocationCapabilities - 02_alloccap_gi_errs.py: PASS -------------------------------------------------------------------- ComputerSystem - 01_enum.py: FAIL ERROR - Provider does not report system `Xen', but virsh does ERROR - Provider does not report system `Xen', but virsh does -------------------------------------------------------------------- ComputerSystem - 02_nosystems.py: SKIP -------------------------------------------------------------------- ComputerSystem - 03_defineVS.py: PASS -------------------------------------------------------------------- ComputerSystem - 04_defineStartVS.py: PASS -------------------------------------------------------------------- ComputerSystem - 05_activate_defined_start.py: PASS -------------------------------------------------------------------- ComputerSystem - 06_paused_active_suspend.py: PASS -------------------------------------------------------------------- ComputerSystem - 22_define_suspend.py: PASS -------------------------------------------------------------------- ComputerSystem - 23_pause_pause.py: PASS -------------------------------------------------------------------- ComputerSystem - 27_define_pause_errs.py: PASS -------------------------------------------------------------------- ComputerSystem - 32_start_reboot.py: PASS -------------------------------------------------------------------- ComputerSystem - 33_suspend_reboot.py: XFAIL ERROR - Got CIM error CIM_ERR_NOT_SUPPORTED: State not supported with return code 7 ERROR - Exception: Unable Suspend dom 'test_domain' InvokeMethod(RequestStateChange): CIM_ERR_NOT_SUPPORTED: State not supported Bug:<00012> -------------------------------------------------------------------- ComputerSystem - 35_start_reset.py: PASS -------------------------------------------------------------------- ComputerSystem - 40_RSC_start.py: PASS -------------------------------------------------------------------- ComputerSystem - 41_cs_to_settingdefinestate.py: PASS -------------------------------------------------------------------- ComputerSystem - 42_cs_gi_errs.py: PASS -------------------------------------------------------------------- ComputerSystemIndication - 01_created_indication.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 01_forward.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 02_reverse.py: FAIL ERROR - Failed to Create the dom: 'eafp_domain' -------------------------------------------------------------------- ElementAllocatedFromPool - 03_reverse_errs.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 04_forward_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 01_forward.py: FAIL ERROR - IndexError : list index out of range Traceback (most recent call last): File "./lib/XenKvmLib/const.py", line 141, in do_try File "01_forward.py", line 138, in main if elec[0].classname != cn: IndexError: list index out of range ERROR - None CIM_ERR_INVALID_CLASS: Linux_ComputerSystem CIM_ERR_INVALID_CLASS: Xen_GraphicsPool CIM_ERR_INVALID_CLASS: Xen_InputPool CIM_ERR_NOT_FOUND: No such instance (Xen). -------------------------------------------------------------------- ElementCapabilities - 02_reverse.py: FAIL ERROR - No ELEC instances returned CIM_ERR_INVALID_CLASS: Linux_ComputerSystem CIM_ERR_NOT_FOUND: No such instance (Xen) -------------------------------------------------------------------- ElementCapabilities - 03_forward_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 04_reverse_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 05_hostsystem_cap.py: PASS -------------------------------------------------------------------- ElementConforms - 01_forward.py: PASS -------------------------------------------------------------------- ElementConforms - 02_reverse.py: PASS -------------------------------------------------------------------- ElementConforms - 03_ectp_fwd_errs.py: PASS -------------------------------------------------------------------- ElementConforms - 04_ectp_rev_errs.py: PASS -------------------------------------------------------------------- ElementSettingData - 01_forward.py: PASS -------------------------------------------------------------------- ElementSettingData - 03_esd_assoc_with_rasd_errs.py: FAIL ERROR - Failed to Create the dom: hd_domain1 -------------------------------------------------------------------- EnabledLogicalElementCapabilities - 01_enum.py: FAIL ERROR - Get domain list error, the number of domains is not equal -------------------------------------------------------------------- EnabledLogicalElementCapabilities - 02_elecap_gi_errs.py: PASS -------------------------------------------------------------------- HostSystem - 01_enum.py: PASS -------------------------------------------------------------------- HostSystem - 02_hostsystem_to_rasd.py: PASS -------------------------------------------------------------------- HostSystem - 03_hs_to_settdefcap.py: PASS -------------------------------------------------------------------- HostSystem - 04_hs_to_EAPF.py: PASS -------------------------------------------------------------------- HostSystem - 05_hs_gi_errs.py: PASS -------------------------------------------------------------------- HostSystem - 06_hs_to_vsms.py: PASS -------------------------------------------------------------------- HostedAccessPoint - 01_forward.py: SKIP -------------------------------------------------------------------- HostedAccessPoint - 02_reverse.py: SKIP -------------------------------------------------------------------- HostedDependency - 01_forward.py: PASS -------------------------------------------------------------------- HostedDependency - 02_reverse.py: PASS -------------------------------------------------------------------- HostedDependency - 03_enabledstate.py: PASS -------------------------------------------------------------------- HostedDependency - 04_reverse_errs.py: FAIL ERROR - Failed to Create the dom: hd_domain1 -------------------------------------------------------------------- HostedResourcePool - 01_forward.py: PASS -------------------------------------------------------------------- HostedResourcePool - 02_reverse.py: PASS -------------------------------------------------------------------- HostedResourcePool - 03_forward_errs.py: PASS -------------------------------------------------------------------- HostedResourcePool - 04_reverse_errs.py: PASS -------------------------------------------------------------------- HostedService - 01_forward.py: PASS -------------------------------------------------------------------- HostedService - 02_reverse.py: PASS -------------------------------------------------------------------- HostedService - 03_forward_errs.py: PASS -------------------------------------------------------------------- HostedService - 04_reverse_errs.py: PASS -------------------------------------------------------------------- KVMRedirectionSAP - 01_enum_KVMredSAP.py: SKIP -------------------------------------------------------------------- LogicalDisk - 01_disk.py: PASS -------------------------------------------------------------------- LogicalDisk - 02_nodevs.py: SKIP ERROR - System has defined domains; unable to run -------------------------------------------------------------------- LogicalDisk - 03_ld_gi_errs.py: PASS -------------------------------------------------------------------- Memory - 01_memory.py: PASS -------------------------------------------------------------------- Memory - 02_defgetmem.py: PASS -------------------------------------------------------------------- Memory - 03_mem_gi_errs.py: PASS -------------------------------------------------------------------- NetworkPort - 01_netport.py: PASS -------------------------------------------------------------------- NetworkPort - 02_np_gi_errors.py: PASS -------------------------------------------------------------------- NetworkPort - 03_user_netport.py: SKIP -------------------------------------------------------------------- Processor - 01_processor.py: PASS -------------------------------------------------------------------- Processor - 02_definesys_get_procs.py: PASS -------------------------------------------------------------------- Processor - 03_proc_gi_errs.py: PASS -------------------------------------------------------------------- Profile - 01_enum.py: PASS -------------------------------------------------------------------- Profile - 02_profile_to_elec.py: PASS -------------------------------------------------------------------- Profile - 03_rprofile_gi_errs.py: PASS -------------------------------------------------------------------- RASD - 01_verify_rasd_fields.py: PASS -------------------------------------------------------------------- RASD - 02_enum.py: PASS -------------------------------------------------------------------- RASD - 03_rasd_errs.py: PASS -------------------------------------------------------------------- RASD - 04_disk_rasd_size.py: PASS -------------------------------------------------------------------- RASD - 05_disk_rasd_emu_type.py: SKIP -------------------------------------------------------------------- RedirectionService - 01_enum_crs.py: SKIP -------------------------------------------------------------------- RedirectionService - 02_enum_crscap.py: SKIP -------------------------------------------------------------------- RedirectionService - 03_RedirectionSAP_errs.py: SKIP -------------------------------------------------------------------- ReferencedProfile - 01_verify_refprof.py: PASS -------------------------------------------------------------------- ReferencedProfile - 02_refprofile_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 01_forward.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 02_reverse.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 03_forward_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 04_reverse_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 05_RAPF_err.py: PASS -------------------------------------------------------------------- ResourcePool - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePool - 02_rp_gi_errors.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationCapabilities - 02_rpcc_gi_errs.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 02_rcps_gi_errors.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 03_CreateResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 04_CreateChildResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 05_AddResourcesToResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 06_RemoveResourcesFromResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 07_DeleteResourcePool.py: PASS -------------------------------------------------------------------- ServiceAccessBySAP - 01_forward.py: SKIP -------------------------------------------------------------------- ServiceAccessBySAP - 02_reverse.py: SKIP -------------------------------------------------------------------- SettingsDefine - 01_forward.py: PASS -------------------------------------------------------------------- SettingsDefine - 02_reverse.py: PASS -------------------------------------------------------------------- SettingsDefine - 03_sds_fwd_errs.py: FAIL ERROR - Failed to Create the dom: domu1 -------------------------------------------------------------------- SettingsDefine - 04_sds_rev_errs.py: FAIL ERROR - Failed to Create the dom: domu1 -------------------------------------------------------------------- SettingsDefineCapabilities - 01_forward.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 03_forward_errs.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 04_forward_vsmsdata.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 05_reverse_vsmcap.py: PASS -------------------------------------------------------------------- SystemDevice - 01_forward.py: FAIL ERROR - Unable to create domain test_domain -------------------------------------------------------------------- SystemDevice - 02_reverse.py: FAIL CIM_ERR_INVALID_CLASS: Xen_PointingDevice CIM_ERR_INVALID_CLASS: Xen_DisplayController -------------------------------------------------------------------- SystemDevice - 03_fwderrs.py: FAIL -------------------------------------------------------------------- VSSD - 01_enum.py: PASS -------------------------------------------------------------------- VSSD - 02_bootldr.py: PASS -------------------------------------------------------------------- VSSD - 03_vssd_gi_errs.py: PASS -------------------------------------------------------------------- VSSD - 04_vssd_to_rasd.py: PASS -------------------------------------------------------------------- VirtualSystemManagementCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemManagementCapabilities - 02_vsmcap_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 01_definesystem_name.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 02_destroysystem.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 03_definesystem_ess.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 04_definesystem_ers.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 05_destroysystem_neg.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 06_addresource.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 07_addresource_neg.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 08_modifyresource.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 09_procrasd_persist.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 10_hv_version.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 11_define_memrasdunits.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 12_referenced_config.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 13_refconfig_additional_devs.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 14_define_sys_disk.py: FAIL ERROR - Xen_DiskResourceAllocationSettingData instance for rstest_disk_domain not found ERROR - Failed to verify disk path for rstest_disk_domain -------------------------------------------------------------------- VirtualSystemManagementService - 15_mod_system_settings.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationCapabilities - 02_vsmc_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationService - 01_migratable_host.py: FAIL ERROR - Error create domain dom_migrate -------------------------------------------------------------------- VirtualSystemMigrationService - 02_host_migrate_type.py: FAIL ERROR - MigrateVirtualSystemToHost took too long -------------------------------------------------------------------- VirtualSystemMigrationService - 05_migratable_host_errs.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationSettingData - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationSettingData - 02_vsmsd_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 01_forward.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 02_reverse.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 03_vssdc_fwd_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 04_vssdc_rev_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotService - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotService - 02_vs_sservice_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotServiceCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotServiceCapabilities - 02_vs_sservicecap_gi_errs.py: PASS -------------------------------------------------------------------- -- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik at linux.vnet.ibm.com From deeptik at linux.vnet.ibm.com Tue Feb 24 13:38:42 2009 From: deeptik at linux.vnet.ibm.com (Deepti B Kalakeri) Date: Tue, 24 Feb 2009 19:08:42 +0530 Subject: [Libvirt-cim] Re: Test Run Summary (Feb 24 2009): Xen on Red Hat Enterprise Linux Server release 5.3 (Tikanga) with Pegasus In-Reply-To: <49A3E3AD.5080708@linux.vnet.ibm.com> References: <49A3E3AD.5080708@linux.vnet.ibm.com> Message-ID: <49A3F862.30901@linux.vnet.ibm.com> Deepti B Kalakeri wrote: > ================================================= > Test Run Summary (Feb 24 2009): Xen on Red Hat Enterprise Linux Server > release 5.3 (Tikanga) with Pegasus > ================================================= > Distro: Red Hat Enterprise Linux Server release 5.3 (Tikanga) > Kernel: 2.6.18-128.el5xen > libvirt: 0.3.3 > Hypervisor: Xen 3.1.0 > CIMOM: Pegasus 2.7.1 > Libvirt-cim revision: 613 > Libvirt-cim changeset: 1fcf330fadf8+ > Cimtest revision: 632 > Cimtest changeset: 6f8acadebaae > ================================================= > FAIL : 15 > XFAIL : 1 > SKIP : 12 > PASS : 118 > ----------------- > Total : 146 > ================================================= > FAIL Test Summary: > ComputerSystem - 01_enum.py: FAIL Passed when run manually. > ElementAllocatedFromPool - 02_reverse.py: FAIL Need to investigate further > ElementCapabilities - 01_forward.py: FAIL The virsh on the machine is throwing the following error on the stderr virsh -c xen:/// list --all | sed -e '1,2 d' -e '$ d' libvir: Xen error : Domain not found: xenUnifiedDomainLookupByID libvir: Xen error : Domain not found: xenUnifiedDomainLookupByID because of this the test case is not able to parse the values properly and hence fails. > ElementCapabilities - 02_reverse.py: FAIL same here. > ElementSettingData - 03_esd_assoc_with_rasd_errs.py: FAIL The tc fails because virsh is unable to create the domain and fails with the following error: libvir: Xen Daemon error : POST operation failed: (xend.err 'Device 0 (vkbd) could not be connected. Hotplug scripts not working.') Restarting libvird/xend does not solve this problem. Also, there are no guests that are running on the machine. This error goes sometimes when we reboot the machine. > EnabledLogicalElementCapabilities - 01_enum.py: FAIL tc fails because of the following error as above: libvir: Xen error : Domain not found: xenUnifiedDomainLookupByID libvir: Xen error : Domain not found: xenUnifiedDomainLookupByID > HostedDependency - 04_reverse_errs.py: FAIL > SettingsDefine - 03_sds_fwd_errs.py: FAIL > SettingsDefine - 04_sds_rev_errs.py: FAIL > SystemDevice - 01_forward.py: FAIL > SystemDevice - 02_reverse.py: FAIL > SystemDevice - 03_fwderrs.py: FAIL Fails with the following error: libvir: Xen Daemon error : POST operation failed: (xend.err 'Device 0 (vkbd) could not be connected. Hotplug scripts not working.') > VirtualSystemManagementService - 14_define_sys_disk.py: FAIL The DiskRASD['Caption'] field is not set properly. This has been used in the test while customizing the values for DiskRASD to be passed before defining the domain. Need to verify this further since the F9 rpm with revision 613 worked fine. > VirtualSystemMigrationService - 01_migratable_host.py: FAIL > VirtualSystemMigrationService - 02_host_migrate_type.py: FAIL The test case are taking too long to start the domain to be migrated. The guest used to migrate which is in the define state seems in the mid of the transition from defined to start state. The State of the dom_migrate is set to "no state". > -- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik at linux.vnet.ibm.com From rmaciel at linux.vnet.ibm.com Tue Feb 24 17:19:43 2009 From: rmaciel at linux.vnet.ibm.com (Richard Maciel) Date: Tue, 24 Feb 2009 14:19:43 -0300 Subject: [Libvirt-cim] [PATCH 0 of 3] This series of patches exposes errors provided from executions of libvirt functions Message-ID: From rmaciel at linux.vnet.ibm.com Tue Feb 24 17:19:45 2009 From: rmaciel at linux.vnet.ibm.com (Richard Maciel) Date: Tue, 24 Feb 2009 14:19:45 -0300 Subject: [Libvirt-cim] [PATCH 2 of 3] This patch exposes error messages from libvirt calls in ComputerSystem In-Reply-To: References: Message-ID: <874a34b43248c303da83.1235495985@localhost.localdomain> # HG changeset patch # User Richard Maciel # Date 1235493767 10800 # Node ID 874a34b43248c303da834aa73333bfe26a53943c # Parent ec95377909381bf92beee417b5fce4f699950df5 This patch exposes error messages from libvirt calls in ComputerSystem #2: Added more points of error exposition Changed some error messages from "Could not..." to "Unable to..." to make them more readable Signed-off-by: Richard Maciel diff -r ec9537790938 -r 874a34b43248 src/Virt_ComputerSystem.c --- a/src/Virt_ComputerSystem.c Tue Feb 24 13:42:29 2009 -0300 +++ b/src/Virt_ComputerSystem.c Tue Feb 24 13:42:47 2009 -0300 @@ -273,7 +273,7 @@ struct infostore_ctx *infostore = NULL; ret = virDomainGetInfo(dom, &info); - if (ret != 0) + if (ret != 0) return 0; info.state = adjust_state_xen(dom, info.state); @@ -398,19 +398,27 @@ if (get_dominfo(dom, &domain) == 0) { CU_DEBUG("Unable to get domain information"); - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_FAILED, - "Unable to get domain information"); + virt_set_status(broker, &s, + CMPI_RC_ERR_FAILED, + virDomainGetConnect(dom), + "Unable to get domain XML description"); goto out; } if (!set_name_from_dom(dom, instance)) { - /* Print trace error */ + virt_set_status(broker, &s, + CMPI_RC_ERR_FAILED, + virDomainGetConnect(dom), + "Unable to get domain name"); goto out; } if (!set_uuid_from_dom(dom, instance, &uuid)) { - /* Print trace error */ + virt_set_status(broker, &s, + CMPI_RC_ERR_FAILED, + virDomainGetConnect(dom), + "Unable to get domain UUID"); + goto out; } @@ -420,7 +428,11 @@ } if (!set_state_from_dom(broker, dom, instance)) { - /* Print trace error */ + virt_set_status(broker, &s, + CMPI_RC_ERR_FAILED, + virDomainGetConnect(dom), + "Unable to get domain info"); + goto out; } @@ -570,10 +582,11 @@ dom = virDomainLookupByName(conn, name); if (dom == NULL) { - cu_statusf(broker, &s, - CMPI_RC_ERR_NOT_FOUND, - "No such instance (%s).", - name); + virt_set_status(broker, &s, + CMPI_RC_ERR_NOT_FOUND, + conn, + "Referenced domain `%s' does not exist", + name); goto out; } @@ -790,9 +803,10 @@ xml = virDomainGetXMLDesc(dom, 0); if (xml == NULL) { CU_DEBUG("Unable to retrieve domain XML"); - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_FAILED, - "Unable to get domain definition"); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_FAILED, + conn, + "Unable to get domain definition"); return s; } @@ -1003,16 +1017,18 @@ dom = virDomainLookupByName(conn, name); if (dom == NULL) { - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_FAILED, - "Domain not found"); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_FAILED, + conn, + "Domain not found"); goto out; } if (virDomainGetInfo(dom, &info) != 0) { - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_FAILED, - "Unable to get current state"); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_FAILED, + conn, + "Unable to get current state"); goto out; } From rmaciel at linux.vnet.ibm.com Tue Feb 24 17:19:44 2009 From: rmaciel at linux.vnet.ibm.com (Richard Maciel) Date: Tue, 24 Feb 2009 14:19:44 -0300 Subject: [Libvirt-cim] [PATCH 1 of 3] This patch exposes error messages from libvirt calls in VirtualSystemManagementService In-Reply-To: References: Message-ID: # HG changeset patch # User Richard Maciel # Date 1235493749 10800 # Node ID ec95377909381bf92beee417b5fce4f699950df5 # Parent 72dc446be12ca8ae1dc60a1aad97ff72eecd7b66 This patch exposes error messages from libvirt calls in VirtualSystemManagementService #2: Fixed code-style to match the file Removed un-needed custatusf() call Fixed a problem where status variable set by virt_set_status was being overriding by another call Added another libvirt error exposition point Signed-off-by: Richard Maciel diff -r 72dc446be12c -r ec9537790938 src/Virt_VirtualSystemManagementService.c --- a/src/Virt_VirtualSystemManagementService.c Wed Feb 04 08:35:04 2009 -0800 +++ b/src/Virt_VirtualSystemManagementService.c Tue Feb 24 13:42:29 2009 -0300 @@ -963,9 +963,10 @@ dom = virDomainLookupByName(conn, dominfo->name); if (dom == NULL) { - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_NOT_FOUND, - "Unable to lookup domain `%s'", dominfo->name); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_NOT_FOUND, + conn, + "Unable to lookup domain `%s'", dominfo->name); goto out; } @@ -1065,9 +1066,10 @@ dom = virDomainLookupByName(conn, name); if (dom == NULL) { - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_NOT_FOUND, - "Referenced domain `%s' does not exist", name); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_NOT_FOUND, + conn, + "Referenced domain `%s' does not exist", name); goto out; } @@ -1274,13 +1276,16 @@ error: if (rc == IM_RC_SYS_NOT_FOUND) - cu_statusf(_BROKER, &status, - CMPI_RC_ERR_FAILED, - "Failed to find domain"); + virt_set_status(_BROKER, &status, + CMPI_RC_ERR_NOT_FOUND, + conn, + "Referenced domain `%s' does not exist", + dom_name); else if (rc == IM_RC_FAILED) - cu_statusf(_BROKER, &status, - CMPI_RC_ERR_FAILED, - "Unable to retrieve domain name."); + virt_set_status(_BROKER, &status, + CMPI_RC_ERR_NOT_FOUND, + conn, + "Unable to retrieve domain name"); else if (rc == IM_RC_OK) { status = (CMPIStatus){CMPI_RC_OK, NULL}; trigger_indication(context, @@ -1320,8 +1325,13 @@ goto out; dom = virDomainLookupByName(conn, name); - if (dom == NULL) + if (dom == NULL) { + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_NOT_FOUND, + conn, + "Referenced domain `%s' does not exist", name); goto out; + } if (!get_dominfo(dom, &dominfo)) { cu_statusf(_BROKER, &s, @@ -1459,9 +1469,10 @@ dom = virDomainLookupByName(conn, dominfo->name); if (dom == NULL) { CU_DEBUG("Failed to lookup VS `%s'", dominfo->name); - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_NOT_FOUND, - "Virtual System `%s' not found", dominfo->name); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_NOT_FOUND, + conn, + "Virtual System `%s' not found", dominfo->name); goto out; } @@ -1825,9 +1836,11 @@ dom = virDomainLookupByName(conn, name); if (dom == NULL) { - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_FAILED, - "Unknown system `%s'", name); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_NOT_FOUND, + conn, + "Referenced domain `%s' does not exist", + name); goto end; } From rmaciel at linux.vnet.ibm.com Tue Feb 24 17:19:46 2009 From: rmaciel at linux.vnet.ibm.com (Richard Maciel) Date: Tue, 24 Feb 2009 14:19:46 -0300 Subject: [Libvirt-cim] [PATCH 3 of 3] This patch exposes error messages from libvirt calls in VSMigrationService In-Reply-To: References: Message-ID: <1ff6cf0ca3a1dc8b1d50.1235495986@localhost.localdomain> # HG changeset patch # User Richard Maciel # Date 1235493767 10800 # Node ID 1ff6cf0ca3a1dc8b1d507389cd7e1625c711ce50 # Parent 874a34b43248c303da834aa73333bfe26a53943c This patch exposes error messages from libvirt calls in VSMigrationService #2: Fixed compile error Changed code based on feedback from Kaitlin Rupert Signed-off-by: Richard Maciel diff -r 874a34b43248 -r 1ff6cf0ca3a1 src/Virt_VSMigrationService.c --- a/src/Virt_VSMigrationService.c Tue Feb 24 13:42:47 2009 -0300 +++ b/src/Virt_VSMigrationService.c Tue Feb 24 13:42:47 2009 -0300 @@ -259,16 +259,18 @@ unsigned long remote; if (virConnectGetVersion(conn, &local)) { - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_FAILED, - "Unable to get local Hypervisor version"); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_FAILED, + conn, + "Unable to get local Hypervisor version"); goto out; } if (virConnectGetVersion(dconn, &remote)) { - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_FAILED, - "Unable to get remote hypervisor version"); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_FAILED, + conn, + "Unable to get remote Hypervisor version"); goto out; } @@ -396,12 +398,28 @@ pid_t pid; int i; int rc = -1; + virConnectPtr conn = virDomainGetConnect(dom); + const char *name = virDomainGetName(dom); + const char *uri = virConnectGetURI(conn); + + if (name == NULL) { + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_FAILED, + conn, + "Failed to get domain name"); + goto out; + } + + if (uri == NULL) { + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_FAILED, + conn, + "Failed to get URI of connection"); + goto out; + } pid = fork(); if (pid == 0) { - virConnectPtr conn = virDomainGetConnect(dom); - const char *name = virDomainGetName(dom); - const char *uri = virConnectGetURI(conn); if (setpgrp() == -1) perror("setpgrp"); @@ -436,6 +454,7 @@ free(name); } + out: return s; } @@ -589,9 +608,10 @@ dom = virDomainLookupByName(conn, domain); if (dom == NULL) { - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_NOT_FOUND, - "No such domain"); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_NOT_FOUND, + conn, + "No such domain"); goto out; } @@ -930,9 +950,10 @@ ret = virDomainGetInfo(dom, &info); if (ret == -1) { - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_FAILED, - "Error getting domain info"); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_FAILED, + virDomainGetConnect(dom), + "Error getting domain info"); goto out; } @@ -949,7 +970,7 @@ CU_DEBUG("Migration failed"); virt_set_status(_BROKER, &s, CMPI_RC_ERR_FAILED, - virDomainGetConnect(dom), + dconn, "Migration Failed"); } out: @@ -969,9 +990,10 @@ CU_DEBUG("Shutting down domain for migration"); ret = virDomainShutdown(dom); if (ret != 0) { - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_FAILED, - "Unable to shutdown guest"); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_FAILED, + virDomainGetConnect(dom), + "Unable to shutdown guest"); goto out; } @@ -1005,9 +1027,14 @@ *xml = virDomainGetXMLDesc(dom, 0); if (*xml == NULL) { - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_FAILED, - "Unable to retrieve domain XML."); + + virConnectPtr conn = virDomainGetConnect(dom); + + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_FAILED, + conn, + "Unable to retrieve domain XML"); + goto out; } @@ -1025,6 +1052,7 @@ virDomainPtr dom; int i; int ret; + virConnectPtr lconn = virDomainGetConnect(ldom); for (i = 0; i < MIGRATE_SHUTDOWN_TIMEOUT; i++) { if ((i % 30) == 0) { @@ -1032,10 +1060,17 @@ virDomainGetName(ldom)); } - dom = virDomainLookupByName(virDomainGetConnect(ldom), + dom = virDomainLookupByName(lconn, virDomainGetName(ldom)); if (dom == NULL) { CU_DEBUG("Unable to re-lookup domain"); + + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_NOT_FOUND, + lconn, + "Domain `%s' not found", + virDomainGetName(ldom)); + ret = -1; break; } @@ -1055,9 +1090,10 @@ newdom = virDomainDefineXML(rconn, xml); if (newdom == NULL) { - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_FAILED, - "Failed to define domain"); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_FAILED, + lconn, + "Failed to define domain"); goto out; } @@ -1067,9 +1103,11 @@ CU_DEBUG("Restarting domain on remote host"); if (virDomainCreate(newdom) != 0) { CU_DEBUG("Failed to start domain on remote host"); - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_FAILED, - "Failed to start domain on remote host"); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_FAILED, + lconn, + "Failed to start domain on remote \ + host"); } } out: @@ -1086,9 +1124,13 @@ ret = virDomainGetInfo(dom, &info); if (ret == -1) { - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_FAILED, - "Error getting domain info"); + virConnectPtr conn = virDomainGetConnect(dom); + + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_FAILED, + conn, + "Error getting domain info"); + goto out; } @@ -1117,9 +1159,11 @@ dom = virDomainLookupByName(conn, job->domain); if (dom == NULL) { CU_DEBUG("Failed to lookup `%s'", job->domain); - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_FAILED, - "Failed to lookup domain `%s'", job->domain); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_FAILED, + conn, + "Failed to lookup domain `%s'", job->domain); + goto out; } From kaitlin at linux.vnet.ibm.com Tue Feb 24 18:20:35 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Tue, 24 Feb 2009 10:20:35 -0800 Subject: [Libvirt-cim] [PATCH 3 of 3] This patch exposes error messages from libvirt calls in VSMigrationService In-Reply-To: <1ff6cf0ca3a1dc8b1d50.1235495986@localhost.localdomain> References: <1ff6cf0ca3a1dc8b1d50.1235495986@localhost.localdomain> Message-ID: <49A43A73.90805@linux.vnet.ibm.com> > if (virConnectGetVersion(dconn, &remote)) { > - cu_statusf(_BROKER, &s, > - CMPI_RC_ERR_FAILED, > - "Unable to get remote hypervisor version"); > + virt_set_status(_BROKER, &s, > + CMPI_RC_ERR_FAILED, > + conn, This needs to be dconn, not conn. > + "Unable to get remote Hypervisor version"); > goto out; > } > > @@ -1005,9 +1027,14 @@ > > *xml = virDomainGetXMLDesc(dom, 0); > if (*xml == NULL) { > - cu_statusf(_BROKER, &s, > - CMPI_RC_ERR_FAILED, > - "Unable to retrieve domain XML."); > + > + virConnectPtr conn = virDomainGetConnect(dom); > + > + virt_set_status(_BROKER, &s, > + CMPI_RC_ERR_FAILED, > + conn, This can just be virDomainGetConnect(dom) instead of conn, since conn isn't needed elsewhere in the function. > + "Unable to retrieve domain XML"); > + > goto out; > } > > @@ -1025,6 +1052,7 @@ > virDomainPtr dom; > int i; > int ret; > + virConnectPtr lconn = virDomainGetConnect(ldom); > > for (i = 0; i < MIGRATE_SHUTDOWN_TIMEOUT; i++) { > if ((i % 30) == 0) { > @@ -1032,10 +1060,17 @@ > virDomainGetName(ldom)); > } > > - dom = virDomainLookupByName(virDomainGetConnect(ldom), > + dom = virDomainLookupByName(lconn, > virDomainGetName(ldom)); > if (dom == NULL) { > CU_DEBUG("Unable to re-lookup domain"); > + > + virt_set_status(_BROKER, &s, > + CMPI_RC_ERR_NOT_FOUND, > + lconn, > + "Domain `%s' not found", > + virDomainGetName(ldom)); > + Setting an error here isn't necessary. We're polling to make sure the guest is undefined - we want the guest to disappear from the system. If we can't find the guest before the undefine call, it means the guest is already gone - which isn't an error. > ret = -1; > break; > } > @@ -1055,9 +1090,10 @@ > > newdom = virDomainDefineXML(rconn, xml); > if (newdom == NULL) { > - cu_statusf(_BROKER, &s, > - CMPI_RC_ERR_FAILED, > - "Failed to define domain"); > + virt_set_status(_BROKER, &s, > + CMPI_RC_ERR_FAILED, > + lconn, You're defining the XML on the remote system - this needs to be rconn, not lconn. > + "Failed to define domain"); > goto out; > } > > @@ -1067,9 +1103,11 @@ > CU_DEBUG("Restarting domain on remote host"); > if (virDomainCreate(newdom) != 0) { > CU_DEBUG("Failed to start domain on remote host"); > - cu_statusf(_BROKER, &s, > - CMPI_RC_ERR_FAILED, > - "Failed to start domain on remote host"); > + virt_set_status(_BROKER, &s, > + CMPI_RC_ERR_FAILED, > + lconn, You're starting the guest on the remote system - this needs to be rconn, not lconn. > + "Failed to start domain on remote \ > + host"); > } > } > out: > @@ -1086,9 +1124,13 @@ > > ret = virDomainGetInfo(dom, &info); > if (ret == -1) { > - cu_statusf(_BROKER, &s, > - CMPI_RC_ERR_FAILED, > - "Error getting domain info"); > + virConnectPtr conn = virDomainGetConnect(dom); > + > + virt_set_status(_BROKER, &s, > + CMPI_RC_ERR_FAILED, > + conn, Just use virDomainGetConnect(dom) here - conn isn't used elsewhere in the function. > + "Error getting domain info"); > + > goto out; > } -- Kaitlin Rupert IBM Linux Technology Center kaitlin at linux.vnet.ibm.com From kaitlin at linux.vnet.ibm.com Tue Feb 24 18:23:18 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Tue, 24 Feb 2009 10:23:18 -0800 Subject: [Libvirt-cim] [PATCH 2 of 3] This patch exposes error messages from libvirt calls in ComputerSystem In-Reply-To: <874a34b43248c303da83.1235495985@localhost.localdomain> References: <874a34b43248c303da83.1235495985@localhost.localdomain> Message-ID: <49A43B16.1080100@linux.vnet.ibm.com> > @@ -398,19 +398,27 @@ > > if (get_dominfo(dom, &domain) == 0) { > CU_DEBUG("Unable to get domain information"); > - cu_statusf(_BROKER, &s, > - CMPI_RC_ERR_FAILED, > - "Unable to get domain information"); > + virt_set_status(broker, &s, > + CMPI_RC_ERR_FAILED, > + virDomainGetConnect(dom), > + "Unable to get domain XML description"); Just a minor changer here.. We're doing 2 steps in the get_dominfo() call: 1) We're getting the XML from libvirt 2) We're parsing the XML and storing the domain info in a struct. So I would change this from "Unable to get domain XML description" to "Unable to get domain information" because the failure could be in either step. -- Kaitlin Rupert IBM Linux Technology Center kaitlin at linux.vnet.ibm.com From rmaciel at linux.vnet.ibm.com Tue Feb 24 18:19:17 2009 From: rmaciel at linux.vnet.ibm.com (Richard Maciel) Date: Tue, 24 Feb 2009 15:19:17 -0300 Subject: [Libvirt-cim] [PATCH] Add AllocationCapabilities support to ECTP In-Reply-To: <4d161d191f46bbb0efc3.1235075074@localhost.localdomain> References: <4d161d191f46bbb0efc3.1235075074@localhost.localdomain> Message-ID: <49A43A25.4030605@linux.vnet.ibm.com> +1 Kaitlin Rupert wrote: > # HG changeset patch > # User Kaitlin Rupert > # Date 1235075052 28800 > # Node ID 4d161d191f46bbb0efc386d4b4e3457b623b9d9f > # Parent e6bfaef960c05131608b55a4e612ca516754ef83 > Add AllocationCapabilities support to ECTP. > > Also make sure AllocationCapabilities is properly registered to the root/interop > namespace. > > Signed-off-by: Kaitlin Rupert > > diff -r e6bfaef960c0 -r 4d161d191f46 Makefile.am > --- a/Makefile.am Tue Feb 17 12:19:07 2009 -0800 > +++ b/Makefile.am Thu Feb 19 12:24:12 2009 -0800 > @@ -67,7 +67,8 @@ > schema/ProcessorPool.mof \ > schema/VSMigrationService.mof \ > schema/ElementConformsToProfile.mof \ > - schema/ReferencedProfile.mof > + schema/ReferencedProfile.mof \ > + schema/AllocationCapabilities.mof > > CIMV2_MOFS = \ > schema/HostedResourcePool.mof \ > diff -r e6bfaef960c0 -r 4d161d191f46 base_schema/cimv216-interop_mof > --- a/base_schema/cimv216-interop_mof Tue Feb 17 12:19:07 2009 -0800 > +++ b/base_schema/cimv216-interop_mof Thu Feb 19 12:24:12 2009 -0800 > @@ -22,3 +22,5 @@ > #pragma include ("Core/CIM_Job.mof") > #pragma include ("Core/CIM_ConcreteJob.mof") > #pragma include ("Core/CIM_ResourcePool.mof") > +#pragma include ("Core/CIM_Capabilities.mof") > +#pragma include ("Core/CIM_AllocationCapabilities.mof") > diff -r e6bfaef960c0 -r 4d161d191f46 libvirt-cim.spec.in > --- a/libvirt-cim.spec.in Tue Feb 17 12:19:07 2009 -0800 > +++ b/libvirt-cim.spec.in Thu Feb 19 12:24:12 2009 -0800 > @@ -52,7 +52,7 @@ > %define SCHEMA %{_datadir}/%{name}/*.mof > > %define INTEROP_REG %{_datadir}/%{name}/{RegisteredProfile,ElementConformsToProfile,ReferencedProfile}.registration > -%define INTEROP_MOF %{_datadir}/%{name}/{ComputerSystem,HostSystem,RegisteredProfile,DiskPool,MemoryPool,NetPool,ProcessorPool,VSMigrationService,ElementConformsToProfile,ReferencedProfile}.mof > +%define INTEROP_MOF %{_datadir}/%{name}/{ComputerSystem,HostSystem,RegisteredProfile,DiskPool,MemoryPool,NetPool,ProcessorPool,VSMigrationService,ElementConformsToProfile,ReferencedProfile,AllocationCapabilities}.mof > > %define CIMV2_REG %{_datadir}/%{name}/{HostedResourcePool,ElementCapabilities,HostedService,HostedDependency,ElementConformsToProfile,HostedAccessPoint}.registration > %define CIMV2_MOF %{_datadir}/%{name}/{HostedResourcePool,ElementCapabilities,HostedService,HostedDependency,RegisteredProfile,ComputerSystem,ElementConformsToProfile,HostedAccessPoint}.mof > diff -r e6bfaef960c0 -r 4d161d191f46 src/Virt_ElementConformsToProfile.c > --- a/src/Virt_ElementConformsToProfile.c Tue Feb 17 12:19:07 2009 -0800 > +++ b/src/Virt_ElementConformsToProfile.c Thu Feb 19 12:24:12 2009 -0800 > @@ -249,6 +249,7 @@ > "Xen_ProcessorPool", > "Xen_VirtualSystemMigrationService", > "Xen_ConsoleRedirectionService", > + "Xen_AllocationCapabilities", > "KVM_HostSystem", > "KVM_ComputerSystem", > "KVM_DiskPool", > @@ -257,6 +258,7 @@ > "KVM_ProcessorPool", > "KVM_VirtualSystemMigrationService", > "KVM_ConsoleRedirectionService", > + "KVM_AllocationCapabilities", > "LXC_HostSystem", > "LXC_ComputerSystem", > "LXC_DiskPool", > @@ -265,6 +267,7 @@ > "LXC_ProcessorPool", > "LXC_VirtualSystemMigrationService", > "LXC_ConsoleRedirectionService", > + "LXC_AllocationCapabilities", > "Linux_ComputerSystem", > NULL > }; > > _______________________________________________ > Libvirt-cim mailing list > Libvirt-cim at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-cim -- Richard Maciel, MSc IBM Linux Technology Center rmaciel at linux.vnet.ibm.com From rmaciel at linux.vnet.ibm.com Tue Feb 24 18:39:47 2009 From: rmaciel at linux.vnet.ibm.com (Richard Maciel) Date: Tue, 24 Feb 2009 15:39:47 -0300 Subject: [Libvirt-cim] [PATCH 0 of 3] #3 This series of patches exposes errors provided from executions of libvirt functions Message-ID: From rmaciel at linux.vnet.ibm.com Tue Feb 24 18:39:50 2009 From: rmaciel at linux.vnet.ibm.com (Richard Maciel) Date: Tue, 24 Feb 2009 15:39:50 -0300 Subject: [Libvirt-cim] [PATCH 3 of 3] This patch exposes error messages from libvirt calls in VSMigrationService In-Reply-To: References: Message-ID: <6acfecffa37cde75683b.1235500790@localhost.localdomain> # HG changeset patch # User Richard Maciel # Date 1235500464 10800 # Node ID 6acfecffa37cde75683b0929d12451604b370e53 # Parent bd4dc02647adb6c7d3644728137674e53b8cf83a This patch exposes error messages from libvirt calls in VSMigrationService #2: Fixed compile error Changed code based on feedback from Kaitlin Rupert #3: Some virt_set_status() calls were using the wrong connection parameter. This was fixed Removed un-needed variables Signed-off-by: Richard Maciel diff -r bd4dc02647ad -r 6acfecffa37c src/Virt_VSMigrationService.c --- a/src/Virt_VSMigrationService.c Tue Feb 24 15:23:44 2009 -0300 +++ b/src/Virt_VSMigrationService.c Tue Feb 24 15:34:24 2009 -0300 @@ -259,16 +259,18 @@ unsigned long remote; if (virConnectGetVersion(conn, &local)) { - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_FAILED, - "Unable to get local Hypervisor version"); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_FAILED, + conn, + "Unable to get local Hypervisor version"); goto out; } if (virConnectGetVersion(dconn, &remote)) { - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_FAILED, - "Unable to get remote hypervisor version"); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_FAILED, + dconn, + "Unable to get remote Hypervisor version"); goto out; } @@ -396,12 +398,28 @@ pid_t pid; int i; int rc = -1; + virConnectPtr conn = virDomainGetConnect(dom); + const char *name = virDomainGetName(dom); + const char *uri = virConnectGetURI(conn); + + if (name == NULL) { + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_FAILED, + conn, + "Failed to get domain name"); + goto out; + } + + if (uri == NULL) { + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_FAILED, + conn, + "Failed to get URI of connection"); + goto out; + } pid = fork(); if (pid == 0) { - virConnectPtr conn = virDomainGetConnect(dom); - const char *name = virDomainGetName(dom); - const char *uri = virConnectGetURI(conn); if (setpgrp() == -1) perror("setpgrp"); @@ -436,6 +454,7 @@ free(name); } + out: return s; } @@ -589,9 +608,10 @@ dom = virDomainLookupByName(conn, domain); if (dom == NULL) { - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_NOT_FOUND, - "No such domain"); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_NOT_FOUND, + conn, + "No such domain"); goto out; } @@ -930,9 +950,10 @@ ret = virDomainGetInfo(dom, &info); if (ret == -1) { - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_FAILED, - "Error getting domain info"); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_FAILED, + virDomainGetConnect(dom), + "Error getting domain info"); goto out; } @@ -949,7 +970,7 @@ CU_DEBUG("Migration failed"); virt_set_status(_BROKER, &s, CMPI_RC_ERR_FAILED, - virDomainGetConnect(dom), + dconn, "Migration Failed"); } out: @@ -969,9 +990,10 @@ CU_DEBUG("Shutting down domain for migration"); ret = virDomainShutdown(dom); if (ret != 0) { - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_FAILED, - "Unable to shutdown guest"); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_FAILED, + virDomainGetConnect(dom), + "Unable to shutdown guest"); goto out; } @@ -1005,9 +1027,12 @@ *xml = virDomainGetXMLDesc(dom, 0); if (*xml == NULL) { - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_FAILED, - "Unable to retrieve domain XML."); + + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_FAILED, + virDomainGetConnect(dom), + "Unable to retrieve domain XML"); + goto out; } @@ -1036,6 +1061,7 @@ virDomainGetName(ldom)); if (dom == NULL) { CU_DEBUG("Unable to re-lookup domain"); + ret = -1; break; } @@ -1055,9 +1081,10 @@ newdom = virDomainDefineXML(rconn, xml); if (newdom == NULL) { - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_FAILED, - "Failed to define domain"); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_FAILED, + rconn, + "Failed to define domain"); goto out; } @@ -1067,9 +1094,11 @@ CU_DEBUG("Restarting domain on remote host"); if (virDomainCreate(newdom) != 0) { CU_DEBUG("Failed to start domain on remote host"); - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_FAILED, - "Failed to start domain on remote host"); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_FAILED, + rconn, + "Failed to start domain on remote \ + host"); } } out: @@ -1086,9 +1115,12 @@ ret = virDomainGetInfo(dom, &info); if (ret == -1) { - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_FAILED, - "Error getting domain info"); + + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_FAILED, + virDomainGetConnect(dom), + "Error getting domain info"); + goto out; } @@ -1117,9 +1149,11 @@ dom = virDomainLookupByName(conn, job->domain); if (dom == NULL) { CU_DEBUG("Failed to lookup `%s'", job->domain); - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_FAILED, - "Failed to lookup domain `%s'", job->domain); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_FAILED, + conn, + "Failed to lookup domain `%s'", job->domain); + goto out; } From rmaciel at linux.vnet.ibm.com Tue Feb 24 18:39:48 2009 From: rmaciel at linux.vnet.ibm.com (Richard Maciel) Date: Tue, 24 Feb 2009 15:39:48 -0300 Subject: [Libvirt-cim] [PATCH 1 of 3] This patch exposes error messages from libvirt calls in VirtualSystemManagementService In-Reply-To: References: Message-ID: # HG changeset patch # User Richard Maciel # Date 1235493749 10800 # Node ID ec95377909381bf92beee417b5fce4f699950df5 # Parent 72dc446be12ca8ae1dc60a1aad97ff72eecd7b66 This patch exposes error messages from libvirt calls in VirtualSystemManagementService #2: Fixed code-style to match the file Removed un-needed custatusf() call Fixed a problem where status variable set by virt_set_status was being overriding by another call Added another libvirt error exposition point Signed-off-by: Richard Maciel diff -r 72dc446be12c -r ec9537790938 src/Virt_VirtualSystemManagementService.c --- a/src/Virt_VirtualSystemManagementService.c Wed Feb 04 08:35:04 2009 -0800 +++ b/src/Virt_VirtualSystemManagementService.c Tue Feb 24 13:42:29 2009 -0300 @@ -963,9 +963,10 @@ dom = virDomainLookupByName(conn, dominfo->name); if (dom == NULL) { - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_NOT_FOUND, - "Unable to lookup domain `%s'", dominfo->name); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_NOT_FOUND, + conn, + "Unable to lookup domain `%s'", dominfo->name); goto out; } @@ -1065,9 +1066,10 @@ dom = virDomainLookupByName(conn, name); if (dom == NULL) { - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_NOT_FOUND, - "Referenced domain `%s' does not exist", name); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_NOT_FOUND, + conn, + "Referenced domain `%s' does not exist", name); goto out; } @@ -1274,13 +1276,16 @@ error: if (rc == IM_RC_SYS_NOT_FOUND) - cu_statusf(_BROKER, &status, - CMPI_RC_ERR_FAILED, - "Failed to find domain"); + virt_set_status(_BROKER, &status, + CMPI_RC_ERR_NOT_FOUND, + conn, + "Referenced domain `%s' does not exist", + dom_name); else if (rc == IM_RC_FAILED) - cu_statusf(_BROKER, &status, - CMPI_RC_ERR_FAILED, - "Unable to retrieve domain name."); + virt_set_status(_BROKER, &status, + CMPI_RC_ERR_NOT_FOUND, + conn, + "Unable to retrieve domain name"); else if (rc == IM_RC_OK) { status = (CMPIStatus){CMPI_RC_OK, NULL}; trigger_indication(context, @@ -1320,8 +1325,13 @@ goto out; dom = virDomainLookupByName(conn, name); - if (dom == NULL) + if (dom == NULL) { + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_NOT_FOUND, + conn, + "Referenced domain `%s' does not exist", name); goto out; + } if (!get_dominfo(dom, &dominfo)) { cu_statusf(_BROKER, &s, @@ -1459,9 +1469,10 @@ dom = virDomainLookupByName(conn, dominfo->name); if (dom == NULL) { CU_DEBUG("Failed to lookup VS `%s'", dominfo->name); - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_NOT_FOUND, - "Virtual System `%s' not found", dominfo->name); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_NOT_FOUND, + conn, + "Virtual System `%s' not found", dominfo->name); goto out; } @@ -1825,9 +1836,11 @@ dom = virDomainLookupByName(conn, name); if (dom == NULL) { - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_FAILED, - "Unknown system `%s'", name); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_NOT_FOUND, + conn, + "Referenced domain `%s' does not exist", + name); goto end; } From rmaciel at linux.vnet.ibm.com Tue Feb 24 18:39:49 2009 From: rmaciel at linux.vnet.ibm.com (Richard Maciel) Date: Tue, 24 Feb 2009 15:39:49 -0300 Subject: [Libvirt-cim] [PATCH 2 of 3] This patch exposes error messages from libvirt calls in ComputerSystem In-Reply-To: References: Message-ID: # HG changeset patch # User Richard Maciel # Date 1235499824 10800 # Node ID bd4dc02647adb6c7d3644728137674e53b8cf83a # Parent ec95377909381bf92beee417b5fce4f699950df5 This patch exposes error messages from libvirt calls in ComputerSystem #2: Added more points of error exposition Changed some error messages from "Could not..." to "Unable to..." to make them more readable #3: Changed message virt_set_status message from "Unable to get domain XML description" to "Unable to get domain information" Signed-off-by: Richard Maciel diff -r ec9537790938 -r bd4dc02647ad src/Virt_ComputerSystem.c --- a/src/Virt_ComputerSystem.c Tue Feb 24 13:42:29 2009 -0300 +++ b/src/Virt_ComputerSystem.c Tue Feb 24 15:23:44 2009 -0300 @@ -273,7 +273,7 @@ struct infostore_ctx *infostore = NULL; ret = virDomainGetInfo(dom, &info); - if (ret != 0) + if (ret != 0) return 0; info.state = adjust_state_xen(dom, info.state); @@ -398,19 +398,27 @@ if (get_dominfo(dom, &domain) == 0) { CU_DEBUG("Unable to get domain information"); - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_FAILED, - "Unable to get domain information"); + virt_set_status(broker, &s, + CMPI_RC_ERR_FAILED, + virDomainGetConnect(dom), + "Unable to get domain information"); goto out; } if (!set_name_from_dom(dom, instance)) { - /* Print trace error */ + virt_set_status(broker, &s, + CMPI_RC_ERR_FAILED, + virDomainGetConnect(dom), + "Unable to get domain name"); goto out; } if (!set_uuid_from_dom(dom, instance, &uuid)) { - /* Print trace error */ + virt_set_status(broker, &s, + CMPI_RC_ERR_FAILED, + virDomainGetConnect(dom), + "Unable to get domain UUID"); + goto out; } @@ -420,7 +428,11 @@ } if (!set_state_from_dom(broker, dom, instance)) { - /* Print trace error */ + virt_set_status(broker, &s, + CMPI_RC_ERR_FAILED, + virDomainGetConnect(dom), + "Unable to get domain info"); + goto out; } @@ -570,10 +582,11 @@ dom = virDomainLookupByName(conn, name); if (dom == NULL) { - cu_statusf(broker, &s, - CMPI_RC_ERR_NOT_FOUND, - "No such instance (%s).", - name); + virt_set_status(broker, &s, + CMPI_RC_ERR_NOT_FOUND, + conn, + "Referenced domain `%s' does not exist", + name); goto out; } @@ -790,9 +803,10 @@ xml = virDomainGetXMLDesc(dom, 0); if (xml == NULL) { CU_DEBUG("Unable to retrieve domain XML"); - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_FAILED, - "Unable to get domain definition"); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_FAILED, + conn, + "Unable to get domain definition"); return s; } @@ -1003,16 +1017,18 @@ dom = virDomainLookupByName(conn, name); if (dom == NULL) { - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_FAILED, - "Domain not found"); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_FAILED, + conn, + "Domain not found"); goto out; } if (virDomainGetInfo(dom, &info) != 0) { - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_FAILED, - "Unable to get current state"); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_FAILED, + conn, + "Unable to get current state"); goto out; } From yunguol at cn.ibm.com Wed Feb 25 08:31:34 2009 From: yunguol at cn.ibm.com (Guo Lian Yun) Date: Wed, 25 Feb 2009 16:31:34 +0800 Subject: [Libvirt-cim] Re: Test Run Summary (Feb 24 2009): Xen on Red Hat Enterprise Linux Server release 5.3 (Tikanga) with Pegasus In-Reply-To: <49A3F862.30901@linux.vnet.ibm.com> Message-ID: libvirt-cim-bounces at redhat.com wrote on 2009-02-24 21:38:42: > > > Deepti B Kalakeri wrote: > > ================================================= > > Test Run Summary (Feb 24 2009): Xen on Red Hat Enterprise Linux Server > > release 5.3 (Tikanga) with Pegasus > > ================================================= > > Distro: Red Hat Enterprise Linux Server release 5.3 (Tikanga) > > Kernel: 2.6.18-128.el5xen > > libvirt: 0.3.3 > > Hypervisor: Xen 3.1.0 > > CIMOM: Pegasus 2.7.1 > > Libvirt-cim revision: 613 > > Libvirt-cim changeset: 1fcf330fadf8+ > > Cimtest revision: 632 > > Cimtest changeset: 6f8acadebaae > > ================================================= > > FAIL : 15 > > XFAIL : 1 > > SKIP : 12 > > PASS : 118 > > ----------------- > > Total : 146 > > ================================================= > > FAIL Test Summary: > > ComputerSystem - 01_enum.py: FAIL > Passed when run manually. > > ElementAllocatedFromPool - 02_reverse.py: FAIL > Need to investigate further > > ElementCapabilities - 01_forward.py: FAIL > The virsh on the machine is throwing the following error on the stderr > > virsh -c xen:/// list --all | sed -e '1,2 d' -e '$ d' > libvir: Xen error : Domain not found: xenUnifiedDomainLookupByID > libvir: Xen error : Domain not found: xenUnifiedDomainLookupByID > > because of this the test case is not able to parse the values properly > and hence fails. Kaitlin - Does Richard Maciel's patches of "This series of patches exposes errors provided from executions of libvirt functions" fix this issue? Thanks! > > ElementCapabilities - 02_reverse.py: FAIL > > same here. > > > ElementSettingData - 03_esd_assoc_with_rasd_errs.py: FAIL > The tc fails because virsh is unable to create the domain and fails with > the following error: > libvir: Xen Daemon error : POST operation failed: (xend.err 'Device 0 > (vkbd) could not be connected. Hotplug scripts not working.') > > Restarting libvird/xend does not solve this problem. Also, there are no > guests that are running on the machine. > This error goes sometimes when we reboot the machine. > > EnabledLogicalElementCapabilities - 01_enum.py: FAIL > tc fails because of the following error as above: > libvir: Xen error : Domain not found: xenUnifiedDomainLookupByID > libvir: Xen error : Domain not found: xenUnifiedDomainLookupByID > > > HostedDependency - 04_reverse_errs.py: FAIL > > > SettingsDefine - 03_sds_fwd_errs.py: FAIL > > SettingsDefine - 04_sds_rev_errs.py: FAIL > > SystemDevice - 01_forward.py: FAIL > > SystemDevice - 02_reverse.py: FAIL > > SystemDevice - 03_fwderrs.py: FAIL > Fails with the following error: > libvir: Xen Daemon error : POST operation failed: (xend.err 'Device 0 > (vkbd) could not be connected. Hotplug scripts not working.') > > VirtualSystemManagementService - 14_define_sys_disk.py: FAIL > The DiskRASD['Caption'] field is not set properly. > This has been used in the test while customizing the values for DiskRASD > to be passed before defining the domain. > Need to verify this further since the F9 rpm with revision 613 worked fine. > > VirtualSystemMigrationService - 01_migratable_host.py: FAIL > > VirtualSystemMigrationService - 02_host_migrate_type.py: FAIL > The test case are taking too long to start the domain to be migrated. > The guest used to migrate which is in the define state seems in the mid > of the transition from defined to start state. > The State of the dom_migrate is set to "no state". > > > > -- > Thanks and Regards, > Deepti B. Kalakeri > IBM Linux Technology Center > deeptik at linux.vnet.ibm.com > > _______________________________________________ > Libvirt-cim mailing list > Libvirt-cim at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-cim -------------- next part -------------- An HTML attachment was scrubbed... URL: From kaitlin at linux.vnet.ibm.com Wed Feb 25 22:04:10 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Wed, 25 Feb 2009 14:04:10 -0800 Subject: [Libvirt-cim] [PATCH] Fix ResourceAllocation profile definition in profiles.h Message-ID: <480583d078d980eccef1.1235599450@localhost.localdomain> # HG changeset patch # User Kaitlin Rupert # Date 1235598357 28800 # Node ID 480583d078d980eccef14553b7ff8755aaed75ba # Parent a8e06182465825ccc61675ffddfff329343eda0e Fix ResourceAllocation profile definition in profiles.h Since KVM_ResourcePool, Xen_ResourcePool, etc doesn't exist, the Resource Allocation Profile needs to point to the specific pool (DiskPool, etc). This is similar to how the Generic Device Resource Virtualization profile is handled. Sample query: wbemcli ain -ac KVM_ElementConformsToProfile 'http://localhost:5988/root/interop:KVM_RegisteredProfile.InstanceID="CIM:DSP1041-ResourceAllocation-1.1.0c_p"' elm3b41/root/virt:KVM_ProcessorPool.InstanceID="ProcessorPool/0" Signed-off-by: Kaitlin Rupert diff -r a8e061824658 -r 480583d078d9 src/profiles.h --- a/src/profiles.h Wed Feb 25 13:06:01 2009 -0800 +++ b/src/profiles.h Wed Feb 25 13:45:57 2009 -0800 @@ -124,13 +124,43 @@ .scoping_profile = &SystemVirtualization }; -struct reg_prof ResourceAllocation = { +struct reg_prof ResourceAllocation_Disk = { .reg_org = 2, - .reg_id = "CIM:DSP1041-ResourceAllocation-1.1.0c", + .reg_id = "CIM:DSP1041-ResourceAllocation-1.1.0c_d", .reg_name = "Resource Allocation", .reg_version = "1.1.0c", .scoping_class = "ComputerSystem", - .central_class = "ResourcePool", + .central_class = "DiskPool", + .scoping_profile = &SystemVirtualization +}; + +struct reg_prof ResourceAllocation_Net = { + .reg_org = 2, + .reg_id = "CIM:DSP1041-ResourceAllocation-1.1.0c_n", + .reg_name = "Resource Allocation", + .reg_version = "1.1.0c", + .scoping_class = "ComputerSystem", + .central_class = "NetworkPool", + .scoping_profile = &SystemVirtualization +}; + +struct reg_prof ResourceAllocation_Proc = { + .reg_org = 2, + .reg_id = "CIM:DSP1041-ResourceAllocation-1.1.0c_p", + .reg_name = "Resource Allocation", + .reg_version = "1.1.0c", + .scoping_class = "ComputerSystem", + .central_class = "ProcessorPool", + .scoping_profile = &SystemVirtualization +}; + +struct reg_prof ResourceAllocation_Mem = { + .reg_org = 2, + .reg_id = "CIM:DSP1041-ResourceAllocation-1.1.0c_m", + .reg_name = "Resource Allocation", + .reg_version = "1.1.0c", + .scoping_class = "ComputerSystem", + .central_class = "MemoryPool", .scoping_profile = &SystemVirtualization }; @@ -145,7 +175,10 @@ &VirtualSystemMigration, &KVMRedirection, &AllocationCapabilities, - &ResourceAllocation, + &ResourceAllocation_Disk, + &ResourceAllocation_Net, + &ResourceAllocation_Proc, + &ResourceAllocation_Mem, NULL }; From kaitlin at linux.vnet.ibm.com Wed Feb 25 22:45:02 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Wed, 25 Feb 2009 14:45:02 -0800 Subject: [Libvirt-cim] Re: Test Run Summary (Feb 24 2009): Xen on Red Hat Enterprise Linux Server release 5.3 (Tikanga) with Pegasus In-Reply-To: References: Message-ID: <49A5C9EE.9070304@linux.vnet.ibm.com> > > > FAIL Test Summary: > > > ComputerSystem - 01_enum.py: FAIL > > Passed when run manually. > > > ElementAllocatedFromPool - 02_reverse.py: FAIL > > Need to investigate further > > > ElementCapabilities - 01_forward.py: FAIL > > The virsh on the machine is throwing the following error on the stderr > > > > virsh -c xen:/// list --all | sed -e '1,2 d' -e '$ d' > > libvir: Xen error : Domain not found: xenUnifiedDomainLookupByID > > libvir: Xen error : Domain not found: xenUnifiedDomainLookupByID > > > > because of this the test case is not able to parse the values properly > > and hence fails. > > Kaitlin - Does Richard Maciel's patches of > "This series of patches exposes errors provided from executions of > libvirt functions" > fix this issue? > > Thanks! No, Richard is working on enhancing the error messages returned by the providers. Right now, we don't include libvirt's error messages in the error messages returned by the providers (in most cases, anyway). However, this is a different issue. virsh is returning an error, which means it's this issue is happening outside of the providers. I have seen something similar happen before - a guest gets into a bad state and libvirt is aware of the guest, but xend doesn't know about the guest. Usually, this guest will have "no state" for it's state. You can try restarting xend and libvirtd and then undefining the invalid guest. That resolve the error messages. If it doesn't, try rebooting the box (sadly). -- Kaitlin Rupert IBM Linux Technology Center kaitlin at linux.vnet.ibm.com From yunguol at cn.ibm.com Thu Feb 26 02:10:24 2009 From: yunguol at cn.ibm.com (Guo Lian Yun) Date: Thu, 26 Feb 2009 10:10:24 +0800 Subject: [Libvirt-cim] [PATCH] Fix ResourceAllocation profile definition in profiles.h In-Reply-To: <480583d078d980eccef1.1235599450@localhost.localdomain> Message-ID: +1 . Best, Regards Daisy (???) VSM Team, China Systems & Technology Labs (CSTL) E-mail: yunguol at cn.ibm.com TEL: (86)-21-60922403 Building 10, 399 Ke Yuan Rd, Pudong Shanghai, 201203 libvirt-cim-bounces at redhat.com wrote on 2009-02-26 06:04:10: > # HG changeset patch > # User Kaitlin Rupert > # Date 1235598357 28800 > # Node ID 480583d078d980eccef14553b7ff8755aaed75ba > # Parent a8e06182465825ccc61675ffddfff329343eda0e > Fix ResourceAllocation profile definition in profiles.h > > Since KVM_ResourcePool, Xen_ResourcePool, etc doesn't exist, the Resource > Allocation Profile needs to point to the specific pool (DiskPool, etc). > > This is similar to how the Generic Device Resource Virtualization profile is > handled. > > Sample query: > > wbemcli ain -ac KVM_ElementConformsToProfile 'http://localhost: > 5988/root/interop:KVM_RegisteredProfile.InstanceID="CIM:DSP1041- > ResourceAllocation-1.1.0c_p"' > > elm3b41/root/virt:KVM_ProcessorPool.InstanceID="ProcessorPool/0" > > Signed-off-by: Kaitlin Rupert > > diff -r a8e061824658 -r 480583d078d9 src/profiles.h > --- a/src/profiles.h Wed Feb 25 13:06:01 2009 -0800 > +++ b/src/profiles.h Wed Feb 25 13:45:57 2009 -0800 > @@ -124,13 +124,43 @@ > .scoping_profile = &SystemVirtualization > }; > > -struct reg_prof ResourceAllocation = { > +struct reg_prof ResourceAllocation_Disk = { > .reg_org = 2, > - .reg_id = "CIM:DSP1041-ResourceAllocation-1.1.0c", > + .reg_id = "CIM:DSP1041-ResourceAllocation-1.1.0c_d", > .reg_name = "Resource Allocation", > .reg_version = "1.1.0c", > .scoping_class = "ComputerSystem", > - .central_class = "ResourcePool", > + .central_class = "DiskPool", > + .scoping_profile = &SystemVirtualization > +}; > + > +struct reg_prof ResourceAllocation_Net = { > + .reg_org = 2, > + .reg_id = "CIM:DSP1041-ResourceAllocation-1.1.0c_n", > + .reg_name = "Resource Allocation", > + .reg_version = "1.1.0c", > + .scoping_class = "ComputerSystem", > + .central_class = "NetworkPool", > + .scoping_profile = &SystemVirtualization > +}; > + > +struct reg_prof ResourceAllocation_Proc = { > + .reg_org = 2, > + .reg_id = "CIM:DSP1041-ResourceAllocation-1.1.0c_p", > + .reg_name = "Resource Allocation", > + .reg_version = "1.1.0c", > + .scoping_class = "ComputerSystem", > + .central_class = "ProcessorPool", > + .scoping_profile = &SystemVirtualization > +}; > + > +struct reg_prof ResourceAllocation_Mem = { > + .reg_org = 2, > + .reg_id = "CIM:DSP1041-ResourceAllocation-1.1.0c_m", > + .reg_name = "Resource Allocation", > + .reg_version = "1.1.0c", > + .scoping_class = "ComputerSystem", > + .central_class = "MemoryPool", > .scoping_profile = &SystemVirtualization > }; > > @@ -145,7 +175,10 @@ > &VirtualSystemMigration, > &KVMRedirection, > &AllocationCapabilities, > - &ResourceAllocation, > + &ResourceAllocation_Disk, > + &ResourceAllocation_Net, > + &ResourceAllocation_Proc, > + &ResourceAllocation_Mem, > NULL > }; > > > _______________________________________________ > Libvirt-cim mailing list > Libvirt-cim at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-cim -------------- next part -------------- An HTML attachment was scrubbed... URL: From yunguol at cn.ibm.com Thu Feb 26 02:43:04 2009 From: yunguol at cn.ibm.com (Guo Lian Yun) Date: Thu, 26 Feb 2009 10:43:04 +0800 Subject: [Libvirt-cim] Test Run Summary (Feb 26 2009): Xen on Red Hat Enterprise Linux Server release 5.3 (Tikanga) with Pegasus Message-ID: ================================================= Test Run Summary (Feb 26 2009): Xen on Red Hat Enterprise Linux Server release 5.3 (Tikanga) with Pegasus ================================================= Distro: Red Hat Enterprise Linux Server release 5.3 (Tikanga) Kernel: 2.6.18-128.el5xen libvirt: 0.3.3 Hypervisor: Xen 3.1.0 CIMOM: Pegasus 2.7.1 Libvirt-cim revision: 613 Libvirt-cim changeset: 1fcf330fadf8+ Cimtest revision: Cimtest changeset: ================================================= FAIL : 8 XFAIL : 1 SKIP : 12 PASS : 125 ----------------- Total : 146 ================================================= FAIL Test Summary: RASD - 01_verify_rasd_fields.py: FAIL VirtualSystemManagementService - 14_define_sys_disk.py: FAIL VirtualSystemMigrationService - 01_migratable_host.py: FAIL VirtualSystemMigrationService - 02_host_migrate_type.py: FAIL VirtualSystemMigrationService - 05_migratable_host_errs.py: FAIL VirtualSystemSettingDataComponent - 02_reverse.py: FAIL VirtualSystemSettingDataComponent - 03_vssdc_fwd_errs.py: FAIL VirtualSystemSettingDataComponent - 04_vssdc_rev_errs.py: FAIL ================================================= XFAIL Test Summary: ComputerSystem - 33_suspend_reboot.py: XFAIL ================================================= SKIP Test Summary: ComputerSystem - 02_nosystems.py: SKIP HostedAccessPoint - 01_forward.py: SKIP HostedAccessPoint - 02_reverse.py: SKIP KVMRedirectionSAP - 01_enum_KVMredSAP.py: SKIP LogicalDisk - 02_nodevs.py: SKIP NetworkPort - 03_user_netport.py: SKIP RASD - 05_disk_rasd_emu_type.py: SKIP RedirectionService - 01_enum_crs.py: SKIP RedirectionService - 02_enum_crscap.py: SKIP RedirectionService - 03_RedirectionSAP_errs.py: SKIP ServiceAccessBySAP - 01_forward.py: SKIP ServiceAccessBySAP - 02_reverse.py: SKIP ================================================= Full report: -------------------------------------------------------------------- AllocationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- AllocationCapabilities - 02_alloccap_gi_errs.py: PASS -------------------------------------------------------------------- ComputerSystem - 01_enum.py: PASS -------------------------------------------------------------------- ComputerSystem - 02_nosystems.py: SKIP -------------------------------------------------------------------- ComputerSystem - 03_defineVS.py: PASS -------------------------------------------------------------------- ComputerSystem - 04_defineStartVS.py: PASS -------------------------------------------------------------------- ComputerSystem - 05_activate_defined_start.py: PASS -------------------------------------------------------------------- ComputerSystem - 06_paused_active_suspend.py: PASS -------------------------------------------------------------------- ComputerSystem - 22_define_suspend.py: PASS -------------------------------------------------------------------- ComputerSystem - 23_pause_pause.py: PASS -------------------------------------------------------------------- ComputerSystem - 27_define_pause_errs.py: PASS -------------------------------------------------------------------- ComputerSystem - 32_start_reboot.py: PASS -------------------------------------------------------------------- ComputerSystem - 33_suspend_reboot.py: XFAIL ERROR - Got CIM error CIM_ERR_NOT_SUPPORTED: State not supported with return code 7 ERROR - Exception: Unable Suspend dom 'test_domain' InvokeMethod(RequestStateChange): CIM_ERR_NOT_SUPPORTED: State not supported Bug:<00012> -------------------------------------------------------------------- ComputerSystem - 35_start_reset.py: PASS -------------------------------------------------------------------- ComputerSystem - 40_RSC_start.py: PASS -------------------------------------------------------------------- ComputerSystem - 41_cs_to_settingdefinestate.py: PASS -------------------------------------------------------------------- ComputerSystem - 42_cs_gi_errs.py: PASS -------------------------------------------------------------------- ComputerSystemIndication - 01_created_indication.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 01_forward.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 02_reverse.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 03_reverse_errs.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 04_forward_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 01_forward.py: PASS -------------------------------------------------------------------- ElementCapabilities - 02_reverse.py: PASS -------------------------------------------------------------------- ElementCapabilities - 03_forward_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 04_reverse_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 05_hostsystem_cap.py: PASS -------------------------------------------------------------------- ElementConforms - 01_forward.py: PASS -------------------------------------------------------------------- ElementConforms - 02_reverse.py: PASS -------------------------------------------------------------------- ElementConforms - 03_ectp_fwd_errs.py: PASS -------------------------------------------------------------------- ElementConforms - 04_ectp_rev_errs.py: PASS -------------------------------------------------------------------- ElementSettingData - 01_forward.py: PASS -------------------------------------------------------------------- ElementSettingData - 03_esd_assoc_with_rasd_errs.py: PASS -------------------------------------------------------------------- EnabledLogicalElementCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- EnabledLogicalElementCapabilities - 02_elecap_gi_errs.py: PASS -------------------------------------------------------------------- HostSystem - 01_enum.py: PASS -------------------------------------------------------------------- HostSystem - 02_hostsystem_to_rasd.py: PASS -------------------------------------------------------------------- HostSystem - 03_hs_to_settdefcap.py: PASS -------------------------------------------------------------------- HostSystem - 04_hs_to_EAPF.py: PASS -------------------------------------------------------------------- HostSystem - 05_hs_gi_errs.py: PASS -------------------------------------------------------------------- HostSystem - 06_hs_to_vsms.py: PASS -------------------------------------------------------------------- HostedAccessPoint - 01_forward.py: SKIP -------------------------------------------------------------------- HostedAccessPoint - 02_reverse.py: SKIP -------------------------------------------------------------------- HostedDependency - 01_forward.py: PASS -------------------------------------------------------------------- HostedDependency - 02_reverse.py: PASS -------------------------------------------------------------------- HostedDependency - 03_enabledstate.py: PASS -------------------------------------------------------------------- HostedDependency - 04_reverse_errs.py: PASS -------------------------------------------------------------------- HostedResourcePool - 01_forward.py: PASS -------------------------------------------------------------------- HostedResourcePool - 02_reverse.py: PASS -------------------------------------------------------------------- HostedResourcePool - 03_forward_errs.py: PASS -------------------------------------------------------------------- HostedResourcePool - 04_reverse_errs.py: PASS -------------------------------------------------------------------- HostedService - 01_forward.py: PASS -------------------------------------------------------------------- HostedService - 02_reverse.py: PASS -------------------------------------------------------------------- HostedService - 03_forward_errs.py: PASS -------------------------------------------------------------------- HostedService - 04_reverse_errs.py: PASS -------------------------------------------------------------------- KVMRedirectionSAP - 01_enum_KVMredSAP.py: SKIP -------------------------------------------------------------------- LogicalDisk - 01_disk.py: PASS -------------------------------------------------------------------- LogicalDisk - 02_nodevs.py: SKIP ERROR - System has defined domains; unable to run -------------------------------------------------------------------- LogicalDisk - 03_ld_gi_errs.py: PASS -------------------------------------------------------------------- Memory - 01_memory.py: PASS -------------------------------------------------------------------- Memory - 02_defgetmem.py: PASS -------------------------------------------------------------------- Memory - 03_mem_gi_errs.py: PASS -------------------------------------------------------------------- NetworkPort - 01_netport.py: PASS -------------------------------------------------------------------- NetworkPort - 02_np_gi_errors.py: PASS -------------------------------------------------------------------- NetworkPort - 03_user_netport.py: SKIP -------------------------------------------------------------------- Processor - 01_processor.py: PASS -------------------------------------------------------------------- Processor - 02_definesys_get_procs.py: PASS -------------------------------------------------------------------- Processor - 03_proc_gi_errs.py: PASS -------------------------------------------------------------------- Profile - 01_enum.py: PASS -------------------------------------------------------------------- Profile - 02_profile_to_elec.py: PASS -------------------------------------------------------------------- Profile - 03_rprofile_gi_errs.py: PASS -------------------------------------------------------------------- RASD - 01_verify_rasd_fields.py: FAIL ERROR - (6, u'CIM_ERR_NOT_FOUND: No such instance (domguest/mem)') ERROR - Enum RASDs failed -------------------------------------------------------------------- RASD - 02_enum.py: PASS -------------------------------------------------------------------- RASD - 03_rasd_errs.py: PASS -------------------------------------------------------------------- RASD - 04_disk_rasd_size.py: PASS -------------------------------------------------------------------- RASD - 05_disk_rasd_emu_type.py: SKIP -------------------------------------------------------------------- RedirectionService - 01_enum_crs.py: SKIP -------------------------------------------------------------------- RedirectionService - 02_enum_crscap.py: SKIP -------------------------------------------------------------------- RedirectionService - 03_RedirectionSAP_errs.py: SKIP -------------------------------------------------------------------- ReferencedProfile - 01_verify_refprof.py: PASS -------------------------------------------------------------------- ReferencedProfile - 02_refprofile_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 01_forward.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 02_reverse.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 03_forward_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 04_reverse_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 05_RAPF_err.py: PASS -------------------------------------------------------------------- ResourcePool - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePool - 02_rp_gi_errors.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationCapabilities - 02_rpcc_gi_errs.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 02_rcps_gi_errors.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 03_CreateResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 04_CreateChildResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 05_AddResourcesToResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 06_RemoveResourcesFromResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 07_DeleteResourcePool.py: PASS -------------------------------------------------------------------- ServiceAccessBySAP - 01_forward.py: SKIP -------------------------------------------------------------------- ServiceAccessBySAP - 02_reverse.py: SKIP -------------------------------------------------------------------- SettingsDefine - 01_forward.py: PASS -------------------------------------------------------------------- SettingsDefine - 02_reverse.py: PASS -------------------------------------------------------------------- SettingsDefine - 03_sds_fwd_errs.py: PASS -------------------------------------------------------------------- SettingsDefine - 04_sds_rev_errs.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 01_forward.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 03_forward_errs.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 04_forward_vsmsdata.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 05_reverse_vsmcap.py: PASS -------------------------------------------------------------------- SystemDevice - 01_forward.py: PASS -------------------------------------------------------------------- SystemDevice - 02_reverse.py: PASS -------------------------------------------------------------------- SystemDevice - 03_fwderrs.py: PASS -------------------------------------------------------------------- VSSD - 01_enum.py: PASS -------------------------------------------------------------------- VSSD - 02_bootldr.py: PASS -------------------------------------------------------------------- VSSD - 03_vssd_gi_errs.py: PASS -------------------------------------------------------------------- VSSD - 04_vssd_to_rasd.py: PASS -------------------------------------------------------------------- VirtualSystemManagementCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemManagementCapabilities - 02_vsmcap_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 01_definesystem_name.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 02_destroysystem.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 03_definesystem_ess.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 04_definesystem_ers.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 05_destroysystem_neg.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 06_addresource.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 07_addresource_neg.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 08_modifyresource.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 09_procrasd_persist.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 10_hv_version.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 11_define_memrasdunits.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 12_referenced_config.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 13_refconfig_additional_devs.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 14_define_sys_disk.py: FAIL ERROR - Xen_DiskResourceAllocationSettingData instance for rstest_disk_domain not found ERROR - Failed to verify disk path for rstest_disk_domain -------------------------------------------------------------------- VirtualSystemManagementService - 15_mod_system_settings.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationCapabilities - 02_vsmc_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationService - 01_migratable_host.py: FAIL ERROR - MigrateVirtualSystemToHost took too long Xen_ComputerSystem.CreationClassName="Xen_ComputerSystem",Name="dom_migrate" -------------------------------------------------------------------- VirtualSystemMigrationService - 02_host_migrate_type.py: FAIL ERROR - Got CIM error CIM_ERR_FAILED: Failed to lookup resulting system with return code 1 ERROR - CS instance not returned for dom_migrate. ERROR - Error start domain dom_migrate InvokeMethod(DefineSystem): CIM_ERR_FAILED: Failed to lookup resulting system CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). CIM_ERR_NOT_FOUND: No such instance (dom_migrate). -------------------------------------------------------------------- VirtualSystemMigrationService - 05_migratable_host_errs.py: FAIL ERROR - Got CIM error CIM_ERR_FAILED: Unable to start domain with return code 1 ERROR - Error start domain dom_migration InvokeMethod(RequestStateChange): CIM_ERR_FAILED: Unable to start domain -------------------------------------------------------------------- VirtualSystemMigrationSettingData - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationSettingData - 02_vsmsd_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 01_forward.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 02_reverse.py: FAIL ERROR - Got CIM error CIM_ERR_FAILED: Unable to start domain with return code 1 ERROR - Failed to start the dom: VSSDC_dom InvokeMethod(RequestStateChange): CIM_ERR_FAILED: Unable to start domain -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 03_vssdc_fwd_errs.py: FAIL ERROR - Got CIM error CIM_ERR_FAILED: Unable to start domain with return code 1 ERROR - Unable to start domain domu1 InvokeMethod(RequestStateChange): CIM_ERR_FAILED: Unable to start domain -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 04_vssdc_rev_errs.py: FAIL ERROR - Got CIM error CIM_ERR_FAILED: Unable to start domain with return code 1 ERROR - Unable to start domain domu1 InvokeMethod(RequestStateChange): CIM_ERR_FAILED: Unable to start domain -------------------------------------------------------------------- VirtualSystemSnapshotService - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotService - 02_vs_sservice_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotServiceCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotServiceCapabilities - 02_vs_sservicecap_gi_errs.py: PASS -------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From yunguol at cn.ibm.com Thu Feb 26 02:45:54 2009 From: yunguol at cn.ibm.com (Guo Lian Yun) Date: Thu, 26 Feb 2009 10:45:54 +0800 Subject: [Libvirt-cim] Re: Test Run Summary (Feb 24 2009): Xen on Red Hat Enterprise Linux Server release 5.3 (Tikanga) with Pegasus In-Reply-To: <49A5C9EE.9070304@linux.vnet.ibm.com> Message-ID: libvirt-cim-bounces at redhat.com wrote on 2009-02-26 06:45:02: > > > > FAIL Test Summary: > > > > ComputerSystem - 01_enum.py: FAIL > > > Passed when run manually. > > > > ElementAllocatedFromPool - 02_reverse.py: FAIL > > > Need to investigate further > > > > ElementCapabilities - 01_forward.py: FAIL > > > The virsh on the machine is throwing the following error on the stderr > > > > > > virsh -c xen:/// list --all | sed -e '1,2 d' -e '$ d' > > > libvir: Xen error : Domain not found: xenUnifiedDomainLookupByID > > > libvir: Xen error : Domain not found: xenUnifiedDomainLookupByID > > > > > > because of this the test case is not able to parse the values properly > > > and hence fails. > > > > Kaitlin - Does Richard Maciel's patches of > > "This series of patches exposes errors provided from executions of > > libvirt functions" > > fix this issue? > > > > Thanks! > > No, Richard is working on enhancing the error messages returned by the > providers. Right now, we don't include libvirt's error messages in the > error messages returned by the providers (in most cases, anyway). > > However, this is a different issue. virsh is returning an error, which > means it's this issue is happening outside of the providers. > > I have seen something similar happen before - a guest gets into a bad > state and libvirt is aware of the guest, but xend doesn't know about the > guest. Usually, this guest will have "no state" for it's state. > > You can try restarting xend and libvirtd and then undefining the invalid > guest. That resolve the error messages. If it doesn't, try rebooting > the box (sadly). I restarted the box and fixed these virsh issues. There are total 8 tests fail now =) Thanks! > -- > Kaitlin Rupert > IBM Linux Technology Center > kaitlin at linux.vnet.ibm.com > > _______________________________________________ > Libvirt-cim mailing list > Libvirt-cim at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-cim -------------- next part -------------- An HTML attachment was scrubbed... URL: From deeptik at linux.vnet.ibm.com Thu Feb 26 08:29:20 2009 From: deeptik at linux.vnet.ibm.com (Deepti B Kalakeri) Date: Thu, 26 Feb 2009 13:59:20 +0530 Subject: [Libvirt-cim] Test Run Summary (Feb 26 2009): XenFV on Red Hat Enterprise Linux Server release 5.3 (Tikanga) with Pegasus Message-ID: <49A652E0.3000809@linux.vnet.ibm.com> ================================================= Test Run Summary (Feb 26 2009): XenFV on Red Hat Enterprise Linux Server release 5.3 (Tikanga) with Pegasus ================================================= Distro: Red Hat Enterprise Linux Server release 5.3 (Tikanga) Kernel: 2.6.18-128.el5xen libvirt: 0.3.3 Hypervisor: Xen 3.1.0 CIMOM: Pegasus 2.7.1 Libvirt-cim revision: 613 Libvirt-cim changeset: 1fcf330fadf8+ Cimtest revision: 632 Cimtest changeset: 6f8acadebaae ================================================= FAIL : 5 XFAIL : 1 SKIP : 13 PASS : 127 ----------------- Total : 146 ================================================= FAIL Test Summary: RASD - 01_verify_rasd_fields.py: FAIL VirtualSystemManagementService - 09_procrasd_persist.py: FAIL VirtualSystemManagementService - 14_define_sys_disk.py: FAIL VirtualSystemMigrationService - 01_migratable_host.py: FAIL VirtualSystemMigrationService - 02_host_migrate_type.py: FAIL ================================================= XFAIL Test Summary: ComputerSystem - 33_suspend_reboot.py: XFAIL ================================================= SKIP Test Summary: ComputerSystem - 02_nosystems.py: SKIP HostedAccessPoint - 01_forward.py: SKIP HostedAccessPoint - 02_reverse.py: SKIP KVMRedirectionSAP - 01_enum_KVMredSAP.py: SKIP LogicalDisk - 02_nodevs.py: SKIP NetworkPort - 03_user_netport.py: SKIP RASD - 05_disk_rasd_emu_type.py: SKIP RedirectionService - 01_enum_crs.py: SKIP RedirectionService - 02_enum_crscap.py: SKIP RedirectionService - 03_RedirectionSAP_errs.py: SKIP ServiceAccessBySAP - 01_forward.py: SKIP ServiceAccessBySAP - 02_reverse.py: SKIP VSSD - 02_bootldr.py: SKIP ================================================= Full report: -------------------------------------------------------------------- AllocationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- AllocationCapabilities - 02_alloccap_gi_errs.py: PASS -------------------------------------------------------------------- ComputerSystem - 01_enum.py: PASS -------------------------------------------------------------------- ComputerSystem - 02_nosystems.py: SKIP -------------------------------------------------------------------- ComputerSystem - 03_defineVS.py: PASS -------------------------------------------------------------------- ComputerSystem - 04_defineStartVS.py: PASS -------------------------------------------------------------------- ComputerSystem - 05_activate_defined_start.py: PASS -------------------------------------------------------------------- ComputerSystem - 06_paused_active_suspend.py: PASS -------------------------------------------------------------------- ComputerSystem - 22_define_suspend.py: PASS -------------------------------------------------------------------- ComputerSystem - 23_pause_pause.py: PASS -------------------------------------------------------------------- ComputerSystem - 27_define_pause_errs.py: PASS -------------------------------------------------------------------- ComputerSystem - 32_start_reboot.py: PASS -------------------------------------------------------------------- ComputerSystem - 33_suspend_reboot.py: XFAIL ERROR - Got CIM error CIM_ERR_NOT_SUPPORTED: State not supported with return code 7 ERROR - Exception: Unable Suspend dom 'test_domain' InvokeMethod(RequestStateChange): CIM_ERR_NOT_SUPPORTED: State not supported Bug:<00012> -------------------------------------------------------------------- ComputerSystem - 35_start_reset.py: PASS -------------------------------------------------------------------- ComputerSystem - 40_RSC_start.py: PASS -------------------------------------------------------------------- ComputerSystem - 41_cs_to_settingdefinestate.py: PASS -------------------------------------------------------------------- ComputerSystem - 42_cs_gi_errs.py: PASS -------------------------------------------------------------------- ComputerSystemIndication - 01_created_indication.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 01_forward.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 02_reverse.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 03_reverse_errs.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 04_forward_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 01_forward.py: PASS -------------------------------------------------------------------- ElementCapabilities - 02_reverse.py: PASS -------------------------------------------------------------------- ElementCapabilities - 03_forward_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 04_reverse_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 05_hostsystem_cap.py: PASS -------------------------------------------------------------------- ElementConforms - 01_forward.py: PASS -------------------------------------------------------------------- ElementConforms - 02_reverse.py: PASS -------------------------------------------------------------------- ElementConforms - 03_ectp_fwd_errs.py: PASS -------------------------------------------------------------------- ElementConforms - 04_ectp_rev_errs.py: PASS -------------------------------------------------------------------- ElementSettingData - 01_forward.py: PASS -------------------------------------------------------------------- ElementSettingData - 03_esd_assoc_with_rasd_errs.py: PASS -------------------------------------------------------------------- EnabledLogicalElementCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- EnabledLogicalElementCapabilities - 02_elecap_gi_errs.py: PASS -------------------------------------------------------------------- HostSystem - 01_enum.py: PASS -------------------------------------------------------------------- HostSystem - 02_hostsystem_to_rasd.py: PASS -------------------------------------------------------------------- HostSystem - 03_hs_to_settdefcap.py: PASS -------------------------------------------------------------------- HostSystem - 04_hs_to_EAPF.py: PASS -------------------------------------------------------------------- HostSystem - 05_hs_gi_errs.py: PASS -------------------------------------------------------------------- HostSystem - 06_hs_to_vsms.py: PASS -------------------------------------------------------------------- HostedAccessPoint - 01_forward.py: SKIP -------------------------------------------------------------------- HostedAccessPoint - 02_reverse.py: SKIP -------------------------------------------------------------------- HostedDependency - 01_forward.py: PASS -------------------------------------------------------------------- HostedDependency - 02_reverse.py: PASS -------------------------------------------------------------------- HostedDependency - 03_enabledstate.py: PASS -------------------------------------------------------------------- HostedDependency - 04_reverse_errs.py: PASS -------------------------------------------------------------------- HostedResourcePool - 01_forward.py: PASS -------------------------------------------------------------------- HostedResourcePool - 02_reverse.py: PASS -------------------------------------------------------------------- HostedResourcePool - 03_forward_errs.py: PASS -------------------------------------------------------------------- HostedResourcePool - 04_reverse_errs.py: PASS -------------------------------------------------------------------- HostedService - 01_forward.py: PASS -------------------------------------------------------------------- HostedService - 02_reverse.py: PASS -------------------------------------------------------------------- HostedService - 03_forward_errs.py: PASS -------------------------------------------------------------------- HostedService - 04_reverse_errs.py: PASS -------------------------------------------------------------------- KVMRedirectionSAP - 01_enum_KVMredSAP.py: SKIP -------------------------------------------------------------------- LogicalDisk - 01_disk.py: PASS -------------------------------------------------------------------- LogicalDisk - 02_nodevs.py: SKIP ERROR - System has defined domains; unable to run -------------------------------------------------------------------- LogicalDisk - 03_ld_gi_errs.py: PASS -------------------------------------------------------------------- Memory - 01_memory.py: PASS -------------------------------------------------------------------- Memory - 02_defgetmem.py: PASS -------------------------------------------------------------------- Memory - 03_mem_gi_errs.py: PASS -------------------------------------------------------------------- NetworkPort - 01_netport.py: PASS -------------------------------------------------------------------- NetworkPort - 02_np_gi_errors.py: PASS -------------------------------------------------------------------- NetworkPort - 03_user_netport.py: SKIP -------------------------------------------------------------------- Processor - 01_processor.py: PASS -------------------------------------------------------------------- Processor - 02_definesys_get_procs.py: PASS -------------------------------------------------------------------- Processor - 03_proc_gi_errs.py: PASS -------------------------------------------------------------------- Profile - 01_enum.py: PASS -------------------------------------------------------------------- Profile - 02_profile_to_elec.py: PASS -------------------------------------------------------------------- Profile - 03_rprofile_gi_errs.py: PASS -------------------------------------------------------------------- RASD - 01_verify_rasd_fields.py: FAIL ERROR - (6, u'CIM_ERR_NOT_FOUND: No such instance (domguest/proc)') ERROR - Enum RASDs failed -------------------------------------------------------------------- RASD - 02_enum.py: PASS -------------------------------------------------------------------- RASD - 03_rasd_errs.py: PASS -------------------------------------------------------------------- RASD - 04_disk_rasd_size.py: PASS -------------------------------------------------------------------- RASD - 05_disk_rasd_emu_type.py: SKIP -------------------------------------------------------------------- RedirectionService - 01_enum_crs.py: SKIP -------------------------------------------------------------------- RedirectionService - 02_enum_crscap.py: SKIP -------------------------------------------------------------------- RedirectionService - 03_RedirectionSAP_errs.py: SKIP -------------------------------------------------------------------- ReferencedProfile - 01_verify_refprof.py: PASS -------------------------------------------------------------------- ReferencedProfile - 02_refprofile_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 01_forward.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 02_reverse.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 03_forward_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 04_reverse_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 05_RAPF_err.py: PASS -------------------------------------------------------------------- ResourcePool - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePool - 02_rp_gi_errors.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationCapabilities - 02_rpcc_gi_errs.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 02_rcps_gi_errors.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 03_CreateResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 04_CreateChildResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 05_AddResourcesToResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 06_RemoveResourcesFromResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 07_DeleteResourcePool.py: PASS -------------------------------------------------------------------- ServiceAccessBySAP - 01_forward.py: SKIP -------------------------------------------------------------------- ServiceAccessBySAP - 02_reverse.py: SKIP -------------------------------------------------------------------- SettingsDefine - 01_forward.py: PASS -------------------------------------------------------------------- SettingsDefine - 02_reverse.py: PASS -------------------------------------------------------------------- SettingsDefine - 03_sds_fwd_errs.py: PASS -------------------------------------------------------------------- SettingsDefine - 04_sds_rev_errs.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 01_forward.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 03_forward_errs.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 04_forward_vsmsdata.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 05_reverse_vsmcap.py: PASS -------------------------------------------------------------------- SystemDevice - 01_forward.py: PASS -------------------------------------------------------------------- SystemDevice - 02_reverse.py: PASS -------------------------------------------------------------------- SystemDevice - 03_fwderrs.py: PASS -------------------------------------------------------------------- VSSD - 01_enum.py: PASS -------------------------------------------------------------------- VSSD - 02_bootldr.py: SKIP -------------------------------------------------------------------- VSSD - 03_vssd_gi_errs.py: PASS -------------------------------------------------------------------- VSSD - 04_vssd_to_rasd.py: PASS -------------------------------------------------------------------- VirtualSystemManagementCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemManagementCapabilities - 02_vsmcap_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 01_definesystem_name.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 02_destroysystem.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 03_definesystem_ess.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 04_definesystem_ers.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 05_destroysystem_neg.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 06_addresource.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 07_addresource_neg.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 08_modifyresource.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 09_procrasd_persist.py: FAIL ERROR - VirtualQuantity is 1, expected 3 ERROR - Exception: details CPU scheduling not set properly for the dom: procrasd_persist_dom -------------------------------------------------------------------- VirtualSystemManagementService - 10_hv_version.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 11_define_memrasdunits.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 12_referenced_config.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 13_refconfig_additional_devs.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 14_define_sys_disk.py: FAIL ERROR - Xen_DiskResourceAllocationSettingData instance for rstest_disk_domain not found ERROR - Failed to verify disk path for rstest_disk_domain -------------------------------------------------------------------- VirtualSystemManagementService - 15_mod_system_settings.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationCapabilities - 02_vsmc_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationCapabilities - 01_migratable_host.py libvir: Xen Daemon error : internal error failed to parse Xend domain information libvir: Domain error : invalid domain pointer in virDomainFree VirtualSystemMigrationService - 01_migratable_host.py: FAIL ERROR - dom_migrate migrate failed Xen_ComputerSystem.CreationClassName="Xen_ComputerSystem",Name="dom_migrate" -------------------------------------------------------------------- VirtualSystemMigrationService - 02_host_migrate_type.py: FAIL ERROR - MigrateVirtualSystemToHost took too long -------------------------------------------------------------------- VirtualSystemMigrationService - 05_migratable_host_errs.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationSettingData - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationSettingData - 02_vsmsd_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 01_forward.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 02_reverse.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 03_vssdc_fwd_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 04_vssdc_rev_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotService - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotService - 02_vs_sservice_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotServiceCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotServiceCapabilities - 02_vs_sservicecap_gi_errs.py: PASS -------------------------------------------------------------------- -- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik at linux.vnet.ibm.com From rmaciel at linux.vnet.ibm.com Thu Feb 26 17:02:20 2009 From: rmaciel at linux.vnet.ibm.com (Richard Maciel) Date: Thu, 26 Feb 2009 14:02:20 -0300 Subject: [Libvirt-cim] [PATCH] Fix ResourceAllocation profile definition in profiles.h In-Reply-To: <480583d078d980eccef1.1235599450@localhost.localdomain> References: <480583d078d980eccef1.1235599450@localhost.localdomain> Message-ID: <49A6CB1C.8050903@linux.vnet.ibm.com> +1 Kaitlin Rupert wrote: > # HG changeset patch > # User Kaitlin Rupert > # Date 1235598357 28800 > # Node ID 480583d078d980eccef14553b7ff8755aaed75ba > # Parent a8e06182465825ccc61675ffddfff329343eda0e > Fix ResourceAllocation profile definition in profiles.h > > Since KVM_ResourcePool, Xen_ResourcePool, etc doesn't exist, the Resource > Allocation Profile needs to point to the specific pool (DiskPool, etc). > > This is similar to how the Generic Device Resource Virtualization profile is > handled. > > Sample query: > > wbemcli ain -ac KVM_ElementConformsToProfile 'http://localhost:5988/root/interop:KVM_RegisteredProfile.InstanceID="CIM:DSP1041-ResourceAllocation-1.1.0c_p"' > > elm3b41/root/virt:KVM_ProcessorPool.InstanceID="ProcessorPool/0" > > Signed-off-by: Kaitlin Rupert > > diff -r a8e061824658 -r 480583d078d9 src/profiles.h > --- a/src/profiles.h Wed Feb 25 13:06:01 2009 -0800 > +++ b/src/profiles.h Wed Feb 25 13:45:57 2009 -0800 > @@ -124,13 +124,43 @@ > .scoping_profile = &SystemVirtualization > }; > > -struct reg_prof ResourceAllocation = { > +struct reg_prof ResourceAllocation_Disk = { > .reg_org = 2, > - .reg_id = "CIM:DSP1041-ResourceAllocation-1.1.0c", > + .reg_id = "CIM:DSP1041-ResourceAllocation-1.1.0c_d", > .reg_name = "Resource Allocation", > .reg_version = "1.1.0c", > .scoping_class = "ComputerSystem", > - .central_class = "ResourcePool", > + .central_class = "DiskPool", > + .scoping_profile = &SystemVirtualization > +}; > + > +struct reg_prof ResourceAllocation_Net = { > + .reg_org = 2, > + .reg_id = "CIM:DSP1041-ResourceAllocation-1.1.0c_n", > + .reg_name = "Resource Allocation", > + .reg_version = "1.1.0c", > + .scoping_class = "ComputerSystem", > + .central_class = "NetworkPool", > + .scoping_profile = &SystemVirtualization > +}; > + > +struct reg_prof ResourceAllocation_Proc = { > + .reg_org = 2, > + .reg_id = "CIM:DSP1041-ResourceAllocation-1.1.0c_p", > + .reg_name = "Resource Allocation", > + .reg_version = "1.1.0c", > + .scoping_class = "ComputerSystem", > + .central_class = "ProcessorPool", > + .scoping_profile = &SystemVirtualization > +}; > + > +struct reg_prof ResourceAllocation_Mem = { > + .reg_org = 2, > + .reg_id = "CIM:DSP1041-ResourceAllocation-1.1.0c_m", > + .reg_name = "Resource Allocation", > + .reg_version = "1.1.0c", > + .scoping_class = "ComputerSystem", > + .central_class = "MemoryPool", > .scoping_profile = &SystemVirtualization > }; > > @@ -145,7 +175,10 @@ > &VirtualSystemMigration, > &KVMRedirection, > &AllocationCapabilities, > - &ResourceAllocation, > + &ResourceAllocation_Disk, > + &ResourceAllocation_Net, > + &ResourceAllocation_Proc, > + &ResourceAllocation_Mem, > NULL > }; > > > _______________________________________________ > Libvirt-cim mailing list > Libvirt-cim at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-cim -- Richard Maciel, MSc IBM Linux Technology Center rmaciel at linux.vnet.ibm.com From deeptik at linux.vnet.ibm.com Fri Feb 27 07:19:54 2009 From: deeptik at linux.vnet.ibm.com (Deepti B Kalakeri) Date: Fri, 27 Feb 2009 12:49:54 +0530 Subject: [Libvirt-cim] Test Run Summary (Feb 27 2009): KVM on Fedora release 10 (Cambridge) with Pegasus Message-ID: <49A7941A.3010901@linux.vnet.ibm.com> ================================================= Test Run Summary (Feb 27 2009): KVM on Fedora release 10 (Cambridge) with Pegasus ================================================= Distro: Fedora release 10 (Cambridge) Kernel: 2.6.27.15-170.2.24.fc10.x86_64 libvirt: 0.5.1 Hypervisor: QEMU 0.9.1 CIMOM: Pegasus 2.7.1 Libvirt-cim revision: 812 Libvirt-cim changeset: bad1a43ac1b0 Cimtest revision: 632 Cimtest changeset: 6f8acadebaae ================================================= FAIL : 2 XFAIL : 2 SKIP : 4 PASS : 138 ----------------- Total : 146 ================================================= FAIL Test Summary: ElementConforms - 01_forward.py: FAIL VirtualSystemManagementService - 09_procrasd_persist.py: FAIL ================================================= XFAIL Test Summary: ComputerSystem - 32_start_reboot.py: XFAIL ComputerSystem - 33_suspend_reboot.py: XFAIL ================================================= SKIP Test Summary: VSSD - 02_bootldr.py: SKIP VirtualSystemMigrationService - 01_migratable_host.py: SKIP VirtualSystemMigrationService - 02_host_migrate_type.py: SKIP VirtualSystemMigrationService - 05_migratable_host_errs.py: SKIP ================================================= Full report: -------------------------------------------------------------------- AllocationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- AllocationCapabilities - 02_alloccap_gi_errs.py: PASS -------------------------------------------------------------------- ComputerSystem - 01_enum.py: PASS -------------------------------------------------------------------- ComputerSystem - 02_nosystems.py: PASS -------------------------------------------------------------------- ComputerSystem - 03_defineVS.py: PASS -------------------------------------------------------------------- ComputerSystem - 04_defineStartVS.py: PASS -------------------------------------------------------------------- ComputerSystem - 05_activate_defined_start.py: PASS -------------------------------------------------------------------- ComputerSystem - 06_paused_active_suspend.py: PASS -------------------------------------------------------------------- ComputerSystem - 22_define_suspend.py: PASS -------------------------------------------------------------------- ComputerSystem - 23_pause_pause.py: PASS -------------------------------------------------------------------- ComputerSystem - 27_define_pause_errs.py: PASS -------------------------------------------------------------------- ComputerSystem - 32_start_reboot.py: XFAIL ERROR - Got CIM error CIM_ERR_FAILED: Unable to reboot domain: this function is not supported by the hypervisor: virDomainReboot with return code 1 ERROR - Exception: Unable reboot dom 'cs_test_domain' InvokeMethod(RequestStateChange): CIM_ERR_FAILED: Unable to reboot domain: this function is not supported by the hypervisor: virDomainReboot Bug:<00005> -------------------------------------------------------------------- ComputerSystem - 33_suspend_reboot.py: XFAIL ERROR - Got CIM error CIM_ERR_NOT_SUPPORTED: State not supported with return code 7 ERROR - Exception: Unable Suspend dom 'test_domain' InvokeMethod(RequestStateChange): CIM_ERR_NOT_SUPPORTED: State not supported Bug:<00012> -------------------------------------------------------------------- ComputerSystem - 35_start_reset.py: PASS -------------------------------------------------------------------- ComputerSystem - 40_RSC_start.py: PASS -------------------------------------------------------------------- ComputerSystem - 41_cs_to_settingdefinestate.py: PASS -------------------------------------------------------------------- ComputerSystem - 42_cs_gi_errs.py: PASS -------------------------------------------------------------------- ComputerSystemIndication - 01_created_indication.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 01_forward.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 02_reverse.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 03_reverse_errs.py: PASS -------------------------------------------------------------------- ElementAllocatedFromPool - 04_forward_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 01_forward.py: PASS -------------------------------------------------------------------- ElementCapabilities - 02_reverse.py: PASS -------------------------------------------------------------------- ElementCapabilities - 03_forward_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 04_reverse_errs.py: PASS -------------------------------------------------------------------- ElementCapabilities - 05_hostsystem_cap.py: PASS -------------------------------------------------------------------- ElementConforms - 01_forward.py: FAIL ERROR - verify_fields() exception: u'KVM_AllocationCapabilities' ERROR - Exception: Failed to verify instance CIM_ERR_INVALID_CLASS: Linux_ComputerSystem -------------------------------------------------------------------- ElementConforms - 02_reverse.py: PASS -------------------------------------------------------------------- ElementConforms - 03_ectp_fwd_errs.py: PASS -------------------------------------------------------------------- ElementConforms - 04_ectp_rev_errs.py: PASS -------------------------------------------------------------------- ElementSettingData - 01_forward.py: PASS -------------------------------------------------------------------- ElementSettingData - 03_esd_assoc_with_rasd_errs.py: PASS -------------------------------------------------------------------- EnabledLogicalElementCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- EnabledLogicalElementCapabilities - 02_elecap_gi_errs.py: PASS -------------------------------------------------------------------- HostSystem - 01_enum.py: PASS -------------------------------------------------------------------- HostSystem - 02_hostsystem_to_rasd.py: PASS -------------------------------------------------------------------- HostSystem - 03_hs_to_settdefcap.py: PASS -------------------------------------------------------------------- HostSystem - 04_hs_to_EAPF.py: PASS -------------------------------------------------------------------- HostSystem - 05_hs_gi_errs.py: PASS -------------------------------------------------------------------- HostSystem - 06_hs_to_vsms.py: PASS -------------------------------------------------------------------- HostedAccessPoint - 01_forward.py: PASS -------------------------------------------------------------------- HostedAccessPoint - 02_reverse.py: PASS -------------------------------------------------------------------- HostedDependency - 01_forward.py: PASS -------------------------------------------------------------------- HostedDependency - 02_reverse.py: PASS -------------------------------------------------------------------- HostedDependency - 03_enabledstate.py: PASS -------------------------------------------------------------------- HostedDependency - 04_reverse_errs.py: PASS -------------------------------------------------------------------- HostedResourcePool - 01_forward.py: PASS -------------------------------------------------------------------- HostedResourcePool - 02_reverse.py: PASS -------------------------------------------------------------------- HostedResourcePool - 03_forward_errs.py: PASS -------------------------------------------------------------------- HostedResourcePool - 04_reverse_errs.py: PASS -------------------------------------------------------------------- HostedService - 01_forward.py: PASS -------------------------------------------------------------------- HostedService - 02_reverse.py: PASS -------------------------------------------------------------------- HostedService - 03_forward_errs.py: PASS -------------------------------------------------------------------- HostedService - 04_reverse_errs.py: PASS -------------------------------------------------------------------- KVMRedirectionSAP - 01_enum_KVMredSAP.py: PASS -------------------------------------------------------------------- LogicalDisk - 01_disk.py: PASS -------------------------------------------------------------------- LogicalDisk - 02_nodevs.py: PASS -------------------------------------------------------------------- LogicalDisk - 03_ld_gi_errs.py: PASS -------------------------------------------------------------------- Memory - 01_memory.py: PASS -------------------------------------------------------------------- Memory - 02_defgetmem.py: PASS -------------------------------------------------------------------- Memory - 03_mem_gi_errs.py: PASS -------------------------------------------------------------------- NetworkPort - 01_netport.py: PASS -------------------------------------------------------------------- NetworkPort - 02_np_gi_errors.py: PASS -------------------------------------------------------------------- NetworkPort - 03_user_netport.py: PASS -------------------------------------------------------------------- Processor - 01_processor.py: PASS -------------------------------------------------------------------- Processor - 02_definesys_get_procs.py: PASS -------------------------------------------------------------------- Processor - 03_proc_gi_errs.py: PASS -------------------------------------------------------------------- Profile - 01_enum.py: PASS -------------------------------------------------------------------- Profile - 02_profile_to_elec.py: PASS -------------------------------------------------------------------- Profile - 03_rprofile_gi_errs.py: PASS -------------------------------------------------------------------- RASD - 01_verify_rasd_fields.py: PASS -------------------------------------------------------------------- RASD - 02_enum.py: PASS -------------------------------------------------------------------- RASD - 03_rasd_errs.py: PASS -------------------------------------------------------------------- RASD - 04_disk_rasd_size.py: PASS -------------------------------------------------------------------- RASD - 05_disk_rasd_emu_type.py: PASS -------------------------------------------------------------------- RedirectionService - 01_enum_crs.py: PASS -------------------------------------------------------------------- RedirectionService - 02_enum_crscap.py: PASS -------------------------------------------------------------------- RedirectionService - 03_RedirectionSAP_errs.py: PASS -------------------------------------------------------------------- ReferencedProfile - 01_verify_refprof.py: PASS -------------------------------------------------------------------- ReferencedProfile - 02_refprofile_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 01_forward.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 02_reverse.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 03_forward_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 04_reverse_errs.py: PASS -------------------------------------------------------------------- ResourceAllocationFromPool - 05_RAPF_err.py: PASS -------------------------------------------------------------------- ResourcePool - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePool - 02_rp_gi_errors.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationCapabilities - 02_rpcc_gi_errs.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 01_enum.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 02_rcps_gi_errors.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 03_CreateResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 04_CreateChildResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 05_AddResourcesToResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 06_RemoveResourcesFromResourcePool.py: PASS -------------------------------------------------------------------- ResourcePoolConfigurationService - 07_DeleteResourcePool.py: PASS -------------------------------------------------------------------- ServiceAccessBySAP - 01_forward.py: PASS -------------------------------------------------------------------- ServiceAccessBySAP - 02_reverse.py: PASS -------------------------------------------------------------------- SettingsDefine - 01_forward.py: PASS -------------------------------------------------------------------- SettingsDefine - 02_reverse.py: PASS -------------------------------------------------------------------- SettingsDefine - 03_sds_fwd_errs.py: PASS -------------------------------------------------------------------- SettingsDefine - 04_sds_rev_errs.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 01_forward.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 03_forward_errs.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 04_forward_vsmsdata.py: PASS -------------------------------------------------------------------- SettingsDefineCapabilities - 05_reverse_vsmcap.py: PASS -------------------------------------------------------------------- SystemDevice - 01_forward.py: PASS -------------------------------------------------------------------- SystemDevice - 02_reverse.py: PASS -------------------------------------------------------------------- SystemDevice - 03_fwderrs.py: PASS -------------------------------------------------------------------- VSSD - 01_enum.py: PASS -------------------------------------------------------------------- VSSD - 02_bootldr.py: SKIP -------------------------------------------------------------------- VSSD - 03_vssd_gi_errs.py: PASS -------------------------------------------------------------------- VSSD - 04_vssd_to_rasd.py: PASS -------------------------------------------------------------------- VirtualSystemManagementCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemManagementCapabilities - 02_vsmcap_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 01_definesystem_name.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 02_destroysystem.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 03_definesystem_ess.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 04_definesystem_ers.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 05_destroysystem_neg.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 06_addresource.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 07_addresource_neg.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 08_modifyresource.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 09_procrasd_persist.py: FAIL ERROR - VirtualQuantity is 0, expected 3 ERROR - Exception: details CPU scheduling not set properly for the dom: procrasd_persist_dom -------------------------------------------------------------------- VirtualSystemManagementService - 10_hv_version.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 11_define_memrasdunits.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 12_referenced_config.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 13_refconfig_additional_devs.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 14_define_sys_disk.py: PASS -------------------------------------------------------------------- VirtualSystemManagementService - 15_mod_system_settings.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationCapabilities - 02_vsmc_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationService - 01_migratable_host.py: SKIP -------------------------------------------------------------------- VirtualSystemMigrationService - 02_host_migrate_type.py: SKIP -------------------------------------------------------------------- VirtualSystemMigrationService - 05_migratable_host_errs.py: SKIP -------------------------------------------------------------------- VirtualSystemMigrationSettingData - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemMigrationSettingData - 02_vsmsd_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 01_forward.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 02_reverse.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 03_vssdc_fwd_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSettingDataComponent - 04_vssdc_rev_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotService - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotService - 02_vs_sservice_gi_errs.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotServiceCapabilities - 01_enum.py: PASS -------------------------------------------------------------------- VirtualSystemSnapshotServiceCapabilities - 02_vs_sservicecap_gi_errs.py: PASS -------------------------------------------------------------------- -- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik at linux.vnet.ibm.com From deeptik at linux.vnet.ibm.com Fri Feb 27 11:17:21 2009 From: deeptik at linux.vnet.ibm.com (Deepti B. Kalakeri) Date: Fri, 27 Feb 2009 03:17:21 -0800 Subject: [Libvirt-cim] [PATCH] [TES] Modifying SystemDevice/02_reverse.py tc to use cim_define() and cim_start(), cim_destroy() Message-ID: # HG changeset patch # User Deepti B. Kalakeri # Date 1235733425 28800 # Node ID a26791e2890e59a1f02e5d7050da3d75f8f4e0e2 # Parent 6f8acadebaaeb10823656391e89e58439e64ac77 [TES] Modifying SystemDevice/02_reverse.py tc to use cim_define() and cim_start(), cim_destroy(). Tested with Xen/XenFV for RHEL 5.3 rpm. Signed-off-by: Deepti B. Kalakeri diff -r 6f8acadebaae -r a26791e2890e suites/libvirt-cim/cimtest/SystemDevice/02_reverse.py --- a/suites/libvirt-cim/cimtest/SystemDevice/02_reverse.py Tue Feb 17 08:48:52 2009 -0800 +++ b/suites/libvirt-cim/cimtest/SystemDevice/02_reverse.py Fri Feb 27 03:17:05 2009 -0800 @@ -53,8 +53,17 @@ def main(): cxml = virt_xml(test_dom, mac=test_mac) devlist = [ "NetworkPort", "Memory", "LogicalDisk", "Processor", "PointingDevice", "DisplayController" ] - cxml.create(options.ip) + ret = cxml.cim_define(options.ip) + if not ret: + logger.error('Unable to define domain %s', test_dom) + return FAIL + + status = cxml.cim_start(options.ip) + if status != PASS: + cxml.undefine(options.ip) + logger.error('Unable to start domain %s', test_dom) + return FAIL key_list = ["DeviceID", "CreationClassName", "SystemName", "SystemCreationClassName"] @@ -64,7 +73,7 @@ def main(): devs = enumclass.EnumInstances(options.ip, cn) except Exception, detail: logger.error("Exception: %s", detail) - cxml.destroy(options.ip) + cxml.cim_destroy(options.ip) cxml.undefine(options.ip) return FAIL @@ -82,18 +91,18 @@ def main(): SystemCreationClassName=dev.SystemCreationClassName) except Exception, detail: logger.error("Exception: %s", detail) - cxml.destroy(options.ip) + cxml.cim_destroy(options.ip) cxml.undefine(options.ip) return FAIL if systems == None: logger.error("Device association failed") - cxml.destroy(options.ip) + cxml.cim_destroy(options.ip) cxml.undefine(options.ip) return FAIL elif len(systems) != 1: logger.error("%s systems returned, expected 1", len(systems)) - cxml.destroy(options.ip) + cxml.cim_destroy(options.ip) cxml.undefine(options.ip) return FAIL @@ -111,7 +120,7 @@ def main(): logger.error("Association returned wrong system: %s", system.Name) - cxml.destroy(options.ip) + cxml.cim_destroy(options.ip) cxml.undefine(options.ip) return status From rmaciel at linux.vnet.ibm.com Fri Feb 27 21:10:17 2009 From: rmaciel at linux.vnet.ibm.com (Richard Maciel) Date: Fri, 27 Feb 2009 18:10:17 -0300 Subject: [Libvirt-cim] [PATCH 1 of 8] This patch exposes error messages from libvirt calls in Virt_Device.c In-Reply-To: References: Message-ID: <5d628d1be4d7777f8a14.1235769017@localhost.localdomain> # HG changeset patch # User Richard Maciel # Date 1235768794 10800 # Node ID 5d628d1be4d7777f8a14d1cc1818dcb26baae857 # Parent ebe6e8f75d1731f7c8d49777db6b547b92944b35 This patch exposes error messages from libvirt calls in Virt_Device.c Signed-off-by: Richard Maciel diff -r ebe6e8f75d17 -r 5d628d1be4d7 src/Virt_Device.c --- a/src/Virt_Device.c Thu Feb 19 12:24:12 2009 -0800 +++ b/src/Virt_Device.c Fri Feb 27 18:06:34 2009 -0300 @@ -742,10 +742,11 @@ dom = virDomainLookupByName(conn, domain); if (dom == NULL) { - cu_statusf(broker, &s, - CMPI_RC_ERR_NOT_FOUND, - "No such instance (no domain for %s)", - name); + virt_set_status(broker, &s, + CMPI_RC_ERR_NOT_FOUND, + conn, + "No such instance (no domain for %s)", + name); goto err; } From rmaciel at linux.vnet.ibm.com Fri Feb 27 21:10:18 2009 From: rmaciel at linux.vnet.ibm.com (Richard Maciel) Date: Fri, 27 Feb 2009 18:10:18 -0300 Subject: [Libvirt-cim] [PATCH 2 of 8] This patch exposes error messages from libvirt calls in Virt_DevicePool.c In-Reply-To: References: Message-ID: # HG changeset patch # User Richard Maciel # Date 1235768841 10800 # Node ID b5acbf9fcbba3568fba1f7ce2d721a0886a177ab # Parent 5d628d1be4d7777f8a14d1cc1818dcb26baae857 This patch exposes error messages from libvirt calls in Virt_DevicePool.c Signed-off-by: Richard Maciel diff -r 5d628d1be4d7 -r b5acbf9fcbba src/Virt_DevicePool.c --- a/src/Virt_DevicePool.c Fri Feb 27 18:06:34 2009 -0300 +++ b/src/Virt_DevicePool.c Fri Feb 27 18:07:21 2009 -0300 @@ -712,9 +712,10 @@ CU_DEBUG("Looking up network `%s'", netname); network = virNetworkLookupByName(conn, netname); if (network == NULL) { - cu_statusf(broker, &s, - CMPI_RC_ERR_FAILED, - "No such NetworkPool: %s", netname); + virt_set_status(broker, &s, + CMPI_RC_ERR_FAILED, + conn, + "No such NetworkPool: %s", netname); goto out; } @@ -740,9 +741,10 @@ bridge = virNetworkGetBridgeName(network); if (asprintf(&cap, "Bridge: %s", bridge) == -1) { - cu_statusf(broker, &s, - CMPI_RC_ERR_FAILED, - ""); + virt_set_status(broker, &s, + CMPI_RC_ERR_FAILED, + conn, + ""); goto out; } @@ -780,9 +782,11 @@ nets = virConnectNumOfNetworks(conn); if (nets < 0) { - cu_statusf(broker, &s, - CMPI_RC_ERR_FAILED, - "Unable to list networks"); + virt_set_status(broker, &s, + CMPI_RC_ERR_FAILED, + conn, + "Unable to list networks"); + goto out; } From rmaciel at linux.vnet.ibm.com Fri Feb 27 21:10:19 2009 From: rmaciel at linux.vnet.ibm.com (Richard Maciel) Date: Fri, 27 Feb 2009 18:10:19 -0300 Subject: [Libvirt-cim] [PATCH 3 of 8] This patch exposes error messages from libvirt calls in VirtualSystemManagementService In-Reply-To: References: Message-ID: <26cbb2d7160307834cfa.1235769019@localhost.localdomain> # HG changeset patch # User Richard Maciel # Date 1235768854 10800 # Node ID 26cbb2d7160307834cfa1fb5d77079532e534774 # Parent b5acbf9fcbba3568fba1f7ce2d721a0886a177ab This patch exposes error messages from libvirt calls in VirtualSystemManagementService Signed-off-by: Richard Maciel diff -r b5acbf9fcbba -r 26cbb2d71603 src/Virt_EnabledLogicalElementCapabilities.c --- a/src/Virt_EnabledLogicalElementCapabilities.c Fri Feb 27 18:07:21 2009 -0300 +++ b/src/Virt_EnabledLogicalElementCapabilities.c Fri Feb 27 18:07:34 2009 -0300 @@ -123,9 +123,10 @@ for (i = 0; i < count; i++) { name = virDomainGetName(list[i]); if (name == NULL) { - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_FAILED, - "Unable to get domain names"); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_FAILED, + conn, + "Unable to get domain names"); goto end; } @@ -169,10 +170,11 @@ dom = virDomainLookupByName(conn, name); if (dom == NULL) { - cu_statusf(broker, &s, - CMPI_RC_ERR_NOT_FOUND, - "No such instance (%s)", - name); + virt_set_status(broker, &s, + CMPI_RC_ERR_NOT_FOUND, + conn, + "No such instance (%s)", + name); goto out; } From rmaciel at linux.vnet.ibm.com Fri Feb 27 21:10:16 2009 From: rmaciel at linux.vnet.ibm.com (Richard Maciel) Date: Fri, 27 Feb 2009 18:10:16 -0300 Subject: [Libvirt-cim] [PATCH 0 of 8] This series of patches exposes more errors from libvirt calls Message-ID: From rmaciel at linux.vnet.ibm.com Fri Feb 27 21:10:23 2009 From: rmaciel at linux.vnet.ibm.com (Richard Maciel) Date: Fri, 27 Feb 2009 18:10:23 -0300 Subject: [Libvirt-cim] [PATCH 7 of 8] This patch exposes additional error messages from libvirt calls in Virt_VirtualSystemManagementService In-Reply-To: References: Message-ID: # HG changeset patch # User Richard Maciel # Date 1235768879 10800 # Node ID f88cd8378600ba6a44183cf3f39a9a76c14b930c # Parent 2c0bcc9729ec08d18516a8febd1c636bcb0b0dd1 This patch exposes additional error messages from libvirt calls in Virt_VirtualSystemManagementService * All get_dominfo() calls are considered as targets for error message exposition, since they internally call virDomainGetXMLDesc Signed-off-by: Richard Maciel diff -r 2c0bcc9729ec -r f88cd8378600 src/Virt_VirtualSystemManagementService.c --- a/src/Virt_VirtualSystemManagementService.c Fri Feb 27 18:07:52 2009 -0300 +++ b/src/Virt_VirtualSystemManagementService.c Fri Feb 27 18:07:59 2009 -0300 @@ -1075,9 +1075,10 @@ ret = get_dominfo(dom, domain); if (ret == 0) { - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_FAILED, - "Error getting referenced configuration"); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_FAILED, + conn, + "Error getting referenced configuration"); goto out; } @@ -1334,10 +1335,11 @@ } if (!get_dominfo(dom, &dominfo)) { - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_FAILED, - "Unable to find existing domain `%s' to modify", - name); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_FAILED, + conn, + "Unable to find existing domain `%s' to modify", + name); goto out; } @@ -1721,9 +1723,10 @@ CMPIObjectPath *op; if (!get_dominfo(dom, &dominfo)) { - cu_statusf(_BROKER, &s, - CMPI_RC_ERR_FAILED, - "Internal error (getting domain info)"); + virt_set_status(_BROKER, &s, + CMPI_RC_ERR_FAILED, + virDomainGetConnect(dom), + "Internal error (getting domain info)"); goto out; } From rmaciel at linux.vnet.ibm.com Fri Feb 27 21:10:20 2009 From: rmaciel at linux.vnet.ibm.com (Richard Maciel) Date: Fri, 27 Feb 2009 18:10:20 -0300 Subject: [Libvirt-cim] [PATCH 4 of 8] This patch exposes error messages from libvirt calls in Virt_KVMRedirectionSAP In-Reply-To: References: Message-ID: <0eb7481830366f10b777.1235769020@localhost.localdomain> # HG changeset patch # User Richard Maciel # Date 1235768862 10800 # Node ID 0eb7481830366f10b777b949425e228200935a51 # Parent 26cbb2d7160307834cfa1fb5d77079532e534774 This patch exposes error messages from libvirt calls in Virt_KVMRedirectionSAP Signed-off-by: Richard Maciel diff -r 26cbb2d71603 -r 0eb748183036 src/Virt_KVMRedirectionSAP.c --- a/src/Virt_KVMRedirectionSAP.c Fri Feb 27 18:07:34 2009 -0300 +++ b/src/Virt_KVMRedirectionSAP.c Fri Feb 27 18:07:42 2009 -0300 @@ -392,17 +392,19 @@ dom = virDomainLookupByName(conn, sys); if (dom == NULL) { - cu_statusf(broker, &s, - CMPI_RC_ERR_NOT_FOUND, - "No such instance (%s)", - sys); + virt_set_status(broker, &s, + CMPI_RC_ERR_NOT_FOUND, + conn, + "No such instance (%s)", + sys); goto out; } if (!check_graphics(dom, &dominfo)) { - cu_statusf(broker, &s, - CMPI_RC_ERR_FAILED, - "No console device for this guest"); + virt_set_status(broker, &s, + CMPI_RC_ERR_FAILED, + conn, + "No console device for this guest"); goto out; } From rmaciel at linux.vnet.ibm.com Fri Feb 27 21:10:24 2009 From: rmaciel at linux.vnet.ibm.com (Richard Maciel) Date: Fri, 27 Feb 2009 18:10:24 -0300 Subject: [Libvirt-cim] [PATCH 8 of 8] This patch exposes error messages from libvirt calls in Virt_VSSD.c In-Reply-To: References: Message-ID: <2424d687cc8e9ff4b198.1235769024@localhost.localdomain> # HG changeset patch # User Richard Maciel # Date 1235768886 10800 # Node ID 2424d687cc8e9ff4b198858baa1ea7cbc97c523e # Parent f88cd8378600ba6a44183cf3f39a9a76c14b930c This patch exposes error messages from libvirt calls in Virt_VSSD.c Signed-off-by: Richard Maciel diff -r f88cd8378600 -r 2424d687cc8e src/Virt_VSSD.c --- a/src/Virt_VSSD.c Fri Feb 27 18:07:59 2009 -0300 +++ b/src/Virt_VSSD.c Fri Feb 27 18:08:06 2009 -0300 @@ -254,10 +254,11 @@ dom = virDomainLookupByName(conn, name); if (dom == NULL) { - cu_statusf(broker, &s, - CMPI_RC_ERR_NOT_FOUND, - "No such instance (%s)", - name); + virt_set_status(broker, &s, + CMPI_RC_ERR_NOT_FOUND, + conn, + "No such instance (%s)", + name); goto out; } From rmaciel at linux.vnet.ibm.com Fri Feb 27 21:10:22 2009 From: rmaciel at linux.vnet.ibm.com (Richard Maciel) Date: Fri, 27 Feb 2009 18:10:22 -0300 Subject: [Libvirt-cim] [PATCH 6 of 8] This patch exposes error messages from libvirt calls in Virt_SettingsDefineCapabilities.c In-Reply-To: References: Message-ID: <2c0bcc9729ec08d18516.1235769022@localhost.localdomain> # HG changeset patch # User Richard Maciel # Date 1235768872 10800 # Node ID 2c0bcc9729ec08d18516a8febd1c636bcb0b0dd1 # Parent b4e20e3062bfca3bdebfd8b74920733927193665 This patch exposes error messages from libvirt calls in Virt_SettingsDefineCapabilities.c Signed-off-by: Richard Maciel diff -r b4e20e3062bf -r 2c0bcc9729ec src/Virt_SettingsDefineCapabilities.c --- a/src/Virt_SettingsDefineCapabilities.c Fri Feb 27 18:07:47 2009 -0300 +++ b/src/Virt_SettingsDefineCapabilities.c Fri Feb 27 18:07:52 2009 -0300 @@ -453,9 +453,10 @@ rc = virConnectGetVersion(conn, &version); CU_DEBUG("libvir : version=%ld, rc=%d", version, rc); if (rc != 0) { - cu_statusf(_BROKER, s, - CMPI_RC_ERR_FAILED, - "Could not get xen version"); + virt_set_status(_BROKER, s, + CMPI_RC_ERR_FAILED, + conn, + "Unable to get xen version"); goto out; } From rmaciel at linux.vnet.ibm.com Fri Feb 27 21:10:21 2009 From: rmaciel at linux.vnet.ibm.com (Richard Maciel) Date: Fri, 27 Feb 2009 18:10:21 -0300 Subject: [Libvirt-cim] [PATCH 5 of 8] This patch exposes error messages from libvirt calls in Virt_RASD.c In-Reply-To: References: Message-ID: # HG changeset patch # User Richard Maciel # Date 1235768867 10800 # Node ID b4e20e3062bfca3bdebfd8b74920733927193665 # Parent 0eb7481830366f10b777b949425e228200935a51 This patch exposes error messages from libvirt calls in Virt_RASD.c Signed-off-by: Richard Maciel diff -r 0eb748183036 -r b4e20e3062bf src/Virt_RASD.c --- a/src/Virt_RASD.c Fri Feb 27 18:07:42 2009 -0300 +++ b/src/Virt_RASD.c Fri Feb 27 18:07:47 2009 -0300 @@ -115,9 +115,11 @@ dom = virDomainLookupByName(conn, domain); if (dom == NULL) { - cu_statusf(broker, &s, - CMPI_RC_ERR_NOT_FOUND, - "Domain `%s' not found while getting info", domain); + virt_set_status(broker, &s, + CMPI_RC_ERR_NOT_FOUND, + conn, + "Domain `%s' not found while getting info", + domain); goto out; } @@ -451,10 +453,11 @@ dev = find_dev(conn, type, host, devid); if (!dev) { - cu_statusf(broker, &s, - CMPI_RC_ERR_NOT_FOUND, - "No such instance (%s)", - name); + virt_set_status(broker, &s, + CMPI_RC_ERR_NOT_FOUND, + conn, + "No such instance (%s)", + name); goto out; } From kaitlin at linux.vnet.ibm.com Sat Feb 28 00:32:18 2009 From: kaitlin at linux.vnet.ibm.com (Kaitlin Rupert) Date: Fri, 27 Feb 2009 16:32:18 -0800 Subject: [Libvirt-cim] Test Run Summary (Feb 27 2009): KVM on Fedora release 10 (Cambridge) with Pegasus In-Reply-To: <49A7941A.3010901@linux.vnet.ibm.com> References: <49A7941A.3010901@linux.vnet.ibm.com> Message-ID: <49A88612.1080902@linux.vnet.ibm.com> > ================================================= > FAIL Test Summary: > ElementConforms - 01_forward.py: FAIL Hi Daisy, Are you working on a fix for this issue? Thanks! -- Kaitlin Rupert IBM Linux Technology Center kaitlin at linux.vnet.ibm.com