jclouds-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ignasi Barrera <ignasi.barr...@gmail.com>
Subject Re: monitoring reboot status
Date Tue, 09 Jun 2015 08:50:52 GMT
Most of the cloud provider APIs will report a node as RUNNING when the
VM has been started. That does not mean that the operating system has
booted and all services are up & running and the instance is ready to
be used.

If you want to know when an instance ir ready, then I'd say your
strategy to wait for the port 22 to be open is a good way to go.

On 4 June 2015 at 22:56, Ryan Shoemaker <ryan.shoemaker@enterprisedb.com> wrote:
> 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?

View raw message