Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion needs to be running before executing a script on it. current state: PENDING

Received: by 10.224.223.14 with SMTP id ii14mr9413376qab.3.1351114320548;
        Wed, 24 Oct 2012 14:32:00 -0700 (PDT)
X-BeenThere: jclouds@googlegroups.com
Received: by 10.229.76.209 with SMTP id d17ls1214192qck.6.gmail; Wed, 24 Oct
 2012 14:31:59 -0700 (PDT)
Received: by 10.224.189.16 with SMTP id dc16mr7608760qab.0.1351114319801;
        Wed, 24 Oct 2012 14:31:59 -0700 (PDT)
Received: by 10.224.189.16 with SMTP id dc16mr7608759qab.0.1351114319783;
        Wed, 24 Oct 2012 14:31:59 -0700 (PDT)
Return-Path: <clastr...@gmail.com>
Received: from mail-qa0-f52.google.com (mail-qa0-f52.google.com [209.85.216.52])
        by gmr-mx.google.com with ESMTPS id ba11si777337qcb.2.2012.10.24.14.31.59
        (version=TLSv1/SSLv3 cipher=OTHER);
        Wed, 24 Oct 2012 14:31:59 -0700 (PDT)
Received-SPF: pass (google.com: domain of clastr...@gmail.com designates 209.85.216.52 as permitted sender) client-ip=209.85.216.52;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of clastr...@gmail.com designates 209.85.216.52 as permitted sender) smtp.mail=clastr...@gmail.com; dkim=pass header...@gmail.com
Received: by mail-qa0-f52.google.com with SMTP id g24so1597793qab.11
        for <jclouds@googlegroups.com>; Wed, 24 Oct 2012 14:31:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :content-type;
        bh=Wt/kE3uLqejOo8dbksZZ6MOKOR9CivpVRDA29QxzwVs=;
        b=PQemtdRhb/tVkCCmXpCpP3gUlszHwJb1SVcY8eNWJ/+S0U6Qo6xQqKqMhpXl0ukU31
         nUqk/PMYEVqbX4cVoW2wYKVQH/efWYmDP2veB5ne2C0QuSKAb9cs7LDpqSg07bfrimWA
         5J8kHFyApHjr5k2OK9pNZ3xj3JSKkMZWg3I+XllWAG2l5NBcnUEpJJtTPVyMPSmvj5uT
         MRbUoqWw8fYA8UA8i4lnhv3jHbTwW9SXfv1+zZnWDqBAcALO3QX94MOSePKPSAKukVgL
         Ky7xKvvfcFll6XdIB6WfAtRCm0SUT5fIHX+xQ28AI24bVEaYB8eucfJJtZh+ttWewElq
         Ukrw==
MIME-Version: 1.0
Received: by 10.49.3.234 with SMTP id f10mr9540690qef.45.1351114319635; Wed,
 24 Oct 2012 14:31:59 -0700 (PDT)
Received: by 10.49.83.133 with HTTP; Wed, 24 Oct 2012 14:31:59 -0700 (PDT)
In-Reply-To: <CCAD7C20.5AC7%everett.to...@rackspace.com>
References: <CAHNr0vJvvo=XCP2cgvaseNk4i5SgnicE3XAeZ0ZmL-9iFry...@mail.gmail.com>
	<CCAD7C20.5AC7%everett.to...@rackspace.com>
Date: Wed, 24 Oct 2012 22:31:59 +0100
Message-ID: <CAAczPLgVtAfy=SVB1Rarwuw15tZ2ZMK0ntxXHopimr6dF-1...@mail.gmail.com>
Subject: Re: needs to be running before executing a script on it. current
 state: PENDING
From: Chris Strand <clastr...@gmail.com>
To: jclouds@googlegroups.com
Content-Type: multipart/alternative; boundary=047d7bb03e6812a4de04ccd4d1b8

--047d7bb03e6812a4de04ccd4d1b8
Content-Type: text/plain; charset=ISO-8859-1

Hey Tom & Everett,

I experienced this regularly on the old Rackspace.

The problem for me was that Rackspace API often reports the node as pending
even after it has booted up. Due to the way my code was set up I was
polling port 22 myself to see when the server was set up rather than using
jclouds blocking methods. I then went on to use
ComputeService.runScriptOnNode() which, from my understanding, checks the
API to see the status of the server. Since it was sometimes still pending
and not running/active it could fail.

