Symptoms:
2020-03-13T00:08:36.282+02:00 info vpxd[05345] [Originator@6876 sub=vpxLro opID=k7p7ca66-49177-auto-11y2-h5:70003351-3d] [VpxLRO] -- BEGIN session[########-####-####-####-########f349]52dfa52b-ac80-af14-9fer -- vim.vm.check.ProvisioningChecker.checkRelocate -- ########-####-####-####-########f349(########-####-####-####-########2757) 2020-03-13T00:08:36.283+02:00 info vpxd[05345] [Originator@6876 sub=vpxLro opID=k7p7ca66-49177-auto-11y2-h5:70003351-3d] [VpxLRO] -- FINISH session[########-####-####-####-########f349]52dfa52b-ac80-af14-9 2020-03-13T00:08:36.283+02:00 info vpxd[05345] [Originator@6876 sub=Default opID=k7p7ca66-49177-auto-11y2-h5:70003351-3d] [VpxLRO] -- ERROR session[########-####-####-####-########f349]52dfa52b-ac80-af14-9ker -- vim.vm.check.ProvisioningChecker.checkRelocate: vmodl.fault.ManagedObjectNotFound: --> Result: --> (vmodl.fault.ManagedObjectNotFound) { --> faultCause = (vmodl.MethodFault) null, --> faultMessage = <unset>, --> obj = 'vim.Datastore:datastore-216' --> msg = "" --> } --> Args: --> --> Arg vm: --> 'vim.VirtualMachine:########-####-####-####-########cc10:vm-68698' --> Arg spec: --> (vim.vm.RelocateSpec) { --> service = (vim.ServiceLocator) null, --> folder = <unset>, --> datastore = <unset>, --> diskMoveType = <unset>, --> pool = <unset>, --> host = 'vim.HostSystem:########-####-####-####-########cc10:host-259', --> disk = <unset>, --> transform = <unset>, --> deviceChange = <unset>, --> profile = <unset>, --> cryptoSpec = (vim.encryption.CryptoSpec) null
# service-control --stop vmware-vpxd # service-control --stop vmware-content-library
# /opt/vmware/vpostgres/current/bin/psql -U postgres -d VCDB
select id from VPX_ENTITY where name = '<datastore_name>';
select * from VPX_DS_ASSIGNMENT where DS_ID=<ID>; select * from VPX_VM_DS_SPACE where DS_ID=<ID>; select * from VPX_DATASTORE where ID=<ID>; select * from VPX_ENTITY where ID=<ID>; select * from VPX_HOST_TEXT where value like '%<ID>%';
delete from VPX_DS_ASSIGNMENT where DS_ID=<ID>; delete from VPX_VM_DS_SPACE where DS_ID=<ID>; delete from VPX_DATASTORE where ID=<ID>; delete from VPX_ENTITY where ID=<ID>; delete from VPX_HOST_TEXT where value like '%<ID>%';
# service-control --start vmware-vpxd # service-control --start vmware-content-library