Skip to content

Instantly share code, notes, and snippets.

@ahgittin
Created June 18, 2012 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahgittin/2949025 to your computer and use it in GitHub Desktop.
Save ahgittin/2949025 to your computer and use it in GitHub Desktop.
hpcloud and openstack testing
new ComputeServiceContextFactory().createContext("hpcloud-compute",
keyId, credential). getComputeService(). listNodes();
gives:
ERROR java.util.NoSuchElementException:
apiType compute not found in catalog [{type=identity, name=Identity, endpoints=[{versionId=2.0, region=region-a.geo-1, publicURL=https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/, internalURL=null, adminURL=null, tenantId=null, versionInfo=https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/, versionList=https://region-a.geo-1.identity.hpcloudsvc.com:35357}]}]
@ahgittin
Copy link
Author

and this:

jcloudsContextProperties = new Properties();
jcloudsContextProperties.put("jclouds.endpoint", "https://region-a.geo-1.identity.hpcloudsvc.com:35357/");

context = new ComputeServiceContextFactory().createContext(
"openstack-nova", tenantId+":"+keyId, credential,
ImmutableSet. of(new SLF4JLoggingModule(), new SshjSshClientModule()),
jcloudsContextProperties);

svc = context.getComputeService();

images = svc.listImages();

gives 401 ... with every combo of identity that i've tried

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment