Server groups provide a mechanism to group servers according to certain policy.
Compute v2
Create a new server group.
openstack server group create
[--policy <policy>]
[--rule <key=value>]
<name>
Add a policy to <name> Specify –os-compute-api-version 2.15 or higher for the ‘soft-affinity’ or ‘soft-anti-affinity’ policy.
A rule for the policy. Currently, only the ‘max_server_per_host’ rule is supported for the ‘anti-affinity’ policy.
New server group name
Delete existing server group(s).
openstack server group delete <server-group> [<server-group> ...]
server group(s) to delete (name or ID)
List all server groups.
openstack server group list
[--format-config-file FORMAT_CONFIG]
[--sort-column SORT_COLUMN]
[--sort-ascending | --sort-descending]
[--all-projects]
[--long]
[--offset <offset>]
[--limit <limit>]
Config file for the dict-to-csv formatter
specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), can be repeated
sort the column(s) in ascending order
sort the column(s) in descending order
Display information from all projects (admin only)
List additional fields in output
Index from which to start listing servers. This should typically be a factor of –limit. Display all servers groups if not specified.
Maximum number of server groups to display. If limit is greater than ‘osapi_max_limit’ option of Nova API, ‘osapi_max_limit’ will be used instead.
Display server group details.
openstack server group show <server-group>
server group to display (name or ID)
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.