Skip to main content

Image creation or deployment hangs on "calling subprocess.Popen"

Problem

During Windows image capture or deployment, the IVS can hang at the message "Calling subprocess.Popen with: parted -m /dev/sda print".

dirty_partition.png

Solution

This usually points to a bad or unreadable partition table on the target device. To clear it, enable the IVS debug prompt, boot the affected device, and run the partition cleanup command on the correct disk.

The sgdisk --zap command clears partition data on the selected disk. Verify the drive name before running it; the screenshot shows /dev/sda, but your device may use a different disk name.

  1. Make a note of the partition that appears stuck. In the screenshot it is "/dev/sda". Your drive may have a different name.

  2. After you know the drive name, turn off the machine that is stuck capturing or deploying the image.

  3. Connect to your IVS and run the below command.

    touch /etc/fw_master_debug
  4. PXE boot the machine giving the error again.

  5. The machine will go to a prompt where you are able to type the below command. For the example, "/dev/sda", but yours may be different.

    sgdisk --zap /dev/sda
  6. Shut down the machine you are capturing the image from or deploying the image to.

  7. Run the below command on your IVS to delete the file you created.

     rm -rf /etc/fw_master_debug
  8. PXE boot the machine again. The image capture or deployment should continue past the previous hang point.