Merge ~ltrager/maas:lp1878923_lp1878685_2.7 into maas:2.7
Proposed by
Lee Trager
Status: | Merged | ||||||||
---|---|---|---|---|---|---|---|---|---|
Approved by: | Lee Trager | ||||||||
Approved revision: | 7581c7169bef4bb44a3a1fddc60c38bbc5bcd295 | ||||||||
Merge reported by: | MAAS Lander | ||||||||
Merged at revision: | not available | ||||||||
Proposed branch: | ~ltrager/maas:lp1878923_lp1878685_2.7 | ||||||||
Merge into: | maas:2.7 | ||||||||
Diff against target: |
108 lines (+51/-12) 3 files modified
src/machine-resources/src/machine-resources/Gopkg.lock (+7/-2) src/metadataserver/builtin_scripts/hooks.py (+8/-10) src/metadataserver/builtin_scripts/tests/test_hooks.py (+36/-0) |
||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Lee Trager (community) | Approve | ||
MAAS Lander | unittests | Pending | |
Review via email: mp+384287@code.launchpad.net |
Commit message
Backport of 894a324 - LP: #1878923, #1878685 - Fix incorrect memory detection.
LXD was only detecting the amount of available memory in user space.
Memory reserved by the kernel was not shown as available. This caused MAAS
to show slightly less RAM then the system actually had.
MAAS was assuming that a NUMA node always had memory assigned to it. When
0 memory was assigned to a node commissioning would raise an exception and
fail.
To post a comment you must log in.
Approved in https:/ /code.launchpad .net/~ltrager/ maas/+git/ maas/+merge/ 384202