insights-core
insights-core copied to clipboard
The mdstat parser doesn't parse the device up indication correctly
The mdstat parser doesn't parse the up/down status indicator correctly when there are more or less devices than there are status indicators. This is possible when there is a spare device or when a device is down. Here are two cases that fail to parse but have valid information:
Personalities : [raid6] [raid5] [raid4]
md0 : active raid6 nvme6n1[6] nvme5n1[5] nvme4n1[4] nvme7n1[7](S) nvme2n1[2] nvme1n1[1] nvme0n1[0] nvme3n1[3]
7813406720 blocks super 1.2 level 6, 512k chunk, algorithm 2 [7/7] [UUUUUUU]
bitmap: 2/12 pages [8KB], 65536KB chunk
unused devices: <none>
Personalities : [raid1]
md0 : active raid1 sdb1[1]
488254464 blocks super 1.2 [2/1] [_U]
bitmap: 4/4 pages [16KB], 65536KB chunk
unused devices: <none>