Need help running scripts on EC2

2013-09-13 Thread Nishant Chandra
Hi, I am trying to run a script like this on multiple EC2 servers: for (NodeMetadata node : nodes) { String runScript = new ScriptBuilder() .addStatement(exec(sh run.sh)) .render(org.jclouds.scriptbuilder.domain.OsFamily.UNIX); ListenableFutureExecResponse responses =

RE: Need help running scripts on EC2

2013-09-13 Thread Zack Shoylev
I have seen some images that do not support bash-shopt which is what jclouds uses to wrap scripts (in the header). What image is being used? From: Ignasi [ignasi.barr...@gmail.com] Sent: Friday, September 13, 2013 2:19 PM To: user@jclouds.incubator.apache.org

Re: Need help running scripts on EC2

2013-09-13 Thread Andrew Phillips
The script does not start. The script starts a server and exits, something like java -jar somejar.jar Have you tried putting any echo starting /my/log/file statements in the script, just to see if it even ever gets invoked? Regards ap

Need help running scripts on EC2

2013-09-13 Thread Ignasi
A couple considerations: * You don't have to manually render the script. You can directle pass the 'exec(foo)' to the submitScriptOnNode method and jclouds will take care of rendering it properly depending on the type of the Template being deployed. * Why don't you want to wrap it in the init

Re: Need help running scripts on EC2

2013-09-13 Thread Nishant Chandra
It fails on Ubuntu. I tried that before moving to Amazon AMI. On Sat, Sep 14, 2013 at 2:14 AM, Ignasi ignasi.barr...@gmail.com wrote: Glad to hear it works! Yes. You'll see a symlink in your home pointing to the script that is actually executed. You can read it to have a better

How to specify SSL key for HTTPs access

2013-09-13 Thread Bk Lau
Hi : How do I specify specific SSL key for, say, a keyStone authentication. Some properties overrides exists to do this? This has been asked before [1] sometime ago. So what's the current status on this?. Currently all the JClouds examples uses HTTP only. That means plain username/password(even

Re: How to specify SSL key for HTTPs access

2013-09-13 Thread Andrew Phillips
Currently all the JClouds examples uses HTTP only. That means plain username/password(even a single time) can be stolen, even if its submitted for a token. Are you able to modify the JRE keystore, or set it using the standard -Djava.net.ssl... parameters (e.g. [1]) as specified in the answer