Rackspace Cloudfiles UK provider and region Ids
Hello, I'm having some difficulties in setting the right provider and region Ids using the Rackspace blobstore. Specifically, I'm using Cloudfiles UK, jClouds 1.7.3, and when I run the UploadObjects test included this example https://github.com/jclouds/jclouds-examples/tree/master/rackspace project I get this kind of exception: Exception in thread main java.lang.IllegalArgumentException: region IAD not in [] at com.google.common.base.Preconditions.checkArgument(Preconditions.java:120) at org.jclouds.openstack.swift.v1.blobstore.RegionScopedBlobStoreContext.checkRegionId(RegionScopedBlobStoreContext.java:105) at org.jclouds.openstack.swift.v1.blobstore.RegionScopedBlobStoreContext.blobStoreInRegion(RegionScopedBlobStoreContext.java:75) at org.jclouds.examples.rackspace.cloudfiles.UploadObjects.init(UploadObjects.java:78) at org.jclouds.examples.rackspace.cloudfiles.UploadObjects.main(UploadObjects.java:60) So it seems like there is not region configured. Before running it, I changed the provider Id to rackspace-cloudfiles-uk. Any idea about what am I doing wrong? Thanks in advance. Best regards, Paolo
Re: Rackspace Cloudfiles UK provider and region Ids
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 Viotti paolo.vio...@eurecom.fr wrote: Hello, I'm having some difficulties in setting the right provider and region Ids using the Rackspace blobstore. Specifically, I'm using Cloudfiles UK, jClouds 1.7.3, and when I run the UploadObjects test included this example project I get this kind of exception: Exception in thread main java.lang.IllegalArgumentException: region IAD not in [] at com.google.common.base.Preconditions.checkArgument(Preconditions.java:120) at org.jclouds.openstack.swift.v1.blobstore.RegionScopedBlobStoreContext.checkRegionId(RegionScopedBlobStoreContext.java:105) at org.jclouds.openstack.swift.v1.blobstore.RegionScopedBlobStoreContext.blobStoreInRegion(RegionScopedBlobStoreContext.java:75) at org.jclouds.examples.rackspace.cloudfiles.UploadObjects.init(UploadObjects.java:78) at org.jclouds.examples.rackspace.cloudfiles.UploadObjects.main(UploadObjects.java:60) So it seems like there is not region configured. Before running it, I changed the provider Id to rackspace-cloudfiles-uk. Any idea about what am I doing wrong? Thanks in advance. Best regards, Paolo
Re: Rackspace Cloudfiles UK provider and region Ids
Thanks for the reply. Unfortunately, even setting LON as region does not solve the issue. ContextBuilder builder = ContextBuilder.newBuilder(rackspace-cloudfiles-uk).credentials(username, apiKey); blobStore = builder.buildView(RegionScopedBlobStoreContext.class).blobStoreInRegion(LON); cloudFiles = blobStore.getContext().unwrapApi(CloudFilesApi.class); Exception in thread main java.lang.IllegalArgumentException: region LON not in [] at com.google.common.base.Preconditions.checkArgument(Preconditions.java:120) at org.jclouds.openstack.swift.v1.blobstore.RegionScopedBlobStoreContext.checkRegionId(RegionScopedBlobStoreContext.java:105) at org.jclouds.openstack.swift.v1.blobstore.RegionScopedBlobStoreContext.blobStoreInRegion(RegionScopedBlobStoreContext.java:75) at org.jclouds.examples.rackspace.cloudfiles.UploadObjects.init(UploadObjects.java:78) at org.jclouds.examples.rackspace.cloudfiles.UploadObjects.main(UploadObjects.java:60) Any other idea about it..? Thanks, P On 25/06/2014 12:09, Ignasi Barrera wrote: 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 Viotti paolo.vio...@eurecom.fr wrote: Hello, I'm having some difficulties in setting the right provider and region Ids using the Rackspace blobstore. Specifically, I'm using Cloudfiles UK, jClouds 1.7.3, and when I run the UploadObjects test included this example project I get this kind of exception: Exception in thread main java.lang.IllegalArgumentException: region IAD not in [] at com.google.common.base.Preconditions.checkArgument(Preconditions.java:120) at org.jclouds.openstack.swift.v1.blobstore.RegionScopedBlobStoreContext.checkRegionId(RegionScopedBlobStoreContext.java:105) at org.jclouds.openstack.swift.v1.blobstore.RegionScopedBlobStoreContext.blobStoreInRegion(RegionScopedBlobStoreContext.java:75) at org.jclouds.examples.rackspace.cloudfiles.UploadObjects.init(UploadObjects.java:78) at org.jclouds.examples.rackspace.cloudfiles.UploadObjects.main(UploadObjects.java:60) So it seems like there is not region configured. Before running it, I changed the provider Id to rackspace-cloudfiles-uk. Any idea about what am I doing wrong? Thanks in advance. Best regards, Paolo
Re: Rackspace Cloudfiles UK provider and region Ids
I'm not sure if this is going to solve it, but isn't it -Djclouds.region=LON ? -- Sent from my Android phone On Jun 25, 2014 4:09 AM, Ignasi Barrera n...@apache.org wrote: 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 Viotti paolo.vio...@eurecom.fr wrote: Hello, I'm having some difficulties in setting the right provider and region Ids using the Rackspace blobstore. Specifically, I'm using Cloudfiles UK, jClouds 1.7.3, and when I run the UploadObjects test included this example project I get this kind of exception: Exception in thread main java.lang.IllegalArgumentException: region IAD not in [] at com.google.common.base.Preconditions.checkArgument(Preconditions.java:120) at org.jclouds.openstack.swift.v1.blobstore.RegionScopedBlobStoreContext.checkRegionId(RegionScopedBlobStoreContext.java:105) at org.jclouds.openstack.swift.v1.blobstore.RegionScopedBlobStoreContext.blobStoreInRegion(RegionScopedBlobStoreContext.java:75) at org.jclouds.examples.rackspace.cloudfiles.UploadObjects.init(UploadObjects.java:78) at org.jclouds.examples.rackspace.cloudfiles.UploadObjects.main(UploadObjects.java:60) So it seems like there is not region configured. Before running it, I changed the provider Id to rackspace-cloudfiles-uk. Any idea about what am I doing wrong? Thanks in advance. Best regards, Paolo
Re: Rackspace Cloudfiles UK provider and region Ids
Hi Paolo, I wasn’t able to reproduce your issue with your code so let’s try something that we know works. Please try the following steps: mkdir jclouds-lon cd jclouds-lon wget https://raw.githubusercontent.com/jclouds/jclouds-examples/master/rackspace/pom.xml mvn dependency:copy-dependencies -DoutputDirectory=./lib wget https://gist.githubusercontent.com/everett-toews/9129de9c83fefd721316/raw/057ac9a44a3f7b59bc91ac31fa549aa7ce742593/Test.java # update the uk_username and uk_apikey javac -cp .:lib/* Test.java java -cp .:lib/* Test Does following those exact steps work for you? If so, what’s the difference between that and your code? If not, we’ll keep digging to find out what the issue is with the steps above. HTH, Everett On Jun 25, 2014, at 9:05 AM, Paolo Viotti paolo.vio...@eurecom.fr wrote: Thanks for the reply. Unfortunately, even setting LON as region does not solve the issue. ContextBuilder builder = ContextBuilder.newBuilder(rackspace-cloudfiles-uk).credentials(username, apiKey); blobStore = builder.buildView(RegionScopedBlobStoreContext.class).blobStoreInRegion(LON); cloudFiles = blobStore.getContext().unwrapApi(CloudFilesApi.class); Exception in thread main java.lang.IllegalArgumentException: region LON not in [] at com.google.common.base.Preconditions.checkArgument(Preconditions.java:120) at org.jclouds.openstack.swift.v1.blobstore.RegionScopedBlobStoreContext.checkRegionId(RegionScopedBlobStoreContext.java:105) at org.jclouds.openstack.swift.v1.blobstore.RegionScopedBlobStoreContext.blobStoreInRegion(RegionScopedBlobStoreContext.java:75) at org.jclouds.examples.rackspace.cloudfiles.UploadObjects.init(UploadObjects.java:78) at org.jclouds.examples.rackspace.cloudfiles.UploadObjects.main(UploadObjects.java:60) Any other idea about it..? Thanks, P On 25/06/2014 12:09, Ignasi Barrera wrote: 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 Viotti paolo.vio...@eurecom.fr wrote: Hello, I'm having some difficulties in setting the right provider and region Ids using the Rackspace blobstore. Specifically, I'm using Cloudfiles UK, jClouds 1.7.3, and when I run the UploadObjects test included this example project I get this kind of exception: Exception in thread main java.lang.IllegalArgumentException: region IAD not in [] at com.google.common.base.Preconditions.checkArgument(Preconditions.java:120) at org.jclouds.openstack.swift.v1.blobstore.RegionScopedBlobStoreContext.checkRegionId(RegionScopedBlobStoreContext.java:105) at org.jclouds.openstack.swift.v1.blobstore.RegionScopedBlobStoreContext.blobStoreInRegion(RegionScopedBlobStoreContext.java:75) at org.jclouds.examples.rackspace.cloudfiles.UploadObjects.init(UploadObjects.java:78) at org.jclouds.examples.rackspace.cloudfiles.UploadObjects.main(UploadObjects.java:60) So it seems like there is not region configured. Before running it, I changed the provider Id to rackspace-cloudfiles-uk. Any idea about what am I doing wrong? Thanks in advance. Best regards, Paolo
Rackspace private cloud
Hi : Does anyone know if JCloud can be used against Rackspace private cloud? http://www.rackspace.com/cloud/private/ I don't see any binding support for Java other than python client on Rackspace site. http://docs.rackspace.com/rpc/v4/gettingstarted/content/rpc-common-front.html In principle, it should be able to since its based off OpenStack Havana./Grizzly Thanks, BK
Re: Rackspace private cloud
Yes. I am using the current jCloud with Rackspace private cloud (actually, the RackConnect system that integrates a mangaged server with the private cloud.). There are plenty of examples here to get you started: http://jclouds.apache.org/guides/rackspace/ On 6/25/14, 8:02 PM, Bk Lau wrote: Hi : Does anyone know if JCloud can be used against Rackspace private cloud? http://www.rackspace.com/cloud/private/ I don't see any binding support for Java other than python client on Rackspace site. http://docs.rackspace.com/rpc/v4/gettingstarted/content/rpc-common-front.html In principle, it should be able to since its based off OpenStack Havana./Grizzly Thanks, BK