cinder.compute.nova module

cinder.compute.nova module

Handles all requests to Nova.

class API

Bases: Base

API for interacting with novaclient.

exception NotFound(code, message=None, details=None, request_id=None, url=None, method=None)

Bases: ClientException

HTTP 404 - Not found

http_status = 404
message = 'Not found'
create_volume_snapshot(context, volume_id, create_info)
delete_volume_snapshot(context, snapshot_id, delete_info)
extend_volume(context, server_ids, volume_id)
get_server(context, server_id, privileged_user=False, timeout=None)
static get_server_volume(context, server_id, volume_id)
reimage_volume(context, server_ids, volume_id)
update_server_volume(context, server_id, src_volid, new_volume_id)
novaclient(context, privileged_user=False, timeout=None, api_version=None)

Returns a Nova client

@param privileged_user:

If True, use the account from configuration (requires ‘auth_type’ and the other usual Keystone authentication options to be set in the [nova] section)

@param timeout:

Number of seconds to wait for an answer before raising a Timeout exception (None to disable)

@param api_version:

api version of nova

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.