buildroot
buildroot copied to clipboard
If a host is disabled and rebooted, it can't be enabled again
This is because the localdb has:
<row key="host_disabled_until_reboot" value="true"/>
-- this needs to be cleared on a reboot. On XenServer this happens via the init script and stamp files leading to an -onsystemboot argument.
It would be better if xapi could tell if the system has been rebooted by comparing the last Host boot time with the current time, avoiding stamp files and init.d scripts altogether.