OpenStack Docs: Manage Compute service quotas (2024)

As an administrative user, you can use the nova quota-* commands,which are provided by the python-novaclient package, to update the Computeservice quotas for a specific project or project user, as well as update thequota defaults for a new project.

Todo

At some point, probably in Queens, we need to scrub this page and mentionthe microversions that remove the proxy and network-related resource quotas.

Compute quota descriptions

Quota nameDescription
coresNumber of instance cores (VCPUs) allowed per project.
fixed-ipsNumber of fixed IP addresses allowed per project. This numbermust be equal to or greater than the number of allowedinstances.
floating-ipsNumber of floating IP addresses allowed per project.
injected-file-content-bytesNumber of content bytes allowed per injected file.
injected-file-path-bytesLength of injected file path.
injected-filesNumber of injected files allowed per project.
instancesNumber of instances allowed per project.
key-pairsNumber of key pairs allowed per user.
metadata-itemsNumber of metadata items allowed per instance.
ramMegabytes of instance ram allowed per project.
security-groupsNumber of security groups per project.
security-group-rulesNumber of security group rules per project.
server-groupsNumber of server groups per project.
server-group-membersNumber of servers per server group.

View and update Compute quotas for a project

To view and update default quota values

  1. List all default quotas for all projects:

    $ openstack quota show --default+----------------------+----------+| Field | Value |+----------------------+----------+| backup-gigabytes | 1000 || backups | 10 || cores | 20 || fixed-ips | -1 || floating-ips | 50 || gigabytes | 1000 || health_monitors | None || injected-file-size | 10240 || injected-files | 5 || injected-path-size | 255 || instances | 10 || key-pairs | 100 || l7_policies | None || listeners | None || load_balancers | None || location | None || name | None || networks | 10 || per-volume-gigabytes | -1 || pools | None || ports | 50 || project | None || project_name | project || properties | 128 || ram | 51200 || rbac_policies | 10 || routers | 10 || secgroup-rules | 100 || secgroups | 10 || server-group-members | 10 || server-groups | 10 || snapshots | 10 || subnet_pools | -1 || subnets | 10 || volumes | 10 |+----------------------+----------+

    Note

    This lists default quotas for all services and not just nova.

  2. Update a default value for a new project, for example:

    $ openstack quota set --instances 15 --class default

To view quota values for an existing project

  1. List the currently set quota values for a project:

    $ openstack quota show PROJECT_NAME+----------------------+----------------------------------+| Field | Value |+----------------------+----------------------------------+| backup-gigabytes | 1000 || backups | 10 || cores | 32 || fixed-ips | -1 || floating-ips | 10 || gigabytes | 1000 || health_monitors | None || injected-file-size | 10240 || injected-files | 5 || injected-path-size | 255 || instances | 10 || key-pairs | 100 || l7_policies | None || listeners | None || load_balancers | None || location | None || name | None || networks | 20 || per-volume-gigabytes | -1 || pools | None || ports | 60 || project | c8156b55ec3b486193e73d2974196993 || project_name | project || properties | 128 || ram | 65536 || rbac_policies | 10 || routers | 10 || secgroup-rules | 50 || secgroups | 50 || server-group-members | 10 || server-groups | 10 || snapshots | 10 || subnet_pools | -1 || subnets | 20 || volumes | 10 |+----------------------+----------------------------------+

    Note

    This lists quotas for all services and not just nova.

To update quota values for an existing project

  1. Obtain the project ID.

    $ project=$(openstack project show -f value -c id PROJECT_NAME)
  2. Update a particular quota value.

    To update quotas for a project:

    $ openstack quota set --QUOTA_NAME QUOTA_VALUE PROJECT_NAME

    To update quotas for a class:

    $ openstack quota set --class --QUOTA_NAME QUOTA_VALUE CLASS_NAME

    Note

    Only the default class is supported by nova.

    For example:

    $ openstack quota set --instances 50 PROJECT_NAME$ openstack quota show PROJECT_NAME+----------------------+----------------------------------+| Field | Value |+----------------------+----------------------------------+| ... | ... || instances | 50 || ... | ... |+----------------------+----------------------------------+

    Note

    To view a list of options for the openstack quota set command,run:

    $ openstack help quota set

View and update Compute quotas for a project user

To view quota values for a project user

  1. Place the user ID in a usable variable.

    $ projectUser=$(openstack user show -f value -c id USER_NAME)
  2. Place the user’s project ID in a usable variable, as follows:

    $ project=$(openstack project show -f value -c id PROJECT_NAME)
  3. List the currently set quota values for a project user.

    $ nova quota-show --user $projectUser --tenant $project

    For example:

    $ nova quota-show --user $projectUser --tenant $project+-----------------------------+-------+| Quota | Limit |+-----------------------------+-------+| instances | 10 || cores | 20 || ram | 51200 || floating_ips | 20 || fixed_ips | -1 || metadata_items | 128 || injected_files | 5 || injected_file_content_bytes | 10240 || injected_file_path_bytes | 255 || key_pairs | 100 || security_groups | 10 || security_group_rules | 20 || server_groups | 10 || server_group_members | 10 |+-----------------------------+-------+

