Merge ~alexsander-souza/maas:lp1943444_fix_lxd_boot_order into maas:master
Proposed by
Alexsander de Souza
Status: | Merged |
---|---|
Approved by: | Alexsander de Souza |
Approved revision: | 9f5b0d345fda64e5742d94d536d347b72812be3c |
Merge reported by: | MAAS Lander |
Merged at revision: | not available |
Proposed branch: | ~alexsander-souza/maas:lp1943444_fix_lxd_boot_order |
Merge into: | maas:master |
Diff against target: |
119 lines (+59/-12) 2 files modified
src/provisioningserver/drivers/pod/lxd.py (+10/-4) src/provisioningserver/drivers/pod/tests/test_lxd.py (+49/-8) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
MAAS Lander | Approve | ||
Alberto Donato (community) | Approve | ||
Review via email: mp+409242@code.launchpad.net |
Commit message
Preserve request's device order
Whenever is possible preserve the original device order from the request.
Fixes LP#1943444
Description of the change
The disk with the path set to root ('/') is always reported last by LXD, while MAAS expects that the order in the request is preserved.
This patch fixes this by building the discovered devices list in the original order, as currently there's no way to change the order LXD reports the devices (devices are sorted by path, the default storage must have the path set to root while the others must not have a path defined)
To post a comment you must log in.
UNIT TESTS fix_lxd_ boot_order lp:~alexsander-souza/maas/+git/maas into -b master lp:~maas-committers/maas
-b lp1943444_
STATUS: SUCCESS 094274301dc6af3 68dd30dc01
COMMIT: d2941a0d402e583