SDDC Manager VMware Cloud Manager,
The cause for failure of the bring-up workflow will be highly varied depending upon the environment and the input parameters.
Note: For VCF 5.1, please use the full path /usr/pgsql/13/bin/psql to invoke the psql command.
/opt/vmware/sddc-support/sos --jsongenerator --jsongenerator-input <file_name.xlsx> --jsongenerator-design vcf-public-ems
/opt/vmware/sddc-support/sos --jsongenerator --jsongenerator-input <file_name.xlsx> --jsongenerator-design vcf-vxrail
/opt/vmware/sddc-support/cloud_admin_tools/Resources/vcf-ems.json
/opt/vmware/sddc-support/cloud_admin_tools/Resources/vcf-vxrail/vcf-vxrail.json
cp /opt/vmware/sddc-support/cloud_admin_tools/Resources/vcf-vxrail/vcf-vxrail.json /home/admin/
psql -h localhost -U postgres -d bringup -c "select id from execution where name like 'Bringup%';"
/opt/vmware/bringup/logs/
curl -k -u admin:<password> -X PATCH https://localhost/v1/sddcs/<execution_id> -H "Content-Type: application/json" -d@/home/admin/vcf-vxrail.json
If the workflow failed AFTER the SDDC Manager was already deployed, please run the following additional steps.
If the SDDC Manager Virtual Machine is already deployed, it contains the original basic auth credentials configured at NGINX.
Once bring-up process is restarted using PATCH API, it re-generates the new basic auth credentials and bring-up process uses these new credentials while calling the SDDC Manager APIs (I.e https://<sddc_fqdn>/lcm/about).
Since the bring-up service uses the newer basic auth credentials (Generated randomly on bring-up retry), the authentication with SDDC API fails, because NGINX contains the older original basic auth credentials. This results in '401 Unauthorized" errors.
To get around this, run through the following steps:
pg_dump --data-only --inserts -U postgres -h localhost -d bringup > /tmp/db.db
cat /tmp/db.db | grep -i basicAuthPassword
"admin", "basicAuthPassword":"wE###########WM"
python /opt/vmware/vcf/commonsvcs/scripts/auth/setbasicauthpassword.py admin `openssl passwd -apr1 '<Password>'`
Note:
curl -X GET https://<SDDC_Manager_IP_or_FQDN>/lcm/about -u 'admin:<BASIC_AUTH_PASSWORD_FROM_ABOVE>'
curl -X GET https://sddc.example.com/lcm/about -u 'admin:E###########WM'