#892163 fai-setup-storage fails with "Invalid dev children setting"

#892163#5
Date:
2018-03-06 10:17:03 UTC
From:
To:
Hi,

I'm trying to install Ubuntu Xenial using FAI. The storage setup is
failing, and emits the error message:

INTERNAL ERROR in setup-storage:
Invalid dev children entry
Please report this error to the Debian Bug Tracking System.
 at /usr/share/fai/setup-storage/Commands.pm line 1145.
        FAI::setup_partitions("PHY_/dev/sdbh") called at
/usr/share/fai/setup-storage/Commands.pm line 1405
        FAI::build_disk_commands called at /usr/sbin/setup-storage line 216

I'm attaching our disk-config file, and the output from running
setup-storage -d -D "sdbh sdbi" from inside the failed FAI (IYSWIM).

Thanks,

Matthew

#892163#10
Date:
2018-03-06 17:29:10 UTC
From:
To:
Hi,

For reference, the underlying issue was that there was some stray md
metadata left on one of the devices (which I think was meaning md was
incorrectly trying to build the wrong array); deleting it with
--zero-superblock let FAI continue successfully.

While spotting that might be a bit more than you could expect from
setup-storage, I think it's error handling could be a bit more robust
(which is presumably why it said "please open a bug report" :-) )

Regards,

Matthew

#892163#15
Date:
2018-04-25 14:37:27 UTC
From:
To:
I will tag this bug as a wishlist bug, since it's more about a better
error message.