Currently, during nova-compute restart, when CONF.resume_guests_state_on_host_boot is set true, all existing will be put into ERROR state. In the patch, we just leave the instance in POWEROFF state. This way, we can directly run ‘nova reboot’ to get the instance back after errors got fixed. With an instance in ‘ERROR’ state, one has to manually change the DB record to other state before running ‘nova reboot’.
Currently, during nova-compute restart, when CONF.resume_ guests_ state_on_ host_boot is set true, all existing will be put into ERROR state. In the patch, we just leave the instance in POWEROFF state. This way, we can directly run ‘nova reboot’ to get the instance back after errors got fixed. With an instance in ‘ERROR’ state, one has to manually change the DB record to other state before running ‘nova reboot’.