(1) One of the workflows ("Add Domain", "Password Manager") has put the VC in Error state. Check for current/previous workflow in the task panel in UI. Remediation messages for corresponding task can be found on Task Aggregator on UI. Follow the remediation steps for resolving the issue. (2) Check for failed VC/PSC upgrade, wait for a few minutes and retry.Update not possible while vcsa is in failed state.Unable to update the VC, Error: Update not possible while [vc] and undefined is in failed state. Plan Patching" you will see following error on SDDC UI:Domain <Workload Domain Name> inventory state is not active./var/log/vmware/vcf/lcm/lcm.log shows entries similar to:ERROR [vcf_lcm,627######3d60,1528] [c.v.e.s.l.s.impl.UpgradeServiceImpl,http-nio-127.0.0.1-7400-exec-10] Failed to get resource name for ESX_HOST with id 535b####-####-####-########5822ERROR [vcf_lcm,627######3d60,1528] [c.v.e.s.l.a.i.i.LogicalInventoryClient,http-nio-127.0.0.1-7400-exec-10] logical inventory - get ESXi host failed for ESXi host ID b4c4####-####-####-########2d59 org.springframework.web.client.HttpClientErrorException$NotFound: 404 : "{"errorCode":"RESOURCE_NOT_FOUND_WITH_ID","arguments":["ResourceInventoryController","b4c4####-####-####-########2d59"],"message":"Resource ID: b4c4####-####-####-########2d59 not found in ResourceInventoryController","causes":[{"type":"com.vmware.evo.sddc.inventory.model.InventoryNotFoundException","message":"Resource ID: b4c4####-####-####-########2d59 not found in Esxi"}],"referenceToken":"R309LB"}"k.web.client.HttpClientErrorException.create(HttpClientErrorException.java:113)/var/log/vmware/vcf/commonsvcs/vcf-commonsvcs.log shows entries similar to:INFO [common,529####a50f,154d] [c.v.e.s.i.r.a.c.ResourceInventoryController,http-nio-127.0.0.1-7100-exec-2938] getHosts(): id = b4c4####-####-####-########2d59INFO [common,529####a50f,154d] [c.v.e.s.i.s.EsxiInventoryServiceImpl,http-nio-127.0.0.1-7100-exec-2938] Get Esxi - b4c4####-####-####-########2d59ERROR [common,529####a50f,154d] [c.v.e.s.i.d.s.client.TypedClientImpl,http-nio-127.0.0.1-7100-exec-2938] Inventory Error, Resource ID: b4c4####-####-####-########2d59 not found in EsxiERROR [common,529####a50f,154d] [c.v.e.s.i.s.EsxiInventoryServiceImpl,http-nio-127.0.0.1-7100-exec-2938] Inventory Error, Resource ID: b4c4####-####-####-########2d59 not found in EsxiERROR [common,529####a50f,154d] [c.v.e.s.e.h.LocalizableRuntimeExceptionHandler,http-nio-127.0.0.1-7100-exec-2938] [QLVA6P] RESOURCE_NOT_FOUND_WITH_ID Resource ID: b4c4####-####-####-########2d59 not found in ResourceInventoryController com.vmware.evo.sddc.inventory.model.InventoryNotFoundException: Resource ID: b4c4####-####-####-########2d59 not found in ResourceInventoryController at com.vmware.evo.sddc.inventory.rest.api.controller.ResourceInventoryController.getHosts(ResourceInventoryController.java:521) at jdk.internal.reflect.GeneratedMethodAccessor261.invoke(Unknown Source)VMware Cloud Foundation 4.x
VMware Cloud Foundation 5.x
The VC status has been marked as ERROR state due a pervious workflow/task failure.
Usually, this is a failed password rotation task.
When LCM precheck is run, it fails at 'VC Inventory Status Check' due to VCENTER <id> status in ERROR which is an expected behavior.
Example of the proposed remediation displayed in the failed pre-check:
You may follow either of the options to reset the VC State to "ACTIVE":
# Option1:
psql -h localhost -U postgres -d platform -c "select id,vm_hostname,status from vcenter where status!='ACTIVE'"Sample output: id | vm_hostname | status--------------------------------------+---------------------+-------- 2730####-####-####-########d780 | vcsa02.example.com | ERROR(1 row)
psql -h localhost -U postgres -d platform -c "update vcenter set status='ACTIVE' where id='<id from Step #2 >'"
# Option 2:
SSH to SDDC Manager VM with vcf user and elevate to root with su
List the upgrades from LCM to determine the ID of the failedDomains:
curl localhost/lcm/inventory/upgrades | json_pppsql -h localhost -U postgres -d platformselect * from vcenter where id='57452ad9-####-####-####-########';#\qcurl localhost/inventory/entities/57452ad9-####-####-####-######## -X PATCH -d '{"type" : "VCENTER","status":"ACTIVE"}' -H 'Content-Type:application/json'