When provisioning new PVs in a TKGi Cluster using CSI Storage class in a Topology Aware environment after upgrading from TKGi 1.17.4 to 1.18.3 and thus upgrading from CSI Driver 3.0.x to 3.1.x and below error is observed:
Error: failed to fetch hosts from entity Datastore:datastore-xx. Error: unrecognised entity type found Datastore:datastore-xx.
TKGi 1.18.3
CSI Driver 3.1.x
A Datastore associated to the TKGi Cluster had a label/tag that was blocking provisioning of new PVs using CSI Storage class in a Topology Aware environment.
In TKGi 1.18 which includes an embedded CSI Driver version 3.1.x, an enhancement for the validation of the topology tag exists.
If the tag is not attached to compute resource then validation will fail.
bosh recreate -d service-instance_<cluster-id>
Note: the above command will recreate each master and worker VM