I had a machine deployed with a large ext4 logical volume over two physical volumes. I deployed a rack controller on it for some testing. After I was done I released the machine and tried to redeploy but got the following error. I've been able to reproduce this by deploying a machine with LVM, releasing it, commissioning it again, and trying to redeploy an OS.
Logical volume "lv0" successfully removed
Volume group "lv0" not found
Cannot process volume group lv0
Volume group "vg0" successfully removed
An error occured handling 'vdb': FileNotFoundError - [Errno 2] No such file or directory: '/sys/block/lvm-pv-uuid-aIDI1l-jCya-1jLL-w3Si-Jn6W-RKPr-XP6Ssx/holders'
[Errno 2] No such file or directory: '/sys/block/lvm-pv-uuid-aIDI1l-jCya-1jLL-w3Si-Jn6W-RKPr-XP6Ssx/holders'
Installation failed with exception: Unexpected error while running command.
Command: ['curtin', 'block-meta', 'custom']
Exit code: 3
Reason: -
Stdout: b' Logical volume "lv0" successfully removed\n Volume group "lv0" not found\n Cannot process volume group lv0\n Volume group "vg0" successfully removed\nAn error occured handling \'vdb\': FileNotFoundError - [Errno 2] No such file or directory: \'/sys/block/lvm-pv-uuid-aIDI1l-jCya-1jLL-w3Si-Jn6W-RKPr-XP6Ssx/holders\'\n[Errno 2] No such file or directory: \'/sys/block/lvm-pv-uuid-aIDI1l-jCya-1jLL-w3Si-Jn6W-RKPr-XP6Ssx/holders\'\n'
Stderr: ''
I fixed this by wiping the partition table with
dd if=/dev/zero of=/dev/vda bs=1M count=1
dd if=/dev/zero of=/dev/vdb bs=1M count=1