Flavors CLI reference
See the OpenStack CLI flavor reference for the full list of openstack flavor subcommands.
Use these commands to list, show, create, delete, and manage properties for flavors. The FLAVOR_ID_OR_NAME parameter accepts either the flavor ID or the flavor name. Creating, deleting, and modifying flavors are administrative operations; a regular project user receives a 403 Forbidden response.
List flavors#
openstack flavor listShow flavor details#
openstack flavor show FLAVOR_ID_OR_NAMECreate a flavor#
openstack flavor create --id FLAVOR_ID --ram RAM_IN_MB --disk DISK_IN_GB --vcpus NUM_VCPUS FLAVOR_NAMEFLAVOR_ID: Unique ID for the flavor (optional; if not provided, OpenStack generates one).RAM_IN_MB: Amount of RAM in megabytes.DISK_IN_GB: Size of the root disk in gigabytes.NUM_VCPUS: Number of virtual CPUs.FLAVOR_NAME: Name of the flavor.
Delete a flavor#
openstack flavor delete FLAVOR_ID_OR_NAMESet flavor properties#
openstack flavor set --property KEY=VALUE FLAVOR_ID_OR_NAME- Set custom properties for a flavor, such as
hw:cpu_policy=dedicatedfor CPU pinning.
Unset flavor properties#
openstack flavor unset --property KEY FLAVOR_ID_OR_NAME- Remove custom properties from a flavor.
Manage flavor access#
The openstack client does not provide flavor access subcommands. Manage access to private flavors through the Compute API instead: see the Flavors API reference for the os-flavor-access endpoints. Flavor access is an administrative operation, so a regular project user receives a 403 Forbidden response.
Output columns#
Select specific columns with --column COL1 --column COL2 or change the output format with -f json, -f csv, or -f table (default).
openstack flavor list#
| Column | Description |
|---|---|
| ID | Flavor UUID |
| Name | Flavor name (e.g., m2a.large) |
| RAM | Memory allocation in MiB |
| Disk | Root disk size in GiB |
| Ephemeral | Ephemeral disk size in GiB |
| VCPUs | Number of virtual CPUs |
| Is Public | Whether the flavor is available to all projects |
openstack flavor list --long#
| Column | Description |
|---|---|
| ID | Flavor UUID |
| Name | Flavor name |
| RAM | Memory allocation in MiB |
| Disk | Root disk size in GiB |
| Ephemeral | Ephemeral disk size in GiB |
| VCPUs | Number of virtual CPUs |
| Is Public | Whether the flavor is available to all projects |
| Swap | Swap disk size in MiB |
| RXTX Factor | Network bandwidth weight factor |
| Properties | Extra specs (e.g., CPU pinning, NUMA topology) |
Each flavor also carries a rumble:compute_units extra spec, shown under Properties in openstack flavor show FLAVOR_ID_OR_NAME. This value is charged against the compute_units quota; see Quota-related errors for details.