Overview of the Jobs tab in the ADCM UI

The Jobs tab in the ADCM web interface allows you to view additional information on the execution process and results of actions for the ADCM objects.

List of jobs

On the Jobs tab, you can see the list of jobs related to actions in tabular form which contains information described below.

The Jobs tab
The Jobs tab
Fields of the Jobs tab
Field Description

№

Order number of the job

Name

Name of the job corresponding to the chosen action and containing a link to the job page

Status

Status of the job. Possible values:

  • created — an action was created, but is not running yet;

  • scheduled — all validations have passed, and the action is scheduled to be submitted to Local Executor or Celery Worker;

  • queued — an action was submitted to Local Executor or Celery Worker and is waiting to be executed;

  • running — an action is being executed at the current time;

  • success — an action was successfully executed;

  • failed — an action was executed with an error;

  • revoking — an action revocation process was initiated but is not yet completed;

  • revoked — execution of the job or subjob corresponding to the running action was revoked: it was stopped or skipped before execution started;

  • terminating — an action termination process was initiated but is not yet completed;

  • aborted — the job or subjob corresponding to the running action was aborted by the user;

  • broken — a programming error occurred during the action execution.

NOTE
The scheduled, queued, revoking, revoked, and terminating statuses were added in ADCM 3.0.0.

Objects

Name of the ADCM object that contains a link to the object page

Duration

Duration of the job execution in the HH:mm:ss format

Start time

Job execution start time in the dd/MM/yyyy HH:mm:ss format

End time

Job execution end time in the dd/MM/yyyy HH:mm:ss format

Operations

The stop default dark stop default light icon stops job execution. The icon is active only for jobs with the running status. For other jobs in the column, the disabled stop disabled dark stop disabled light icon is displayed

To sort the job list:

  • in ascending order of the job order numbers, click the arrow up dark arrow up light icon in the № column;

  • in descending order of the job order numbers, click the arrow down dark arrow down light icon in the № column.

To search for a job in the list:

  • by action name — enter its name in the Search job field;

  • by object name — enter its name in the Search object field.

To filter jobs by status, select the required value from the drop-down list in the field next to Status.

To reset search and filter settings, click the reset dark reset light icon.

To view a comment added in the dialog box when you run an action, hover over the mark comment dark mark comment light icon.

The Jobs tab with the expanded comment on the action
The Jobs tab with the expanded comment on the action

Operations with a job

ADCM allows you to stop the execution of jobs related to actions.

To stop the job execution, follow these steps:

  1. Open the Jobs tab.

  2. On the page that opens, click the stop default dark stop default light icon in the row of the job the execution of which should be stopped.

    The operation confirmation dialog box
    The operation confirmation dialog box
  3. In the dialog box, confirm the action by clicking Stop. As a result, the job first transitions to the revoking status, then to the terminating status, and once termination is complete, to the aborted status.

    The dialog box displays a warning that stopping a job is intended for experienced users who are familiar with the potential risks and consequences of this action for the clusters, hosts, and services managed by ADCM.

Job details

To get detailed information about the job, click the job name in the Name column of the table located on the Jobs tab.

The job page contains:

Fields of the table with general job details
Field Description

Object

Name of the ADCM object that contains a link to the object page

Duration

Duration of the job execution in the HH:mm:ss format

Start time

Job execution start time in the dd/MM/yyyy HH:mm:ss format

Finish time

Job execution finish time in the dd/MM/yyyy HH:mm:ss format

Logs

Link to the archive that includes the following files:

  • ansible.cfg — the Ansible config file;

  • ansible-stdout.txt and ansible-stderr.txt — log files containing information about the job execution;

  • config.json — the ADCM config file;

  • inventory.json — inventory file of a cluster or infrastructure bundle.

Table view

In the Table view mode, the job execution structure is displayed as a table containing subjobs. The table fields are described below.

Job page in the Table view mode
Job page in the Table view mode
NOTE
Subjob groups are only displayed in Graph view mode.
Fields of the subjobs table
Field Description

Subjob

Name of the subjob containing a link to the subjob page

Status

Subjob execution status. The list of possible values is identical to the list provided in the Fields of the Jobs tab table

Duration

Duration of the subjob execution in the HH:mm:ss format

Start time

Subjob execution start time in the dd/MM/yyyy HH:mm:ss format

Finish time

Subjob execution end time in the dd/MM/yyyy HH:mm:ss format

Operations

Icons for managing the subjob:

  • skip default dark skip default light — skips a subjob that has not started execution yet. Available for subjobs in the created status.

  • stop default dark stop default light — stops a running subjob. Available for subjobs in the running status.

Icon availability rules and the subjob skipping and stopping order are described in the Stop and skip subjobs and groups subsection.

Graph view

In the Graph view mode, the job execution structure is displayed as an interactive diagram.

Job page in the Graph view mode
Job page in the Graph view mode

