-
Notifications
You must be signed in to change notification settings - Fork 30
PCP-5229: In workload cluster with "use LXD VM's" enabled, Vm's are getting created with different Zones #235
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
Conversation
Kun483
commented
Sep 15, 2025
- Prevent MAAS compose a LXD VM in a wrong zone or resourcePool when no available machines.
… available machines
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR addresses an issue where MAAS was creating LXD VMs in incorrect zones for workload clusters. The fix adds validation to ensure allocated machines match the requested zone and resource pool constraints, releasing machines that don't meet requirements and returning an error.
- Adds post-allocation validation for zone and resource pool constraints
- Implements machine release logic when constraints are not met
- Removes a debug log message for HCP control plane allocation
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 5 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
We are adding post-allocation validation for zone and resource pool constraints, and removing the VM of it got created in a different resource pool/AZ. There is no logic to restrict the creation in the wrong placement. Also, once we delete the out-of-place VM. Will it trigger the new VM creation? If so, will it honour the placement? WIll it lead to loop of OOP VM creation and deletion? |
Because this Allocator causes LXD VM creation in a wrong resource Pool or wrong zone, we can't control it. We won't triggered new VM creation. |
In that case, we can take one of these approaches
cc @snehala27 |
|
close it as this is MAAS default behavior |