LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

openstack-flavor

manages instance flavors in OpenStack

TLDR

List flavors
$ openstack flavor list
copy
Show flavor details
$ openstack flavor show [m1.small]
copy
Create flavor with specific resources
$ openstack flavor create --vcpus [2] --ram [4096] --disk [40] [custom.medium]
copy
Create a private flavor
$ openstack flavor create --vcpus [4] --ram [8192] --disk [80] --private [custom.large]
copy
Delete flavor
$ openstack flavor delete [custom.medium]
copy
Set extra property on a flavor
$ openstack flavor set --property [hw:cpu_policy=dedicated] [custom.medium]
copy

SYNOPSIS

openstack flavor command [options]

DESCRIPTION

openstack flavor manages instance flavors (size templates) in OpenStack Nova. Flavors define compute, memory and storage resources for virtual machines. Properties set via --property (aka extraspecs) control scheduler and hypervisor behavior — common keys include `hw:cpupolicy`, `hw:mempagesize`, `hw:numanodes`, `quota:diskreadbytessec` and `aggregateinstanceextra_specs:*`. The set command can also add or remove tenant access for private flavors via `--project` / `--project-domain`.Part of OpenStack unified CLI (`python-openstackclient`), superseding the old `nova flavor-*` commands.

PARAMETERS

list

List available flavors.
show name
Show flavor details.
create name
Create flavor.
delete name
Delete flavor.
set name
Set flavor properties.
--vcpus num
Number of vCPUs.
--ram mb
RAM in megabytes.
--disk gb
Root disk size in gigabytes.
--ephemeral gb
Ephemeral disk size in gigabytes (default: 0).
--swap mb
Swap space size in megabytes (default: 0).
--id id
Unique flavor ID ('auto' generates a UUID, default: auto).
--public
Make flavor accessible to all projects (default).
--private
Make flavor accessible only to specific projects.
--property key=value
Set extra specification property on the flavor.

CAVEATS

Modifying a flavor is not possible in-place: change a property via set/unset, or delete and recreate for size changes. Running instances continue to use the original flavor. Admin role is required for create/delete and for setting most properties.

SEE ALSO

Copied to clipboard
Kai