Deploy failed if the baremetal previous OS contains LVM
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ironic-lib |
Triaged
|
High
|
Ilya Etingof |
Bug Description
If you call "nova boot" to deploy user image with LVM into baremetal. This action is successful. Everything is OK. Then you call "nova delete <instance_uuid>", The instance is deleted and baremetal back to available status. Then you call "nova boot" again to deploy user image WITHOUT LVM, you will find deploy to fail.
This is because the script "write_image.sh": if disk contains LVM, cmd "sgdisk -Z <device>" can't destroy LVM partitions. So the result advise you to "reboot or call partprobe". Then partprobe in ironic_lib function _get_lablelled_
The error msgs:
ERROR ironic.
Changed in ironic-python-agent: | |
status: | New → Triaged |
importance: | Undecided → High |
affects: | ironic-python-agent → ironic-lib |
description: | updated |
Changed in ironic-lib: | |
assignee: | nobody → Ilya Etingof (etingof) |