Skip to content

Fix node affinity #64

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

Merged
merged 2 commits into from
May 22, 2025
Merged

Fix node affinity #64

merged 2 commits into from
May 22, 2025

Conversation

justinc1
Copy link
Collaborator

Fix for #45 .
Provider needs to read PreferredNodeUUID from HyperCore, after VM is started.

Complication is that VM is started by hypercore_vm_power_state, and this one cannot update hypercore_vm. This means we need to call terraform apply twice - on second invocation hypercore_vm will notice PreferredNodeUUID was changed on HyperCore side, and will write this value into terraform state.

Second complication is affinity_strategy is now mandatory. At least it can be just affinity_strategy={}.

justinc1 added 2 commits May 21, 2025 17:54
partially fixes #45
we still need to "terraform apply" twice

Signed-off-by: Justin Cinkelj <justin.cinkelj@xlab.si>
Signed-off-by: Justin Cinkelj <justin.cinkelj@xlab.si>
Copy link
Collaborator

@domendobnikar domendobnikar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you @justinc1 👍

@domendobnikar domendobnikar merged commit 3e171bf into main May 22, 2025
4 checks passed
@domendobnikar domendobnikar deleted the fix-node-affinity branch May 22, 2025 14:27
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants