Menu

#1557 sfcb doesn't provide assoc handling

open
nobody
None
5
2013-02-08
2009-04-08
No

sfcb doesn't provide association handling, which means the providers don't always get the full picture of the client's query.

Ex. The libvirt-cim providers register multiple classes to one provider. KVM_HostedResourcePool, LXC_HostedResourcePool, and Xen_HostedResourcePool are all registered to the Virt_HostedResourcePool provider. All three classes are subclasses of CIM_HostedResourcePool.

1) The provider is only called once when queried using CIM_HostedResourcePool. For example, with a query like: wbemcli ain -ac CIM_HostedResourcePool 'http://localhost:5988/root/virt:KVM_HostSystem.CreationClassName="KVM_HostSystem",Name="elm3b216.beaverton.ibm.com"'

The provider should be called for each class. Also, sfcb passed CIM_HostedResourcePool as the association classname. The provider has no way of knowing which class sfcb was trying to call. Furthermore, the provider doesn't have a way of distinguishing between the different classnames, so there is no way for the provider to behave differently for each classname.

2) If no association class name is specified in the query (wbemcli ain 'http://localhost:5988/root/virt:KVM_HostSystem.CreationClassName="KVM_HostSystem",Name="elm3b216.beaverton.ibm.com"'), sfcb passes NULL for the association classname. So the parameters passed to the provider are incomplete.

Discussion


Log in to post a comment.