[PATCH] [TEST] Modifying common_util.py for netnfs
by Deepti B. Kalakeri
# HG changeset patch
# User Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
# Date 1252697570 25200
# Node ID 083b2af038f14bf24b9117e048ae836b638ad711
# Parent 53b05fc42fbc04ce45eea4a09ad84881fbcf6d3e
[TEST] Modifying common_util.py for netnfs.
Modifying common_util.py to use existing nfs setup if configuring the new one fails.
Tested with KVM and current sources on SLES11.
Signed-off-by: Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
diff -r 53b05fc42fbc -r 083b2af038f1 suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/08_CreateDiskResourcePool.py
--- a/suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/08_CreateDiskResourcePool.py Thu Sep 10 09:40:21 2009 -0400
+++ b/suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/08_CreateDiskResourcePool.py Fri Sep 11 12:32:50 2009 -0700
@@ -66,13 +66,13 @@
if rev >= libvirt_netfs_pool_support and \
pool_type == dp_types['DISK_POOL_NETFS']:
- status , src_mnt_dir, dir_mnt_dir = nfs_netfs_setup(server)
+ status , host_addr, src_mnt_dir, dir_mnt_dir = nfs_netfs_setup(server)
if status != PASS:
logger.error("Failed to get pool_attr for NETFS diskpool type")
- return FAIL, pool_attr
+ return status, pool_attr
+ pool_attr['Host'] = host_addr
pool_attr['SourceDirectory'] = src_mnt_dir
- pool_attr['Host'] = server
pool_attr['Path'] = dir_mnt_dir
return PASS, pool_attr
@@ -103,6 +103,7 @@
return SKIP
status = FAIL
+ pool_attr = None
# For now the test case support only the creation of
# dir type disk pool, netfs later change to fs and disk pooltypes etc
for key, value in dp_types.iteritems():
@@ -147,7 +148,7 @@
logger.error("Exception details: %s", details)
if key == 'DISK_POOL_NETFS':
netfs_cleanup(server, pool_attr)
- return status
+ return FAIL
return status
diff -r 53b05fc42fbc -r 083b2af038f1 suites/libvirt-cim/lib/XenKvmLib/common_util.py
--- a/suites/libvirt-cim/lib/XenKvmLib/common_util.py Thu Sep 10 09:40:21 2009 -0400
+++ b/suites/libvirt-cim/lib/XenKvmLib/common_util.py Fri Sep 11 12:32:50 2009 -0700
@@ -25,6 +25,8 @@
import random
from time import sleep
from tempfile import mkdtemp
+from commands import getstatusoutput
+from socket import gethostbyaddr
from distutils.file_util import move_file
from XenKvmLib.test_xml import *
from XenKvmLib.test_doms import *
@@ -517,20 +519,50 @@
return PASS
-def clean_temp_files(server, src_dir_for_mnt, dest_dir_to_mnt):
- cmd = "rm -rf %s %s" % (src_dir_for_mnt, dest_dir_to_mnt)
+def check_existing_nfs():
+ host_addr = src_dir = None
+ s, o = getstatusoutput("mount")
+ lines = o.splitlines()
+ for line in lines:
+ if "nfs" == line.split()[-2]:
+ addr, src_dir = line.split()[0].split(":")
+ host_addr = gethostbyaddr(addr)[0]
+
+ return host_addr, src_dir
+
+def clean_temp_files(server, src_dir_for_mnt, dest_dir_to_mnt, cmd):
rc, out = utils.run_remote(server, cmd)
if rc != PASS:
logger.error("Please delete %s %s if present on %s",
src_dir_for_mnt, dest_dir_to_mnt, server)
+def check_haddr_is_localhost(server, host_addr):
+ # This function is required to determine if setup a new nfs
+ # setup or using an old one.
+ new_nfs_server_setup = False
+ local_addr = gethostbyaddr(server)
+ if host_addr in local_addr:
+ new_nfs_server_setup = True
+
+ return new_nfs_server_setup
def netfs_cleanup(server, pool_attr):
- src_dir = os.path.basename(pool_attr['SourceDirectory'])
+ src_dir = pool_attr['SourceDirectory']
dst_dir = pool_attr['Path']
+ host_addr = pool_attr['Host']
+
+ # Determine if we are using existing nfs setup or configured a new one
+ new_nfs_server_setup = check_haddr_is_localhost(server, host_addr)
+ if new_nfs_server_setup == False:
+ cmd = "rm -rf %s " % (dst_dir)
+ else:
+ cmd = "rm -rf %s %s" % (src_dir, dst_dir)
# Remove the temp dir created .
- clean_temp_files(server, src_dir, dst_dir)
+ clean_temp_files(server, src_dir, dst_dir, cmd)
+
+ if new_nfs_server_setup == False:
+ return
# Restore the original exports file.
if os.path.exists(back_exports_file):
@@ -544,9 +576,8 @@
if rc != PASS:
logger.error("Could not restart NFS server on '%s'" % server)
-def netfs_config(server, nfs_server_bin):
+def netfs_config(server, nfs_server_bin, dest_dir_to_mnt):
src_dir_for_mnt = mkdtemp()
- dest_dir_to_mnt = mkdtemp()
try:
# Backup the original exports file.
@@ -572,23 +603,32 @@
except Exception, detail:
logger.error("Exception details : %s", detail)
- clean_temp_files(server, src_dir_for_mnt, dest_dir_to_mnt)
- return FAIL, None, None
+ cmd = "rm -rf %s %s " % (src_dir_for_mnt,dest_dir_to_mnt)
+ clean_temp_files(server, src_dir_for_mnt, dest_dir_to_mnt, cmd)
+ return SKIP, None
- return PASS, src_dir_for_mnt, dest_dir_to_mnt
+ return PASS, src_dir_for_mnt
def nfs_netfs_setup(server):
nfs_server_bin = get_nfs_bin(server)
+ dest_dir = mkdtemp()
+
# Before going ahead verify that nfs server is available on machine..
ret = nfs_config(server, nfs_server_bin)
if ret != PASS:
logger.error("Failed to configure NFS on '%s'", server)
- return FAIL, None, None
-
- ret, src_dir, destr_dir = netfs_config(server, nfs_server_bin)
- if ret != PASS:
- logger.error("Failed to configure netfs on '%s'", server)
- return FAIL, None, None
-
- return PASS, src_dir, destr_dir
+ logger.info("Trying to look for nfs mounted dir on '%s'...", server)
+ server, src_dir = check_existing_nfs()
+ if server == None or src_dir == None:
+ logger.error("No nfs mount information on '%s' ", server)
+ return SKIP, None, None, None
+ else:
+ return PASS, server, src_dir, dest_dir
+ else:
+ ret, src_dir = netfs_config(server, nfs_server_bin, dest_dir)
+ if ret != PASS:
+ logger.error("Failed to configure netfs on '%s'", server)
+ return ret, None, None, None
+
+ return PASS, server, src_dir, dest_dir
15 years, 3 months
[PATCH] Fixed Storage Volume RASD template path
by Richard Maciel
# HG changeset patch
# User Richard Maciel <rmaciel(a)linux.vnet.ibm.com>
# Date 1252693562 10800
# Node ID 53acca5af901b37e1818c161ca00ff3b937b910c
# Parent 697757e558c1f6fde30288d762fd86a4dabdc8f8
Fixed Storage Volume RASD template path
Signed-off-by: Richard Maciel <rmaciel(a)linux.vnet.ibm.com>
diff -r 697757e558c1 -r 53acca5af901 src/Virt_SettingsDefineCapabilities.c
--- a/src/Virt_SettingsDefineCapabilities.c Fri Sep 04 14:12:46 2009 -0700
+++ b/src/Virt_SettingsDefineCapabilities.c Fri Sep 11 15:26:02 2009 -0300
@@ -1089,7 +1089,7 @@
name = "tmp.img";
CMSetProperty(inst, "VolumeName", (CMPIValue *)name, CMPI_chars);
- path = "/var/lib/libvirt/images/";
+ path = pool->pool_info.disk.path;
CMSetProperty(inst, "Path", (CMPIValue *)path, CMPI_chars);
alloc = 0;
15 years, 3 months
Test Run Summary (Sep 10 2009): KVM on Fedora release 11 (Leonidas) with sfcb
by Kaitlin Rupert
=================================================
Test Run Summary (Sep 10 2009): KVM on Fedora release 11 (Leonidas) with sfcb
=================================================
Distro: Fedora release 11 (Leonidas)
Kernel: 2.6.30.5-28.rc2.fc11.x86_64
libvirt: 0.6.2
Hypervisor: QEMU 0.10.6
CIMOM: sfcb sfcbd 1.3.5preview
Libvirt-cim revision: 973
Libvirt-cim changeset: 9c8eb2dfae84
Cimtest revision: 776
Cimtest changeset: 9e08670a3c37
=================================================
FAIL : 33
XFAIL : 5
SKIP : 10
PASS : 121
-----------------
Total : 169
=================================================
FAIL Test Summary:
ReferencedProfile - 01_verify_refprof.py: FAIL
ReferencedProfile - 02_refprofile_errs.py: FAIL
ResourceAllocationFromPool - 01_forward.py: FAIL
ResourceAllocationFromPool - 02_reverse.py: FAIL
ResourceAllocationFromPool - 03_forward_errs.py: FAIL
ResourceAllocationFromPool - 04_reverse_errs.py: FAIL
ResourceAllocationFromPool - 05_RAPF_err.py: FAIL
ResourcePoolConfigurationCapabilities - 01_enum.py: FAIL
ResourcePoolConfigurationCapabilities - 02_rpcc_gi_errs.py: FAIL
ResourcePoolConfigurationService - 01_enum.py: FAIL
ResourcePoolConfigurationService - 02_rcps_gi_errors.py: FAIL
ResourcePoolConfigurationService - 03_CreateResourcePool.py: FAIL
ResourcePoolConfigurationService - 04_CreateChildResourcePool.py: FAIL
ResourcePoolConfigurationService - 06_RemoveResourcesFromResourcePool.py: FAIL
ResourcePoolConfigurationService - 07_DeleteResourcePool.py: FAIL
ResourcePoolConfigurationService - 08_CreateDiskResourcePool.py: FAIL
ResourcePoolConfigurationService - 09_DeleteDiskPool.py: FAIL
ResourcePoolConfigurationService - 10_create_storagevolume.py: FAIL
ServiceAccessBySAP - 02_reverse.py: FAIL
ServiceAffectsElement - 01_forward.py: FAIL
ServiceAffectsElement - 02_reverse.py: FAIL
VSSD - 03_vssd_gi_errs.py: FAIL
VirtualSystemManagementCapabilities - 01_enum.py: FAIL
VirtualSystemManagementCapabilities - 02_vsmcap_gi_errs.py: FAIL
VirtualSystemMigrationCapabilities - 01_enum.py: FAIL
VirtualSystemMigrationCapabilities - 02_vsmc_gi_errs.py: FAIL
VirtualSystemMigrationSettingData - 01_enum.py: FAIL
VirtualSystemMigrationSettingData - 02_vsmsd_gi_errs.py: FAIL
VirtualSystemSnapshotService - 01_enum.py: FAIL
VirtualSystemSnapshotService - 02_vs_sservice_gi_errs.py: FAIL
VirtualSystemSnapshotService - 03_create_snapshot.py: FAIL
VirtualSystemSnapshotServiceCapabilities - 01_enum.py: FAIL
VirtualSystemSnapshotServiceCapabilities - 02_vs_sservicecap_gi_errs.py: FAIL
=================================================
XFAIL Test Summary:
ComputerSystem - 32_start_reboot.py: XFAIL
ComputerSystem - 33_suspend_reboot.py: XFAIL
ResourcePoolConfigurationService - 05_AddResourcesToResourcePool.py: XFAIL
VirtualSystemManagementService - 16_removeresource.py: XFAIL
VirtualSystemManagementService - 22_addmulti_brg_interface.py: XFAIL
=================================================
SKIP Test Summary:
ComputerSystem - 02_nosystems.py: SKIP
ComputerSystemMigrationJobIndication - 01_csmig_ind_for_offline_mig.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
VirtualSystemMigrationService - 06_remote_live_migration.py: SKIP
VirtualSystemMigrationService - 07_remote_offline_migration.py: SKIP
VirtualSystemMigrationService - 08_remote_restart_resume_migration.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 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 - 34_start_disable.py: PASS
--------------------------------------------------------------------
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
--------------------------------------------------------------------
ComputerSystemMigrationJobIndication - 01_csmig_ind_for_offline_mig.py: SKIP
--------------------------------------------------------------------
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: 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: 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
--------------------------------------------------------------------
RASD - 06_parent_net_pool.py: PASS
--------------------------------------------------------------------
RASD - 07_parent_disk_pool.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: FAIL
ERROR - KVM_ReferencedProfile returned 0 Profiles objects, expected atleast 1
Provider not found or not loadable
--------------------------------------------------------------------
ReferencedProfile - 02_refprofile_errs.py: FAIL
ERROR - Unexpected rc code 6 and description Provider not found or not loadable
ERROR - ------ FAILED: to verify INVALID_Instid_KeyName.------
--------------------------------------------------------------------
ResourceAllocationFromPool - 01_forward.py: FAIL
ERROR - No RASD associated with GraphicsPool/0
Provider not found or not loadable
--------------------------------------------------------------------
ResourceAllocationFromPool - 02_reverse.py: FAIL
ERROR - No associated pool with RAFP_dom/hda
Provider not found or not loadable
--------------------------------------------------------------------
ResourceAllocationFromPool - 03_forward_errs.py: FAIL
ERROR - Unexpected rc code 6 and description Provider not found or not loadable
--------------------------------------------------------------------
ResourceAllocationFromPool - 04_reverse_errs.py: FAIL
ERROR - Unexpected rc code 6 and description Provider not found or not loadable
--------------------------------------------------------------------
ResourceAllocationFromPool - 05_RAPF_err.py: FAIL
ERROR - Unexpected rc code 6 and description Provider not found or not loadable
ERROR - ------FAILED: to verify the RAFP.------
--------------------------------------------------------------------
ResourcePool - 01_enum.py: PASS
--------------------------------------------------------------------
ResourcePool - 02_rp_gi_errors.py: PASS
--------------------------------------------------------------------
ResourcePoolConfigurationCapabilities - 01_enum.py: FAIL
ERROR - KVM_ResourcePoolConfigurationCapabilities return 0 instances, excepted only 1 instance
Provider not found or not loadable
--------------------------------------------------------------------
ResourcePoolConfigurationCapabilities - 02_rpcc_gi_errs.py: FAIL
ERROR - Unexpected errno 6 and desc Provider not found or not loadable
ERROR - Expected No such instance (InstanceID) 6
ERROR - ------ FAILED: Invalid InstanceID Key Value.------
--------------------------------------------------------------------
ResourcePoolConfigurationService - 01_enum.py: FAIL
ERROR - Too many service error
Class not found
Provider not found or not loadable
--------------------------------------------------------------------
ResourcePoolConfigurationService - 02_rcps_gi_errors.py: FAIL
ERROR - No KVM_ResourcePoolConfigurationService instances returned
Provider not found or not loadable
--------------------------------------------------------------------
ResourcePoolConfigurationService - 03_CreateResourcePool.py: FAIL
ERROR - Unexpected rc code 6 and description Provider not found or not loadable
InvokeMethod(CreateResourcePool): Provider not found or not loadable
--------------------------------------------------------------------
ResourcePoolConfigurationService - 04_CreateChildResourcePool.py: FAIL
ERROR - Exception in create_pool()
ERROR - Exception details: (6, u'Provider not found or not loadable')
ERROR - Error in networkpool creation
InvokeMethod(CreateChildResourcePool): Provider not found or not loadable
--------------------------------------------------------------------
ResourcePoolConfigurationService - 05_AddResourcesToResourcePool.py: XFAIL
ERROR - Unexpected rc code 6 and description Provider not found or not loadable
InvokeMethod(AddResourcesToResourcePool): Provider not found or not loadable
Provider not found or not loadable
Bug:<92173>
--------------------------------------------------------------------
ResourcePoolConfigurationService - 06_RemoveResourcesFromResourcePool.py: FAIL
ERROR - Unexpected rc code 6 and description Provider not found or not loadable
InvokeMethod(RemoveResourcesFromResourcePool): Provider not found or not loadable
--------------------------------------------------------------------
ResourcePoolConfigurationService - 07_DeleteResourcePool.py: FAIL
ERROR - Exception in create_pool()
ERROR - Exception details: (6, u'Provider not found or not loadable')
ERROR - Error in networkpool creation
InvokeMethod(CreateChildResourcePool): Provider not found or not loadable
--------------------------------------------------------------------
ResourcePoolConfigurationService - 08_CreateDiskResourcePool.py: FAIL
ERROR - Exception in create_pool()
ERROR - Exception details: (6, u'Provider not found or not loadable')
ERROR - Exception details: Failed to create 'DISK_POOL_NETFS' type diskpool 'DISK_POOL_NETFS'
InvokeMethod(CreateChildResourcePool): Provider not found or not loadable
--------------------------------------------------------------------
ResourcePoolConfigurationService - 09_DeleteDiskPool.py: FAIL
ERROR - Exception in create_pool()
ERROR - Exception details: (6, u'Provider not found or not loadable')
ERROR - Failed to create diskpool 'dp_pool'
InvokeMethod(CreateChildResourcePool): Provider not found or not loadable
--------------------------------------------------------------------
ResourcePoolConfigurationService - 10_create_storagevolume.py: FAIL
ERROR - Exception details: (6, u'Provider not found or not loadable')
InvokeMethod(CreateResourceInPool): Provider not found or not loadable
--------------------------------------------------------------------
ServiceAccessBySAP - 01_forward.py: PASS
--------------------------------------------------------------------
ServiceAccessBySAP - 02_reverse.py: FAIL
ERROR - Association didn't return any redirection service instance
Traceback (most recent call last):
File "/usr/lib64/python2.6/logging/__init__.py", line 754, in emit
msg = self.format(record)
File "/usr/lib64/python2.6/logging/__init__.py", line 637, in format
return fmt.format(record)
File "/usr/lib64/python2.6/logging/__init__.py", line 425, in format
record.message = record.getMessage()
File "/usr/lib64/python2.6/logging/__init__.py", line 295, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Traceback (most recent call last):
File "/usr/lib64/python2.6/logging/__init__.py", line 754, in emit
msg = self.format(record)
File "/usr/lib64/python2.6/logging/__init__.py", line 637, in format
return fmt.format(record)
File "/usr/lib64/python2.6/logging/__init__.py", line 425, in format
record.message = record.getMessage()
File "/usr/lib64/python2.6/logging/__init__.py", line 295, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Traceback (most recent call last):
File "/usr/lib64/python2.6/logging/__init__.py", line 754, in emit
msg = self.format(record)
File "/usr/lib64/python2.6/logging/__init__.py", line 637, in format
return fmt.format(record)
File "/usr/lib64/python2.6/logging/__init__.py", line 425, in format
record.message = record.getMessage()
File "/usr/lib64/python2.6/logging/__init__.py", line 295, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Provider not found or not loadable
--------------------------------------------------------------------
ServiceAffectsElement - 01_forward.py: FAIL
01_forward.py:51: DeprecationWarning: the sets module is deprecated
from sets import Set
ERROR - Exception in fn verify_assoc()
ERROR - Exception details: Failed to get insts for domain SAE_dom
Provider not found or not loadable
--------------------------------------------------------------------
ServiceAffectsElement - 02_reverse.py: FAIL
02_reverse.py:47: DeprecationWarning: the sets module is deprecated
from sets import Set
ERROR - Exception : Got '0' records for 'KVM_ServiceAffectsElement' association with 'KVM_ComputerSystem',expected 1
Provider not found or not loadable
--------------------------------------------------------------------
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: FAIL
ERROR - Unexpected errno 6 and desc Provider not found or not loadable
ERROR - Expected No such instance (InstanceID) 6
ERROR - ------ FAILED: Invalid InstanceID Key Value.------
--------------------------------------------------------------------
VSSD - 04_vssd_to_rasd.py: PASS
--------------------------------------------------------------------
VSSD - 05_set_uuid.py: PASS
--------------------------------------------------------------------
VSSD - 06_duplicate_uuid.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementCapabilities - 01_enum.py: FAIL
01_enum.py:26: DeprecationWarning: the sets module is deprecated
from sets import Set
ERROR - 'KVM_VirtualSystemManagementCapabilities' returned '0' instance, excepted only 1
Provider not found or not loadable
--------------------------------------------------------------------
VirtualSystemManagementCapabilities - 02_vsmcap_gi_errs.py: FAIL
ERROR - Unexpected errno 6 and desc Provider not found or not loadable
ERROR - Expected No such instance (InstanceID) 6
ERROR - ------ FAILED: Invalid InstanceID Key Value.------
--------------------------------------------------------------------
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
--------------------------------------------------------------------
VirtualSystemManagementService - 16_removeresource.py: XFAIL
ERROR - 0 RASD insts for domain/mouse:ps2
No such instance (no device domain/mouse:ps2)
Bug:<00014>
--------------------------------------------------------------------
VirtualSystemManagementService - 17_removeresource_neg.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 18_define_sys_bridge.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 19_definenetwork_ers.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 20_verify_vnc_password.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 21_createVS_verifyMAC.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 22_addmulti_brg_interface.py: XFAIL
ERROR - Error invoking AddRS: add_net_res
ERROR - (1, u"Unable to change (0) device: this function is not supported by the hypervisor: device type 'interface' cannot be attached")
ERROR - Failed to destroy Virtual Network 'my_network1'
InvokeMethod(AddResourceSettings): Unable to change (0) device: this function is not supported by the hypervisor: device type 'interface' cannot be attached
Bug:<00015>
--------------------------------------------------------------------
VirtualSystemManagementService - 23_verify_duplicate_mac_err.py: PASS
--------------------------------------------------------------------
VirtualSystemMigrationCapabilities - 01_enum.py: FAIL
ERROR - KVM_VirtualSystemMigrationCapabilities return 0 instances, excepted only 1 instance
Provider not found or not loadable
--------------------------------------------------------------------
VirtualSystemMigrationCapabilities - 02_vsmc_gi_errs.py: FAIL
ERROR - Unexpected errno 6 and desc Provider not found or not loadable
ERROR - Expected No such instance (InstanceID) 6
ERROR - ------ FAILED: Invalid InstanceID Key Value.------
--------------------------------------------------------------------
VirtualSystemMigrationService - 01_migratable_host.py: SKIP
--------------------------------------------------------------------
VirtualSystemMigrationService - 02_host_migrate_type.py: SKIP
--------------------------------------------------------------------
VirtualSystemMigrationService - 05_migratable_host_errs.py: SKIP
--------------------------------------------------------------------
VirtualSystemMigrationService - 06_remote_live_migration.py: SKIP
--------------------------------------------------------------------
VirtualSystemMigrationService - 07_remote_offline_migration.py: SKIP
--------------------------------------------------------------------
VirtualSystemMigrationService - 08_remote_restart_resume_migration.py: SKIP
--------------------------------------------------------------------
VirtualSystemMigrationSettingData - 01_enum.py: FAIL
ERROR - KVM_VirtualSystemMigrationSettingData return 0 instances, excepted only 1 instance
Provider not found or not loadable
--------------------------------------------------------------------
VirtualSystemMigrationSettingData - 02_vsmsd_gi_errs.py: FAIL
ERROR - Unexpected errno 6 and desc Provider not found or not loadable
ERROR - Expected No such instance (InstanceID) 6
ERROR - ------ FAILED: Invalid InstanceID Key Value.------
--------------------------------------------------------------------
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: FAIL
ERROR - KVM_VirtualSystemSnapshotService return 0 instances, excepted only 1 instance
Class not found
Provider not found or not loadable
--------------------------------------------------------------------
VirtualSystemSnapshotService - 02_vs_sservice_gi_errs.py: FAIL
ERROR - list index out of range
Provider not found or not loadable
--------------------------------------------------------------------
VirtualSystemSnapshotService - 03_create_snapshot.py: FAIL
ERROR - Exp at least one KVM_VirtualSystemSnapshotServiceCapabilities
ERROR - Exception: Unable to get VSSSC instance
ERROR - Failed to remove snapshot file for snapshot_vm
Provider not found or not loadable
--------------------------------------------------------------------
VirtualSystemSnapshotServiceCapabilities - 01_enum.py: FAIL
ERROR - KVM_VirtualSystemSnapshotServiceCapabilities return 0 instances, excepted only 1 instance
Provider not found or not loadable
--------------------------------------------------------------------
VirtualSystemSnapshotServiceCapabilities - 02_vs_sservicecap_gi_errs.py: FAIL
ERROR - Unexpected errno 6 and desc Provider not found or not loadable
ERROR - Expected No such instance (InstanceID) 6
ERROR - ------ FAILED: Invalid InstanceID Key Value.------
--------------------------------------------------------------------
15 years, 3 months
[PATCH 1 of 6] Add resource indication feature Makefile changes.
by Sharad Mishra
# HG changeset patch
# User snmishra(a)us.ibm.com
# Date 1252482482 25200
# Node ID cba20af2b6748dbd0bf32fad6941ae69425694dd
# Parent 234141bf7f0368531c884334b1da5b94cc038758
Add resource indication feature Makefile changes.
MOF and Registration files for the new indication
provider were added. Changes were made to src/Makefile.am
to build new resource indication provider.
Signed-off-by: Sharad Mishra <snmishra(a)us.ibm.com>
diff -r 234141bf7f03 -r cba20af2b674 Makefile.am
--- a/Makefile.am Thu Sep 03 12:52:47 2009 -0700
+++ b/Makefile.am Wed Sep 09 00:48:02 2009 -0700
@@ -27,6 +27,7 @@
schema/RegisteredProfile.mof \
schema/ElementConformsToProfile.mof \
schema/ComputerSystemIndication.mof \
+
schema/ResourceAllocationSettingDataIndication.mof \
schema/ComputerSystemMigrationIndication.mof \
schema/Virt_ResourceAllocationSettingData.mof \
schema/ResourceAllocationSettingData.mof \
@@ -101,6 +102,7 @@
schema/DiskPool.registration \
schema/HostedResourcePool.registration \
schema/ComputerSystemIndication.registration \
+
schema/ResourceAllocationSettingDataIndication.registration \
schema/ComputerSystemMigrationIndication.registration \
schema/ResourceAllocationSettingData.registration
\
schema/ResourcePoolConfigurationService.registration \
diff -r 234141bf7f03 -r cba20af2b674 src/Makefile.am
--- a/src/Makefile.am Thu Sep 03 12:52:47 2009 -0700
+++ b/src/Makefile.am Wed Sep 09 00:48:02 2009 -0700
@@ -48,6 +48,7 @@
libVirt_VirtualSystemSnapshotServiceCapabilities.la
\
libVirt_SystemDevice.la \
libVirt_ComputerSystemIndication.la \
+ libVirt_ResourceAllocationSettingDataIndication.la
\
libVirt_ComputerSystemMigrationIndication.la \
libVirt_VirtualSystemManagementCapabilities.la \
libVirt_AllocationCapabilities.la \
@@ -86,6 +87,10 @@
libVirt_ComputerSystemIndication_la_SOURCES =
Virt_ComputerSystemIndication.c
libVirt_ComputerSystemIndication_la_LIBADD = -lVirt_ComputerSystem
-lVirt_HostSystem -lpthread -lrt
+libVirt_ResourceAllocationSettingDataIndication_la_DEPENDENCIES =
libVirt_ComputerSystem.la
+libVirt_ResourceAllocationSettingDataIndication_la_SOURCES =
Virt_ResourceAllocationSettingDataIndication.c
+libVirt_ResourceAllocationSettingDataIndication_la_LIBADD =
-lVirt_ComputerSystem
+
libVirt_ComputerSystemMigrationIndication_la_DEPENDENCIES =
libVirt_ComputerSystem.la
libVirt_ComputerSystemMigrationIndication_la_SOURCES =
Virt_ComputerSystemMigrationIndication.c
libVirt_ComputerSystemMigrationIndication_la_LIBADD =
-lVirt_ComputerSystem
15 years, 3 months
[PATCH 2 of 6] Add resource indication mof and registration files.
by Sharad Mishra
# HG changeset patch
# User snmishra(a)us.ibm.com
# Date 1252482482 25200
# Node ID 639d5782a9f3f195b0ca88878ee169cc0efd0f18
# Parent cba20af2b6748dbd0bf32fad6941ae69425694dd
Add resource indication mof and registration files.
Signed-off-by: Sharad Mishra <snmishra(a)us.ibm.com>
diff -r cba20af2b674 -r 639d5782a9f3
schema/ResourceAllocationSettingDataIndication.mof
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/schema/ResourceAllocationSettingDataIndication.mof
Wed Sep 09 00:48:02 2009 -0700
@@ -0,0 +1,66 @@
+// Copyright IBM Corp. 2007
+
+[Description ("Xen_ResourceAllocationSettingData created"),
+ Provider("cmpi::Virt_ResourceAllocationSettingDataIndication")
+]
+class Xen_ResourceAllocationSettingDataCreatedIndication :
CIM_InstCreation
+{
+};
+
+[Description ("Xen_ResourceAllocationSettingData deleted"),
+ Provider("cmpi::Virt_ResourceAllocationSettingDataIndication")
+]
+class Xen_ResourceAllocationSettingDataDeletedIndication :
CIM_InstDeletion
+{
+};
+
+[Description ("Xen_ResourceAllocationSettingData modified"),
+ Provider("cmpi::Virt_ResourceAllocationSettingDataIndication")
+]
+class Xen_ResourceAllocationSettingDataModifiedIndication :
CIM_InstModification
+{
+};
+
+
+[Description ("KVM_ResourceAllocationSettingData created"),
+ Provider("cmpi::Virt_ResourceAllocationSettingDataIndication")
+]
+class KVM_ResourceAllocationSettingDataCreatedIndication :
CIM_InstCreation
+{
+};
+
+[Description ("KVM_ResourceAllocationSettingData deleted"),
+ Provider("cmpi::Virt_ResourceAllocationSettingDataIndication")
+]
+class KVM_ResourceAllocationSettingDataDeletedIndication :
CIM_InstDeletion
+{
+};
+
+[Description ("KVM_ResourceAllocationSettingData modified"),
+ Provider("cmpi::Virt_ResourceAllocationSettingDataIndication")
+]
+class KVM_ResourceAllocationSettingDataModifiedIndication :
CIM_InstModification
+{
+};
+
+
+[Description ("LXC_ResourceAllocationSettingData created"),
+ Provider("cmpi::Virt_ResourceAllocationSettingDataIndication")
+]
+class LXC_ResourceAllocationSettingDataCreatedIndication :
CIM_InstCreation
+{
+};
+
+[Description ("LXC_ResourceAllocationSettingData deleted"),
+ Provider("cmpi::Virt_ResourceAllocationSettingDataIndication")
+]
+class LXC_ResourceAllocationSettingDataDeletedIndication :
CIM_InstDeletion
+{
+};
+
+[Description ("LXC_ResourceAllocationSettingData modified"),
+ Provider("cmpi::Virt_ResourceAllocationSettingDataIndication")
+]
+class LXC_ResourceAllocationSettingDataModifiedIndication :
CIM_InstModification
+{
+};
diff -r cba20af2b674 -r 639d5782a9f3
schema/ResourceAllocationSettingDataIndication.registration
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/schema/ResourceAllocationSettingDataIndication.registration
Wed Sep 09 00:48:02 2009 -0700
@@ -0,0 +1,11 @@
+# Copyright IBM Corp. 2007
+# Classname Namespace ProviderName ProviderModule ProviderTypes
+Xen_ResourceAllocationSettingDataCreatedIndication root/virt
Virt_ResourceAllocationSettingDataIndicationProvider
Virt_ResourceAllocationSettingDataIndication indication method
+Xen_ResourceAllocationSettingDataDeletedIndication root/virt
Virt_ResourceAllocationSettingDataIndicationProvider
Virt_ResourceAllocationSettingDataIndication indication method
+Xen_ResourceAllocationSettingDataModifiedIndication root/virt
Virt_ResourceAllocationSettingDataIndicationProvider
Virt_ResourceAllocationSettingDataIndication indication method
+KVM_ResourceAllocationSettingDataCreatedIndication root/virt
Virt_ResourceAllocationSettingDataIndicationProvider
Virt_ResourceAllocationSettingDataIndication indication method
+KVM_ResourceAllocationSettingDataDeletedIndication root/virt
Virt_ResourceAllocationSettingDataIndicationProvider
Virt_ResourceAllocationSettingDataIndication indication method
+KVM_ResourceAllocationSettingDataModifiedIndication root/virt
Virt_ResourceAllocationSettingDataIndicationProvider
Virt_ResourceAllocationSettingDataIndication indication method
+LXC_ResourceAllocationSettingDataCreatedIndication root/virt
Virt_ResourceAllocationSettingDataIndicationProvider
Virt_ResourceAllocationSettingDataIndication indication method
+LXC_ResourceAllocationSettingDataDeletedIndication root/virt
Virt_ResourceAllocationSettingDataIndicationProvider
Virt_ResourceAllocationSettingDataIndication indication method
+LXC_ResourceAllocationSettingDataModifiedIndication root/virt
Virt_ResourceAllocationSettingDataIndicationProvider
Virt_ResourceAllocationSettingDataIndication indication method
15 years, 3 months
[PATCH 3 of 6] Modify Virt_CS so set_source_inst_props() can be used by other providers.
by Sharad Mishra
# HG changeset patch
# User snmishra(a)us.ibm.com
# Date 1252482482 25200
# Node ID 2632c5204a9a6a485f5406ea016957340895f69f
# Parent 639d5782a9f3f195b0ca88878ee169cc0efd0f18
Modify Virt_CS so set_source_inst_props() can be used by other providers
Signed-off-by: Sharad Mishra <snmishra(a)us.ibm.com>
diff -r 639d5782a9f3 -r 2632c5204a9a src/Virt_ComputerSystemIndication.c
--- a/src/Virt_ComputerSystemIndication.c Wed Sep 09
00:48:02 2009 -0700
+++ b/src/Virt_ComputerSystemIndication.c Wed Sep 09
00:48:02 2009 -0700
@@ -192,9 +192,9 @@
return ret;
}
-static void set_source_inst_props(const CMPIBroker *broker,
+void set_source_inst_props(const CMPIBroker *broker,
const CMPIContext *context,
- CMPIObjectPath *ref,
+ const CMPIObjectPath *ref,
CMPIInstance *ind)
{
const char *host;
diff -r 639d5782a9f3 -r 2632c5204a9a src/Virt_ComputerSystemIndication.h
--- a/src/Virt_ComputerSystemIndication.h Wed Sep 09
00:48:02 2009 -0700
+++ b/src/Virt_ComputerSystemIndication.h Wed Sep 09
00:48:02 2009 -0700
@@ -29,6 +29,10 @@
const CMPIObjectPath *newsystem,
char *type);
+void set_source_inst_props(const CMPIBroker *broker,
+ const CMPIContext *context,
+ const CMPIObjectPath *ref,
+ CMPIInstance *ind);
#endif
/*
15 years, 3 months
[PATCH 4 of 6] Modify Virt_RASD so that rasd_from_vdev() can be used by other providers.
by Sharad Mishra
# HG changeset patch
# User snmishra(a)us.ibm.com
# Date 1252482482 25200
# Node ID 14910082e1d791b092dcb43e067d91b400e09aa2
# Parent 2632c5204a9a6a485f5406ea016957340895f69f
Modify Virt_RASD so that rasd_from_vdev() can be used by other providers
Signed-off-by: Sharad Mishra <snmishra(a)us.ibm.com>
diff -r 2632c5204a9a -r 14910082e1d7 src/Virt_RASD.c
--- a/src/Virt_RASD.c Wed Sep 09 00:48:02 2009 -0700
+++ b/src/Virt_RASD.c Wed Sep 09 00:48:02 2009 -0700
@@ -368,7 +368,7 @@
return s;
}
-static CMPIInstance *rasd_from_vdev(const CMPIBroker *broker,
+CMPIInstance *rasd_from_vdev(const CMPIBroker *broker,
struct virt_device *dev,
const char *host,
const CMPIObjectPath *ref,
diff -r 2632c5204a9a -r 14910082e1d7 src/Virt_RASD.h
--- a/src/Virt_RASD.h Wed Sep 09 00:48:02 2009 -0700
+++ b/src/Virt_RASD.h Wed Sep 09 00:48:02 2009 -0700
@@ -66,6 +66,13 @@
const uint16_t type,
const char *host,
struct virt_device **list);
+
+CMPIInstance *rasd_from_vdev(const CMPIBroker *broker,
+ struct virt_device *dev,
+ const char *host,
+ const CMPIObjectPath *ref,
+ const char **properties);
+
#endif
/*
15 years, 3 months