[PATCH] [TEST] Add checks for CIMOM and libvirtd
by Kaitlin Rupert
# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1219263226 25200
# Node ID 6d3fac9485bc4f4e259d82af1c1fb7c0028b03ae
# Parent 1364e9ddf32b315c7e752636b601fa54acd6e44d
[TEST] Add checks for CIMOM and libvirtd.
Also, clean up some old comments and remove some unneeded white space.
Signed-off-by: Kaitlin Rupert <karupert(a)us.ibm.com>
diff -r 1364e9ddf32b -r 6d3fac9485bc suites/libvirt-cim/main.py
--- a/suites/libvirt-cim/main.py Wed Aug 20 13:13:39 2008 -0700
+++ b/suites/libvirt-cim/main.py Wed Aug 20 13:13:46 2008 -0700
@@ -35,6 +35,7 @@
from XenKvmLib.classes import get_typed_class
import ConfigParser
from XenKvmLib.reporting import gen_report, send_report
+from VirtLib import utils
parser = OptionParser()
parser.add_option("-i", "--ip", dest="ip", default="localhost",
@@ -84,6 +85,22 @@
status, output = commands.getstatusoutput(cmd)
print "Cleaned log files."
+
+def pre_check(ip):
+ cmd = "ps -ef | grep -v grep | grep cimserver"
+ rc, out = utils.run_remote(ip, cmd)
+ if rc != 0:
+ cmd = "ps -ef | grep -v grep | grep sfcbd"
+ rc, out = utils.run_remote(ip, cmd)
+ if rc != 0:
+ return "A supported CIMOM is not running"
+
+ cmd = "ps -ef | grep -v grep | grep libvirtd"
+ rc, out = utils.run_remote(ip, cmd)
+ if rc != 0:
+ return "libvirtd is not running"
+
+ return None
def get_rcfile_vals():
if not os.access(CIMTEST_RCFILE, os.R_OK):
@@ -135,21 +152,22 @@
parser.print_help()
return 1
+ env_ready = pre_check(options.ip)
+ if env_ready != None:
+ print "\n%s. Please check your environment.\n" % env_ready
+ return 1
+
# HACK: Exporting CIMOM_PORT as an env var, to be able to test things
- # on Director without having to change a lot of code.
- # This will change soon
+ # with a different port
if options.port:
os.environ['CIMOM_PORT'] = str(options.port)
- #
if options.report:
+ to_addr = options.report
from_addr, relay = get_rcfile_vals()
-
if from_addr == None or relay == None:
return 1
- to_addr = options.report
-
testsuite = TestSuite.TestSuite(log=True)
set_python_path()
16 years
[PATCH] (#2) Make HostSystem return the SBLIM ComputerSystem, if present
by Dan Smith
# HG changeset patch
# User Dan Smith <danms(a)us.ibm.com>
# Date 1219269013 25200
# Node ID 08a4190517b844711aa4fd9dbebfdf894ae23a2b
# Parent a55c6df52f5e8108d3e1dc978a2f3b8b32db71dc
(#2) Make HostSystem return the SBLIM ComputerSystem, if present
Changes:
- Make sure we follow the same algorithm as SBLIM (although non-braindead)
to arrive at the fully-qualified hostname. Also use this for the fake
HostSystem for consistency.
Signed-off-by: Dan Smith <danms(a)us.ibm.com>
diff -r a55c6df52f5e -r 08a4190517b8 src/Virt_HostSystem.c
--- a/src/Virt_HostSystem.c Tue Aug 19 14:13:24 2008 -0700
+++ b/src/Virt_HostSystem.c Wed Aug 20 14:50:13 2008 -0700
@@ -22,6 +22,8 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#include <errno.h>
+#include <netdb.h>
#include <cmpidt.h>
#include <cmpift.h>
@@ -36,6 +38,39 @@
const static CMPIBroker *_BROKER;
+static int resolve_host(char *host, char *buf, int size)
+{
+ struct hostent *he;
+
+ he = gethostbyname(host);
+ if (he == NULL) {
+ CU_DEBUG("gethostbyname(%s): %m", host);
+ return -1;
+ }
+
+ strncpy(buf, he->h_name, size);
+
+ return 0;
+}
+
+static int get_fqdn(char *buf, int size)
+{
+ char host[256];
+ int ret = 0;
+
+ if (gethostname(host, sizeof(host)) != 0) {
+ CU_DEBUG("gethostname(): %m");
+ return -1;
+ }
+
+ if (strchr(host, '.') != NULL)
+ strncpy(buf, host, size);
+ else
+ ret = resolve_host(host, buf, size);
+
+ return 0;
+}
+
static int set_host_system_properties(CMPIInstance *instance)
{
CMPIStatus s = {CMPI_RC_OK, NULL};
@@ -48,7 +83,7 @@
(CMPIValue *)CLASSNAME(op), CMPI_chars);
}
- if (gethostname(hostname, sizeof(hostname) - 1) != 0)
+ if (get_fqdn(hostname, sizeof(hostname)) != 0)
strcpy(hostname, "unknown");
CMSetProperty(instance, "Name",
@@ -57,11 +92,9 @@
return 1;
}
-CMPIStatus get_host(const CMPIBroker *broker,
- const CMPIContext *context,
- const CMPIObjectPath *reference,
- CMPIInstance **_inst,
- bool is_get_inst)
+static CMPIStatus fake_host(const CMPIBroker *broker,
+ const CMPIObjectPath *reference,
+ CMPIInstance **_inst)
{
CMPIStatus s = {CMPI_RC_OK, NULL};
CMPIInstance *inst = NULL;
@@ -69,10 +102,9 @@
conn = connect_by_classname(broker, CLASSNAME(reference), &s);
if (conn == NULL) {
- if (is_get_inst)
- cu_statusf(broker, &s,
- CMPI_RC_ERR_NOT_FOUND,
- "No such instance");
+ cu_statusf(broker, &s,
+ CMPI_RC_ERR_NOT_FOUND,
+ "No such instance");
goto out;
}
@@ -89,17 +121,71 @@
}
set_host_system_properties(inst);
+ *_inst = inst;
+ out:
+ virConnectClose(conn);
- if (is_get_inst) {
- s = cu_validate_ref(broker, reference, inst);
- if (s.rc != CMPI_RC_OK)
- goto out;
+ return s;
+}
+
+static CMPIStatus sblim_host(const CMPIBroker *broker,
+ const CMPIContext *context,
+ const CMPIObjectPath *ref,
+ CMPIInstance **inst)
+{
+ CMPIObjectPath *path;
+ CMPIStatus s;
+ const char *cn = "Linux_ComputerSystem";
+ char name[256];
+
+ if (get_fqdn(name, sizeof(name)) != 0) {
+ cu_statusf(broker, &s,
+ CMPI_RC_ERR_FAILED,
+ "Unable to get hostname: %m");
+ return s;
}
- *_inst = inst;
+ path = CMNewObjectPath(broker, "root/cimv2", cn, &s);
+ if ((path == NULL) || (s.rc != CMPI_RC_OK)) {
+ cu_statusf(broker, &s,
+ CMPI_RC_ERR_FAILED,
+ "Unable to create HostSystem path");
+ return s;
+ }
- out:
- virConnectClose(conn);
+ CMAddKey(path, "CreationClassName", cn, CMPI_chars);
+ CMAddKey(path, "Name", name, CMPI_chars);
+
+ *inst = CBGetInstance(broker, context, path, NULL, &s);
+
+ if (s.rc != CMPI_RC_OK) {
+ CU_DEBUG("SBLIM: %i %s", s.rc, CMGetCharPtr(s.msg));
+ } else {
+ CU_DEBUG("SBLIM: Returned instance");
+ }
+
+ return s;
+}
+
+CMPIStatus get_host(const CMPIBroker *broker,
+ const CMPIContext *context,
+ const CMPIObjectPath *reference,
+ CMPIInstance **_inst,
+ bool is_get_inst)
+{
+ CMPIStatus s;
+
+ s = sblim_host(broker, context, reference, _inst);
+ if (s.rc != CMPI_RC_OK)
+ s = fake_host(broker, reference, _inst);
+
+ if (!is_get_inst && (s.rc == CMPI_RC_ERR_NOT_FOUND)) {
+ /* This is not an error */
+ return (CMPIStatus){CMPI_RC_OK, NULL};
+ }
+
+ if ((s.rc == CMPI_RC_OK) && is_get_inst)
+ s = cu_validate_ref(broker, reference, *_inst);
return s;
}
16 years
[PATCH] (#2) Override devices in reference configuration, where the ID is the same
by Dan Smith
# HG changeset patch
# User Dan Smith <danms(a)us.ibm.com>
# Date 1219084718 25200
# Node ID 80e6ea1a1a296d424e15b3771d6753c3f8bbc5d1
# Parent f40ac4d174324f9ee4c76a4a8832704d3439e7dd
(#2) Override devices in reference configuration, where the ID is the same
Currently, we depend on libvirt to return an error if the client's
combination of ReferenceConfig and ResourceSettings results in a duplicate
device. That error is non-obvious in origin. Since two devices that would
result in the same InstanceID cannot be properly represented by the providers
anyway, this patch adds some logic to properly override such a conflicting
device.
To do this, I had to make sure we set the ID in rasd_to_vdev, which wasn't
previously required. The actual insertion of the device into the appropriate
type list is done by a helper function which checks for (and overrides if
appropriate) a duplicate before tacking the new instance on the end of the
list.
Changes:
We were already making the required space for the additional devices,
but I didn't correctly specify the new size then calling add_device_nodup()
function, resulting in a false failure.
Side note: the classify_resources() function is really getting out of hand
and could use some refactoring.
Signed-off-by: Dan Smith <danms(a)us.ibm.com>
diff -r f40ac4d17432 -r 80e6ea1a1a29 src/Virt_VirtualSystemManagementService.c
--- a/src/Virt_VirtualSystemManagementService.c Fri Aug 15 09:30:30 2008 -0700
+++ b/src/Virt_VirtualSystemManagementService.c Mon Aug 18 11:38:38 2008 -0700
@@ -411,6 +411,9 @@
free(dev->dev.net.mac);
dev->dev.net.mac = strdup(val);
+ free(dev->id);
+ dev->id = strdup(dev->dev.net.mac);
+
op = CMGetObjectPath(inst, NULL);
if (op == NULL) {
CU_DEBUG("Unable to get instance path");
@@ -449,6 +452,9 @@
dev->dev.disk.source = strdup(val);
dev->dev.disk.disk_type = disk_type_from_file(val);
+ free(dev->id);
+ dev->id = strdup(dev->dev.disk.virtual_dev);
+
return NULL;
}
@@ -469,6 +475,9 @@
free(dev->dev.disk.source);
dev->dev.disk.source = strdup(val);
dev->dev.disk.disk_type = DISK_FS;
+
+ free(dev->id);
+ dev->id = strdup(dev->dev.disk.virtual_dev);
return NULL;
}
@@ -621,6 +630,33 @@
return true;
}
+static char *add_device_nodup(struct virt_device *dev,
+ struct virt_device *list,
+ int max,
+ int *index)
+{
+ int i;
+
+ for (i = 0; i < *index; i++) {
+ struct virt_device *ptr = &list[i];
+
+ if (STREQC(ptr->id, dev->id)) {
+ CU_DEBUG("Overriding device %s from refconf", ptr->id);
+ cleanup_virt_device(ptr);
+ memcpy(ptr, dev, sizeof(*ptr));
+ return NULL;
+ }
+ }
+
+ if (*index == max)
+ return "Internal error: no more device slots";
+
+ memcpy(&list[*index], dev, sizeof(list[*index]));
+ *index += 1;
+
+ return NULL;
+}
+
static const char *classify_resources(CMPIArray *resources,
const char *ns,
struct domain *domain)
@@ -678,15 +714,33 @@
&domain->dev_mem[0],
ns);
} else if (type == CIM_RES_TYPE_DISK) {
+ struct virt_device dev;
+ int dcount = count + domain->dev_disk_ct;
+
+ memset(&dev, 0, sizeof(dev));
msg = rasd_to_vdev(inst,
domain,
- &domain->dev_disk[domain->dev_disk_ct++],
+ &dev,
ns);
+ if (msg == NULL)
+ msg = add_device_nodup(&dev,
+ domain->dev_disk,
+ dcount,
+ &domain->dev_disk_ct);
} else if (type == CIM_RES_TYPE_NET) {
+ struct virt_device dev;
+ int ncount = count + domain->dev_net_ct;
+
+ memset(&dev, 0, sizeof(dev));
msg = rasd_to_vdev(inst,
domain,
- &domain->dev_net[domain->dev_net_ct++],
+ &dev,
ns);
+ if (msg == NULL)
+ msg = add_device_nodup(&dev,
+ domain->dev_net,
+ ncount,
+ &domain->dev_net_ct);
}
if (msg != NULL)
return msg;
16 years
Xen on Pegasus Test Run Summary for Aug 18 2008
by Guo Lian Yun
=================================================
Xen on Pegasus Test Run Summary for Aug 18 2008
=================================================
Distro: Red Hat Enterprise Linux Server release 5.2 (Tikanga)
Kernel: 2.6.18-92.el5xen
libvirt: 0.3.3
Hypervisor: Xen 3.1.0
CIMOM: Pegasus 2.7.0
Libvirt-cim revision: 667
Libvirt-cim changeset: 86d7161daef6
=================================================
FAIL : 6
XFAIL : 0
SKIP : 3
PASS : 125
-----------------
Total : 134
=================================================
FAIL Test Summary:
LogicalDisk - 03_ld_gi_errs.py: FAIL
Memory - 01_memory.py: FAIL
NetworkPort - 01_netport.py: FAIL
VSSD - 02_bootldr.py: FAIL
VirtualSystemManagementService - 06_addresource.py: FAIL
VirtualSystemManagementService - 08_modifyresource.py: FAIL
=================================================
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
ERROR - Exception: (1, u'CIM_ERR_FAILED: Domain not running')
InvokeMethod(RequestStateChange): CIM_ERR_FAILED: Domain not running
--------------------------------------------------------------------
ComputerSystem - 23_suspend_suspend.py: PASS
InvokeMethod(RequestStateChange): CIM_ERR_FAILED: Domain not running
--------------------------------------------------------------------
ComputerSystem - 27_define_suspend_errs.py: PASS
InvokeMethod(RequestStateChange): CIM_ERR_FAILED: Domain not running
--------------------------------------------------------------------
ComputerSystem - 32_start_reboot.py: PASS
--------------------------------------------------------------------
ComputerSystem - 33_suspend_reboot.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
--------------------------------------------------------------------
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
--------------------------------------------------------------------
LogicalDisk - 01_disk.py: PASS
--------------------------------------------------------------------
LogicalDisk - 02_nodevs.py: SKIP
ERROR - System has defined domains; unable to run
--------------------------------------------------------------------
LogicalDisk - 03_ld_gi_errs.py: FAIL
ERROR - Failed to get instance by the class of Xen_LogicalDisk
ERROR - Exception: (6, u'CIM_ERR_NOT_FOUND: No such instance
(hd_domain/xvda)')
--------------------------------------------------------------------
Memory - 01_memory.py: FAIL
ERROR - Capacity should be 262144 MB instead of 131072 MB
--------------------------------------------------------------------
Memory - 02_defgetmem.py: PASS
--------------------------------------------------------------------
Memory - 03_mem_gi_errs.py: PASS
--------------------------------------------------------------------
NetworkPort - 01_netport.py: FAIL
ERROR - Exception: (6, u'CIM_ERR_NOT_FOUND: No such instance
(test_domain/00:11:22:33:44:55)')
--------------------------------------------------------------------
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
--------------------------------------------------------------------
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
InvokeMethod(CreateResourcePool): CIM_ERR_NOT_SUPPORTED
--------------------------------------------------------------------
ResourcePoolConfigurationService - 04_CreateChildResourcePool.py: PASS
InvokeMethod(CreateChildResourcePool): CIM_ERR_NOT_SUPPORTED
--------------------------------------------------------------------
ResourcePoolConfigurationService - 05_AddResourcesToResourcePool.py: PASS
InvokeMethod(AddResourcesToResourcePool): CIM_ERR_FAILED: Unknown Method
--------------------------------------------------------------------
ResourcePoolConfigurationService - 06_RemoveResourcesFromResourcePool.py:
PASS
InvokeMethod(RemoveResourcesFromResourcePool): CIM_ERR_NOT_SUPPORTED
--------------------------------------------------------------------
ResourcePoolConfigurationService - 07_DeleteResourcePool.py: PASS
InvokeMethod(DeleteResourcePool): CIM_ERR_NOT_SUPPORTED
--------------------------------------------------------------------
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: FAIL
ERROR - NameError : global name 'BaseException' is not defined
Traceback (most recent call last):
File "/data/users/daisy/cimtest/lib/CimTest/Globals.py", line 144, in
do_try
rc = f()
File "02_bootldr.py", line 72, in main
except BaseException, detail :
NameError: global name 'BaseException' is not defined
ERROR - None
CIM_ERR_NOT_FOUND: No such instance (dom)
--------------------------------------------------------------------
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
InvokeMethod(DefineSystem): CIM_ERR_FAILED: Unable to parse embedded
object
--------------------------------------------------------------------
VirtualSystemManagementService - 04_definesystem_ers.py: PASS
InvokeMethod(DefineSystem): CIM_ERR_FAILED: Unable to parse embedded
object
--------------------------------------------------------------------
VirtualSystemManagementService - 05_destroysystem_neg.py: PASS
ERROR - For Invalid Scenario 'noname'
ERROR - For Invalid Scenario 'nonexistent'
InvokeMethod(DestroySystem): CIM_ERR_FAILED: Unable to retrieve domain
name.
InvokeMethod(DestroySystem): CIM_ERR_FAILED: Failed to find domain
--------------------------------------------------------------------
VirtualSystemManagementService - 06_addresource.py: FAIL
ERROR - Error invoking AddRS: add_disk_res
ERROR - (1, u"CIM_ERR_FAILED: Unknown system `rstest_domain'")
InvokeMethod(AddResourceSettings): CIM_ERR_FAILED: Unknown system
`rstest_domain'
--------------------------------------------------------------------
VirtualSystemManagementService - 07_addresource_neg.py: PASS
InvokeMethod(AddResourceSettings): CIM_ERR_FAILED: Unable to parse
embedded object
--------------------------------------------------------------------
VirtualSystemManagementService - 08_modifyresource.py: FAIL
ERROR - Error invoking ModifyRS: mod_vcpu_res
ERROR - (1, u"CIM_ERR_FAILED: Unknown system `rstest_domain'")
InvokeMethod(ModifyResourceSettings): CIM_ERR_FAILED: Unknown system
`rstest_domain'
--------------------------------------------------------------------
VirtualSystemManagementService - 09_procrasd_persist.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 10_hv_version.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 11_define_memrasdunits.py: PASS
--------------------------------------------------------------------
VirtualSystemManagementService - 12_referenced_config.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: PASS
--------------------------------------------------------------------
VirtualSystemMigrationService - 05_migratable_host_errs.py: PASS
InvokeMethod(CheckVirtualSystemIsMigratableToHost): CIM_ERR_FAILED:
Missing key (Name) in ComputerSystem
--------------------------------------------------------------------
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
--------------------------------------------------------------------
16 years
LXC on sfcb Test Run Summary for Aug 18 2008
by Guo Lian Yun
=================================================
LXC on sfcb Test Run Summary for Aug 18 2008
=================================================
Distro: Fedora release 8.92 (Rawhide)
Kernel: 2.6.26-rc2-mm1-netns
libvirt: 0.4.4
Hypervisor: QEMU 0.9.1
CIMOM: sfcb sfcbd 1.3.0
Libvirt-cim revision: 667
Libvirt-cim changeset: 86d7161daef6
=================================================
FAIL : 11
XFAIL : 1
SKIP : 36
PASS : 86
-----------------
Total : 134
=================================================
FAIL Test Summary:
HostSystem - 04_hs_to_EAPF.py: FAIL
VirtualSystemManagementService - 10_hv_version.py: FAIL
VirtualSystemManagementService - 12_referenced_config.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
VirtualSystemSnapshotServiceCapabilities - 01_enum.py: FAIL
VirtualSystemSnapshotServiceCapabilities - 02_vs_sservicecap_gi_errs.py:
FAIL
=================================================
XFAIL Test Summary:
SettingsDefineCapabilities - 03_forward_errs.py: XFAIL
=================================================
SKIP Test Summary:
ComputerSystem - 02_nosystems.py: SKIP
ComputerSystem - 06_paused_active_suspend.py: SKIP
ComputerSystem - 23_suspend_suspend.py: SKIP
ComputerSystem - 32_start_reboot.py: SKIP
ComputerSystem - 33_suspend_reboot.py: SKIP
ComputerSystem - 35_start_reset.py: SKIP
ComputerSystem - 40_RSC_start.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
HostedDependency - 03_enabledstate.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 - 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 - 02_profile_to_elec.py: SKIP
RASD - 04_disk_rasd_size.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
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: SKIP
--------------------------------------------------------------------
ComputerSystem - 22_define_suspend.py: PASS
ERROR - Exception: (1, u'Domain not running')
InvokeMethod(RequestStateChange): Domain not running
--------------------------------------------------------------------
ComputerSystem - 23_suspend_suspend.py: SKIP
--------------------------------------------------------------------
ComputerSystem - 27_define_suspend_errs.py: PASS
InvokeMethod(RequestStateChange): Domain not running
--------------------------------------------------------------------
ComputerSystem - 32_start_reboot.py: SKIP
--------------------------------------------------------------------
ComputerSystem - 33_suspend_reboot.py: SKIP
--------------------------------------------------------------------
ComputerSystem - 35_start_reset.py: SKIP
--------------------------------------------------------------------
ComputerSystem - 40_RSC_start.py: SKIP
--------------------------------------------------------------------
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: 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: FAIL
ERROR - KeyError : u'LXC_ProcessorPool'
Traceback (most recent call last):
File "/data/users/daisy/cimtest/lib/CimTest/Globals.py", line 144, in
do_try
rc = f()
File "04_hs_to_EAPF.py", line 255, in main
in_pllist = pool_init_list(virt, pool, net_name, dpool_name)
File "04_hs_to_EAPF.py", line 99, in pool_init_list
if exp_pllist[CName] == InstID:
KeyError: u'LXC_ProcessorPool'
ERROR - None
--------------------------------------------------------------------
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: SKIP
--------------------------------------------------------------------
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
--------------------------------------------------------------------
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: PASS
--------------------------------------------------------------------
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: SKIP
--------------------------------------------------------------------
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
--------------------------------------------------------------------
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: XFAIL
ERROR - 'LXC_SettingsDefineCapabilities' association failed to
generate an exception and 'WrongClassName' passed.
ERROR - ------ FAILED: Invalid CCName Key Name.------
Bug:<>
--------------------------------------------------------------------
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
InvokeMethod(DefineSystem): Unable to parse embedded object
--------------------------------------------------------------------
VirtualSystemManagementService - 04_definesystem_ers.py: PASS
InvokeMethod(DefineSystem): Unable to parse embedded object
--------------------------------------------------------------------
VirtualSystemManagementService - 05_destroysystem_neg.py: PASS
ERROR - For Invalid Scenario 'noname'
ERROR - For Invalid Scenario 'nonexistent'
InvokeMethod(DestroySystem): Unable to retrieve domain name.
InvokeMethod(DestroySystem): Failed to find domain
--------------------------------------------------------------------
VirtualSystemManagementService - 06_addresource.py: SKIP
--------------------------------------------------------------------
VirtualSystemManagementService - 07_addresource_neg.py: PASS
InvokeMethod(AddResourceSettings): Unable to parse embedded object
--------------------------------------------------------------------
VirtualSystemManagementService - 08_modifyresource.py: SKIP
--------------------------------------------------------------------
VirtualSystemManagementService - 09_procrasd_persist.py: SKIP
--------------------------------------------------------------------
VirtualSystemManagementService - 10_hv_version.py: FAIL
ERROR - CIM says version is `LXC 0.0.0', but libvirt says
`libvir: error : this function is not supported by the hypervisor:
virConnectGetVersion
error: failed to get the hypervisor version'
--------------------------------------------------------------------
VirtualSystemManagementService - 11_define_memrasdunits.py: SKIP
--------------------------------------------------------------------
VirtualSystemManagementService - 12_referenced_config.py: FAIL
ERROR - EnabledState is 3 instead of 2.
ERROR - Try to increase the timeout and run the test again
ERROR - Unable to start rstest_domain
ERROR - Unable to start rstest_domain
--------------------------------------------------------------------
VirtualSystemMigrationCapabilities - 01_enum.py: FAIL
ERROR - LXC_VirtualSystemMigrationCapabilities return 0
instances, excepted only 1 instance
Provider not found or not loadable
--------------------------------------------------------------------
VirtualSystemMigrationCapabilities - 02_vsmc_gi_errs.py: FAIL
Traceback (most recent call last):
File "/usr/lib64/python2.5/logging/__init__.py", line 744, in emit
msg = self.format(record)
File "/usr/lib64/python2.5/logging/__init__.py", line 630, in format
return fmt.format(record)
File "/usr/lib64/python2.5/logging/__init__.py", line 418, in format
record.message = record.getMessage()
File "/usr/lib64/python2.5/logging/__init__.py", line 288, in getMessage
msg = msg % self.args
TypeError: not enough arguments for format string
Traceback (most recent call last):
File "/usr/lib64/python2.5/logging/__init__.py", line 744, in emit
msg = self.format(record)
File "/usr/lib64/python2.5/logging/__init__.py", line 630, in format
return fmt.format(record)
File "/usr/lib64/python2.5/logging/__init__.py", line 418, in format
record.message = record.getMessage()
File "/usr/lib64/python2.5/logging/__init__.py", line 288, in getMessage
msg = msg % self.args
TypeError: not enough arguments for format string
Traceback (most recent call last):
File "/usr/lib64/python2.5/logging/__init__.py", line 744, in emit
msg = self.format(record)
File "/usr/lib64/python2.5/logging/__init__.py", line 630, in format
return fmt.format(record)
File "/usr/lib64/python2.5/logging/__init__.py", line 418, in format
record.message = record.getMessage()
File "/usr/lib64/python2.5/logging/__init__.py", line 288, in getMessage
msg = msg % self.args
TypeError: not enough arguments for format string
ERROR - ------ FAILED: Invalid InstanceID Key Name.------
Traceback (most recent call last):
File "/usr/lib64/python2.5/logging/__init__.py", line 744, in emit
msg = self.format(record)
File "/usr/lib64/python2.5/logging/__init__.py", line 630, in format
return fmt.format(record)
File "/usr/lib64/python2.5/logging/__init__.py", line 418, in format
record.message = record.getMessage()
File "/usr/lib64/python2.5/logging/__init__.py", line 288, in getMessage
msg = msg % self.args
TypeError: not enough arguments for format string
Traceback (most recent call last):
File "/usr/lib64/python2.5/logging/__init__.py", line 744, in emit
msg = self.format(record)
File "/usr/lib64/python2.5/logging/__init__.py", line 630, in format
return fmt.format(record)
File "/usr/lib64/python2.5/logging/__init__.py", line 418, in format
record.message = record.getMessage()
File "/usr/lib64/python2.5/logging/__init__.py", line 288, in getMessage
msg = msg % self.args
TypeError: not enough arguments for format string
Traceback (most recent call last):
File "/usr/lib64/python2.5/logging/__init__.py", line 744, in emit
msg = self.format(record)
File "/usr/lib64/python2.5/logging/__init__.py", line 630, in format
return fmt.format(record)
File "/usr/lib64/python2.5/logging/__init__.py", line 418, in format
record.message = record.getMessage()
File "/usr/lib64/python2.5/logging/__init__.py", line 288, in getMessage
msg = msg % self.args
TypeError: not enough arguments for format string
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
--------------------------------------------------------------------
VirtualSystemMigrationSettingData - 01_enum.py: FAIL
ERROR - LXC_VirtualSystemMigrationSettingData return 0
instances, excepted only 1 instance
Provider not found or not loadable
--------------------------------------------------------------------
VirtualSystemMigrationSettingData - 02_vsmsd_gi_errs.py: FAIL
Traceback (most recent call last):
File "/usr/lib64/python2.5/logging/__init__.py", line 744, in emit
msg = self.format(record)
File "/usr/lib64/python2.5/logging/__init__.py", line 630, in format
return fmt.format(record)
File "/usr/lib64/python2.5/logging/__init__.py", line 418, in format
record.message = record.getMessage()
File "/usr/lib64/python2.5/logging/__init__.py", line 288, in getMessage
msg = msg % self.args
TypeError: not enough arguments for format string
Traceback (most recent call last):
File "/usr/lib64/python2.5/logging/__init__.py", line 744, in emit
msg = self.format(record)
File "/usr/lib64/python2.5/logging/__init__.py", line 630, in format
return fmt.format(record)
File "/usr/lib64/python2.5/logging/__init__.py", line 418, in format
record.message = record.getMessage()
File "/usr/lib64/python2.5/logging/__init__.py", line 288, in getMessage
msg = msg % self.args
TypeError: not enough arguments for format string
Traceback (most recent call last):
File "/usr/lib64/python2.5/logging/__init__.py", line 744, in emit
msg = self.format(record)
File "/usr/lib64/python2.5/logging/__init__.py", line 630, in format
return fmt.format(record)
File "/usr/lib64/python2.5/logging/__init__.py", line 418, in format
record.message = record.getMessage()
File "/usr/lib64/python2.5/logging/__init__.py", line 288, in getMessage
msg = msg % self.args
TypeError: not enough arguments for format string
ERROR - ------ FAILED: to check INVALID_Instid_KeyName.------
--------------------------------------------------------------------
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 - LXC_VirtualSystemSnapshotService return 0 instances,
excepted only 1 instance
Provider not found or not loadable
--------------------------------------------------------------------
VirtualSystemSnapshotService - 02_vs_sservice_gi_errs.py: FAIL
Traceback (most recent call last):
File "/usr/lib64/python2.5/logging/__init__.py", line 744, in emit
msg = self.format(record)
File "/usr/lib64/python2.5/logging/__init__.py", line 630, in format
return fmt.format(record)
File "/usr/lib64/python2.5/logging/__init__.py", line 418, in format
record.message = record.getMessage()
File "/usr/lib64/python2.5/logging/__init__.py", line 288, in getMessage
msg = msg % self.args
TypeError: not enough arguments for format string
Traceback (most recent call last):
File "/usr/lib64/python2.5/logging/__init__.py", line 744, in emit
msg = self.format(record)
File "/usr/lib64/python2.5/logging/__init__.py", line 630, in format
return fmt.format(record)
File "/usr/lib64/python2.5/logging/__init__.py", line 418, in format
record.message = record.getMessage()
File "/usr/lib64/python2.5/logging/__init__.py", line 288, in getMessage
msg = msg % self.args
TypeError: not enough arguments for format string
Traceback (most recent call last):
File "/usr/lib64/python2.5/logging/__init__.py", line 744, in emit
msg = self.format(record)
File "/usr/lib64/python2.5/logging/__init__.py", line 630, in format
return fmt.format(record)
File "/usr/lib64/python2.5/logging/__init__.py", line 418, in format
record.message = record.getMessage()
File "/usr/lib64/python2.5/logging/__init__.py", line 288, in getMessage
msg = msg % self.args
TypeError: not enough arguments for format string
ERROR - ------ FAILED: to check INVALID_CCName_KeyName.------
--------------------------------------------------------------------
VirtualSystemSnapshotServiceCapabilities - 01_enum.py: FAIL
ERROR - LXC_VirtualSystemSnapshotServiceCapabilities return 0
instances, excepted only 1 instance
Provider not found or not loadable
--------------------------------------------------------------------
VirtualSystemSnapshotServiceCapabilities - 02_vs_sservicecap_gi_errs.py:
FAIL
Traceback (most recent call last):
File "/usr/lib64/python2.5/logging/__init__.py", line 744, in emit
msg = self.format(record)
File "/usr/lib64/python2.5/logging/__init__.py", line 630, in format
return fmt.format(record)
File "/usr/lib64/python2.5/logging/__init__.py", line 418, in format
record.message = record.getMessage()
File "/usr/lib64/python2.5/logging/__init__.py", line 288, in getMessage
msg = msg % self.args
TypeError: not enough arguments for format string
Traceback (most recent call last):
File "/usr/lib64/python2.5/logging/__init__.py", line 744, in emit
msg = self.format(record)
File "/usr/lib64/python2.5/logging/__init__.py", line 630, in format
return fmt.format(record)
File "/usr/lib64/python2.5/logging/__init__.py", line 418, in format
record.message = record.getMessage()
File "/usr/lib64/python2.5/logging/__init__.py", line 288, in getMessage
msg = msg % self.args
TypeError: not enough arguments for format string
Traceback (most recent call last):
File "/usr/lib64/python2.5/logging/__init__.py", line 744, in emit
msg = self.format(record)
File "/usr/lib64/python2.5/logging/__init__.py", line 630, in format
return fmt.format(record)
File "/usr/lib64/python2.5/logging/__init__.py", line 418, in format
record.message = record.getMessage()
File "/usr/lib64/python2.5/logging/__init__.py", line 288, in getMessage
msg = msg % self.args
TypeError: not enough arguments for format string
ERROR - ------ FAILED: to check INVALID_Instid_KeyName.------
--------------------------------------------------------------------
16 years
[PATCH] [TEST] #2 Fix VSMS-10_hv_version.py to XFAIL status because that libvirt does not support virConnectGetVersion function
by yunguol@cn.ibm.com
# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1219034073 25200
# Node ID 6a75861bbe432d0cc8f143783cb5d00a75101ecb
# Parent e630c2a2e032d2c6e5f6314790ad1601c1381480
[TEST] #2 Fix VSMS-10_hv_version.py to XFAIL status because that libvirt does not support virConnectGetVersion function
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r e630c2a2e032 -r 6a75861bbe43 suites/libvirt-cim/cimtest/VirtualSystemManagementService/10_hv_version.py
--- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/10_hv_version.py Mon Aug 11 09:05:45 2008 -0700
+++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/10_hv_version.py Sun Aug 17 21:34:33 2008 -0700
@@ -26,9 +26,10 @@
from XenKvmLib import vsms
from CimTest.Globals import do_main
from CimTest.Globals import logger
-from CimTest.ReturnCodes import FAIL, PASS
+from CimTest.ReturnCodes import FAIL, PASS, XFAIL_RC
sup_types = ['Xen', 'XenFV', 'KVM', 'LXC']
+bug_libvirt = "00006"
@do_main(sup_types)
def main():
@@ -51,7 +52,10 @@
if cim_ver != local_ver:
logger.error("CIM says version is `%s', but libvirt says `%s'" \
% (cim_ver, local_ver))
- return FAIL
+ if options.virt == 'LXC':
+ return XFAIL_RC(bug_libvirt)
+ else:
+ return FAIL
else:
logger.info("Verified %s == %s" % (cim_ver, local_ver))
except Exception, details:
16 years
Cimtest Report for LXC on Fedora 9 (2008/08/13)
by Guo Lian Yun
Distro : Fedora 9
Kernel : kernel-2.6.25-0.121.rc5.git4.fc9.x86_64
Libvirt : libvirt-0.4.4
CIMOM : sblim-sfcb-1.3.0
PyWBEM : pywbem-0.6
CIM Schema : cimv216Experimental
LibCMPIutil : 83
LibVirtCIM : 665
CIMTEST : 299
==================================================================
PASS : 97
XFAIL : 3
FAIL : 2
SKIP : 34
-----------------
Total : 134
======================CIMTEST FAIL REPORT=================================
VirtualSystemManagementService - 10_hv_version.py: FAIL
ERROR - CIM says version is `%s', but libvirt says `%s'
VirtualSystemManagementService - 12_referenced_config.py: FAIL
ERROR - EnabledState is 3 instead of 2.
ERROR - Try to increase the timeout and run the test again
ERROR - Unable to start rstest_domain
ERROR - Unable to start rstest_domain
======================CIMTEST 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: SKIP
ComputerSystem - 22_define_suspend.py: PASS
ComputerSystem - 23_suspend_suspend.py: SKIP
ComputerSystem - 27_define_suspend_errs.py: PASS
ComputerSystem - 32_start_reboot.py: SKIP
ComputerSystem - 33_suspend_reboot.py: SKIP
ComputerSystem - 35_start_reset.py: SKIP
ComputerSystem - 40_RSC_start.py: SKIP
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: 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: SKIP
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
LogicalDisk - 01_disk.py: SKIP
LogicalDisk - 02_nodevs.py: PASS
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: PASS
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: SKIP
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
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: XFAIL Bug: Test error:
returned XFAIL without a valid bug string.
ERROR - 'LXC_SettingsDefineCapabilities' association failed to generate
an exception and 'WrongClassName' passed.
ERROR - ------ FAILED: Invalid CCName Key Name.------
Bug:<>
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
VirtualSystemManagementService - 07_addresource_neg.py: PASS
VirtualSystemManagementService - 08_modifyresource.py: SKIP
VirtualSystemManagementService - 09_procrasd_persist.py: SKIP
VirtualSystemManagementService - 10_hv_version.py: FAIL
ERROR - CIM says version is `%s', but libvirt says `%s'
VirtualSystemManagementService - 11_define_memrasdunits.py: SKIP
VirtualSystemManagementService - 12_referenced_config.py: FAIL
ERROR - EnabledState is 3 instead of 2.
ERROR - Try to increase the timeout and run the test again
ERROR - Unable to start rstest_domain
ERROR - Unable to start rstest_domain
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(a)cn.ibm.com
TEL: (86)-21-60922403
Building 10, 399 Ke Yuan Rd, Pudong Shanghai, 201203
16 years
[PATCH] (#2) Remove hardcoded Xen prefix from VSMigrationService
by Kaitlin Rupert
# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1218817830 25200
# Node ID f40ac4d174324f9ee4c76a4a8832704d3439e7dd
# Parent 86d7161daef682ba869fbae74133cfd811f1d306
(#2) Remove hardcoded Xen prefix from VSMigrationService
Also fix prefix of MigrationJob to be that of the virt type.
Removed unnecessary comments and fixed one comment that was over 80 chars in length.
Updates:
-Moved free(type) to after the out: in ref_from_job() to prevent memory leak
Signed-off-by: Kaitlin Rupert <karupert(a)us.ibm.com>
diff -r 86d7161daef6 -r f40ac4d17432 schema/VSMigrationService.mof
--- a/schema/VSMigrationService.mof Thu Aug 14 07:28:22 2008 -0700
+++ b/schema/VSMigrationService.mof Fri Aug 15 09:30:30 2008 -0700
@@ -65,7 +65,7 @@
);
};
-class Virt_MigrationJob : CIM_ConcreteJob {
+class Xen_MigrationJob : CIM_ConcreteJob {
};
[Provider("cmpi::Virt_VSMigrationService")]
diff -r 86d7161daef6 -r f40ac4d17432 src/Virt_VSMigrationService.c
--- a/src/Virt_VSMigrationService.c Thu Aug 14 07:28:22 2008 -0700
+++ b/src/Virt_VSMigrationService.c Fri Aug 15 09:30:30 2008 -0700
@@ -722,8 +722,7 @@
ind_name = ind_type_to_name(ind_type);
- /* FIXME: This is a hack until we un-Xenify this provider */
- ref = CMNewObjectPath(_BROKER, ns, "Xen_Foo", &s);
+ ref = CMGetObjectPath(inst, &s);
if ((ref == NULL) || (s.rc != CMPI_RC_OK)) {
CU_DEBUG("Failed to get job reference");
} else {
@@ -734,15 +733,7 @@
} else {
CU_DEBUG("Unable to get HostSystem properties");
}
- }
- /* FIXME: This should be merged with above once the job path is
- * properly typed
- */
- ref = CMGetObjectPath(inst, &s);
- if ((ref == NULL) || (s.rc != CMPI_RC_OK)) {
- CU_DEBUG("Failed to get job reference");
- } else {
CMPIString *str;
str = CMObjectPathToString(ref, &s);
@@ -758,8 +749,7 @@
CMSetProperty(ind, "SourceInstance",
(CMPIValue *)&inst, CMPI_instance);
- /* Seems like this shouldn't be hardcoded. */
- type = get_typed_class("Xen", ind_name);
+ type = get_typed_class(CLASSNAME(ref), ind_name);
s = stdi_raise_indication(_BROKER, context, type, ns, ind);
@@ -770,33 +760,35 @@
static CMPIInstance *prepare_indication(const CMPIBroker *broker,
CMPIInstance *inst,
- char *ns,
+ struct migration_job *job,
int ind_type,
CMPIStatus *s)
{
const char *ind_name = NULL;
CMPIInstance *ind = NULL;
CMPIInstance *prev_inst = NULL;
+ const char *pfx = NULL;
ind_name = ind_type_to_name(ind_type);
CU_DEBUG("Creating indication.");
- /* Prefix needs to be dynamic */
+
+ pfx = pfx_from_conn(job->conn);
+
ind = get_typed_instance(broker,
- "Xen",
+ pfx,
ind_name,
- ns);
- /* Prefix needs to be dynamic */
+ job->ref_ns);
if (ind == NULL) {
CU_DEBUG("Failed to create ind, type '%s:%s_%s'",
- ns, "Xen", ind_name);
+ job->ref_ns, pfx, ind_name);
goto out;
}
if (ind_type == MIG_MODIFIED) {
- /* Need to copy job inst before attaching as PreviousInstance because
- otherwise the changes we are about to make to job inst are made
- to PreviousInstance as well. */
+ /* Need to copy job inst before attaching as PreviousInstance
+ because otherwise the changes we are about to make to job
+ inst are made to PreviousInstance as well. */
prev_inst = cu_dup_instance(_BROKER, inst, s);
if (s->rc != CMPI_RC_OK || prev_inst == NULL) {
CU_DEBUG("dup_instance failed (%i:%s)", s->rc, s->msg);
@@ -816,10 +808,13 @@
CMPIStatus *s)
{
CMPIObjectPath *ref = NULL;
+ char *type;
+
+ type = get_typed_class(job->ref_cn, "MigrationJob");
ref = CMNewObjectPath(_BROKER,
job->ref_ns,
- "Virt_MigrationJob",
+ type,
s);
if (s->rc != CMPI_RC_OK) {
CU_DEBUG("Failed to create job ref for update");
@@ -833,6 +828,8 @@
CMGetCharPtr(CMObjectPathToString(ref, NULL)));
out:
+ free(type);
+
return ref;
}
@@ -855,7 +852,7 @@
return;
}
- ind = prepare_indication(_BROKER, inst, job->ref_ns, MIG_DELETED, &s);
+ ind = prepare_indication(_BROKER, inst, job, MIG_DELETED, &s);
rc = raise_indication(job->context, MIG_DELETED, job->ref_ns,
inst, ind);
@@ -886,7 +883,7 @@
return;
}
- ind = prepare_indication(_BROKER, inst, job->ref_ns, MIG_MODIFIED, &s);
+ ind = prepare_indication(_BROKER, inst, job, MIG_MODIFIED, &s);
CMSetProperty(inst, "JobState",
(CMPIValue *)&state, CMPI_uint16);
@@ -1238,6 +1235,7 @@
CMPIDateTime *start;
CMPIBoolean autodelete = true;
uint16_t state = CIM_JOBSTATE_STARTING;
+ char *type = NULL;
start = CMNewDateTime(_BROKER, &s);
if ((s.rc != CMPI_RC_OK) || CMIsNullObject(start)) {
@@ -1246,9 +1244,10 @@
"Failed to get job start time");
goto out;
}
+
+ type = get_typed_class(job->ref_cn, "MigrationJob");
- jobinst = _migrate_job_new_instance("Virt_MigrationJob",
- job->ref_ns);
+ jobinst = _migrate_job_new_instance(type, job->ref_ns);
if (jobinst == NULL) {
cu_statusf(_BROKER, &s,
CMPI_RC_ERR_FAILED,
@@ -1291,6 +1290,8 @@
CMSetNameSpace(*job_op, job->ref_ns);
out:
+ free(type);
+
return s;
}
@@ -1362,7 +1363,7 @@
goto out;
}
- ind = prepare_indication(_BROKER, inst, job->ref_ns, MIG_CREATED, &s);
+ ind = prepare_indication(_BROKER, inst, job, MIG_CREATED, &s);
rc = raise_indication(job->context, MIG_CREATED, job->ref_ns,
inst, ind);
if (!rc)
16 years