# How-To Obtain Quota Usage in OpenStack

## Problem

How to check the total, allocated, and used quota for CPU, RAM, and Disk on a per-tenant basis?

## Environment

* Platform9 Managed OpenStack - All versions

## Procedure

1. Source the OpenStack RC file.
2. Run the following command to obtain quota usage for multiple resources within a tenant.

{% tabs %}
{% tab title="None" %}

```none
$ openstack limits show --project 42030daa2a68499cb13a54b9f66c47e4 --absolute+--------------------------+--------+| Name                     |  Value |+--------------------------+--------+| maxServerMeta            |    128 || maxTotalInstances        |      4 || maxPersonality           |      5 || totalServerGroupsUsed    |      1 || maxImageMeta             |    128 || maxPersonalitySize       |  10240 || maxTotalRAMSize          | 524288 || maxServerGroups          |     10 || maxSecurityGroupRules    |     20 || maxTotalKeypairs         |    100 || totalCoresUsed           |     28 || totalRAMUsed             | 262144 || maxSecurityGroups        |     10 || totalFloatingIpsUsed     |      0 || totalInstancesUsed       |      1 || maxServerGroupMembers    |     10 || maxTotalFloatingIps      |     10 || totalSecurityGroupsUsed  |      1 || maxTotalCores            |     56 || totalSnapshotsUsed       |      0 || maxTotalBackups          |     10 || maxTotalVolumeGigabytes  |   1000 || maxTotalSnapshots        |     10 || maxTotalBackupGigabytes  |   1000 || totalBackupGigabytesUsed |      0 || maxTotalVolumes          |     10 || totalVolumesUsed         |      0 || totalBackupsUsed         |      0 || totalGigabytesUsed       |      0 |+--------------------------+--------+
```

{% endtab %}
{% endtabs %}

3. The above output does not show the usage for volumes, so run the following command to check the Cinder specific data.

{% tabs %}
{% tab title="None" %}

```none
# cinder quota-usage 42030daa2a68499cb13a54b9f66c47e4+----------------------+--------+----------+-------+-----------+| Type                 | In_use | Reserved | Limit | Allocated |+----------------------+--------+----------+-------+-----------+| backup_gigabytes     | 0      | 0        | 1000  | 0         || backups              | 0      | 0        | 10    | 0         || gigabytes            | 11985  | 0        | 20480 | 0         || groups               | 0      | 0        | 10    | 0         || per_volume_gigabytes | 0      | 0        | -1    | 0         || snapshots            | 0      | 0        | -1    | 0         || volumes              | 33     | 0        | 100   | 0         |+----------------------+--------+----------+-------+-----------+
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://platform9.com/kb/pmo/how-to/how-to-obtain-quota-usage-in-openstack.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
