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.

$ 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 |+--------------------------+--------+
  1. The above output does not show the usage for volumes, so run the following command to check the Cinder specific data.

# 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         |+----------------------+--------+----------+-------+-----------+

Last updated