Deploy with RAID as / fails if there is a newer kernel available
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
curtin |
Fix Released
|
High
|
Unassigned |
Bug Description
maas 1.9.1+bzr4543-
Full installation log, as given by maas, attached.
I configured a node to use RAID1 for /, and did a deployment. It failed. Relevant lines:
run-parts: executing /etc/kernel/
Generating grub configuration file ...
grub-probe: error: disk `md0' not found.
run-parts: /etc/kernel/
(...)
E: Sub-process /usr/bin/dpkg returned an error code (1)
Unexpected error while running command.
Command: ['chroot', '/tmp/tmp1Ds3mQ
Exit code: 100
I have deployed this node before in this same configuration with no issues.
This is where I'm making a guess: it failed this time because there was a kernel update available. Had there been none (i.e., the daily image was more up-to-date), then there would be no new kernel installed and the error would not have happened.
I'm not sure how to test the "good" case here, other than wait a day or two for the image to be updated and try again. To test the failure case it should suffice to configure maas to use released images (not daily) and do a deploy with this RAID configuration.
Related branches
- Server Team CI bot: Approve (continuous-integration)
- Scott Moser (community): Approve
-
Diff: 1117 lines (+516/-104)12 files modifiedcurtin/block/__init__.py (+2/-1)
curtin/block/mdadm.py (+5/-1)
curtin/commands/block_meta.py (+130/-64)
curtin/commands/curthooks.py (+16/-13)
curtin/udev.py (+15/-0)
examples/tests/allindata.yaml (+6/-0)
examples/tests/bonding_network.yaml (+5/-0)
examples/tests/mdadm_bcache.yaml (+67/-20)
examples/tests/mdadm_bcache_complex.yaml (+125/-0)
tests/unittests/test_block_mdadm.py (+8/-1)
tests/vmtests/test_mdadm_bcache.py (+136/-3)
tests/vmtests/test_raid5_bcache.py (+1/-1)
tags: | added: curtin-sru |
Changed in curtin: | |
status: | Confirmed → Fix Released |
Please include the output of the following commands:
maas [my-maas-session] node get-curtin-config [node-system-id]
maas [my-maas-session] block-devices read [node-system-id]
This is a curtin issue dealing with a newer kernel. MAAS has already handed the node to curtin to install. Curtin needs to handle this correctly.