~pguimaraes/maas:kvm-overcommit-fix-lp1842896

Last commit made on 2019-09-16
Get this branch:
git clone -b kvm-overcommit-fix-lp1842896 https://git.launchpad.net/~pguimaraes/maas
Only Pedro Guimarães can upload to this branch. If you are Pedro Guimarães please log in for upload directions.

Branch merges

Branch information

Name:
kvm-overcommit-fix-lp1842896
Repository:
lp:~pguimaraes/maas

Recent commits

8aad7b4... by Pedro Guimarães

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_composed_machine
* 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

850984c... by Blake Rouse

Fix lint.

80dae65... by Blake Rouse

Update comment.

9022f83... by Blake Rouse

Fixes LP: #1843493 - Handles serialization issues with saving composed machine information into the database.

ddd1275... by Blake Rouse

Fixes LP: #1811222 - Add conditional unique index to ensure that only 1 physical interface with the same mac address can exist in the database.

This prevents serialization issues where it was possible for 2 database connections to create the same physical interface with the same MAC address at the same time. Adds a data migration to remove any duplicates that would have been previously allowed into the database before the unique index is added.

472eb52... by Steve Rydz

Add DHCP column to network table

801e08d... by Steve Rydz

Add link speed and interface speed fields to interface edit form

614c7c8... by Alberto Donato

add NumaNode model, and link it to nodes, and physical block devices and interfaces

The migration logic adds a default NUMA node 0 for each existing node, and links all resources to it.
Eventually we'll track all NUMA nodes in a node, and which resources are attached to them

e9a218e... by Newell Jensen

Add hooks for LXD cpu information. Remove lscpu and related tests.

26a0abd... by Alberto Donato

update python linters versions, fix spacing around = for kwargs with type annotations