Atom feed of this document
 
 View and update Compute quotas for a tenant user
 

Procedure 2.6. To view quota values for a tenant user

  1. Place the user ID in a useable variable, as follows:

    $ tenantUser=$(keystone user-list | awk '/userName/ {print $2}')
  2. Place the user's tenant ID in a useable variable, as follows:

    $ tenant=$(keystone tenant-list | awk '/tenantName/ {print $2}')
  3. List the currently set quota values for a tenant user, as follows:

    $ nova quota-show --user $tenantUser --tenant $tenant 

    For example:

    $ nova quota-show --user $tenantUser --tenant $tenant
    +-----------------------------+-------+
    | 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    |
    +-----------------------------+-------+
    
 

Procedure 2.7. To update quota values for a tenant user

  1. Place the user ID in a useable variable, as follows:

    $ tenantUser=$(keystone user-list | awk '/userName/ {print $2}')
  2. Place the user's tenant ID in a useable variable, as follows:

    $ tenant=$(keystone tenant-list | awk '/userName/ {print $2}')
  3. Update a particular quota value, as follows:

    # nova quota-update  --user $tenantUser --quotaName quotaValue $tenant

    For example:

    # nova quota-update --user $tenantUser --floating-ips 12 $tenant
    # nova quota-show --user $tenantUser --tenant $tenant
    +-----------------------------+-------+
    | 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    |
    +-----------------------------+-------+
    
    [Note]Note

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

    $ nova help quota-update
Log a bug against this page

loading table of contents...