Default Image ID

2013-07-31 Thread Barak Merimovich
Hi, I've noticed that when starting a machine without providing jclouds with an imageId, I get some default image. in amazon for instance, the default image used is 'ami-99df3ff0'. I was wondering how you choose these images and whether I can count on these images to always be available. My

Re: Jclouds security with EC2

2013-07-31 Thread Andrew Phillips
So to start out does jclouds generates a key or it use amazon's API to create one? Then it uses that key just once to authorize myself, and from then on I just use my personal user and ssh key that was authorized? Most of this should be described in the Javadocs for AdminAccess [1]. Does that

RE: NovaComputeService

2013-07-31 Thread Zack Shoylev
I am looking at the examples I use ( https://github.com/jclouds/jclouds-examples/blob/master/rackspace/src/main/java/org/jclouds/examples/rackspace/cloudservers/CreateServer.java#L83 ) Seems your code is about the same, any issues with it? From: Bk Lau [mailto:bklau2...@gmail.com] Sent:

Re: Jclouds security with EC2

2013-07-31 Thread Johanna Jones
Thanks for that link! So the key pair it creates for each VM will be the same since my own ssh key is unchanging? Amazon is reporting each key pair has it's own fingerprint to me. So where is the code to generate the key, in the otherwise case? The closest I found was a link in the docs to

Re: NovaComputeService

2013-07-31 Thread Bk Lau
Zack: Not sure. I haven't got a Rackspace account to try it out yet. On Wed, Jul 31, 2013 at 12:35 PM, Zack Shoylev zack.shoy...@rackspace.comwrote: I am looking at the examples I use (

Re: Jclouds security with EC2

2013-07-31 Thread Johanna Jones
I might have found the answer? I can't tell. In jclouds https://github.com/jclouds/jclouds/tree/c6986efda62de0730106d42e23da25972feece33/apis https://github.com/jclouds/jclouds/tree/c6986efda62de0730106d42e23da25972feece33/apis/ec2

[no subject]

2013-07-31 Thread Bk Lau
I'm confused as to the differences between the 2 ways to create a security rule below: Seems that both methods below has the same signatures: /** * Create a Security Group Rule. * * @return a new Security Group Rule */ SecurityGroupRule createRuleAllowingCidrBlock(String

Re: NovaComputeService

2013-07-31 Thread Kavan Patil
I am no JClouds expert but : I tend to use this (and seems like this is encouraged): - NovaApi api = ContextBuilder.newBuilder(...) .credentials(...) .endpoint(...) .buildApi(NovaApi.class); ---

SSH Client not working, but RunScriptOnNodes working

2013-07-31 Thread Varad Meru
I am able to run scripts using compute.runScriptOnNode(node.getId(), script, runScriptOptions) but I am not able to do ssh using SshClient. Any ideas? Thanks in Advance, Regards, Varad Code Snippet -- SshClient client = context .utils()

Re:

2013-07-31 Thread Andrew Bayer
Yeah, that looks like a very definite bug. A. On Wed, Jul 31, 2013 at 1:17 PM, Andrew Phillips andr...@apache.org wrote: I'm confused as to the differences between the 2 ways to create a security rule below: Please let us know where in the docs you are finding this, and which version of

Terremark eCloud

2013-07-31 Thread Jai M
Hi, I am trying jclouds with Terremark eCloud service with the sample code on the web page. However the first login call is failing with following error org.jclouds.rest.AuthorizationException: request: POST https://services.enterprisecloud.terremark.com/api/v0.8b-ext2.8/loginHTTP/1.1 failed

Re: Terremark eCloud

2013-07-31 Thread Andrew Phillips
Has the api specification on Terremark deprecated the one used on jclouds ? Also the stack trace shows that the code path for this login is through vCloudExpress implementation. Is this intentional ? Yes, this is intentional: the ECloud compute service is just a slight adapter layer on top of

Re: Jclouds security with EC2

2013-07-31 Thread Andrew Phillips
I found the line, which looks like jclouds doesn't generate it's own keys, instead relying on EC2API: keyPair = ec2Api.getKeyPairApi().get().createKeyPairInRegion(region, keyName); Well spotted ;-) Yes, if jclouds *eventually* decides that it needs to make a new key, it uses the API (the

Re: Issue using JClouds with Ninefold

2013-07-31 Thread Andrew Bayer
Hmm. Could you open a JIRA for this at https://issues.apache.org? I'll dig into it. A. On Wed, Jul 31, 2013 at 4:44 PM, Mohan Baruwal Chhetri mohanbaru...@gmail.com wrote: Hi, I am trying to create an instance on Ninefold using the JClouds API. ComputeServiceContext

Re: Issue using JClouds with Ninefold

2013-07-31 Thread Andrew Phillips
But in the CloudStackAPI, it says that we need to specify the project id as well in order to get details of the private templates. The above query retrieves only the public templates. I can't see any explicit support for private templates, but the TemplateApi [1] comments do seem to talk

Re: Issue using JClouds with Ninefold

2013-07-31 Thread Mohan Baruwal Chhetri
Hi Andrew, I haven't tried the TemplateApi directly, but on examining the listTemplates method, the query parameters are 'command:listTemplates' and 'listall:true' and 'templatefilter:true' If I use ComputeService to listImages(), I get only the public templates which are: 10:12:30.810 [main]

Re: Terremark eCloud

2013-07-31 Thread Jai M
Yes Andrew, I get the same error. However, there is a cloud explorer link where I can try out the api's directly https://services.enterprisecloud.terremark.com/cloudapi/explorer On this page, on the top right hand side, there is a settings link. This launches a authentication dialog. On this