By default, SDDC Manager deletes deployed virtual machines if a workflow fails. This makes it difficult to perform live troubleshooting or collect logs for deployment and upgrade issues.
VMware Cloud Foundation 5.x/9.x
The deployment of appliances typically takes place either during Workload Domain (WLD) creation or during vCenter upgrades/patching via Lifecycle Management.
1. Edit or create file
vi /etc/vmware/vcf/domainmanager/application-prod.properties
2. Add the following line to the file.
orchestrator.task.stopOnFirstFailure=true
3. Save the changes and exit
:wq
4, Cycle the domainmanager service
systemctl restart domainmanager
5. Retry the vCenter deployment.
6. Troubleshoot the vCenter deployment issue/collect vCenter logs.
7. Remove the flag from the application-prod.properties.
vi /etc/vmware/vcf/domainmanager/application-prod.propertiesorchestrator.task.stopOnFirstFailure=true
8. Cycle the domainamanger service
systemctl restart domainmanager
9. Run the workflow again.
10. Once the required logs/troubleshooting steps have been performed make sure to remove the line from the application-prod.properties file.
Scenario B: Prevent Appliance Deletion During Upgrades
VCF 9.0.x or lower:
vcf user and then elevate to root with su.cp /opt/vmware/vcf/lcm/lcm-app/conf/application-prod.properties /opt/vmware/vcf/lcm/lcm-app/conf/application-prod.properties.bckapplication-prod.properties file.vi /opt/vmware/vcf/lcm/lcm-app/conf/application-prod.properties
VCF 9.0.x or lower lcm.vc.upgrade.delete.target.appliance=false
VCF 9.1 or highervcenter.rdu.cancellation.policy:false:wq!systemctl restart lcm#lcm.vc.upgrade.delete.target.appliance=false#vcenter.rdu.cancellation.policy:falsesystemctl restart lcm