To remove the stale task please refer the below step:
- Validate if the task has actually completed
- Take a valid snapshot of the vCenter server
- If the vCenter is in Enhanced Linked Mode, take an offline snapshot of all vCenters linked
- SSH into vCenter Server as the root user
- Execute the following command:
# > service-control --stop vsphere-ui && service-control --start vsphere-ui - If the command from step 5 does not clear the task, execute the following command:
# > service-control --stop vmware-vpxd && service-control --start vmware-vpxd
If the above step do not clear the task, refer below :
- Collect the task's 'Id' from PowerCLI.
- To Connect vCenter from PowerCLI, run the following command in a PowerCLI enabled PowerShell session:
# > connect-viserver –server〈vCenter IP or vCenter FQDN)- It will prompt for credentials. Enter complete sso credentials (
[email protected]) - Run this command to list the tasks :
get-task -status "Running" | fl - Make a note of the task Id
- Go to vCenter MOB -
https://<vcenter_FQDN>/mob/?moid=TaskManager - It will prompt for credentials. Enter complete sso credentials (
[email protected] )
- Manually inspect individual tasks listed at recentTask field - the info property should detail the task type, current state and startTime.
- Compare the task Id in the above recentTask field with the task Id collected from above Step 1.1.4
- Once the task is identified, invoke SetTaskState with parameters: state: success . And, for result and fault section: set to empty values.
- Refresh the vCenter UI.
- Please Note: A restart of the VPXD service may be needed.