Viewing Per-Tenant Block Storage Usage in OpenStack

Problem

How to retrieve per-tenant (project-wise) block storage usage in OpenStack using CLI, including total provisioned volume size summaries.

There's no direct openstack CLI command that gives tenant-wise volume size summary.

Environment

  • Platform9 Managed OpenStack - All Versions
  • Cinder

Procedure

  1. Install SDK.
Install SDK
Copy
  1. Export admin.rc file.
export admin.rc
Copy
  1. Script: Per-Tenant Provisioned Storage Usage.
Python Script
Copy
  1. Run the Script.
Bash
Copy
  • Sample output:
bash
Copy

Additional Information

  • This script reports provisioned sizes (logical volume size), not actual allocated backend usage.
  • Most OpenStack backends (e.g., Ceph, LVM, HPE 3PAR, NFS) do not expose physical allocation per volume unless the driver supports it.
  • Modify the script to include volume count, volume type, or export to CSV.
VariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches