yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #04890
[Bug 1183654] Re: vmware code is using deprecated API that may not handle inventories over 100 items properly
** Changed in: nova
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1183654
Title:
vmware code is using deprecated API that may not handle inventories
over 100 items properly
Status in OpenStack Compute (Nova):
Fix Released
Bug description:
Several VMwareAPI methods used to return an array of all results which
could cause problems on extremely large inventories. New replacement
API use scrollable results that return chunks of managed object
results to be scrolled through. These new methods end in "Ex" and
should be used in place of the previous methods when available.
The following code is using deprecated API that should be rewritten to
use newer API
https://github.com/openstack/nova/blob/master/nova/virt/vmwareapi/vim_util.py#L146
https://github.com/openstack/nova/blob/master/nova/virt/vmwareapi/vim_util.py#L175
https://github.com/openstack/nova/blob/master/nova/virt/vmwareapi/vim_util.py#L220
See:
http://pubs.vmware.com/vsphere-51/topic/com.vmware.wssdk.apiref.doc/vmodl.query.PropertyCollector.html?path=7_0_0_2_5_17_2#retrieveContents
... reference RetrieveProperties and RetrievePropertiesEX
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1183654/+subscriptions