Hi,

  I am trying jclouds with Terremark eCloud service with the sample code on
the web page. However the first login call is failing with following error

org.jclouds.rest.AuthorizationException: request: POST
https://services.enterprisecloud.terremark.com/api/v0.8b-ext2.8/loginHTTP/1.1
failed with response: HTTP/1.1 401 Unauthorized

at
org.jclouds.trmk.vcloud_0_8.handlers.ParseTerremarkVCloudErrorFromHttpResponse.handleError(
ParseTerremarkVCloudErrorFromHttpResponse.java:73)
~[trmk-common-1.6.0.jar:1.6.0]

at org.jclouds.http.handlers.DelegatingErrorHandler.handleError(
DelegatingErrorHandler.java:69) ~[jclouds-core-1.6.0.jar:1.6.0]

at org.jclouds.http.internal.BaseHttpCommandExecutorService.shouldContinue(
BaseHttpCommandExecutorService.java:182) ~[jclouds-core-1.6.0.jar:1.6.0]

at org.jclouds.http.internal.BaseHttpCommandExecutorService.invoke(
BaseHttpCommandExecutorService.java:152) ~[jclouds-core-1.6.0.jar:1.6.0]

at org.jclouds.rest.internal.InvokeSyncToAsyncHttpMethod.invoke(
InvokeSyncToAsyncHttpMethod.java:133) ~[jclouds-core-1.6.0.jar:1.6.0]

at org.jclouds.rest.internal.InvokeSyncToAsyncHttpMethod.apply(
InvokeSyncToAsyncHttpMethod.java:99) ~[jclouds-core-1.6.0.jar:1.6.0]

at org.jclouds.rest.internal.InvokeSyncToAsyncHttpMethod.apply(
InvokeSyncToAsyncHttpMethod.java:60) ~[jclouds-core-1.6.0.jar:1.6.0]

at org.jclouds.rest.internal.DelegatesToInvocationFunction.handle(
DelegatesToInvocationFunction.java:159) ~[jclouds-core-1.6.0.jar:1.6.0]

at org.jclouds.rest.internal.DelegatesToInvocationFunction.invoke(
DelegatesToInvocationFunction.java:126) ~[jclouds-core-1.6.0.jar:1.6.0]

at $Proxy87.login(Unknown Source) ~[na:na]

at
org.jclouds.trmk.vcloud_0_8.config.TerremarkVCloudRestClientModule$22.get(
TerremarkVCloudRestClientModule.java:488) ~[trmk-common-1.6.0.jar:1.6.0]

at
org.jclouds.trmk.vcloud_0_8.config.TerremarkVCloudRestClientModule$22.get(
TerremarkVCloudRestClientModule.java:484) ~[trmk-common-1.6.0.jar:1.6.0]

I am using the right Access key and Private Key (for API user) in the
ContextBuilder. For provider string I am using "trmk-ecloud".

Has the api specification on Terremark deprecated the one used on jclouds ?
Also the stack trace shows that the code path for this login is through
vCloudExpress implementation. Is this intentional ? Any help on this
is appreciated.

Rgds

Jai

Reply via email to