How to reproduce:
$ maas admin machine deploy retc7f $ maas admin machine get-curtin-config retc7f > curtin-config.yaml
-> first deployment succeeds
$ maas admin machine release retc7f erase=true quick_erase=true -> quick erase succeeds
$ maas admin machine deploy retc7f $ maas admin machine get-curtin-config retc7f > curtin-config_after_erase.yaml
-> second deployment with the same configuration fails with: An error occured handling 'vda-part2': OSError - [Errno 16] Device or resource busy: '/dev/vda2'
How to reproduce:
$ maas admin machine deploy retc7f
$ maas admin machine get-curtin-config retc7f > curtin-config.yaml
-> first deployment succeeds
$ maas admin machine release retc7f erase=true quick_erase=true
-> quick erase succeeds
$ maas admin machine deploy retc7f config_ after_erase. yaml
$ maas admin machine get-curtin-config retc7f > curtin-
-> second deployment with the same configuration fails with:
An error occured handling 'vda-part2': OSError - [Errno 16] Device or resource busy: '/dev/vda2'