Bad storage config for two disk system
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Unassigned |
Bug Description
Hi,
I'm facing a problem while trying to crate software raid and deploy a system.
There are two disks sda and sdb. In case if boot_flag is set at sda disk config for curtin is being generated incorrectly:
partitioning_
builtin: [curtin, block-meta, custom]
storage:
config:
- {grub_device: true, id: sda, model: TOSHIBA DT01ACA3, name: sda, ptable: gpt,
serial: 44NYRR2GS, type: disk, wipe: superblock}
- {id: sdb, model: TOSHIBA DT01ACA3, name: sdb, ptable: gpt, serial: 96E8PNTAS,
type: disk, wipe: superblock}
- {device: sda, id: sda-part2, name: sda-part2, number: 2, size: 998244352B, type: partition,
uuid: f1faf741-
- {device: sda, id: sda-part3, name: sda-part3, number: 3, size: 2999585865728B,
type: partition, uuid: fc8db53a-
- {device: sdb, flag: bios_grub, id: sdb-part1, number: 1, offset: 4194304B, size: 1048576B,
type: partition, wipe: zero}
- devices: [sda-part2, sdb-part1]
id: md0
name: md0
raidlevel: 1
spare_devices: []
type: raid
- {device: sdb, id: sdb-part1, name: sdb-part1, number: 1, size: 998244352B, type: partition,
uuid: dc0f666d-
- {device: sdb, id: sdb-part2, name: sdb-part2, number: 2, size: 2999585865728B,
type: partition, uuid: ae8377a9-
- devices: [sda-part3, sdb-part2]
id: md1
name: md1
raidlevel: 0
spare_devices: []
type: raid
- {fstype: ext4, id: md0_format, label: '', type: format, uuid: d7d3f84b-
volume: md0}
- {fstype: ext4, id: md1_format, label: '', type: format, uuid: 972b2c67-
volume: md1}
- {device: md1_format, id: md1_mount, options: '', path: /, type: mount}
- {device: md0_format, id: md0_mount, options: '', path: /boot, type: mount}
As you may see, in that case, since sda is first disk, it should create 1MB partition on SDA, but it creates two sdb-part1 partitions. Because of that, then curtin tries to found previous partition of SDA, it can't and deployment fails.
In case if SDB selected as boot device, maas generates valid layout.
Changed in maas: | |
milestone: | 2.3.0 → 2.3.x |
Changed in maas: | |
status: | Incomplete → New |
MAAS version: 2.2.1