journalctl -xe logs, events similar to the following may be observed:[YYYY-MM-DDTHH:MM:SS.######] [vim.event.TaskEvent] [info] [[email protected]] [] [########] [Task: Creating Workload Domain]/var/log/vmware/vpxd/vpxd.log on vCenter./var/log/vmware/vcf/operationsmanager/operationsmanager.log may contain entries similar to the following:YYYY-MM-DDTHH:MM:SS.######] WARN [vcf_om,################,####] [c.v.v.t.services.TaskPublisher,om-scheduler-1] Failed to check for leftover taskscom.vmware.vim.binding.vmodl.fault.ManagedObjectNotFound: The object 'vim.Task:task-#####' has already been deleted or has not been completely createdVMware Cloud Foundation 5.2.x (before 5.2.3)
vCenter Server 8.x
After an SDDC Manager reboot, the system tries to restart tasks recorded in the database that are no longer current. These processes will either fail or time out because the conditions necessary for them to complete are no longer in place.
Addressing this issue requires the manual deletion of specific entries from the SDDC database.
Ensure backups of SDDC are completed before making any changes
Stale tasks in SDDC database are causing the issue. These tasks appear to be in relation to host/cluster commission and NSX edge cluster commission also.
The script attached to this case will clear all tasks from the task_metadata table older than the specified number of days used in its execution.
Use script cleartSDDCtasks.sh to clear out all old tasks from SDDC DB.
If the above options don't resolve the issue, open a case with Broadcom Support for further assistance with these steps.
This issue is resolved with a configurable retention policy (set to a 365 day default) in SDDC Manager 5.2.3. Utilize the following steps to set the policy to something other than the 365 day default default, only if the environment is currently running SDDC Manager 5.2.3 or higher.
Task retention (default: 365 days)
SDDC Manager keeps tasks from the last 365 days by default. To use a different retention period, follow the steps below:
To change the task retention period
tasks.old.number.days=<number_of_days>systemctl restart commonsvcs