VM get stuck when pxe_ssh is deployed with local boot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ironic |
Fix Released
|
Medium
|
Lucas Alvares Gomes |
Bug Description
This problem only affects the DIB ramdisk.
When deploying a machine with local boot using the pxe_ssh driver the VM will keep rebooting after the deployment and won't boot into the image written onto local disk. This happens because Ironic will change the boot device from PXE to DISK as part of the deployment but the change will only take effect after the VM is powered off and on again (that's a virsh problem).
When deploying with the DIB ramdisk, at the end of the deployment the ramdisk itself will reboot the machine (not power off and on), so on the next boot the VM will try to boot from the network again and will fail.
My suggestion is to have Ironic to control the power state of the machine after the deployment. Once the image is written to the disk and the bootloader installed (in case local boot is enabled) Ironic should do the reboot.
Workaround:
To workaround this problem one can power the VM off and on again manually and then it will boot from the local disk, e.g:
$ virsh destroy <machine name>
$ virsh start <machine name>
Changed in ironic: | |
importance: | Undecided → Critical |
importance: | Critical → Medium |
assignee: | nobody → Lucas Alvares Gomes (lucasagomes) |
Changed in ironic: | |
milestone: | none → kilo-rc1 |
Changed in ironic: | |
assignee: | Lucas Alvares Gomes (lucasagomes) → Devananda van der Veen (devananda) |
Changed in ironic: | |
assignee: | Devananda van der Veen (devananda) → Lucas Alvares Gomes (lucasagomes) |
Changed in ironic: | |
status: | Fix Committed → Fix Released |
Changed in ironic: | |
milestone: | kilo-rc1 → 2015.1.0 |
Fix proposed to branch: master /review. openstack. org/170117
Review: https:/