Working with VMware Cloud Director for traditional vSphere administrator teams could generate the need of doing a re-cap of how to perform maintenance of hosts.
We have seen on different environments that engineers performing ESXi host patching, updates and other lifecycle management including adding and removing hosts they tent to miss checking the host health in Cloud Director resulting on tasks failing for NSX and vCloud Director
Some of this was covered on this post related to performing vCD updates
You could also have the scenario of hosts removed from vCenter server as part of lifecycle management resulting on vCloud Director showing system alerts for missing hosts
Note: Screenshots are from older versions of vCloud Director where hosts management was needed. Currently deprecated with latest versions. Refer to documentation for details
When tasks are executed on “missing hosts”, you get errors as follow:
Removing host from vCD GUI or API is not possible without communication with host to uninstall the agent
Workaround is deleting the host entry in vCloud Director database.
Below query shows missing host exist in the DB
To delete the host entry from the database below query can be executed
Disclaimer: Use this post at your own risk. You should contact support for DB modifications
This post is informational only with they purpose to show the workaround experienced in our scenario
We don’t take responsibility and/or give any warranty if you reuse this content
delete from managed_server where vc_id like '%my-host-vc-id%';