Session and API call management for VMware ESX/VC server. Provides abstraction over cinder.volume.drivers.vmware.vim.Vim SOAP calls.
Bases: object
Decorator for retrying a function upon suggested exceptions.
The method retries for given number of times and the sleep time increments till the max sleep time is reached. If max retries is set to -1, then the decorated function is invoked indefinitely till no exception is thrown or if the caught exception is not in the list of suggested exceptions.
Bases: object
Sets up a session with the server and handles all calls made to it.
Wrapper method for invoking APIs.
Here we retry the API calls for exceptions which may come because of session overload.
Make sure if a Vim instance is being passed here, this session’s Vim (self.vim) instance is used, as we retry establishing session in case of session timedout.
Parameters: |
|
---|---|
Returns: | Response of the API call |
Return a deferred that will give the result of the given task.
The task is polled until it completes. The method returns the task information upon successful completion.
Parameters: | task – Managed object reference of the task |
---|---|
Returns: | Task info upon successful completion of the task |