Hi All,
Using the HPStorage example from the docs:
BlobStoreContext context = new BlobStoreContextFactory().createContext("hpcloud-objectstorage", "<tenantName:accessKey>", "<secretKey>");
BlobStore blobStore = context.getBlobStore();
PageSet<? extends StorageMetadata> rawResults = blobStore.list();
gives:
java.util.NoSuchElementException
at com.google.common.collect.AbstractIterator.next(AbstractIterator.java:154)
at com.google.common.collect.Iterators.find(Iterators.java:761)
at com.google.common.collect.Iterables.find(Iterables.java:646)
at org.jclouds.apis.Apis.withId(Apis.java:87)
at org.jclouds.blobstore.BlobStoreContextFactory.createContext(BlobStoreContextFactory.java:114)
at org.jclouds.blobstore.BlobStoreContextFactory.createContext(BlobStoreContextFactory.java:58)
(The same code, but using Rackspace context name and credentials works fine)
I tried using the new style interface (are there any docs for this - at the moment I'm guessing how to do it?):
BlobStoreContext context = ContextBuilder.newBuilder("hpcloud-objectstorage").credentials(
"<tenantName:accessKey>", "<secretKey>").buildView(BlobStoreContext.class);
BlobStore blobStore = context.getBlobStore();
PageSet<? extends StorageMetadata> rawResults = blobStore.list();
gives:
java.util.NoSuchElementException: key [hpcloud-objectstorage] not in the list of providers or apis: {providers=[hpcloud-compute, cloudservers-us, cloudfiles-us, aws-ec2, aws-s3], apis=[stub, openstack-nova, openstack-keystone, cloudservers, cloudfiles, swift, swift-keystone, transient, ec2, s3]}
at org.jclouds.ContextBuilder.newBuilder(ContextBuilder.java:136)
I'm using jclouds-1.5-beta-6
Nick