Previous topic

The nova.policy Module

Next topic

The nova.rootwrap.compute Module

This Page

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

The nova.quota Module

Quotas for instances, volumes, and floating ips.

allowed_fixed_ips(context, requested_fixed_ips)

Check quota and return min(requested, allowed) fixed ips.

allowed_floating_ips(context, requested_floating_ips)

Check quota and return min(requested, allowed) floating ips.

allowed_injected_file_content_bytes(context, requested_bytes)

Return the number of bytes allowed per injected file content.

allowed_injected_file_path_bytes(context)

Return the number of bytes allowed in an injected file path.

allowed_injected_files(context, requested_injected_files)

Return the number of injected files allowed.

allowed_instances(context, requested_instances, instance_type)

Check quota and return min(requested_instances, allowed_instances).

allowed_metadata_items(context, requested_metadata_items)

Return the number of metadata items allowed.

allowed_security_group_rules(context, security_group_id, requested_rules)

Check quota and return min(requested, allowed) sec group rules.

allowed_security_groups(context, requested_security_groups)

Check quota and return min(requested, allowed) security groups.

allowed_volumes(context, requested_volumes, size)

Check volume quotas and return breached if any.

get_project_quotas(context, project_id)