VMware Cloud Community
gaadmin
Contributor
Contributor

Adding Amazon EC3 fails

Hi all,

I'm trying (unsuccessfully) to add an amazon EC3 endpoint to my config.

I've generated the relevant auth keys and have added them to the config.

I need to go through a proxy server to get to the web, but it doesn't seem to work. I get:

Workflow "AmazonEC2EndpointDataCollection" failed with the following exception:  Exception has been thrown by the target of an invocation. Inner Exception:  Unrecognized Guid format.

Has anyone seen this before?

TIA,
Alex

0 Kudos
3 Replies
admin
Immortal
Immortal

Could you post your full log from your DEM worker instance??

0 Kudos
gaadmin
Contributor
Contributor

The log is huge, but I'm pretty sure this is the interesting part:

[UTC:28/02/13 18:47:34.508 Local:01/03 05:47] [Debug]: Workflow Run:       908 - AmazonEC2EndpointDataCollection - af86bffb-c71c-408d-bd32-5d3f2c9c754f
[UTC:28/02/13 18:47:34.944 Local:01/03 05:47] [Trace]: Worker Controller: WritePendingCompletions
[UTC:28/02/13 18:47:35.074 Local:01/03 05:47] [Trace]: AmazonWSModel: The AmazonCreateOrUpdateAccessKey activity started for AccessKey AmazonEC2
[UTC:28/02/13 18:47:35.122 Local:01/03 05:47] [Trace]: AmazonWSModel: The AmazonCreateOrUpdateAccessKey activity finished.
[UTC:28/02/13 18:47:35.126 Local:01/03 05:47] [Trace]: AmazonWSModel: The AmazonLogOn activity started with AccessKey AKIAJDRSU2G3ND6KX5MA
[UTC:28/02/13 18:47:35.224 Local:01/03 05:47] [Error]: Failed to run Amazon EC2 data collection. Error: Exception has been thrown by the target of an invocation.
[UTC:28/02/13 18:47:35.252 Local:01/03 05:47] [Trace]: Worker Controller: WorkflowApplication_Completed
[UTC:28/02/13 18:47:35.253 Local:01/03 05:47] [Trace]: Worker Controller: ProcessWorkflowCompleted
[UTC:28/02/13 18:47:35.253 Local:01/03 05:47] [Debug]: Workflow Complete:  908 - Failed: Exception has been thrown by the target of an invocation.
[UTC:28/02/13 18:47:35.253 Local:01/03 05:47] [Trace]: Worker Controller: WriteCompletedWorkflow
[UTC:28/02/13 18:47:35.254 Local:01/03 05:47] [Error]: <?xml version="1.0" encoding="utf-16"?>
<boolean>false</boolean>
Workflow "AmazonEC2EndpointDataCollection" failed with the following exception:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.FormatException: Unrecognized Guid format.
   at System.Guid.GuidResult.SetFailure(ParseFailureKind failure, String failureMessageID, Object failureMessageFormatArgument, String failureArgumentName, Exception innerException)
   at System.Guid.TryParseGuid(String g, GuidStyles flags, GuidResult& result)
   at System.Guid..ctor(String g)
   at lambda_method(Closure )
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
   at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Delegate.DynamicInvokeImpl(Object[] args)
   at System.Data.Services.Client.Evaluator.SubtreeEvaluator.Evaluate(Expression e)
   at System.Data.Services.Client.ALinqExpressionVisitor.VisitBinary(BinaryExpression b)
   at System.Data.Services.Client.ALinqExpressionVisitor.Visit(Expression exp)
   at System.Data.Services.Client.ALinqExpressionVisitor.VisitBinary(BinaryExpression b)
   at System.Data.Services.Client.ALinqExpressionVisitor.Visit(Expression exp)
   at System.Data.Services.Client.ALinqExpressionVisitor.VisitLambda(LambdaExpression lambda)
   at System.Data.Services.Client.ALinqExpressionVisitor.Visit(Expression exp)
   at System.Data.Services.Client.ALinqExpressionVisitor.VisitUnary(UnaryExpression u)
   at System.Data.Services.Client.ALinqExpressionVisitor.Visit(Expression exp)
   at System.Data.Services.Client.ALinqExpressionVisitor.VisitExpressionList(ReadOnlyCollection`1 original)
   at System.Data.Services.Client.ALinqExpressionVisitor.VisitMethodCall(MethodCallExpression m)
   at System.Data.Services.Client.ALinqExpressionVisitor.Visit(Expression exp)
   at System.Data.Services.Client.ALinqExpressionVisitor.VisitExpressionList(ReadOnlyCollection`1 original)
   at System.Data.Services.Client.ALinqExpressionVisitor.VisitMethodCall(MethodCallExpression m)
   at System.Data.Services.Client.ALinqExpressionVisitor.Visit(Expression exp)
   at System.Data.Services.Client.DataServiceQueryProvider.Translate(Expression e)
   at System.Data.Services.Client.DataServiceQuery`1.Execute()
   at System.Data.Services.Client.DataServiceQuery`1.GetEnumerator()
   at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)
   at System.Data.Services.Client.DataServiceQueryProvider.ReturnSingleton[TElement](Expression expression)
   at System.Linq.Queryable.FirstOrDefault[TSource](IQueryable`1 source)
   at DynamicOps.AmazonWSModel.Interface.AmazonEC2Services.AddProxyProperties(ManagementEndpoint endpointWithProxyProperties, ManagementModelEntities managementDataContext, Dictionary`2 properties)
   at DynamicOps.AmazonWSModel.Activities.AmazonLogOn.Execute(CodeActivityContext context)
   at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
   at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
INNER EXCEPTION: System.FormatException: Unrecognized Guid format.
   at System.Guid.GuidResult.SetFailure(ParseFailureKind failure, String failureMessageID, Object failureMessageFormatArgument, String failureArgumentName, Exception innerException)
   at System.Guid.TryParseGuid(String g, GuidStyles flags, GuidResult& result)
   at System.Guid..ctor(String g)
   at lambda_method(Closure )
0 Kudos
admin
Immortal
Immortal

Well it looks like this error comes from a malformed guid related to the proxy credentials in the endpoint setup.  I'm not quite sure how that could happen, but maybe you could try going back through the endpoint setup and "reset" the credentials.  There's no reset button, so either delete then save and readd then save again them or if you're not using credentials add some fake ones then save and delete then save again.

Let us know your progress.

0 Kudos