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>] <name>
--policy
<policy>
¶Add a policy to <name> (‘affinity’ or ‘anti-affinity’, defaults to ‘affinity’). Specify –os-compute-api-version 2.15 or higher for the ‘soft-affinity’ or ‘soft-anti-affinity’ policy.
name
¶New server group name
This command is provided by the python-openstackclient plugin.
Delete existing server group(s).
openstack server group delete <server-group> [<server-group> ...]
server-group
¶server group(s) to delete (name or ID)
This command is provided by the python-openstackclient plugin.
List all server groups.
openstack server group list
[--sort-column SORT_COLUMN]
[--all-projects]
[--long]
--sort-column
SORT_COLUMN
¶specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), can be repeated
--all-projects
¶Display information from all projects (admin only)
--long
¶List additional fields in output
This command is provided by the python-openstackclient plugin.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.