This is applicable only if a VCF Cloud Account with embedded NSX-T is being flagged.
Under certain conditions, the precheck will falsely throw a warning related to NSX-T being in manager mode when it is actually in Policy mode.
STEPS TO VERIFY ENDPOINT STATE
Verify that VCF cloud account associated with an NSX-T Policy endpoint was incorrectly flagged.
GET - https://<vaa-url>/provisioning/uerp/provisioning/mgmt/endpoints/<vcf-cloud-account-id><vcf-cloud-account-id>GET - https://<vaa-url>/provisioning/uerp/<nsx-value>STEPS TO FIX PROPERTY IN DATABASE
The correction has to be applied against provisioning-db. Attached scripts will apply the required fix for the affected VCF cloud account(s). The script 'SimulateVCFCloudAccountsPolicyMode.sql' runs in 'simulate' mode, printing the results without making any updates to the database.
Once satisfied with the results, run the script ‘UpdateVCFCloudAccountsPolicyMode.sql’ to apply the changes to the database.
NOTE: Please take provisioning-db backup and snapshot of all Aria Automation nodes before executing the steps below.
kubectl -n prelude get pods | grep postgres
kubectl -n prelude cp SimulateVCFCloudAccountsPolicyMode.sql postgres-0:SimulateVCFCloudAccountsPolicyMode.sql"Defaulted container "control" out of: control, init (init)" this is an expected outcome. kubectl -n prelude exec -it postgres-0 /bin/bashchmod 777 SimulateVCFCloudAccountsPolicyMode.sqlexitvracli dev psql provisioning-db! ls\i SimulateVCFCloudAccountsPolicyMode.sqlpsql:SimulateVCFCloudAccountsPolicyMode.sql:22: NOTICE: VCF cloud account found without use.policy.api property: <cloud-account-name> psql:SimulateVCFCloudAccountsPolicyMode.sql:22: NOTICE: Associated NSX found with use.policy.api set to true: <cloud-account-nsxt-fqdn> DO
\i UpdateVCFCloudAccountsPolicyMode.sqlpsql:UpdateVCFCloudAccountsPolicyMode.sql:25: NOTICE: VCF cloud account found without use.policy.api property: <cloud-account-name> psql:UpdateVCFCloudAccountsPolicyMode.sql:25: NOTICE: Associated NSX found with use.policy.api set to true: <cloud-account-nsxt-fqdn>
psql:UpdateVCFCloudAccountsPolicyMode.sql:25: NOTICE: Updating VCF property to match DO