Skip to content

Server groups CLI reference

See https://docs.openstack.org/nova/2023.2/cli/index.html.

These commands allow you to create, list, show details of, and delete server groups. The <server_group_id_or_name> in the commands is a placeholder that should be replaced with the actual ID or name of the server group. The policy specified during creation determines how instances within the group are scheduled with respect to each other on the compute hosts.

List server groups

Bash
openstack server group list

Show server group details

Bash
openstack server group show <server_group_id_or_name>

Create a server group

Bash
openstack server group create --policy <policy> <server_group_name>
  • <policy>: The policy for the server group (e.g., affinity, anti-affinity, soft-affinity, soft-anti-affinity)

Delete a server group

Bash
openstack server group delete <server_group_id_or_name>