Unable to add the host to SDDC, errorCode: "VCF_ERRORS_GENERIC_INPUT_PARAM"
search cancel

Unable to add the host to SDDC, errorCode: "VCF_ERRORS_GENERIC_INPUT_PARAM"

book

Article ID: 341191

calendar_today

Updated On:

Products

VMware Cloud Foundation

Issue/Introduction

Unable to add the ESXi using SDDC-Manager UI

Symptoms:
Unable to add the host to SDDC, errorCode":"VCF_ERRORS_GENERIC_INPUT_PARAM_ERROR","arguments":[],"message":"Invalid parameter: {0}","referenceToken":"OND1TI

domainmanager.log has the below information.
2021-05-28T16:43:11.414+0000 DEBUG [vcf_dm,dd5a02c25a224f30,ca8a] [c.v.e.s.e.h.LocalizableRuntimeExceptionHandler,http-nio-127.0.0.1-7200-exec-8] Processing localizable exception Async Operation ID not found
2021-05-28T16:43:11.415+0000 ERROR [vcf_dm,dd5a02c25a224f30,ca8a] [c.v.e.s.e.h.LocalizableRuntimeExceptionHandler,http-nio-127.0.0.1-7200-exec-8] [OND1TI] VCF_ERRORS_GENERIC_INPUT_PARAM_ERROR Async Operation ID not found
com.vmware.evo.sddc.common.core.error.ResourceNotFoundException: Async Operation ID not found
        at com.vmware.evo.sddc.common.vxrail.VxRailAsyncService.getAsyncResponse(VxRailAsyncService.java:137)
        at com.vmware.vxrail.vcf.hostmanager.services.impl.VxRailHostManagerServiceImpl.getQueryResults(VxRailHostManagerServiceImpl.java:493)
.
.
2021-05-28T16:43:11.418+0000 DEBUG [vcf_dm,dd5a02c25a224f30,ca8a] [c.v.e.s.e.h.LocalizableRuntimeExceptionHandler,http-nio-127.0.0.1-7200-exec-8] Handler Error Response: {"errorCode":"VCF_ERRORS_GENERIC_INPUT_PARAM_ERROR","arguments":[],"message":"Invalid parameter: {0}","referenceToken":"OND1TI"}
2021-05-28T16:43:11.702+0000 INFO [vcf_dm,e0be69c2db13427e,e320] [c.v.e.s.c.c.v.vsphere.VcManagerBase,dm-exec-7] Checking Port Group - v1764-k-steinerskolensrv on DVS

Note: This log excerpt is an example. Date, time, and environmental variables may vary depending on your environment.

Environment

VMware Cloud Foundation 4.2
VMware Cloud Foundation 4.0.x
VMware Cloud Foundation 4.1

Resolution

If the SDDC-UI is slow or unable to add the host use the below command line steps to add the host to the SDDC and also you can specify the cluster as well. 

If the environment is part of vXrail, only then the ESXi has to be part of vCenter, before proceeding with below steps.
  • Check if any lock exists 
curl http://localhost/locks | json_pp 
cancel the task of previously host added activity [get the task-id from domainmanager.log or by selecting the task and lookup in the URL]
  • Generate Token 
 curl 'http://localhost/v1/tokens' -X POST -H 'Content-Type: application/json' -d '{"username":[email protected],"password": "VMware123!"}' --insecure | json_pp
  • payload for Add Host---> create hostPayload.json file 
root@VCF [ /home/vcf ]# cat hostPayload.json  <-- Sample file
{
"clusterExpansionSpec":{
"hostSpecs":[
{
"ipAddress":"172.25.150.14",
"hostName":"esxi14.vmwarecloud.local",
"username":"root",
"password":"VMware123!",
"sshThumbprint":""
}
],
"skipThumbprintValidation":true,
"interRackExpansion":false
  • Get the cluster details
root@VCF [ /home/vcf ]# curl -v -k http://127.0.0.1:7100/inventory/clusters | json_pp
],
"domainId" : "a253a68a-72e8-49ac-bf6b-df60b0ad8414",
"primaryDatastoreName" : "NetW01C01vSAN",
"vcenterId" : "afeb6b22-edb7-491a-96a4-bd9dfca3f4e3",
"id" : "321b2cf3-0a3d-4c94-b0fc-ee01bcdbb549", <----------------------- cluster ID
"ftt" : 1,
"status" : "ACTIVE",
"isStretched" : false,
"name" : "NetW01C01",
"primaryDatastoreType" : "VSAN",
"sourceId" : "domain-c10",
"isDefault" : true,
"datacenter" : "NetDC01"
 
  • Add Host Operation by passing this payload and token in this example clusterId -> 321b2cf3-0a3d-4c94-b0fc-ee01bcdbb549
curl 'http://localhost/v1/clusters/321b2cf3-0a3d-4c94-b0fc-ee01bcdbb549' -X PATCH -[email protected] -H 'Content-Type:application/json' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiJiNjFkYTk3Mi03MjI0LTRhZWItOTgyYi01MTdiNGYwM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F9DT05GSUdfV1JJVEUiLCJXQ1BfV1JJVEUiLCJTRVJWSUNFX0FDQ09VTlRfV1JJVEUiLCJORVRXT1JLX1BPT0xfUkVBRCIsIkNBX1dSSVRFIiwiQ0xVU1RFUl9SRUFEIiwiVkFTQV9QUk9WSURFUl9XUklURSIsIkROU19XUklURSIsIlZSU0xDTV9XUklURSIsIkROU19SRUFEIiwiU0VSVklDRV9BQ0NPVU5UX1JFQUQiLCJTRERDX0ZFREVSQVRJT05fUkVBRCIsIkRPTUFJTl9SRUFEIiwiVlJTTENNX1JFQUQiLCJVUEdSQURFX1dSSVRFIl0sInJvbGUiOlsiQURNSU4iXX0.JX-oSFrFvl4t4k2wweCf0oYy4qx4QPt4fzQ3veBcNh0' | json_pp
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 397 100 150 100 247 18750 30875 --:--:-- --:--:-- --:--:-- 56714

{
"id" : "d11cf22c-c291-4d6e-aaa6-1b1d3d45c427",
"status" : "IN_PROGRESS",
"creationTimestamp" : "2021-06-28T17:25:06.412Z",
"name" : "Adding new host(s) to vxrail cluster"
  • This process might take more time, keep refreshing the task in SDDC-Manager. If the environment has more than 50 port groups this task may exceed an hour, so do not cancel the task.