md_check_array_membership should pass export=True to mdadm_examine
Bug #1830157 reported by
Michael Hudson-Doyle
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
curtin |
Fix Released
|
Undecided
|
Michael Hudson-Doyle |
Bug Description
Testing a first cut of subiquity with existing partitions failed to install even if I didn't touch the existing RAID I had set up. I think the underlying reason is this code in md_check_
dev_examine = mdadm_examine(
if 'MD_UUID' not in dev_examine:
raise ValueError('Device is not part of an array: ' + device)
mdadm_examine(
I can't find any tests of type=raid, preserve=true so we'll see how many of these I find...
Related branches
~mwhudson/curtin:vmtest-preserve-raid
Merged
into
curtin:master
- Ryan Harper (community): Approve
- Server Team CI bot: Approve (continuous-integration)
- Dan Watkins (community): Approve
-
Diff: 185 lines (+149/-2)4 files modifiedcurtin/block/mdadm.py (+1/-1)
examples/tests/preserve-raid.yaml (+108/-0)
tests/unittests/test_block_mdadm.py (+1/-1)
tests/vmtests/test_preserve_raid.py (+39/-0)
Changed in curtin: | |
status: | Triaged → In Progress |
assignee: | nobody → Michael Hudson-Doyle (mwhudson) |
To post a comment you must log in.
Hi Michael, I can't really tell if that's the only cause of the problem, but it definitely looks as part of it.