The interactive diagram contains the following elements:

  • structure elements (subjobs and groups) — represented by separate blocks connected into a dependency tree;

  • zoom in dark zoom in light and zoom out dark zoom out light icons (to the left of a group) — allow expanding and collapsing nested subjobs and groups;

  • block content — includes the execution status, element name, and duration, as well as the skip default dark skip default light and stop default dark stop default light icons;

  • control panel (on the right) — shows the current scale percentage and changes it using the following icons:

    • zoom in dark zoom in light and zoom out dark zoom out light — allow zooming in and out of the diagram;

    • fit view dark fit view light — allows fitting the diagram to the screen;

    • reset zoom dark reset zoom light — allows resetting the scale to 100%.

NOTE
Subjobs within a group of the parallel type are executed concurrently only when jobs are run via Celery Worker. When using Local Executor, such subjobs are executed sequentially, and the In Celery Worker mode, tasks can be executed in parallel message appears above the interactive diagram. It is shown only when a job is run via Local Executor and the execution plan contains a group of the parallel type (hidden when using Celery Worker).

If an error occurs in one of the subjobs, unstarted subjobs that can no longer be executed transition to the revoked status. If the job is run via Local Executor, its execution stops entirely, while when run via Celery Worker, only the sequence containing the failed subjob is stopped. For details, see the description of the group property.

Stop and skip subjobs and groups

ADCM allows skipping and stopping subjobs and subjob groups. Operations for subjobs are available in both Table view and Graph view modes, while for groups, only in Graph view mode. Operations are performed using the following icons:

  • skip default dark skip default light — skips an unstarted subjob or subjob group. It is available for subjobs and groups in the created status. In other cases, the icon is inactive.

  • stop default dark stop default light — stops a running subjob or subjob group. It is available for subjobs and groups in the running status. In other cases, the icon is inactive.

To skip or stop a subjob or subjob group, follow these steps:

  1. Click the required icon in the subjob row or in the group block.

  2. In the dialog box that opens, confirm the action by clicking Skip or Stop.

    The dialog box displays a warning that stopping or skipping the execution of a subjob or group is intended for experienced users who are familiar with the potential risks and consequences of these actions for the clusters, hosts, and services managed by ADCM.

The table below shows how subjob and group statuses change after being skipped or stopped.

Operation Result

Skip a subjob

The subjob receives the revoked status

Stop a subjob

The subjob first receives the revoking status, and after the termination is complete — aborted

Skip a group

All subjobs in the group and the group itself receive the revoked status

Stop a group

Running subjobs in the group receive the aborted status, and those not yet started — revoked. A group that had a running subjob receives the aborted status, and a nested group whose subjobs have not yet started — revoked. Other groups and subjobs continue execution

After stopping or skipping a subjob, job execution does not stop: subsequent subjobs start as normal. The final job status is determined according to the rules described in the Subjob group statuses subsection. For example, if a non-final subjob was stopped, but the last one completed successfully, the job receives the success status. If the last subjob was skipped, the job receives the aborted status.

IMPORTANT

If one or more subjobs were stopped or skipped after calling the bundle_switch function during an object upgrade and the upgrade ended with the aborted status, the new version is retained for the object. The object state specified in the on_success parameter is not set in this case: it is set only when the status is success.

Subjob group statuses

A group status is determined based on the statuses of its constituent subjobs and nested groups:

  • created — all subjobs and nested groups have the created status.

  • running — at least one subjob or nested group is running, starting, or stopping, or some subjobs have the created status while the others are completed.

  • failed — no subjob or nested group is running, and at least one subjob or nested group has failed.

  • success:

    • for a group of the parallel type — all subjobs and nested groups have the success status;

    • for a group of the sequential type — the last subjob (or nested group) has completed successfully, while the others have the success, aborted, or revoked status.

  • revoked — all subjobs and nested groups have the revoked status.

  • aborted — in all other cases.

The job status is determined by the same rules as the group status. Subjobs and groups specified in the scripts property of an action are considered a single sequence (sequential). If the user stops the entire job, it gets the aborted status.

Subjob page

To view detailed information about a specific subjob, click its name in the Subjob column of the table in the Graph view or Table view mode, or click the block of this subjob in the Graph view mode.

The subjob page
The subjob page

The page contains information about the subjob presented in tabular form as described in the table of the Table view subsection, as well as the following tabs:

  • Ansible [stdout] — the standard output (stdout) of the command to run the Ansible playbook;

  • Ansible [stderr] — error output (stderr) of the command to run the Ansible playbook;

  • Ansible [check] (optional) — log in a structured format for specific Ansible tasks.

To copy the logs, select the necessary tab, hover over the log area and click Copy at the top-right of the log area.

To download the ansible-stdout.txt, ansible-stderr.txt log files, and the <subjob identifier>-ansible.json file, select the corresponding tab and click the download dark download light icon.

The toggle in the bottom right corner of the page allows you to disable automatic scrolling to the bottom of the log while the subjob is in progress. By default, the toggle is switched on.

To expand the log window to full screen, hover over the log area and click the fullscreen default dark fullscreen default light icon at the top-right of the log area. To exit the full-screen mode, click the close default dark close default light icon.

NOTE
The full-screen viewing mode contains the same tabs and icons that are available in standard mode.
Found a mistake? Seleсt text and press Ctrl+Enter to report it