Auto detection of running virtual environment during commissioning almost always fails
Bug #1590946 reported by
Lee Trager
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Medium
|
Lee Trager |
Bug Description
MAAS has a commissioning script which detects if the commissioning node is running in a virtual environment. The current script does this my seeing if the CPU model name contains QEMU. This only detects QEMU virtualized environments and does not work with KVM, LXD, VMware, VirtualBox, or any other virtualization method.
MAAS should use systemd-detect-virt if available.
Related branches
lp:~ltrager/maas/virt_detect
- Mike Pontillo (community): Approve
-
Diff: 166 lines (+29/-30)5 files modifiedsrc/metadataserver/models/commissioningscript.py (+8/-8)
src/metadataserver/models/tests/test_commissioningscript.py (+8/-10)
src/metadataserver/tests/test_api.py (+4/-4)
src/metadataserver/tests/test_api_status.py (+1/-1)
src/provisioningserver/refresh/node_info_scripts.py (+8/-7)
description: | updated |
Changed in maas: | |
assignee: | nobody → Lee Trager (ltrager) |
Changed in maas: | |
status: | Triaged → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.