This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Nova 2011.1 docs or all OpenStack docs too.

The nova.quota Module

Quotas for instances, volumes, and floating ips

exception nova.quota.QuotaError(message='Unknown', code='ApiError')

Bases: nova.exception.ApiError

Quota Exceeeded

nova.quota.allowed_floating_ips(context, num_floating_ips)

Check quota and return min(num_floating_ips, allowed_floating_ips)

nova.quota.allowed_injected_file_content_bytes(context)

Return the number of bytes allowed per injected file content

nova.quota.allowed_injected_file_path_bytes(context)

Return the number of bytes allowed in an injected file path

nova.quota.allowed_injected_files(context)

Return the number of injected files allowed

nova.quota.allowed_instances(context, num_instances, instance_type)

Check quota and return min(num_instances, allowed_instances)

nova.quota.allowed_metadata_items(context, num_metadata_items)

Check quota; return min(num_metadata_items,allowed_metadata_items)

nova.quota.allowed_volumes(context, num_volumes, size)

Check quota and return min(num_volumes, allowed_volumes)

nova.quota.get_quota(context, project_id)