The cinder.compute.nova Module

Handles all requests to Nova.

class API(db_driver=None)

Bases: cinder.db.base.Base

API for interacting with novaclient.

create_volume_snapshot(context, volume_id, create_info)
delete_volume_snapshot(context, snapshot_id, delete_info)
get_server(context, server_id, privileged_user=False, timeout=None)
has_extension(context, extension, timeout=None)
update_server_volume(context, server_id, attachment_id, new_volume_id)
novaclient(context, admin_endpoint=False, privileged_user=False, timeout=None)

Returns a Nova client

@param admin_endpoint: If True, use the admin endpoint template from
configuration (‘nova_endpoint_admin_template’ and ‘nova_catalog_info’)
@param privileged_user: If True, use the account from configuration
(requires ‘os_privileged_user_name’, ‘os_privileged_user_password’ and ‘os_privileged_user_tenant’ to be set)
@param timeout: Number of seconds to wait for an answer before raising a
Timeout exception (None to disable)