Questions tagged [jclouds]

Apache jclouds® is an open source multi-cloud toolkit for the Java platform that gives you the freedom to create applications that are portable across clouds while giving you full control to use cloud-specific features.

Apache jclouds® is an open source multi-cloud toolkit for the Java platform that gives you the freedom to create applications that are portable across clouds while giving you full control to use cloud-specific features.

See http://jclouds.apache.org/

269 questions
2
votes
0 answers

Managing google cloud instances using jcloud api

I want to add and list all the instances/VM under my project in google cloud using Jcloud api. In this code, I am assuming a node to be an instance. I have set all the variables as required and extracted the private key from the json file. The…
2
votes
1 answer

How to Install Jenkins using Apache Brooklyn and Chef

I want to install Jenkins on a VM using Chef (and Apache Brooklyn). The blueprint being used is, name: chef-jenkins location: jclouds:aws-ec2: region: xyz services: - type: chef:jenkins cookbook_urls: jenkins: .../jenkins.tgz runit:…
sm-azure
  • 307
  • 3
  • 12
2
votes
1 answer

JClouds: How to attach a new volume to an AWS EC2 instance

I am trying to attach a new volume to my instance using JClouds. But I can't find a way to do it. final String POLL_PERIOD_TWENTY_SECONDS = String.valueOf(SECONDS.toMillis(20)); Properties overrides = new Properties(); …
Tk421
  • 6,196
  • 6
  • 38
  • 47
2
votes
1 answer

How to specify client version with JClouds-Chef?

I have been using the following JClouds-Chef 1.7.3 code for several months now to bootstrap new VMs from scratch: public class Bootstrapper { public static void main(String[] args) { Bootstrapper b = new Bootstrapper(); …
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
2
votes
1 answer

How can I access HP Helion using Apache jclouds

I want to access HP Helion cloud using Apache jclouds 1.8.0 (via the Apache Brooklyn project) and the configuration I used previously no longer works. The documentation suggests I use the same username and password as the console but this gives me…
grkvlt
  • 2,577
  • 1
  • 21
  • 38
2
votes
2 answers

jclouds create tenant in openstack

I am using jclouds 1.8.0 for creating tenant in openstack. "TenantAdminApi" is used for creating tenant. Following is my code snippet : Optional tennantAdminApiList = keystoneApi.getTenantAdminApi(); if…
Akhil V. Pillai
  • 93
  • 1
  • 2
  • 4
2
votes
0 answers

AWS Jclouds resource not found

When I try to provision an executor via JClouds in Jenkins I get the following error: javax.servlet.ServletException: org.jclouds.rest.ResourceNotFoundException: The security group 'sg-4a6bb62f' does not exist in default VPC 'vpc-14a06d71' >…
rmoh21
  • 1,405
  • 6
  • 19
  • 36
2
votes
1 answer

Using AWS (S3) via jclouds - how to assume role

When using plain auth credentials I can do: ContextBuilder.newBuilder("aws-s3").credentials(keyId, key).buildView(BlobStoreContext.class); ... to access BlobStoreContext for S3. In native Amazon java api I can use Security Token Service (STS) to…
Eugene Loy
  • 12,224
  • 8
  • 53
  • 79
2
votes
3 answers

How to set HTTP header in Apache JClouds?

I'm using Apache JClouds to connect to my Openstack Swift installation. I managed to upload and download objects from Swift. However, I failed to see how to upload dynamic large object to Swift. To upload dynamic large object, I need to upload all…
fengye87
  • 2,433
  • 4
  • 24
  • 41
2
votes
1 answer

JClouds S3: Specify Content Length when uploading file

I wrote an application using JClouds 1.6.2 and had file upload code like java.io.File file = ... blobStore.putBlob(containerName, blobStore.blobBuilder(name) .payload(file) .calculateMD5() .build() ); This worked perfectly…
Heinzi
  • 5,793
  • 4
  • 40
  • 69
2
votes
1 answer

rackspace cloudfiles throws ContainerNotFoundException after migration from jclouds 1.5 to 1.7

I am trying to update the jclouds libs we use from version 1.5 to 1.7. We access the api the following way: https://github.com/jclouds/jclouds-examples/tree/master/rackspace/src/main/java/org/jclouds/examples/rackspace/cloudfiles private…
2
votes
2 answers

jclouds with OpenStack => java.util.NoSuchElementException: apiType compute not found in catalog []

Java jclouds API fails to connect to an OpenStack provider. Exception is thrown with the following message: java.util.NoSuchElementException: apiType compute not found in catalog []. Other APIs (python-novaclient, ruby-fog) work just fine, so the…
2
votes
1 answer

Rackspace cloud files return "application/unknown" as mime-type when uploaded with Jclouds

Basically I have this code which uploads javascripts and other content to Rackspace using Jclouds: SwiftObject obj =…
Stoffe
  • 2,744
  • 2
  • 25
  • 24
2
votes
1 answer

jcloud : should i keep BlobStoreContext instances?

I've got the following method which allows me to upload files to containers on Rackspace CloudFiles : /** * Uploads a file to the storage. * * @param f the File which is to be uploaded to the storage. * @param fileContainer…
sbrattla
  • 5,274
  • 3
  • 39
  • 63
2
votes
1 answer

How to enable CDN with JClouds and Rackspace via Clojure?

I'm attempting to use JCLouds via Clojure and would like to use the blobstore abstraction to create containers and then enable CDN serving on those containers. So far I haven't had much success. I'm not a Java programmer so I'm not quite sure how to…
maxcountryman
  • 1,562
  • 1
  • 24
  • 51
1 2
3
17 18