[VROC] Error occurs during installation OS on degraded RAID volume
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
subiquity |
Triaged
|
Undecided
|
Unassigned |
Bug Description
Found on Ubuntu 22.04.1
Steps to reproduce:
1. Create RAID in preOS.
2. Disconnect RAID member to degrade volume.
3. Reboot.
4. Prepare install configuration file and set installation on GPT partition.
5. Start OS installation on degraded RAID volume using configuration file.
6. Wait for installation to finish.
Expected results:
OS should be installed successfully.
OS should boot from degraded RAID.
Actual results:
It's not possible to install OS on degraded RAID:
Running command ['mdadm', '--detail', '--scan', '-v'] with allowed return codes [0, 1] (capture=True)
mdadm detail scan after assemble:
ARRAY /dev/md/imsm0 level=container num-devices=3 metadata=imsm UUID=96c463f3:
ARRAY /dev/md/r5d4s16_A_0 level=raid5 num-devices=4 container=
Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False)
TIMED udevadm_settle(): 0.021
RAID validation: name=/dev/md126 raidlevel=raid5 devices=[] spares=[] container=
Running command ['mdadm', '--query', '--detail', '--export', '/dev/md126'] with allowed return codes [0] (capture=True)
Verified /dev/md126 raid composition, raid is not OK
Error checking raid /dev/md126: Array in degraded state: /dev/md126
Error checking raid /dev/md126: Array in degraded state: /dev/md126
An error occured handling 'volume': ValueError - Verified /dev/md126 raid composition, raid is not OK
finish: cmd-install/
TIMED BLOCK_META: 1.912
finish: cmd-install/
Traceback (most recent call last):
File "/snap/
ret = args.func(args)
File "/snap/
return log_time("TIMED %s: " % msg, func, *args, **kwargs)
File "/snap/
return func(*args, **kwargs)
File "/snap/
return meta_custom(args)
File "/snap/
File "/snap/
File "/snap/
File "/snap/
raise ValueError(msg)
ValueError: Verified /dev/md126 raid composition, raid is not OK
Verified /dev/md126 raid composition, raid is not OK
I was thinking this was a duplicate of an old bug but that was a bit different https:/ /bugs.launchpad .net/subiquity/ +bug/1763647
I think so long as we make the status of the RAID clearly visible in the UI, the user should be able to install to a degraded array if they want to.