Merge ~pguimaraes/maas:kvm-overcommit-fix-lp1842896 into ~blake-rouse/maas:fix-1843493
Status: | Rejected |
---|---|
Rejected by: | Blake Rouse |
Proposed branch: | ~pguimaraes/maas:kvm-overcommit-fix-lp1842896 |
Merge into: | ~blake-rouse/maas:fix-1843493 |
Diff against target: |
110 lines (+72/-2) 2 files modified
src/maasserver/forms/pods.py (+55/-2) src/maasserver/models/bmc.py (+17/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Blake Rouse | Pending | ||
Review via email: mp+372808@code.launchpad.net |
Commit message
Fixes LP: #1842896. Following changes made on Pods form and model:
* created machine inherits Pod zone instead of Default value, since we are filtering Pods by zone just before calling get_allocated_
* Pod model's create_machine now checks for overcommit ratios just before running the creation process, failing with PodProblem if overcommit limits arenot respected
* create_and_sync runs create_machine within transactional() method to avoid concurrency where multiple allocate requests ends up landing on same Pod and not respecting overcommit limits for that Pod
Description of the change
Fixes LP: #1842896. Following changes made on Pods form and model:
* created machine inherits Pod zone instead of Default value, since we are filtering Pods by zone just before calling get_allocated_
* Pod model's create_machine now checks for overcommit ratios just before running the creation process, failing with PodProblem if overcommit limits arenot respected
* create_and_sync runs create_machine within transactional() method to avoid concurrency where multiple allocate requests ends up landing on same Pod and not respecting overcommit limits for that Pod
I am actively working on proper fix for this, jsyk