mdraid name creates broken configuration
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Invalid
|
Undecided
|
Unassigned | ||
curtin |
Fix Committed
|
Undecided
|
James Falcon |
Bug Description
creating a raid1 on a two PARTITIONS works, both via the web interface and CLI.
Once the system is deploying though the wrong path is initialized, trying on chroot /dev/name-of-raid instead of /dev/md/
adding a prefix to the existent raid given name though makes it work. for example calling the raid md/my-raid works and the systems deploys successfully.
Creating further partitions on top of the mdadm block devices does not change the situation.
Screenshot attached.
Logs:
curtin: Installation started. (18.1-17-
third party drivers not installed or necessary.
An error occured handling 'os-raid1': ProcessExecutio
Command: ['mdadm', '--create', '/dev/os-raid1', '--run', '--homehost=
Exit code: 1
Reason: -
Stdout: ''
Stderr: mdadm: Note: this array has metadata at the start and
may not be suitable as a boot device. If you plan to
store '/boot' on this device please ensure that
your boot-loader understands md/v1.x metadata, or use
mdadm: /dev/os-raid1 is an invalid name for an md device. Try /dev/md/os-raid1
Unexpected error while running command.
Command: ['mdadm', '--create', '/dev/os-raid1', '--run', '--homehost=
Exit code: 1
Reason: -
Stdout: ''
Stderr: mdadm: Note: this array has metadata at the start and
may not be suitable as a boot device. If you plan to
store '/boot' on this device please ensure that
your boot-loader understands md/v1.x metadata, or use
mdadm: /dev/os-raid1 is an invalid name for an md device. Try /dev/md/os-raid1
curtin: Installation failed with exception: Unexpected error while running command.
Command: ['curtin', 'block-meta', 'custom']
Exit code: 3
Reason: -
Stdout: An error occured handling 'os-raid1': ProcessExecutio
Command: ['mdadm', '--create', '/dev/os-raid1', '--run', '--homehost=
Exit code: 1
Reason: -
Stdout: ''
Stderr: mdadm: Note: this array has metadata at the start and
Unexpected error while running command.
Command: ['mdadm', '--create', '/dev/os-raid1', '--run', '--homehost=
Exit code: 1
Reason: -
Stdout: ''
Stderr: mdadm: Note: this array has metadata at the start and
Stderr: ''
Related branches
- Server Team CI bot: Approve (continuous-integration)
- Ryan Harper (community): Approve
-
Diff: 214 lines (+70/-11)6 files modifiedcurtin/block/__init__.py (+14/-1)
curtin/commands/block_meta.py (+2/-2)
examples/tests/raid5boot.yaml (+1/-1)
tests/unittests/test_commands_block_meta.py (+34/-5)
tests/vmtests/__init__.py (+13/-0)
tests/vmtests/test_mdadm_bcache.py (+6/-2)
Changed in curtin: | |
status: | Expired → Confirmed |
Changed in curtin: | |
assignee: | nobody → James Falcon (falcojr) |
Changed in curtin: | |
status: | Confirmed → In Progress |
This is not a MAAS issue but a curtin issue (what MAAS uses for the installation).