[Libvirt-cim] [PATCH] [TEST] Add tc to verify VSMS.RemoveResourceSettings() with correct resource

Guo Lian Yun yunguol at cn.ibm.com
Mon Mar 16 09:20:50 UTC 2009


libvirt-cim-bounces at redhat.com wrote on 2009-03-14 03:01:14:

> >  > > +    drasd = get_typed_class(options.virt,
> >  > 'DiskResourceAllocationSettingData')
> >  > > +    drasd_id = '%s/%s' % (default_dom, nddev)
> >  > > +    dkeys = {'InstanceID' : drasd_id}
> >  > > + 
> >  > > +    nrasd = get_typed_class(options.virt,
> >  > 'NetResourceAllocationSettingData')
> >  > > +    nrasd_id = '%s/%s' % (default_dom, nmac)
> >  > > +    nkeys = {'InstanceID' : nrasd_id}
> >  >
> >  > Instead of hand building the instances for the resources, use the 
proper
> >  > association calls to get the RASD instances.   You know the guest, 
so
> >  > you can use SystemDevice to get the resource instance, and then
> >  > SettingsDefineState to get the RASD instances.
> > 
> >   I'm working on a new patch to get the RASD instances by association.
> >   But I can't remove "KVM_InputResourceAllocationSettingData" which 
output
> >   the device "mouse:ps2" can not be found. Actually, I get it by 
> > SettingsDefineState.
> >   If I remove this device from the ResourceSettings, this method works 

> > for me.
> > 
> 
> Sorry Daisy.. I'm not sure I understand the problem you're hitting.
> 
> Are you seeing an error trying to remove an input device from a guest? 
> What error message do you see?

  Sorry for my confusion. I send out #2 patch. The problem is that I
  can not remove InputRASD. Below is the report error:

  VirtualSystemManagementService - 16_removeresource.py: FAIL
  ERROR   - 'CIMInstanceName' object has no attribute 'DeviceID'
  No such instance (no device domain/mouse:ps2)

  So I Skip InputRASD together with MemRASD and ProcRASD in #2 patch.
 
 
> 
> -- 
> Kaitlin Rupert
> IBM Linux Technology Center
> kaitlin at linux.vnet.ibm.com
> 
> _______________________________________________
> Libvirt-cim mailing list
> Libvirt-cim at redhat.com
> https://www.redhat.com/mailman/listinfo/libvirt-cim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-cim/attachments/20090316/dc4309f8/attachment.htm>


More information about the Libvirt-cim mailing list