maas sends duplicate device info in config / need to be multipath aware
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Jeffrey C Jones | ||
1.10 |
Fix Released
|
Undecided
|
Unassigned | ||
1.9 |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
when looking at bug 1523779 i tried to reproduce and hit an error.
maas sends a config like below.
The issue is that it has told curtin to do two different things with the device that is 'serial: IBM_IPR-
Theres no sane way that curtin could determine which is the "right" thing to do. It should notice the situation and exit, but maas is still going to have to learn about multipath.
-- maas sent config --
storage:
config:
- {grub_device: true, id: sda, model: IPR-0 5EC29C00, name: sda, ptable: msdos, serial: IBM_IPR-
- {id: sdb, model: IPR-0 5EC29C00, name: sdb, serial: IBM_IPR-
- {id: sdc, model: IPR-0 5EC29C00, name: sdc, serial: IBM_IPR-
- {id: sdd, model: IPR-0 5EC29C00, name: sdd, serial: IBM_IPR-
- {id: sde, model: IPR-0 5EC29C00, name: sde, serial: IBM_IPR-
- {id: sdf, model: IPR-0 5EC29C00, name: sdf, serial: IBM_IPR-
- {id: sdh, model: IPR-0 5EC29C00, name: sdh, serial: IBM_IPR-
- {id: sdi, model: IPR-0 5EC29C00, name: sdi, serial: IBM_IPR-
- {id: sdj, model: IPR-0 5EC29C00, name: sdj, serial: IBM_IPR-
- {id: sdk, model: IPR-0 5EC29C00, name: sdk, serial: IBM_IPR-
- {id: sdl, model: IPR-0 5EC29C00, name: sdl, serial: IBM_IPR-
- {id: sdm, model: IPR-0 5EC29C00, name: sdm, serial: IBM_IPR-
- {device: sda, id: sda-part1, name: sda-part1, number: 1, offset: 4194304B, size: 283786608640B, type: partition, uuid: 6193de67-
- devices: [sda-part1]
id: vgroot
name: vgroot
type: lvm_volgroup
uuid: 93d1991a-
- {id: vgroot-lvroot, name: lvroot, size: 283782414336B, type: lvm_partition, volgroup: vgroot}
- {fstype: ext4, id: vgroot-
- {device: vgroot-
version: 1
Related branches
- Blake Rouse (community): Approve
-
Diff: 282 lines (+252/-2)2 files modifiedsrc/metadataserver/models/commissioningscript.py (+16/-2)
src/metadataserver/models/tests/test_commissioningscript.py (+236/-0)
- Blake Rouse (community): Approve
-
Diff: 282 lines (+252/-2)2 files modifiedsrc/metadataserver/models/commissioningscript.py (+16/-2)
src/metadataserver/models/tests/test_commissioningscript.py (+236/-0)
- Andres Rodriguez (community): Approve
-
Diff: 282 lines (+252/-2)2 files modifiedsrc/metadataserver/models/commissioningscript.py (+16/-2)
src/metadataserver/models/tests/test_commissioningscript.py (+236/-0)
- Andres Rodriguez (community): Approve
-
Diff: 128 lines (+44/-11)6 files modifieddebian/changelog (+22/-0)
debian/control (+3/-1)
debian/maas-dhcp.postinst (+2/-0)
debian/maas-proxy.install (+0/-1)
debian/maas-region-controller.postinst (+2/-1)
debian/rules (+15/-8)
Changed in maas: | |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → 1.9.1 |
Changed in maas: | |
assignee: | nobody → Jeffrey C Jones (trapnine) |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
milestone: | 1.9.1 → 2.0.0 |
Changed in maas: | |
status: | Fix Committed → Fix Released |
This still needs to be backported to MAAS 1.9 I believe.