Created
June 18, 2012 15:48
-
-
Save ahgittin/2949025 to your computer and use it in GitHub Desktop.
hpcloud and openstack testing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}]}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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