Attempting to run precheck for VCF Automation upgrade from 9.0.2 to 9.1 fails at 'Topology Pre-check' stage with following error:
"Source and target datastores do not match for the upgrade during"
kubectl get secret <secret-name> -n prelude -o jsonpath='{.data.datastore}' | base64 -d; echoVCF Automation 9.x
The VCF Automation precheck failed for Datastore mismatch due to VCF Automation retrieving the datastore from secrets instead of source.
This is a known issue and will be fixed in future release. Subscribe to this article to be updated on the fix status; see Subscribe to a Broadcom knowledge article by article or product.
To workaround this issue update the vcenter-main-secret following these steps:
kubectl get pods -n prelude | grep -i precheck/etc/vcenter-credskubectl get pod <precheck-pod> -n prelude -o json | jq '.spec.volumes[] | select(.secret != null)'kubectl get secret <secret-name> -n prelude -o jsonpath='{.data.datastore}' | base64 -d; echokubectl patch secret <secret-name> -n prelude --type='json' -p='[\{"op":"replace","path":"/data/datastore","value":"'"$(printf '%s' '/LabServices/datastore/<CorrectName>' | base64)"'"}]'