To update quota values for a project user

  1. Place the user ID in a usable variable.

    $ projectUser=$(openstack user show -f value -c id USER_NAME)
  2. Place the user’s project ID in a usable variable, as follows:

    $ project=$(openstack project show -f value -c id PROJECT_NAME)
  3. Update a particular quota value, as follows:

    $ nova quota-update --user $projectUser --QUOTA_NAME QUOTA_VALUE $project

    For example:

    $ nova quota-update --user $projectUser --floating-ips 12 $project$ nova quota-show --user $projectUser --tenant $project+-----------------------------+-------+| Quota | Limit |+-----------------------------+-------+| instances | 10 || cores | 20 || ram | 51200 || floating_ips | 12 || fixed_ips | -1 || metadata_items | 128 || injected_files | 5 || injected_file_content_bytes | 10240 || injected_file_path_bytes | 255 || key_pairs | 100 || security_groups | 10 || security_group_rules | 20 || server_groups | 10 || server_group_members | 10 |+-----------------------------+-------+

    Note

    To view a list of options for the nova quota-update command,run:

    $ nova help quota-update

To display the current quota usage for a project user

Use nova limits to get a list of thecurrent quota values and the current quota usage:

$ nova limits --tenant PROJECT_NAME+------+-----+-------+--------+------+----------------+| Verb | URI | Value | Remain | Unit | Next_Available |+------+-----+-------+--------+------+----------------++------+-----+-------+--------+------+----------------++--------------------+------+-------+| Name | Used | Max |+--------------------+------+-------+| Cores | 0 | 20 || Instances | 0 | 10 || Keypairs | - | 100 || Personality | - | 5 || Personality Size | - | 10240 || RAM | 0 | 51200 || Server Meta | - | 128 || ServerGroupMembers | - | 10 || ServerGroups | 0 | 10 |+--------------------+------+-------+

Note

The nova limits command generates an emptytable as a result of the Compute API, which prints anempty list for backward compatibility purposes.

OpenStack Docs: Manage Compute service quotas (2024)
Top Articles
Legendary Dragon - The Elder Scrolls V: Skyrim Guide - IGN
7 Incredible Results You’ll Get From Walking 30 Minutes A Day
English Bulldog Puppies For Sale Under 1000 In Florida
Katie Pavlich Bikini Photos
Gamevault Agent
Pieology Nutrition Calculator Mobile
Hocus Pocus Showtimes Near Harkins Theatres Yuma Palms 14
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Compare the Samsung Galaxy S24 - 256GB - Cobalt Violet vs Apple iPhone 16 Pro - 128GB - Desert Titanium | AT&T
Vardis Olive Garden (Georgioupolis, Kreta) ✈️ inkl. Flug buchen
Craigslist Dog Kennels For Sale
Things To Do In Atlanta Tomorrow Night
Non Sequitur
Crossword Nexus Solver
How To Cut Eelgrass Grounded
Pac Man Deviantart
Alexander Funeral Home Gallatin Obituaries
Energy Healing Conference Utah
Geometry Review Quiz 5 Answer Key
Hobby Stores Near Me Now
Icivics The Electoral Process Answer Key
Allybearloves
Bible Gateway passage: Revelation 3 - New Living Translation
Yisd Home Access Center
Pearson Correlation Coefficient
Home
Shadbase Get Out Of Jail
Gina Wilson Angle Addition Postulate
Celina Powell Lil Meech Video: A Controversial Encounter Shakes Social Media - Video Reddit Trend
Walmart Pharmacy Near Me Open
Marquette Gas Prices
A Christmas Horse - Alison Senxation
Ou Football Brainiacs
Access a Shared Resource | Computing for Arts + Sciences
Vera Bradley Factory Outlet Sunbury Products
Pixel Combat Unblocked
Movies - EPIC Theatres
Cvs Sport Physicals
Mercedes W204 Belt Diagram
Mia Malkova Bio, Net Worth, Age & More - Magzica
'Conan Exiles' 3.0 Guide: How To Unlock Spells And Sorcery
Teenbeautyfitness
Where Can I Cash A Huntington National Bank Check
Topos De Bolos Engraçados
Sand Castle Parents Guide
Gregory (Five Nights at Freddy's)
Grand Valley State University Library Hours
Hello – Cornerstone Chapel
Stoughton Commuter Rail Schedule
Nfsd Web Portal
Selly Medaline
Latest Posts
Article information

Author: Dr. Pierre Goyette

Last Updated:

Views: 6318

Rating: 5 / 5 (50 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Dr. Pierre Goyette

Birthday: 1998-01-29

Address: Apt. 611 3357 Yong Plain, West Audra, IL 70053

Phone: +5819954278378

Job: Construction Director

Hobby: Embroidery, Creative writing, Shopping, Driving, Stand-up comedy, Coffee roasting, Scrapbooking

Introduction: My name is Dr. Pierre Goyette, I am a enchanting, powerful, jolly, rich, graceful, colorful, zany person who loves writing and wants to share my knowledge and understanding with you.