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+-----------------------------+-------+| Quota | Limit |+-----------------------------+-------+| instances | 10 || cores | 20 || ram | 51200 || floating_ips | 10 || 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 |+-----------------------------+-------+
  2. Update a default value for a new project, for example:

    $ openstack quota set --instances 15 default

To view quota values for an existing project

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

    $ openstack quota show PROJECT_NAME+-----------------------------+-------+| Quota | Limit |+-----------------------------+-------+| instances | 10 || cores | 20 || ram | 51200 || floating_ips | 10 || 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 an existing project

  1. Obtain the project ID.

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

    $ openstack quota set --QUOTA_NAME QUOTA_VALUE PROJECT_OR_CLASS

    For example:

    $ openstack quota set --floating-ips 20 PROJECT_OR_CLASS$ openstack quota show PROJECT_NAME+-----------------------------+-------+| 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 |+-----------------------------+-------+

    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 $projecUser --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 PROJET_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
IPO Readiness Checklist for Going Public | Tipalti
Education Technology
The Tribes and Castes of the Central Provinces of India, Volume 3
St Thomas Usvi Craigslist
WALB Locker Room Report Week 5 2024
1970 Chevrolet Chevelle SS - Skyway Classics
The 10 Best Restaurants In Freiburg Germany
9192464227
Get train & bus departures - Android
Hotels Near 500 W Sunshine St Springfield Mo 65807
Co Parts Mn
Kagtwt
A Fashion Lover's Guide To Copenhagen
No Credit Check Apartments In West Palm Beach Fl
Es.cvs.com/Otchs/Devoted
Craigslist Pets Southern Md
Shemal Cartoon
Operation Cleanup Schedule Fresno Ca
Directions To 401 East Chestnut Street Louisville Kentucky
Moviesda3.Com
Mflwer
Invert Clipping Mask Illustrator
Testberichte zu E-Bikes & Fahrrädern von PROPHETE.
Indystar Obits
Faurot Field Virtual Seating Chart
Pecos Valley Sunland Park Menu
Doki The Banker
Del Amo Fashion Center Map
Nk 1399
2015 Kia Soul Serpentine Belt Diagram
Anesthesia Simstat Answers
4.231 Rounded To The Nearest Hundred
Keshi with Mac Ayres and Starfall (Rescheduled from 11/1/2024) (POSTPONED) Tickets Thu, Nov 1, 2029 8:00 pm at Pechanga Arena - San Diego in San Diego, CA
Best Laundry Mat Near Me
Our Leadership
Hannah Jewell
Gridwords Factoring 1 Answers Pdf
Sf Bay Area Craigslist Com
Kattis-Solutions
In Branch Chase Atm Near Me
Dr Adj Redist Cadv Prin Amex Charge
Hell's Kitchen Valley Center Photos Menu
Kornerstone Funeral Tulia
Htb Forums
Hazel Moore Boobpedia
Amc.santa Anita
Panolian Batesville Ms Obituaries 2022
Ehc Workspace Login
N33.Ultipro
Walmart Listings Near Me
German American Bank Owenton Ky
Helpers Needed At Once Bug Fables
Latest Posts
Article information

Author: Barbera Armstrong

Last Updated:

Views: 5779

Rating: 4.9 / 5 (79 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Barbera Armstrong

Birthday: 1992-09-12

Address: Suite 993 99852 Daugherty Causeway, Ritchiehaven, VT 49630

Phone: +5026838435397

Job: National Engineer

Hobby: Listening to music, Board games, Photography, Ice skating, LARPing, Kite flying, Rugby

Introduction: My name is Barbera Armstrong, I am a lovely, delightful, cooperative, funny, enchanting, vivacious, tender person who loves writing and wants to share my knowledge and understanding with you.