Create Soft Affinity/Anti-Affinity Server Groups

Problem

  • Need to create a server group with the soft-affinity or soft-anti-affinity rule as this option is not available in the UI.

Environment

  • Platform9 Managed OpenStack - v3.6.0 and Higher

  • Nova

Procedure

Use the OpenStack CLI to create a server group with either the soft-affinity or soft-anti-affinity option.

# openstack server group create --os-compute-api-version 2.37 --policy soft-anti-affinity [ServerGroupName]

Note: You must specify --os-compute-api- version 2.15 or higher for the 'soft-affinity' or 'soft-anti-affinity' policy.

Additional Information

OpenStack Soft Affinity / Soft Anti-Affinity Spec

Last updated