Add utility function which returns the most recommended datastore from a
datastore cluster where a VM can be cloned to.
Change-Id: Ic532bb9c52270ba34f70d2b7977de49f8753d1d1
StoragePods (a.k.a datastore clusters) are located under
Datacenter.datastoreFolder, so we need a new traversal spec in order to
retrieve them.
Change-Id: I899f8f6ef05a94d21d13a55ca0a0f8fbd042a448
Modifying find_extension() and register_extension() in vim_util
to use request_handler() in service module. Currently these
methods call vSphere APIs directly and hence suds web faults
are not translated.
Change-Id: Ic0ef099a3c94962bb6895473dcdf69e66112e482
Closes-bug: 1703478
Currently when selecting host for image upload, hosts in maintenance
mode will also be included.
This commit adds a check for available hosts to make sure these
hosts excluded from the list.
Change-Id: I46e4a879245e4f9258178738da9920b34b65a187
The operation ID is a random string which can be added in the SOAP
headers of the remote request. vCenter and ESX will append this opID to
every log message associated with the remote request. This allows
administrators to correlate log messages for particular operation across
different systems (OpenStack -> vCenter -> ESX).
There is also addition keyword argument 'skip_op_id' which allows
callers to disable logging the opID if set to True.
Example for correlating logs for CreateVM_Task on devstack, vCenter and
ESX: http://paste.openstack.org/show/592614/
Change-Id: I75cb71c7c58b4ee9cd36fc977eb2a18a911f161f
WithRetrieval[1] is a context that handles and hides object retrieval
and retrieval cancel (when needed):
with WithRetrieval(vim, retrieve_result) as objects:
for obj in objects:
do_something_including_breaking_for_loop(obj)
instead of:
while retrieve_result:
for obj in retrieve_result.objects:
do_something_including_breaking_while_loop(obj)
retrieve_result = continue_retrieval(vim, retrieve_result)
if retrieve_result:
cancel_retrieval(vim, retrieve_result)
[1] oslo_vmware.vim_util
Closes-Bug: #1284658
Change-Id: If29d45a25a81340e138eb9068a551fc1b172cf87
Two methods are added as part of this patch:-
1. get_datastore_by_ref - returns a Datastore object given a
datastore reference.
2. get_object_properties_dict - a vim utility method to retrieve
properties of an object as a dictionary.
Currently, Glance needs these methods to find datastore
objects from datastore references.
Change-Id: I516536ea4098357540531105b4f97e6668fb3f08
Move the public API out of oslo.vmware to oslo_vmware. Retain the ability
to import from the old namespace package for backwards compatibility
for this release cycle.
bp/drop-namespace-packages
Change-Id: I11cf038c3832a7357ed53363d8ccf143daddd2a2