Executing the create-csg-hcp-infrastructure workflow with the "model" key in the input payload results in an unexpected error.
search cancel

Executing the create-csg-hcp-infrastructure workflow with the "model" key in the input payload results in an unexpected error.

book

Article ID: 377884

calendar_today

Updated On:

Products

VMware Telco Cloud Automation

Issue/Introduction

Executing the create-csg-hcp-infrastructure workflow with the "model" key in the input payload results in an unexpected error that is not communicated to the user. The workflow should return a clear error message indicating that the "model" key is missing from the input payload.

The error is as follows:

Error:  run step Call_Prepare_CSG_Infrastructure: parallel action execution failed: subflow failure: runId: ########-####-####-####-############, message: child workflow execution error (type: VMware:prepare-csg-hcp-paylaod:0.1.0, workflowID: ########-####-####-####-############, runID: ########-####-####-####-############, initiatedEventID: 166, startedEventID: 167): run step Read_Template_Details: run step Read_Template_Details: evaluate expression: expected a string for object key but got: null (type: wrapError, retryable: true): run step Read_Template_Details: evaluate expression: expected a string for object key but got: null (type: wrapError, retryable: true): evaluate expression: expected a string for object key but got: null (type: wrapError, retryable: true): expected a string for object key but got: null (type: objectKeyNotStringError, retryable: true)

 

Environment

TCA 3.2

Resolution

To be resolved in a future version of TCA.

Additional Information

Workaround:

To resolve this issue, please replace the prepare-csg-hcp-paylaod.yaml file with the attached version. This updated file contains the necessary corrections to ensure proper error handling and user communication.

  1. Download the prepare-csg-hcp-paylaod.yaml file from the specified location.
  2. Log in to the TCA Manager UI, navigate to the Workflow Hub section and open the Workflows Tab.
  3. Create copies of the create-csg-hcp-infrastructure.yaml and prepare-csg-hcp-paylaod.yaml workflows by cloning them.
  4. Replace the content of the cloned prepare-csg-hcp-paylaod.yaml-clone workflow with the downloaded prepare-csg-hcp-payload.yaml file.      
  5. Edit line 167 of the create-csg-hcp-infrastructure.yaml-clone file to "workflowId: prepare-csg-hcp-payload"
  6. Run the create-csg-hcp-infrastructure.yaml-clone workflow to initiate the desired process.

Note: The original create-csg-hcp-infrastructure.yaml workflow should not be executed.

Attachments

sample-dsl_prepare-csg-hcp-paylaod.yaml get_app