If you aren't using the jclouds ways of blocking until a server comes up,
or if you aren't polling it's state from the API then this could be the
reason. I haven't actually upgraded to next gen yet so I could be barking
up the wrong tree of course!

I fixed this by polling the API and then trying to run commands. This was
implemented with a Predicate to check if the NodeState was Running and
using that within a RetryablePredicate (a super awesome jclouds class). If
you think it will help you I can dig out the code for this - just ask!

Hope this can shed some light,

Chris

On 24 October 2012 17:10, Everett Toews <everett.to...@rackspace.com> wrote:

>  I've done similar using the ComputeService.runScriptOnNode() without
> issues on the Rackspace NextGen stuff, see [1] and [2]. Maybe something in
> there will help.
>
>  Is it possible for you to isolate the issue in a small app and share it
> with us in a gist?
>
>  [1] https://gist.github.com/3862485
> [2] https://gist.github.com/3862516
>
>  Regards,
> Everett
>
>   From: Tom Barber <tombarbe...@googlemail.com>
> Reply-To: "jclouds@googlegroups.com" <jclouds@googlegroups.com>
> Date: Wednesday, October 24, 2012 10:57 AM
> To: "jclouds@googlegroups.com" <jclouds@googlegroups.com>
> Subject: needs to be running before executing a script on it. current
> state: PENDING
>
>  HI Guys,
>
> I'm testing on the Rackspace nextgen stuff, and my code that runs fine on
> EC2 gives me:
> Caused by: java.lang.IllegalStateException: node
> DFW/073e9685-cd25-407d-a7b7-d477d8a40148 needs to be running
> before
>                       executing a script on it. current state: PENDING
>
> I know the server was up, I was ssh'd into it on a console as well.
>
> I'm using the client.submitScriptOnNode() method.
>
> Anyone seen similar?
>
> Thanks
>
> Tom
>
> --
> You received this message because you are subscribed to the Google Groups
> "jclouds" group.
> To post to this group, send email to jclouds@googlegroups.com.
> To unsubscribe from this group, send email to
> jclouds+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/jclouds?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "jclouds" group.
> To post to this group, send email to jclouds@googlegroups.com.
> To unsubscribe from this group, send email to
> jclouds+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/jclouds?hl=en.
>

--047d7bb03e6812a4de04ccd4d1b8
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div>Hey Tom &amp; Everett,</div><div><br></div>I experienced this regularl=
y on the old Rackspace.<div><br></div><div>The problem for me was that Rack=
space API often reports the node as pending even after it has booted up. Du=
e to the way my code was set up I was polling port 22 myself to see when th=
e server was set up rather than using jclouds blocking methods. I then went=
 on to use ComputeService.runScriptOnNode() which, from my understanding, c=
hecks the API to see the status of the server. Since it was sometimes still=
 pending and not running/active it could fail.</div>
<div><br></div><div>If you aren&#39;t using the jclouds ways of blocking un=
til a server comes up, or if you aren&#39;t polling it&#39;s state from the=
 API then this could be the reason. I haven&#39;t actually upgraded to next=
 gen yet so I could be barking up the wrong tree of course!</div>
<div><br></div><div>I fixed this by polling the API and then trying to run =
commands. This was implemented with a Predicate to check if the NodeState w=
as Running and using that within a RetryablePredicate (a super awesome jclo=
uds class). If you think it will help you I can dig out the code for this -=
 just ask!</div>
<div><br></div><div>Hope this can shed some light,</div><div><br></div><div=
>Chris<br><br><div class=3D"gmail_quote">On 24 October 2012 17:10, Everett =
Toews <span dir=3D"ltr">&lt;<a href=3D"mailto:everett.to...@rackspace.com" =
target=3D"_blank">everett.to...@rackspace.com</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">



