Hi,
Is there a reliable way to determine when a node has finished rebooting?
I started off writing my own reboot method that execs an "init 6" on the
node and then polls port 22 using a retry predicate to figure out when
the network service goes away and then comes back. I'm not a crazy
about this, but I can't think of a better way to accomplish it.
Then I found the reboot() method in the Nova ServerApi class. It seems
to asynchronously issue the reboot request and then return immediately,
so that doesn't really help me. I thought about trying to poll the
NodeMetaData.Status, but I'm not confident that I would be able to
detect the transitions from RUNNING to <something else> back to RUNNING.
Any suggestions?
Thanks,
--Ryan
PS - As far as I can tell, the reboot() method doesn't allow you to
select the RebootType - it always sends a RebootType.HARD. Am I missing
something?