VCF on VxRail environment - workload deployment with WorkflowOptimization-script run on SDDC Manager fails with error "Host discovery get api failed"
search cancel

VCF on VxRail environment - workload deployment with WorkflowOptimization-script run on SDDC Manager fails with error "Host discovery get api failed"

book

Article ID: 389630

calendar_today

Updated On:

Products

VMware SDDC Manager

Issue/Introduction

The VxRail cluster has been built and is attached to the vCenter.

The error occurs on SDDC Manager when adding the workload domain using the WorkflowOptimization-script run on the SDDC Manager.

 

The error that is encountered is - 

Host discovery get api failed

Unable to fetch version for VxRail Manager: vx_rail_manager_fqdn

Trust store path doesn't exist

 

The domainmanager.log file on SDDC Manager contains these entries - 

Temp trust store /tmp/temp_cacertsxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Calling vxRailManager service to get VxRail Manager version for : vx_rail_manager_fqdn
Unable to fetch portgroups
com.vmware.evo.sddc.common.vxrail.error.VxRailManagerException: Unable to fetch version for VxRail Manager: vx_rail_manager_fqdn
.
.
.
Caused by: java.lang.IllegalArgumentException: Trust store path doesn't exist

 

Environment

VCF 5.1.1

Cause

The necessary file (below) is not present and this causing the issue seen - 

/tmp/temp_cacertsxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

Resolution

This file will have been created by the workflow - 

/tmp/cacertsxxxxxxxxxxxxxxxxxxxx.tmp

 

Copy (rename) it to - 

/tmp/temp_cacertsxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

 

cp /tmp/cacertsxxxxxxxxxxxxxxxxxxxx.tmp /tmp/temp_cacertsxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

 

Set the appropriate permissions and ownerships to match the original file

chown vcf_commonsvc:vcf /tmp/temp_cacertsxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

chmod -r-xr--r-- /tmp/temp_cacertsxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

 

Restart the workflow by rerunning the WorkflowOptimization-script run on the SDDC Manager.

As the /tmp/temp_cacertsxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx file now exists, the workflow is expected to succeed.