Right now after partitioning the disk we have a sleep(3) to avoid the #device is busy problem, but that's not the right way to avoid this kind of problem, a better way to do it would be to check with fuser or lsof whether there's any process holding the device or if it's free (not busy).
Right now after partitioning the disk we have a sleep(3) to avoid the #device is busy problem, but that's not the right way to avoid this kind of problem, a better way to do it would be to check with fuser or lsof whether there's any process holding the device or if it's free (not busy).
https:/ /github. com/openstack/ ironic/ blob/master/ ironic/ drivers/ modules/ deploy_ utils.py# L99