]>
Manage Compute service quotas As an administrative user, you can view and set the Compute Service quotas for a project. You can also update the quota defaults for a new project.
Compute service quotas
Quota Defines the number of Property name
Fixed Ips Fixed IP addresses allowed for each tenant. Must be equal to or greater than the number of allowed instances. fixed-ips
Floating Ips Floating IP addresses allowed for each tenant. floating-ips
Injected File Content Bytes Content bytes allowed for each injected file. injected-file-content-bytes
Injected File Path Bytes Bytes allowed for each injected file path. injected-file-path-bytes
Injected Files Injected files allowed for each tenant. injected-files
Instances Instances allowed for each tenant. instances
Key Pairs Key pairs allowed for each user. key-pairs
Metadata Items Metadata items allowed for each instance. metadata-items
Ram Megabytes of instance RAM allowed for each tenant. ram
Security Group Rules Rules for each security group. security-group-rules
Security Groups Security groups for each project. security-groups
VCPUs Instance cores allowed for each project. cores
View and update Compute service quotas As an administrative user, you can view and update project quotas. List the default Compute service project quotas: $ nova quota-defaults +-----------------------------+-------+ | Property | Value | +-----------------------------+-------+ | metadata_items | 128 | | injected_file_content_bytes | 10240 | | ram | 51200 | | floating_ips | 10 | | key_pairs | 100 | | instances | 10 | | security_group_rules | 20 | | injected_files | 5 | | cores | 20 | | fixed_ips | -1 | | injected_file_path_bytes | 255 | | security_groups | 10 | +-----------------------------+-------+ To update a default value for a new project, update the default property in the /etc/nova/nova.conf file, as follows: $ nova quota-class-update default --key value For example: $ nova quota-class-update default --instances 15 Verify your changes by showing the quotas for the quota class, as follows: $ nova quota-class-show default +-----------------------------+-------+ | Property | Value | +-----------------------------+-------+ | metadata_items | 128 | | injected_file_content_bytes | 10240 | | ram | 51200 | | floating_ips | 10 | | key_pairs | 100 | | instances | 15 | | security_group_rules | 20 | | injected_files | 5 | | cores | 20 | | fixed_ips | -1 | | injected_file_path_bytes | 255 | | security_groups | 10 | +-----------------------------+-------+
View project quotas Place the tenant ID in a usable variable, as follows: $ tenant=$(keystone tenant-list | awk '/tenantName/ {print $2}') List the currently set quota values for a tenant, as follows: $ nova quota-show --tenant $tenant For example: $ nova quota-show --tenant $tenant +-----------------------------+-------+ | Property | Value | +-----------------------------+-------+ | metadata_items | 128 | | injected_file_content_bytes | 10240 | | ram | 51200 | | floating_ips | 12 | | key_pairs | 100 | | instances | 10 | | security_group_rules | 20 | | injected_files | 5 | | cores | 20 | | fixed_ips | -1 | | injected_file_path_bytes | 255 | | security_groups | 10 | +-----------------------------+-------+
Update project quotas Get the tenant ID, as follows: $ tenant=$(keystone tenant-list | awk '/tenantName/ {print $2}') Update a specified quota value, as follows: $ nova quota-update --quotaName quotaValue tenantID For example: $ nova quota-update --floating-ips 20 $tenant $ nova quota-show --tenant $tenant +-----------------------------+-------+ | Property | Value | +-----------------------------+-------+ | metadata_items | 128 | | injected_file_content_bytes | 10240 | | ram | 51200 | | floating_ips | 20 | | key_pairs | 100 | | instances | 10 | | security_group_rules | 20 | | injected_files | 5 | | cores | 20 | | fixed_ips | -1 | | injected_file_path_bytes | 255 | | security_groups | 10 | +-----------------------------+-------+ To view a list of options for the quota-update command, run: $ nova help quota-update