microcloud snap is growing the ability to allocate local storage for use as part of the LXD cluster. This is done by first showing a list of unpartitionned drives to the user from which they must pick one drive per machine in the cluster.
As those drives may have pre-existing partition magics from prior use as a Ceph OSD or as a previous ZFS pool. We need the ability to wipe the magic out of the selected drive.
To do so, the
microcloud snap requires the
block-device interface so it can perform direct writes to the selected device.
This matches the logic which was implemented in
microceph a few months ago and was approved here: Request for block-devices interface in microceph