Re: Jenkins + jclouds + windows instances

2013-12-09 Thread Ignasi Barrera
I don't know exactly what the Jenkins plugin executes in the node, but apart from the SSH connection, there are several scripts that assume a bash shell in it. Adding support for jclouds+Windows would require more than installing an SSH server in the guest. As you found, there was a work started t

Re: sending a specific request to cloud provider

2013-12-29 Thread Ignasi Barrera
Hi Eyal, Andrew's suggestion should help, although you'll have to manually invoke the FormSigner to get the request signed and also manually build the request with all required fields. Adding that new call to the AWSInstanceApi should be pretty straightforward. Wanna try opening a pull request? :

Re: INTERNAL_SERVER_ERROR on getting versions of a vcloud server

2014-01-01 Thread Ignasi Barrera
I think it is a safe patch. According to the spec [1], not sending the Accept header means the client accepts all media types, and the */* value for the header means the same. I also added that in the OkHttp driver pull request [2]. Nirmal, could you open a pull request, as suggested by Andrew, wi

Re: INTERNAL_SERVER_ERROR on getting versions of a vcloud server

2014-01-01 Thread Ignasi Barrera
More than a request filter, could you try to add a @Consumes annotation at class level to include that header in the methods that don't override it explicitly? That would reduce the complexity too and remove the need for an additional filter. El 01/01/2014 17:07, "Andrew Phillips" escribió: > Th

Re: INTERNAL_SERVER_ERROR on getting versions of a vcloud server

2014-01-01 Thread Ignasi Barrera
It would be great to see those PR! Having contributions in the vcloud apis is definitely something that is very welcome. Do you have any plan to add the Compute view for vcloud-director? I can help with that if you want/can! El 01/01/2014 17:46, "Nirmal Fernando" escribió: > Only vcloud. I found

Re: INTERNAL_SERVER_ERROR on getting versions of a vcloud server

2014-01-01 Thread Ignasi Barrera
r you? El 01/01/2014 18:05, "Nirmal Fernando" escribió: > > > > On Wed, Jan 1, 2014 at 10:26 PM, Ignasi Barrera > wrote: > >> It would be great to see those PR! Having contributions in the vcloud >> apis is definitely something that is very welcome. >&g

Improve jclouds site content

2014-01-01 Thread Ignasi Barrera
Hi jcloudies! We've recently started a discussion about the contents in http://jclouds.apache.org It would be great if we could discuss the things to improve to make the site better and make it easier for newcomers to approach jclouds. Let's do some brainstorming and see what we can do! My opini

Re: INTERNAL_SERVER_ERROR on getting versions of a vcloud server

2014-01-01 Thread Ignasi Barrera
/jclouds/blob/master/core/src/main/java/org/jclouds/rest/internal/RestAnnotationProcessor.java#L702-706 El 02/01/2014 04:53, "Nirmal Fernando" escribió: > Hi Ignasi, > > > On Thu, Jan 2, 2014 at 2:54 AM, Ignasi Barrera > wrote: > >> You can replace the @Reque

Re: Improve jclouds site content

2014-01-02 Thread Ignasi Barrera
p? >> >> Thanks, >> Everett >> >> [1] http://getbootstrap.com/ >> >> [*] >> Front end projects: >> http://jquery.com/ >> http://lesscss.org/ >> http://d3js.org/ >> >> Languages: >> http://preview.python.org/

Re: Improve jclouds site content

2014-01-04 Thread Ignasi Barrera
et the new site moving! [1] https://github.com/jclouds/jclouds-site/pull/51 On 3 January 2014 01:49, Zack Shoylev wrote: > I kind of thought it was nice that all websites will look exactly the same in > a few... months... :) Easier to maintain! > ________

Re: Some questions on JCloud...

2014-01-04 Thread Ignasi Barrera
Hi Ignacio, As fas as I know there is no direct way to force a concrete IP address using the portable TemplateOptions. Configuring a concrete IP address is something that not all providers support, and that's why is not part of the base TemplateOptions implementation. If you are using a concrete p

Re: [jClouds Abiquo] - Issue when deploying to jBoss

2014-01-08 Thread Ignasi Barrera
This is something that hs already been fixed in the Abiquo dependencies. The wink-common was included just for commodity, but we've removed the dependency in the last version of the api-model-transport. Using it requires some changes in the Abiquo provider and I've still had no time to make them. C

Re: [jClouds Abiquo] - Issue when deploying to jBoss

2014-01-08 Thread Ignasi Barrera
sue > (JCLOUDS-421<https://issues.apache.org/jira/browse/JCLOUDS-421>) > as you suggest, though I’m not sure if the description is correct J > > But as it gets solved, is there any workaround I can implement on my side > in the meantime? > > > > *From:* Ignasi Barrera [mail

Re: [jClouds Abiquo] - Issue when deploying to jBoss

2014-01-08 Thread Ignasi Barrera
can do the changes in the API I'll update the version of the dependency, as the latest version does no longer depend on wink. On 8 January 2014 12:57, Ignasi Barrera wrote: > If I remember well, the wink dependency was used only by a constructor in > the RESTLink class. Perhaps you c

RE: Setting Content-Disposition header containing Finnish alphabets å, ä or ö

2014-01-10 Thread Ignasi Barrera
Great investigatiom here! Out of curiosity: Everett, could you test this with the OkHttp driver? If it works out of the box without the workaround (it could, as it doesn't use the sun classes), it could be worth adding a property to jclouds to configure the file encoding, that could be read by th

Re: Error Running mysql from jclouds

2014-01-11 Thread Ignasi Barrera
As suggested in the chef user list, have you tried to add the "apt" cookbook to tbe runlist? Which jclouds/jclouds-chef versions are you using? Could you also share the code you use to configure chef and run it on the node? Is it running as root (or with sudo)? I. El 11/01/2014 20:09, "Jayant Ka

Re: Error Running mysql from jclouds

2014-01-11 Thread Ignasi Barrera
uot;, contextKey, > recipes); > } > is there any thing to be done > with scriptOptions.overrideAuthenticateSudo(true); > > also the InstallRuby,InstallRubyGems and InstallChefGems is failing for > the amazon ami-1bf9de5e > > > > Regards > Jayant Kaushal >

Re: Jclouds packaging

2014-01-13 Thread Ignasi Barrera
Hi Sumit, Yes, you can just use individual providers or apis. You can download individual provider and api jars fro Maven Central [1] and [2]; just make sure to download all required dependencies. There are also some providers that are still in labs [3] and use a different groupId. To make sure y

Re: INTERNAL_SERVER_ERROR on getting versions of a vcloud server

2014-01-14 Thread Ignasi Barrera
s). Perhaps we can >> have a chat in the IRC channel or start a new thread to discuss the impleme >> tation details. Would this work for you? > > Thanks for the offer. I'm in for an IRC chat on this, please let me know a > feasible time for you. > >> El 01/01/2014 18:0

Re: Credentials to use with HP Cloud (2)

2014-01-16 Thread Ignasi Barrera
Hi Jose, Try setting the following property when creating the context: Properties overrides = new Properties(); overrides.setProperty(KeystoneProperties.CREDENTIAL_TYPE, CredentialTypes.API_ACCESS_KEY_CREDENTIALS) ContextBuilder.newBuilder(foo) ... .overrides(overrides) ... And use the identity

Re: Search and Build a Template

2014-01-16 Thread Ignasi Barrera
Yes. Jclouds will select a tuple (image, hardware profile) that matches the template spec. You can use the "smallest(), bigger(), fastest()" methods in the templatebuilder to customize a bit more the hardware selection. On 16 February 2014 14:09, Jose wrote: > Hi, > > I have a question about the

Re: MangoDb installation on AWS ec2 instances

2014-01-16 Thread Ignasi Barrera
Unfortunately that seems to be an issue with the mongodb cookbook itself, as is trying to download an RPM that is not signed. Have you tried with a different distribution such as an Ubuntu? Also you may found more help in the Chef user mailing list [1]. I. [1] http://lists.opscode.com/sympa/i

Re: Search and Build a Template

2014-01-17 Thread Ignasi Barrera
You're right. Each context configures the connection to a provider, using its endpoint and your credentials. If you need to work with more than one provider at the same time you'll need one context for each. I. El 17/01/2014 09:00, "Jose" escribió: > Hi, > First, thanks a lot for your replies,

Re: Search and Build a Template

2014-01-20 Thread Ignasi Barrera
Hi Jose, The selection logic is performed by the TemplateBuilder implementation [1] (note that some providers may define its own implementation of the template builder). Once the TemplateBuilder has collected the list of image and hardware profile candidates, it uses an "image chooser" to select

Re: How to configure a VM and start using Jcloud API

2014-01-21 Thread Ignasi Barrera
Hi, and welcome to the community! Virtual machines run somewhere. You can run them locally in a hypervisor such as KVM, VirtualBox, etc, or you can create and run them in the cloud, in a certain cloud provider such as Amazon, Rackspace and many others. The main purpose of jclouds is managing the

Re: Running Basic-chef sample

2014-01-23 Thread Ignasi Barrera
Hi Jose, I've executed the examples with AWS and they were failing. The issue was in the template selection. I've changed that to make sure it picks an Ubuntu template and also configured the default login to use sudo, to avoid permission problems. This should make the examples work out of the box

Re: Issue running CloudFilesPublish.java example

2014-01-24 Thread Ignasi Barrera
Hi! Here you'll find how to configure the snapshot repository: http://jclouds.apache.org/documentation/userguide/installation-guide/#snapshot On 24 January 2014 17:07, Carlos Ospina wrote: > Thanks for the quick response. > > I'm indeed using JDK 1.7 u51. I tested jdk 1.6 and it fixed the issue.

Re: Node to NodeMetadata ( Bridging the gap )

2014-01-25 Thread Ignasi Barrera
Hi Neil, I'm not very familiar with the Rackspace specific apis, but why do you need to get the ip address of the node? If you use the ComputeService, the "runScriptOnNode" methods only need the node id (does the node returned by the loadbalancer api have the same id than the one returned by the

Re: error when trying to get a simple list of nodes

2014-02-04 Thread Ignasi Barrera
Hi George, I think it shouldn't be the JVM issue. Could you share the jclouds dependencies you are using? I. El 04/02/2014 21:43, "George Kousiouris" escribió: > hi all, > > I am trying to run a simple piece of code to get the list of nodes from an > aws account (actually the example from here:

Re: Running Basic-chef sample

2014-02-05 Thread Ignasi Barrera
for you :-) > > Thanks a lot. > Jose > > > > [1] https://github.com/opscode-cookbooks/mysql > > > El 24/01/2014 8:23, Jose Carrasco escribió: > > Hi again, Ignasi. > > I am going to chech the solution proposed for you, and I will tell you about > the re

[ANNOUNCE] Apache jclouds 1.7.1 released

2014-02-11 Thread Ignasi Barrera
The Apache jclouds team is pleased to announce the release of jclouds 1.7.1. This is the fifth Apache release of jclouds. Apache jclouds is a cloud agnostic library that enables developers to access a variety of supported cloud providers using one API. The source archives for the release are avai

Re: Clojure support

2014-02-19 Thread Ignasi Barrera
It would be good to also share this thread in the mailing lists of downstream projects such as Pallet. AFAIK Pallet only uses compute... but does anyone know if there are similar downstream projects? On 19 February 2014 22:04, Andrew Gaul wrote: > Does anyone use the jclouds Clojure bindings, spe

Re: Create virtual data center

2014-02-21 Thread Ignasi Barrera
Hi Shital, Regarding the node provisioning and monitoring, you can do both using the ComputeService. It peovides common compute features and it can be used to write code that works against different cloud providers. Unfortunately jclouds still does not provide portable tenant/networking managemen

Re: Is a Paid GCS Account Essential for Testing GCS S3 Compatible Interface via jclouds?

2014-03-02 Thread Ignasi Barrera
Just for the record, for those who are not following the corresponding JIRA issue: https://issues.apache.org/jira/browse/JCLOUDS-458#comment-13917692 Hi All, I am much interested in your GSoC idea Improving Google Cloud Storage Support (GCS). Shou

Re: OpenStack add tenant and user

2014-03-03 Thread Ignasi Barrera
Just a quick update: There is an ongoing PR to support the OS-KSADM extension [1]. Stay tuned! I. [1] https://github.com/jclouds/jclouds/pull/303 On 15 January 2014 10:48, Radek Skokan wrote: > Just an update after playing with it: the correct port Keystone port for > this operation is 35357

Re: [jclouds/abiquo issue] The vDC soft limits cannot be forced in version 2.6 of the API

2014-03-05 Thread Ignasi Barrera
Hi Carlos, The provider assumes an Abiquo 2.4, and unfortunately I haven't had time to update it. However, you could try upgrading the "api-model-transport" dependency to "2.6.0", which already comes with the new flag. Other things may break, as the model classes in that version are aligned with 2

Re: [jclouds/abiquo issue] The vDC soft limits cannot be forced in version 2.6 of the API

2014-03-05 Thread Ignasi Barrera
ched version as soon as possible J > > > > *From:* Ignasi Barrera [mailto:ignasi.barr...@gmail.com] > *Sent:* 05 March 2014 15:31 > *To:* Carlos Garcia Ibañez > *Cc:* user@jclouds.apache.org; d...@jclouds.incubator.apache.org > *Subject:* Re: [jclouds/abiquo issue] The vDC soft limi

Re: Error while running jclouds example code

2014-03-06 Thread Ignasi Barrera
Hi Avanti, As Aled suggested, it seems to be a dependency problem. How are you running the code? And which version of the Guava dependency is in your app classpath? I. El 07/03/2014 07:40, "Avanti Ajay" escribió: > HI.. > > This is the stacktrace of the exception Im getting.. > > Exception in

Re: Classes for connecting to openstack

2014-03-08 Thread Ignasi Barrera
Hi Avanti, If you want that code to be portable across different clouds (e.g. make it work on Amazon, CloudSigma, etc), you can use the methods in the ComputeService interface. If you want to use more specific OpenStack features, then you can use the Nova ServerApi. The OpenStack guide [1] shows

RE: [jclouds/abiquo issue] The vDC soft limits cannot be forced in version 2.6 of the API

2014-03-11 Thread Ignasi Barrera
tefact to our local Nexus, > in order not to use the official releases for the moment, but I'm not sure > if it is the best practice. > > Thanks in advance and kind regards. > > > > *From:* Ignasi Barrera [mailto:ignasi.barr...@gmail.com] > *Sent:* 05 March 2014

Re: Android Jclouds

2014-03-11 Thread Ignasi Barrera
HI Jeremiah, Could you share the list of jars in the classpath? Make sure the rackspace-cloudservers-us jar is there. On 11 March 2014 16:58, Jeremiah Robertson wrote: > I'm getting an error saying rackspace-cloudservers-us is not in the list of > providers and apis and I'm using the same .jar f

Re: [jclouds/abiquo issue] The vDC soft limits cannot be forced in version 2.6 of the API

2014-03-12 Thread Ignasi Barrera
thing to take into account: the version 2.6 of the transport components > is compiled with Java 7, so I had to change my running environment > accordingly. > > Any comments or suggestions are welcome. > > Thanks again! > > > > From: Ignasi Barrera [mailto:ignasi.barr...@gma

Re: Android Jclouds

2014-03-12 Thread Ignasi Barrera
I've also seen that. To get the nodes you need to cal the "get" operation to get the details of the load balancer. The list call does not return the node details. El 12/03/2014 20:30, "Jeremiah Robertson" escribió: > Also, on another note, when I return the information for one of my load > balanc

Re: Does jclouds support key-value pairs for tags?

2014-03-27 Thread Ignasi Barrera
AFAICT the TemplateOptions in the ComputeService only allows tags being a list of strings. The userMetadata() accepts a Map, though. Can you use it instead of the tags? El 26/03/2014 18:54, "Lahiru Sandaruwan" escribió: > [Adding dev] > > > On Tue, Mar 25, 2014 at 10:52 PM, Lahiru Sandaruwan >wr

Re: null connecting error

2014-03-30 Thread Ignasi Barrera
Thanks Jeremiah, The current code is hiding the real exception. The NPE that appears in the logs is in the "servers.toString()" because the "servers" variable is null, as the *real* exception happened in the try/catch block. The logs in the catch block, though, only print the exception message, a

Re: Does jclouds support key-value pairs for tags?

2014-04-01 Thread Ignasi Barrera
Great! Thanks for sharing! El 01/04/2014 18:24, "Lahiru Sandaruwan" escribió: > Hi, > > Thanks. > That worked. > > > On Thu, Mar 27, 2014 at 10:50 AM, Lahiru Sandaruwan >wrote: > > > Thanks Ignasi, > > > > Will try that out. >

Re: null connecting error

2014-04-04 Thread Ignasi Barrera
Hi Jeremiah, Could you try configuring the jclouds OkHttp driver [1] and see if it fixes your connection issues? In the README you'll find how to configure it when creating the context. Depending on the provider you are using, it might not work, as it has some rules for the HTTP verbs (such as no

Re: Create a tenant in openstack

2014-04-04 Thread Ignasi Barrera
Hi Shital, The Keystone v2.0 OS-KSADM Admin Extension was added two months ago [1] in master, but it is not planned for the 1.7 releases. Can you switch to the 1.8.0-SNAPSHOT version? If not we can consider backporting this to 1.7, but I don't think it will enter in 1.7.2, as the release will star

Re: Create a tenant in openstack

2014-04-04 Thread Ignasi Barrera
> Please tell me how can I get this 1.8.0 SNAPSHOT code and jars any links > will be really useful > > > On Fri, Apr 4, 2014 at 3:49 PM, Ignasi Barrera > wrote: >> >> Hi Shital, >> >> The Keystone v2.0 OS-KSADM Admin Extension was added two months ago &g

Re: Error in creating tenant with openstack keystone

2014-04-09 Thread Ignasi Barrera
The logs show that your openstack installation does not have the OS-KSADM extension, required to manage tenants. Do you have it installed, and the user you are using has permissions to use it? Also remember to remove the credentials when sharing the logs! I. El 09/04/2014 13:28, "Shital Patil"

Re: Cannot run a customization script in vCloud with IpAddressAllocationMode=DHCP

2014-04-18 Thread Ignasi Barrera
If you can make your code wait until the node has the ip address you can run the script afterwards with the "computeService.runScriptOnNode" method. Does this work for you? El 18/04/2014 10:51, "Melan Nimesh" escribió: > Hi, > > I am getting following error in jclouds-1.7.1. vCloud Director 5.5.

Re: jclouds: Incorrect parsing

2014-04-18 Thread Ignasi Barrera
Hi Jeremiah, Which version of jclouds and which provider are you using? And could you share too which api class and method are you calling when you get the parsing failure? A stacktrace will help! I. El 18/04/2014 20:59, "Jeremiah Robertson" escribió: > I have a jclouds parsing error. Jclouds

Re: IncompatibleClassChangeError with JClouds 1.7.1 connecting to Openstack

2014-04-21 Thread Ignasi Barrera
Not AFAIK. Could you check your app's classpath and see which exact version of guice and gson you have there? Guice should be 3.0 and Gson should be 2.2.4. Make sure you have those (and only those) versions of the libs in the classpath. I. Has anyone come across this issue ? * ComputeServiceCon

Re: IncompatibleClassChangeError with JClouds 1.7.1 connecting to Openstack

2014-04-21 Thread Ignasi Barrera
> > path="/src/target/lib/guice-assistedinject-3.0.jar"/> > > > > > > > Thanks, > Pankaj > > > On Mon, Apr 21, 2014 at 12:43 PM, Ignasi Barrera wrote: >> >> Not AFAIK. Could you check your app's classpath and see which

Re: IncompatibleClassChangeError with JClouds 1.7.1 connecting to Openstack

2014-04-22 Thread Ignasi Barrera
ched. > > -Pankaj > > > On Mon, Apr 21, 2014 at 1:16 PM, Ignasi Barrera > wrote: > >> Are you using Maven? If so, could you paste the output of running a >> "mvn dependency:tree"? >> >> On 21 April 2014 22:04, Pankaj Kharode wrote: >> &

Re: IncompatibleClassChangeError with JClouds 1.7.1 connecting to Openstack

2014-04-22 Thread Ignasi Barrera
t org.jclouds.ContextBuilder.buildApi(ContextBuilder.java:646) > at > com.cloupia.feature.vcdpController.VcdpCloudTestConnectionHandler.Vc > > --Kavita > > > On Tue, Apr 22, 2014 at 12:34 PM, Ignasi Barrera wrote: >> >> This is the first time I see this error, but after a quick search I've >> found th

Re: [Abiquo jClouds] - Associate an existing Pricing template to a new Enterprise

2014-04-28 Thread Ignasi Barrera
Hi! Could you please open the JIRA directly? Next week I'll upgrade the provider to 2.6, so I hope that will help you too. It's been a while but I've finally been able to allocate time for this. Apologies for the delay! I. On 28 April 2014 09:38, Carlos Garcia Ibañez wrote: > Good morning every

Re: [Abiquo jClouds] - Associate an existing Pricing template to a new Enterprise

2014-04-28 Thread Ignasi Barrera
in! > > [1] https://issues.apache.org/jira/browse/JCLOUDS-553 > > -Original Message- > From: Ignasi Barrera [mailto:n...@apache.org] > Sent: 28 April 2014 09:40 > To: user@jclouds.apache.org > Cc: d...@jclouds.apache.org > Subject: Re: [Abiquo jClouds] - Associate an exis

Re: Insufficient timeout length creating servers in callable threads

2014-05-10 Thread Ignasi Barrera
Hi Daniel, The timeout for the node running is 20 minutes by default, and should be the same regardless of where you use it, and it should be possible to create servers concurrently in a multi-threaded environment. Could you share your code in a gist [1] or pastie [2] , so we can have a better ide

Re: Specifying only public or private IP for RunScriptOnNode

2014-05-25 Thread Ignasi Barrera
Hi Daniel, This was reported recently (see JCLOUDS-528 [1]) and fixed in master. If you use the latest 1.8.0-SNAPSHOT version you should be able to set the ""jclouds.compute.socket-finder-allowed-interfaces" property to control which IP addresses are used to connect to the node (see [2]). We are

Re: Insufficient timeout length creating servers in callable threads

2014-05-25 Thread Ignasi Barrera
Good to see you managed to fix it! I. On 25 May 2014 19:06, Daniel Widdis wrote: > My apologies to Ignasi Barrera who already replied to this; but I apparently > had some issues being subscribed to the list and don't have his message to > reply to, so I'm replying to my own

Re: [DISCUSS] Java 6 support

2014-05-29 Thread Ignasi Barrera
Totally agree with Jeremy and Chris. I think it is reasonable to think that users that don't want to upgrade the JVM won't want to upgrade to the latest jclouds version (major changes, newest Guava and other deps, etc). Keeping 1.7 compatible with 1.6 and dropping support for it in 1.8 sounds lik

Re: Clojure support

2014-05-31 Thread Ignasi Barrera
With my limited knowledge of Clojure, but mi willing to learn, I will make my best to put the Chef bindings up to date, and hopefully I will then be in a better place to give a hand in the compute bindings too. El 30/05/2014 22:24, "Everett Toews" escribió: > On May 27, 2014, at 1:57 PM, Andrew G

Re: Specifying only public or private IP for RunScriptOnNode

2014-06-02 Thread Ignasi Barrera
I've just tested the following code with 1.7.3 (with DigitalOcean, but the provider is not relevant): Properties overrides = new Properties(); overrides.setProperty(SOCKET_FINDER_ALLOWED_INTERFACES, "PRIVATE"); ComputeServiceContext context = ContextBuilder.newBuilder("digitalocean") .credenti

Re: Specifying only public or private IP for RunScriptOnNode

2014-06-03 Thread Ignasi Barrera
rides.setProperty(SOCKET_FINDER_ALLOWED_INTERFACES, "PRIVATE"); > > And then the overrides(overrides) gets added onto the ContextBuilder. > > Dan > > > On 6/2/14, 3:04 PM, Ignasi Barrera wrote: >> >> >> Could you share your code in a Gist or Pastie so we can see if there >> is something wrong? >> >> >

Re: Adding new ssh public key to user

2014-06-22 Thread Ignasi Barrera
Ni Nipun, If I am not wrong, in AWS an instance can only be associated to one key pair, so I'd assume you're just trying to add a key to an existing user's "authorized_keys" file. You can do that by using the AuthorizeRSAPublicKeys statement [1]. You can do something like: // Add the public key t

Re: Adding new ssh public key to user

2014-06-22 Thread Ignasi Barrera
iated with it, but i dont get the private key so that i need > to create a new key fair and add it to the instance > > regards > Nipun > > > > On Mon, Jun 23, 2014 at 3:05 AM, Ignasi Barrera wrote: > >> Ni Nipun, >> >> If I am not wrong, in AWS an instan

Re: Get attributes for a cookbook version

2014-06-24 Thread Ignasi Barrera
Hi Arul, In Chef, attributes are associated to nodes, roles and environments, but not to cookbooks. Cookbooks contain a set of "attribute files" with default values for some attributes, but don't "define" them nor set a "complete attribute set". If you have a look at the Chef server API [1] you'l

Re: java.lang.IllegalArgumentException: No enum constant org.jclouds.openstack.neutron.v2_0.domain.State.active

2014-06-25 Thread Ignasi Barrera
Zack, could this be caused by the "active" value being lower case? The current enum in master does not have the "fromValue" method (is it present in the refactored branch?) and could be the place to add the lowercase fix, if needed. El 25/06/2014 05:54, "f 62" escribió: > @Zack , I followed the

Re: Rackspace Cloudfiles UK provider and region Ids

2014-06-25 Thread Ignasi Barrera
Hi Paolo, The IAD region is Virginia (a US region) and can't be used with the UK provider. The only region in rackspace UK is London (LON). You'll have to change your code to use LON either by editing the code or by running the example with: -Dregion=LON. HTH! I. On 25 June 2014 11:43, Paolo V

Re: Chef Data Bag Examples

2014-06-27 Thread Ignasi Barrera
You can also get some ideas from the Chef tests: https://github.com/jclouds/jclouds-chef/blob/master/core/src/test/java/org/jclouds/chef/internal/BaseChefApiLiveTest.java#L257-L310 On 27 June 2014 16:32, Andrew Phillips wrote: > Hi Fred > > >> Are there any examples for using Chef data bags from

Re: Early SSH failures when provisioning on GCE

2014-07-05 Thread Ignasi Barrera
Hi Jason, Could you share the code snippet you use to create the nodes, so we can try to reproduce it? Thanks! I. El 03/07/2014 23:46, "Daniel Widdis" escribió: > I can't answer specific to GCE, but with Rackspace I've used an awaitSsh() > call first, which just sits and waits for the SSH to b

Re: Early SSH failures when provisioning on GCE

2014-07-07 Thread Ignasi Barrera
e able to move forward with the > deployment -- so there appears to be no harm in skipping the > RunScriptOnNodeAsInitScriptUsingSsh task. > -- > Jason Dusek > @solidsnack > > > On 5 July 2014 07:23, Ignasi Barrera wrote: > > Hi Jason, > > > > Could you share the code snippet

Re: Finding Jclouds Chef.

2014-07-10 Thread Ignasi Barrera
Hi Fred, You can have a look at the Chef guide for some examples: http://jclouds.apache.org/guides/chef/ The right dependency is: org.apache.jclouds.api chef 1.7.3 or if you want to use Enterprise Chef specific API calls, use instead: org.apache.jclouds.provider enterpri

Re: Running script asynchronously

2014-07-16 Thread Ignasi Barrera
Hi Nipun, You can use the "submitScriptOnNode" method, which returns a Future, to do that. It does not accept a predicate, so youl'll have to call it once for each node in the group. HTH! I. El 16/07/2014 06:40, "Nipun Udara" escribió: > Hi all > > Is there a way to run script on hosts asynchr

Re: Running script asynchronously

2014-07-16 Thread Ignasi Barrera
Udara wrote: > Hi all > > when we submit a job using submitScriptOnNode method how do we monitor the > state of the job and how to find the execution has finished using jclouds. I > would be grateful if somebody can clarify this. > > Regards. > Nipun > > > On Wed

Re: status strings in jclouds and mapping

2014-07-24 Thread Ignasi Barrera
Hi George, You're right. The backend status provides the "real" status in the provider, and you can use it if you need more detailed info. Some providers have different statuses that map to the same status in the abstraction, and using the backend status is the way to know the real state in the pr

Re: How to Run script on Windows Compute

2014-07-29 Thread Ignasi Barrera
jclouds currently implements access to the nodes using SSH. We support the sshj and jsch libraries, and right now this is the only protocol supported to access the nodes. This means that to run scripts on a Windows host there should be an SSH server running there and listening on port 22. Also, jc

Re: How to Run script on Windows Compute

2014-07-30 Thread Ignasi Barrera
ws? > > > On Tue, Jul 29, 2014 at 12:34 PM, Ignasi Barrera wrote: >> >> jclouds currently implements access to the nodes using SSH. We support the >> sshj and jsch libraries, and right now this is the only protocol supported >> to access the nodes. >> >&g

Re: Utilize a local cookbook to provision a remote

2014-08-08 Thread Ignasi Barrera
I assume you're talking about Chef. You can use Chef in two ways: with a Chef Server or using Chef Solo. If you use a Chef Server, then the cookbooks and hosted there (that means all cookbooks must be uploaded there before they can be used) and the node will download the required ones as part of

RE: Utilize a local cookbook to provision a remote

2014-08-08 Thread Ignasi Barrera
)’ with the > > ‘file’ locator .. > > > > -thx > > -d > > > > *From:* Ignasi Barrera [mailto:ignasi.barr...@gmail.com] > *Sent:* Friday, August 08, 2014 8:28 AM > *To:* user@jclouds.apache.org > *Subject:* Re: Utilize a local cookbook to provision a rem

Re: Specify a network interface when assigning floating IP

2014-08-12 Thread Ignasi Barrera
Hi Udara, Have you tried using the jclouds Neutron api as Zack suggested? Hi, Ping! On Fri, Aug 8, 2014 at 4:17 PM, Udara Liyanage wrote: > Hi, > > I was able to create an instance in Openstack specifying multiple > networks. Instance has two network interfaces and each is assigned a > privat

Re: How to get reference to NeutronApi from ComputeServiceContext

2014-08-14 Thread Ignasi Barrera
Yep, it's not recommended at all. Using different versions of jclouds in the sane app will bring two different versions of the jclouds-core to the classpath. The behavior of *any* jclouds api/provider in this scenario is unpredictable, as jclouds-core is the one that generates the http requests an

Re: SLF4JLoggingModule cannot be resolved to a type

2014-08-18 Thread Ignasi Barrera
Hi Sofiane, Try adding this dependency to your pom.xml: org.apache.jclouds.driver jclouds-slf4j 1.8.0 HTH! I. On 18 August 2014 15:59, Sofiane Bendoukha wrote: > Hello Everybody, > > can you please explain why I am getting this error. I downloaded all > required jars. > > I am wor

Re: Preparing a node for creating an AMI

2014-08-19 Thread Ignasi Barrera
In general, I'd say you should avoid running things that leave user specific data on the node. That is, for example the jclouds predefined statements that jclouds provides (admin access, install private keys, etc). You can also run a script to wipe all that data before creating the image. There are

Re: Associate floating ip to a specified network interface

2014-08-21 Thread Ignasi Barrera
Hi Udara, There is no implementation for the API interfaces. jclouds dynamically generates the HTTP requests on the fly, based on the annotations of the invoked method. Adding an operation to the FloatingIpApi should only require to add the method to the interface with the corresponding annotation

Re: Associate floating ip to a specified network interface

2014-08-21 Thread Ignasi Barrera
) String pool, > @PayloadParam("interface") String interface); > > Will the HTTP request generated would be as below. > > { > "addFloatingIp": { > "address": "10.10.10.1","interface":"eth1" > } > } > >

Re: Specifying EC2 keypair?

2014-08-29 Thread Ignasi Barrera
Hi! I'm a bit late, but you should be able to just do: TemplateOptions options = compute.templateOptions() .authorizePublicKey("pubkey string") .inboundPorts(inboundPorts) .runScript(bootInstructions); Without using EC2 specific options (more portable code) or all those credential overr

Re: Softlayer GlobalIdentifier question

2014-08-31 Thread Ignasi Barrera
Hi Jai, Thanks for sharing and figuring out the cause of your issue. Could you please open a JIRA issue [1] so we can track this? And could you send your changes as a pull request [2]? This way we'll be able to review and test it before merging. Patches and pull request are very welcome! Thanks

Re: Softlayer GlobalIdentifier question

2014-09-03 Thread Ignasi Barrera
fix it. However the SoftLayerComputeServiceAdapter > class has been revamped now. I don not see the globalIdentifier being used > anymore. > I will try out with the latest code. > > Rgds > Jai > > > On Sun, Aug 31, 2014 at 7:32 AM, Ignasi Barrera wrote: > >> H

Re: Softlayer GlobalIdentifier question

2014-09-04 Thread Ignasi Barrera
Using the latest version should work. Could you please file an issue in our JIRA [1] with the relevant code and the provided stacktrace, so we can properly track and fix it? Thanks! I. [1] https://issues.apache.org/jira/browse/JCLOUDS El 04/09/2014 23:04, "Andrew Phillips" escribió: > With the

IRC logs available

2014-09-24 Thread Ignasi Barrera
Hi! We've recently added the #jclouds IRC channel to BotBot.me, and the logs are now available online at: https://botbot.me/freenode/jclouds/ Hope you find it useful! I.

Re: Example of setting Blob ACL using S3 provider?

2014-09-24 Thread Ignasi Barrera
It always depends on your needs. jclouds provides a portable abstraction layer that allows you to talk to different clouds with the same code. It provides portable Compute, Blobstore and Load Balancing models and APIs you can use. Each cloud, however, has its own semantics and specific features,

Re: Example of setting Blob ACL using S3 provider?

2014-09-26 Thread Ignasi Barrera
You should be able to create the portable BlobStoreContext and use the "unwrapApi" method to get the provider specific api you want to use (S3Client or AWSS3Client). El 26/09/2014 17:38, "Steve Kingsland" escribió: > Thanks, now I understand the difference between APIs and providers better. > I h

Re: Example of setting Blob ACL using S3 provider?

2014-09-26 Thread Ignasi Barrera
re Engineer > > Opower > > > We’re hiring! See jobs here > > > On Fri, Sep 26, 2014 at 11:59 AM, Ignasi Barrera wrote: >> >> You should be able to create the portable BlobStoreContext and use the >> "unwrapApi" method to get the provider specific

Re: Self-signed certs

2014-10-03 Thread Ignasi Barrera
Regarding OkHttp driver tuning, it has a lot of room for improvement! :) It was added to allow APIs such as OpenStack Marconi to use the PATCH verb in HTTP requests and AFAIK it is currently only used there for that purpose. It would be awesome to have some known best practices and recommended con

Re: Is jclouds developer-friendly for Android ?

2014-10-06 Thread Ignasi Barrera
Hi, If I'm not wrong Android uses a different implementation of the Java ServiceLoader, and that might be causing the issue. Could you try creating the context by directly passing an instance of the provider metadata? Something like: ContextBuilder.newBuilder(new KeystoneApiMetadata()) ... This

Re: Register new instance with existing load balancer

2014-10-20 Thread Ignasi Barrera
Hi Yaron, To do that you need to directly access the AWS ELB API, as that functionality is still not supported in the portable load balancer abstraction provided by the LoadBalancerService (just FTR there is already feature request to improve that abstraction [1]). You can get that API in two ways

Re: Nodes block forever on GCE

2014-11-12 Thread Ignasi Barrera
Looking at the image you're using, it seems to be a deprecated one (isn't it?). You may want to filter out the deprecated images and avoid using them (I recall having problems with disks when using some of them). In the current impl, the "deprecated" field, when present, is populated in the "user

Re: How to mock up novaApi object?

2014-12-01 Thread Ignasi Barrera
The "stub" provider is not intended to be used with the "underlying" provider specific api, as it does not have one. The "unwrap" method provides access to the "provider specific api". In OpenStack based clouds it provides the Nova api, in EC2 based clouds, it provides the EC2 api, etc. Note that

  1   2   3   4   >