<div style=3D"font-size:14px;font-family:Helvetica,sans-serif;word-wrap:bre=
ak-word">
<div>I&#39;ve done similar using the ComputeService.runScriptOnNode() witho=
ut issues on the Rackspace NextGen stuff, see [1] and [2]. Maybe something =
in there will help.</div>
<div><br>
</div>
<div>Is it possible for you to isolate the issue in a small app and share i=
t with us in a gist?</div>
<div><br>
</div>
<div>[1]=A0<a href=3D"https://gist.github.com/3862485" target=3D"_blank">ht=
tps://gist.github.com/3862485</a></div>
<div>[2]=A0<a href=3D"https://gist.github.com/3862516" target=3D"_blank">ht=
tps://gist.github.com/3862516</a></div>
<div><br>
</div>
<div>Regards,</div>
<div>Everett</div>
<div><br>
</div>
<span>
<div style=3D"border-right:medium none;padding-right:0in;padding-left:0in;p=
adding-top:3pt;text-align:left;font-size:11pt;border-bottom:medium none;fon=
t-family:Calibri;border-top:#b5c4df 1pt solid;padding-bottom:0in;border-lef=
t:medium none">

<span style=3D"font-weight:bold">From: </span>Tom Barber &lt;<a href=3D"mai=
lto:tombarbe...@googlemail.com" target=3D"_blank">tombarbe...@googlemail.co=
m</a>&gt;<br>
<span style=3D"font-weight:bold">Reply-To: </span>&quot;<a href=3D"mailto:j=
clouds@googlegroups.com" target=3D"_blank">jclouds@googlegroups.com</a>&quo=
t; &lt;<a href=3D"mailto:jclouds@googlegroups.com" target=3D"_blank">jcloud=
s@googlegroups.com</a>&gt;<br>

<span style=3D"font-weight:bold">Date: </span>Wednesday, October 24, 2012 1=
0:57 AM<br>
<span style=3D"font-weight:bold">To: </span>&quot;<a href=3D"mailto:jclouds=
@googlegroups.com" target=3D"_blank">jclouds@googlegroups.com</a>&quot; &lt=
;<a href=3D"mailto:jclouds@googlegroups.com" target=3D"_blank">jclouds@goog=
legroups.com</a>&gt;<br>

<span style=3D"font-weight:bold">Subject: </span>needs to be running before=
 executing a script on it. current state: PENDING<br>
</div><div><div class=3D"h5">
<div><br>
</div>
<div>
<div>HI Guys,<br>
<br>
I&#39;m testing on the Rackspace nextgen stuff, and my code that runs fine =
on EC2 gives me:<br>
Caused by: java.lang.IllegalStateException: node DFW/073e9685-cd25-407d-a7b=
7-d477d8a40148 needs to be running before=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0
<br>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 executing a=
 script on it. current state: PENDING<br>
<br>
I know the server was up, I was ssh&#39;d into it on a console as well.<br>
<br>
I&#39;m using the client.submitScriptOnNode() method.<br>
<br>
Anyone seen similar?<br>
<br>
Thanks<br>
<br>
Tom<br>
<p></p>
-- <br>
You received this message because you are subscribed to the Google Groups &=
quot;jclouds&quot; group.<br>
To post to this group, send email to <a href=3D"mailto:jclouds@googlegroups=
.com" target=3D"_blank">jclouds@googlegroups.com</a>.<br>
To unsubscribe from this group, send email to <a href=3D"mailto:jclouds+uns=
ubscribe@googlegroups.com" target=3D"_blank">
jclouds+unsubscribe@googlegroups.com</a>.<br>
For more options, visit this group at <a href=3D"http://groups.google.com/g=
roup/jclouds?hl=3Den" target=3D"_blank">
http://groups.google.com/group/jclouds?hl=3Den</a>.<br>
</div>
</div>
</div></div></span>
</div><div class=3D"HOEnZb"><div class=3D"h5">


<p></p>

-- <br>
You received this message because you are subscribed to the Google Groups &=
quot;jclouds&quot; group.<br>
To post to this group, send email to <a href=3D"mailto:jclouds@googlegroups=
.com" target=3D"_blank">jclouds@googlegroups.com</a>.<br>
To unsubscribe from this group, send email to <a href=3D"mailto:jclouds%2Bu=
nsubscribe@googlegroups.com" target=3D"_blank">jclouds+unsubscribe@googlegr=
oups.com</a>.<br>

For more options, visit this group at <a href=3D"http://groups.google.com/g=
roup/jclouds?hl=3Den" target=3D"_blank">http://groups.google.com/group/jclo=
uds?hl=3Den</a>.<br>


</div></div></blockquote></div><br></div>

--047d7bb03e6812a4de04ccd4d1b8--