Jobs sit in queued state for extended periods of time and persist in that state post vCenter reboot
Jobs aren't going into a 'failed' state and not being cleaned up as part of vCenter's periodic job clean up process.
This can be verified by performing the following:
Check the VPXD start time:# head -1 /var/log/vmware/vpxd/vpxd.logYYYY-MM-DDTHH:MM:SS.###Z INFO vpxd 3022485 [######] - time the service was last started YYYY-MM-DDTHH:MM:SS.###Z, Section for VMware VirtualCenter, pid=########, version=9.1.0, build=88414925, option=DEBUG
Now check the pending tasks against the VCDB:# psql -U postgres VCDB -c "select task_id, queue_time, complete_state from vpx_task where complete_state = 'queued' and queue_time < 'YYYY-MM-DDTHH:MM:SS.###Z'"task_id | queue_time | complete_state ---------+-------------------------+----------------11 | YYYY-MM-DD HH:MM:SS.### | queued(1 row)
If the task is older than the most recent "time the service was last started" then the queued task is hung and the script can be ran.
cd /rootchmod +x Clean_Queued_Tasks.sh./Clean_Queued_Tasks.sh