maas overestimates size of raid device, can cause deployment failure
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Blake Rouse | ||
2.3 |
Fix Committed
|
High
|
Blake Rouse | ||
2.4 |
Fix Committed
|
High
|
Blake Rouse |
Bug Description
If you configure a RAID array and add a partition that takes up the whole array, deployment fails with a message like:
An error occured handling 'md0-part1': ProcessExecutio
Command: ['sgdisk', '--new', '1:2048:
Exit code: 4
Reason: -
Stdout: Creating new GPT entries.
Stderr: Could not create partition 1 from 2048 to 2231420927
finish: cmd-install/
(full log at https:/
I think the problem is that the calculation of the RAID size that MAAS does does not allow for any overhead for the md metadata and alignment requirements. I've spent far too long trying to work out what the md metadata and alignments are in detail (for subiquity) and failed, but they're definitely not zero!
Related branches
- Blake Rouse (community): Approve
-
Diff: 547 lines (+120/-49)5 files modifiedsrc/maasserver/api/tests/test_raid.py (+37/-18)
src/maasserver/forms/tests/test_raid.py (+10/-3)
src/maasserver/models/filesystemgroup.py (+13/-5)
src/maasserver/models/tests/test_filesystemgroup.py (+57/-22)
src/maasserver/models/tests/test_virtualblockdevice.py (+3/-1)
- Blake Rouse (community): Approve
-
Diff: 547 lines (+120/-49)5 files modifiedsrc/maasserver/api/tests/test_raid.py (+37/-18)
src/maasserver/forms/tests/test_raid.py (+10/-3)
src/maasserver/models/filesystemgroup.py (+13/-5)
src/maasserver/models/tests/test_filesystemgroup.py (+57/-22)
src/maasserver/models/tests/test_virtualblockdevice.py (+3/-1)
- Newell Jensen (community): Approve
-
Diff: 547 lines (+120/-49)5 files modifiedsrc/maasserver/api/tests/test_raid.py (+37/-18)
src/maasserver/forms/tests/test_raid.py (+10/-3)
src/maasserver/models/filesystemgroup.py (+13/-5)
src/maasserver/models/tests/test_filesystemgroup.py (+57/-22)
src/maasserver/models/tests/test_virtualblockdevice.py (+3/-1)
Changed in maas: | |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → 2.5.x |
Changed in maas: | |
milestone: | 2.5.x → 2.5.0alpha2 |
tags: | added: track |
Changed in maas: | |
status: | Triaged → In Progress |
status: | In Progress → Triaged |
Changed in maas: | |
status: | Triaged → In Progress |
status: | In Progress → Fix Committed |
status: | Fix Committed → Fix Released |
status: | Fix Released → Triaged |
Changed in maas: | |
status: | Triaged → Fix Released |
status: | Fix Released → Triaged |
Changed in maas: | |
milestone: | 2.5.0alpha2 → 2.5.0beta1 |
Changed in maas: | |
assignee: | nobody → Blake Rouse (blake-rouse) |
Changed in maas: | |
milestone: | 2.5.0beta1 → 2.5.0beta2 |
Changed in maas: | |
status: | Triaged → In Progress |
tags: | added: sprint |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
tags: | added: canonical-bootstack |