This is apparently a race condition that leaves lsblk without FSTYPE and LABEL. Cloud-init is then unable to verify that the partition is already formatted correctly and can be reused. This can be fixed by doing a 'udevadm settle' before doing 'lsblk' in enumerate_disk in cc_disk_setup.py.
Repro script with fix: https:/ /gist.github. com/paulmey/ 1a4f35a687d7559 dca612a0eda8d57 93
This is apparently a race condition that leaves lsblk without FSTYPE and LABEL. Cloud-init is then unable to verify that the partition is already formatted correctly and can be reused. This can be fixed by doing a 'udevadm settle' before doing 'lsblk' in enumerate_disk in cc_disk_setup.py.