Skip to main content

View tasks and terminate a stuck one

Every action Center performs on a virtual machine (VM), edge, pool, node, image or the cluster is a task. Center records it in a shared log: who started it, what it is doing now, how it ended and why. Open the log when you need to find out how an action ended, who started it or why an object does not accept a new command.

Before you begin​

  • You need the View All Tasks or View Tasks privilege. Without them, there is no Tasks section and no Tasks button at the bottom of the web interface.
    • View All Tasks belongs to the Cluster master role: it sees all tasks of the cluster.
    • View Tasks belongs to the VDC admin, VDC user, VDC viewer and Vm Developer roles. They see tasks on objects of their VDCs (virtual data centers). Tasks on pools, nodes and the cluster have no VDC; they are available only with the View All Tasks privilege.
  • With the Terminate Any Task privilege, you can terminate any task of the cluster — it belongs to the Cluster master role. With Terminate Own Tasks — the other roles with View Tasks have it — you can terminate only your own task in your VDC.

1. Open the task list​

  1. In the left menu, select Provider Data Center → Tasks. The Tasks table opens: Object ID, Object type, Task, Status, Progress, Initiator, Time and Duration.

  2. To find a task, type text in the Search in table field. The search ignores case and looks in the task and object IDs, the pool name, the task type in Russian and English, the login of the initiator and of whoever terminated the task, and the reason. * stands for any characters.

  3. To narrow the list, click Filters, select a parameter in the Parameter field and values in the Value field:

    • Object type — VM, Edge, Image; with View All Tasks, also Pool, Node and Cluster;
    • Object ID — a specific VM, edge or pool;
    • Task — the task type, for example Power on VM or Migrate VM;
    • Status — the state of the task;
    • Initiator — system, a Center service or a user;
    • Time — Last hour, Last 24 hours, Last 7 days or Last 30 days.

    Values of one parameter are combined with "or", different parameters with "and". Clear all removes all conditions.

  4. Sort the table by Object ID, Object type or Time by clicking the column header. Without sorting, new tasks are at the top.

The table refreshes automatically, no more often than once every 10 seconds.

2. View a task​

Click the task row. The task panel opens on the right:

  • Progress — the progress bar, if the node reports progress; a completed task shows 100%.
  • Status and Reason — the state of the task and the reason for this result. Terminated by — who terminated the task.
  • Type, ID and VDC — the object of the task and its VDC; objects without a VDC show No VDC.
  • Parent task — the task this one runs within.
  • Changes — the old and new values, if the task changed settings, for example DRS settings.
  • Initiator, API method and Task ID.
  • Created, Sent to node, End time, Deadline and Duration.

The All tasks of this target button at the bottom of the panel opens the list filtered by this VM, edge or pool.

Task statuses:

StatusWhat it means
Queuedthe task is waiting to be sent to the node
Runningthe task is running on the node
Completedthe task ended successfully
Failedthe task ended with an error; the text is in Reason
Timed outthe node did not respond before the Deadline
Terminated by userthe task was terminated with the Terminate button; who did it is in Terminated by
Terminated by systemCenter closed the task, for example so that the object accepts the next command

In the status filter, Terminated selects tasks terminated both by a user and by the system.

3. Terminate a stuck task​

Terminate a task only if it makes no progress and blocks work with the object: while a task is running on a VM, edge or pool, many actions on it are refused, and the response names the running task.

  1. Find the task with the Queued or Running status.
  2. Click the cross at the end of the row or Terminate in the task panel. There is no button on completed tasks and on tasks you are not allowed to terminate. If the button is inactive, its tooltip shows the reason.
  3. Read in the Terminate this task? window what will happen, and click Terminate.

The result of terminating depends on the task type, and the window states it explicitly:

  • A regular task closes with the Terminated by user status and your name, and the object accepts the next command immediately. Terminating does not stop the command on the node and does not roll back the VM: Terminating a task does not guarantee it stops on the node.
  • A VM migration with live disk transfer is rolled back — the VM stays on the source — or force-closed, and disks still in transfer are quarantined. For other migrations, only the record is closed, and the node keeps working.
  • An image upload from a file is cancelled.

Terminating a task and a refusal to terminate it are written to the security event log.

Check the result​

The task you found opens in the panel on the right. A terminated task has the Terminated by user status, and the object accepts a new command.

Recent tasks​

The Tasks button at the bottom of the web interface, next to Log, opens the Recent Tasks panel: all running tasks and the tasks closed in the last 10 minutes. It has the same search, task panel and termination, and the filters are Object type, Task, Status and Initiator. While the panel is open, it refreshes once every 10 seconds. More Tasks opens the Tasks section.

More​

  • Center keeps closed tasks for 30 days and then deletes them. The Time filter → Last 30 days shows the whole history.
  • Besides user actions, the log contains tasks of Center itself: VM auto-restart after a failure, recovery after a node failure, DRS migrations. Their initiator is a Center service marked system.
  • Requests sent from your browser tab are shown in Log at the bottom of the web interface. It keeps the last 50 requests only until the page is reloaded.

Next​

API methods: task-list, task-kinds-list, task-terminate — in the API reference.