Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable setting per-compute group availability zones #417

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sjpb
Copy link
Collaborator

@sjpb sjpb commented Jul 24, 2024

NB: This won't work as is, the availability zone host needs to be the node UUID, not the node name.

Adds a new option availability_zone_prefix to the compute groups in the skeleton terraform. If set, this is prefixed to the last portion of each compute node name split on "-" and used to set the instance availability zone

This enables scheduling baremetal instances to specific hosts. For example if openstack baremetal node list shows baremetal nodes compute-[0,5] then the following OpenTofu configuration will result in instances ${cluster_name}-hpc-[0,2] landing on the first 3x baremetal nodes. This can simplify troubleshooting.

# environments/$env/terraform/terraform.tfvars:
...
compute = {
  baremetal = {
   flavor = "baremetal.xlarge"
   availability_zone_prefix = "nova::compute-"
   nodes = ["hpc-0", "hpc-1", "hpc-2"]
  }
}
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant