VMware vRealize Automation data collection for the Network and Security Inventory fails with the error: Error executing vCenter Orchestrator workflow: Error executing REST call
search cancel

VMware vRealize Automation data collection for the Network and Security Inventory fails with the error: Error executing vCenter Orchestrator workflow: Error executing REST call

book

Article ID: 324935

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

Symptoms:
  • Within the VMware Orchestrator client you see the NSX workflow, Create NSX Endpoint has failed
  • When you validate the workflow Create NSX Endpoint, it reports that there is a missing workflow
  • You see the error:

    Error executing vCenter Orchestrator workflow: Error executing REST call
     
  • When attempting to collect the inventory for NSX using the Network and Security Inventory within a Compute Resource, the task fails and the monitoring log contains entries similar to:

    Workflow 'vSphereVCNSInventory' failed with the following exception: Error executing vCenter Orchestrator workflow: Error executing REST call.
    Stack trace shows: at System.Activities.WorkflowApplication.Invoke(Activity activity, IDictionary`2 inputs, WorkflowInstanceExtensionManager extensions, TimeSpan timeout) at System.Activities.WorkflowInvoker.Invoke(Activity workflow, IDictionary`2 inputs, TimeSpan timeout, WorkflowInstanceExtensionManager extensions) at DynamicOps.VCNSModel.Activities.VcoNsxWorkflowInvoker.Execute[T](IDictionary`2 inputParameters, Guid virtualMachineId) at DynamicOps.VCNSModel.Activities.VcoNsxHelper.VcoNsxConnectionInfo.GetVcoNsxLogOn(LogOnSpec vcoNsxLogOnSpec, Guid virtualMachineId) at DynamicOps.VCNSModel.Activities.VcoNsxHelper.VcoNsxConnectionInfo.GetConnection(ManagementModelEntities managementDataContext, VCNSEndpoint endpoint, Guid virtualMachineId) at DynamicOps.VCNSModel.Activities.VcoNsxHelper.GetVcoNsxConnection(ManagementModelEntities managementDataContext, VCNSEndpoint endpoint, Guid virtualMachineId) at DynamicOps.VCNSModel.Workflows.vSphereVCNSInventory_CompiledExpressionRoot.vSphereVCNSInventory_CompiledExpressionRoot_
    TypedDataContext3_ForReadOnly.__Expr21Get() at DynamicOps.VCNSModel.Workflows.vSphereVCNSInventory_CompiledExpressionRoot.InvokeExpression(Int32 expressionId, IList`1 locations, ActivityContext activityContext) at Microsoft.CSharp.Activities.CSharpValue`1.Execute(CodeActivityContext context) at System.Activities.Runtime.ActivityExecutor.ExecuteInResolutionContext[T](ActivityInstance parentInstance, Activity`1 expressionActivity) at System.Activities.InArgument`1.TryPopulateValue(LocationEnvironment targetEnvironment, ActivityInstance activityInstance, ActivityExecutor executor) at System.Activities.ActivityInstance.InternalTryPopulateArgumentValueOrScheduleExpression(RuntimeArgument argument, Int32 nextArgumentIndex, ActivityExecutor executor, IDictionary`2 argumentValueOverrides, Location resultLocation, Boolean isDynamicUpdate) at System.Activities.ActivityInstance.ResolveArguments(ActivityExecutor executor, IDictionary`2 argumentValueOverrides, Location resultLocation, Int32 startIndex) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)


Environment

VMware vRealize Automation Desktop 6.2.x
VMware vRealize Automation 6.2.x

Cause

This issue occurs when the NSX plug-in has failed to fully install all related workflows.

Resolution

To resolve this issue, reinstall the plug-ins.

To reinstall the plug-ins:
  1. Log in to the Orchestrator configuration page.
  2. Click on the Troubleshooting tab.
  3. Beside Reinstall the plug-ins when the server starts, click Reset current version.
  4. Click the Startup Options tab.
  5. Click Restart service.
  6. Wait for the service to restart and all plug-ins to fully install.
  7. Retry inventory collection and verify the Create NSX Endpoint workflow now contains only references to existing workflows.