Hosts upgrade has failed. check error details to determine if manual resolution is needed and Retry Upgrade".Group #### contains upgrade units, so cannot be deleted."POWERED_OFF. This occurred because the host had already been decommissioned directly from vCenter.In the NSX UI, we cannot find the impacted Host on the following pages:
System > Fabric > Hosts > Cluster System > Fabric > Hosts > Other hosts System > Fabric > Hosts > Standalone
VMware NSX
When an ESXi host is removed directly from vCenter without first uninstalling NSX, remnants of that host may remain in the NSX database.
Follow API method to remove the stale host from NSX.
Run the following API call using Postman or any other REST API tools to find the node_id. If you know the node_id then jump to point-2. Refer : NSX-T API usage
GET https://<nsx-mgr>/api/v1/upgrade/upgrade-unit-groups?component_type=HOST
Replace <NSX Mgr IP> with the IP address or FQDN of an NSX manager node.
Look for the hostname of the ESXi which was decommissioned and pick the id. Example output below."id": "########-####-####-####-772d60382090","display_name": "<esx--fqdn>","type": "HOST",
DELETE https://<NSX Mgr IP>/api/v1/transport-nodes/<UUID>?force=true&unprepare_host=false
Ex: DELETE https://<NSX Mgr IP>/api/v1/transport-nodes/########-####-####-####-772d60382090?force=true&unprepare_host=false
GET https://<NSX Mgr IP>/api/v1/transport-nodes/<UUID>/state
The requested object : TransportNode/<id> could not be found" & "httpStatus" " "NOT_FOUND"