update or delete on table "virtual_center" violates foreign key constraint "fk_vm_virtualcenter" on table "vm"/opt/vmware/vcloud-director/logs/vcloud-container-debug.log", you will notice following exception while unregistering the vCenter:ERROR | task-service-activity-pool-699 | JDBCExceptionReporter | ERROR: update or delete on table "virtual_center" violates foreign key constraint "fk_vm_virtualcenter" on table "vm"
Detail: Key (id)=(#########-####-####-####-##########) is still referenced from table "vm". | requestId=########-####-####-####-############,request=POST https://VCD_URL/api/admin/extension/vimserver/########-####-####-####-##########/action/unregister,requesttime=##########,remoteaddress=xx.xx.xx.xx:33728,useragent=mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (...,accept=application/*+json;version 38.0.0-alpha vcd=########-####-####-####-############,task=########-####-####-####-############ activity=(com.vmware.vcloud.backendbase.management.system.TaskActivity,urn:uuid:########-####-####-####-############)
VMware Cloud Director 10.x
This issue occurs when there are still vm objects in the database which are referencing to this vCenter that most likely have not been deleted.