whirr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Alves <davidral...@gmail.com>
Subject Re: Some help in service bootstrap
Date Sat, 03 Sep 2011 02:33:21 GMT
Will have to look a bit deeper into this.

As it turns out I have my own service with is using chef to install java and postrgresql and
it works fine.
Its might be something with the testservice itself:

Andrei: Maybe the execution of a recipe might not mean the service was actually up in some
cases but in this case the recipe is to install ant and maven (in the test service) so these
should become immediately available after the recipe runs (java and postgresql do).

On Sep 2, 2011, at 8:54 PM, Adrian Cole wrote:

> jclouds has a class RetryablePredicate you can consider using for this.
> -A
> On Sep 2, 2011 10:10 AM, "Andrei Savu" <savu.andrei@gmail.com> wrote:
>> On Fri, Sep 2, 2011 at 6:24 AM, David Alves <davidralves@gmail.com> wrote:
>>> So is this a timing problem? Is the test method being executed before
> TestService completely installed the recipes?
>> Looks like a timing problem. I guess that a successful chef recipe
>> execution does not also mean the service is available to answer
>> requests. I believe you should add a retry loop around the check (e.g.
>> 10 times with 1 second wait between checks).
>> Cheers,
>> Andrei

View raw message