Skip to content

Fix approval

The RCA’s suggested steps never run by themselves. To run them, someone prepares a fix plan. An administrator who did not prepare or edit it approves it under a change ticket. AVACOM then runs the commands in order and records every result. Everything happens on the incident’s Root cause tab, under Fix plan.

A finished fix plan, in simulation: who prepared and approved it under which change ticket, then three steps marked done

A finished plan from the demo. The first command was edited before approval, and the rm step was left to a person.
  1. Prepare. Under the RCA, press Prepare fix. The plan lists the RCA’s steps in order, with status waiting for approval. Preparing needs the execute:workflows permission.

  2. Adjust, if needed. While the plan waits for approval, press Change on a step to edit its command or its host, then Save. Leave the command empty to make it a step for a person. A changed step is marked changed; hover to see what the AI suggested. Each change is recorded with who made it.

  3. Approve or reject. An administrator reads the plan, enters the Change ticket the work falls under (optional; up to 100 letters, digits and . _ / -, starting with a letter or digit) and a Comment, then presses Approve and run or Reject. The ticket is recorded with the approval. The note above the buttons says how many commands will run and who may not approve:

    Approving runs 1 command exactly as shown, in order, on the hosts shown; the run waits at each step for a person and stops at the first command that fails. Someone other than the preparer and editors must approve.

  4. Follow the run. The plan refreshes by itself. Commands run one after the other. At a step for a person the run waits: whoever did it enters What was done (optional) and presses Mark done, continue. The run stops at the first command that fails, and the later steps do not run.

  5. Stop, if needed. While a run is under way, an administrator can press Stop the fix.

The approver must be someone other than the person who prepared the plan and anyone who changed a step. AVACOM refuses an approval from them with “Someone who neither prepared the fix nor changed its steps must approve it.”

The approval also names the version of the plan the approver saw. If someone changed a step after the approver loaded the page, the approval is refused (“The steps changed since you loaded them…”) and the approver must look again. What is approved is exactly what was shown.

Which steps run, and which wait for a person

Section titled “Which steps run, and which wait for a person”

A step runs as a command only when all of these hold:

  • it has a command and a host;
  • an SSH provider for that host has Allow approved fixes turned on (see Hosts for approved fixes);
  • the command is one simple command. AVACOM does not run commands that chain, pipe, redirect or substitute (; & | < > $ ` \), and it does not run programs that can delete data, stop machines, change accounts or fetch code. Examples are rm, dd, mkfs, shutdown, kill, useradd, iptables, curl, ssh, bash or python. It also refuses systemctl other than start, restart, reload, status, is-active, is-failed, show or list-units, find -delete, a recursive chmod or chown, and SQL that drops, deletes, alters or grants.

Every other step is for a person: hover over the badge to see why. The plan shows each step’s host and how it runs, for example db-core-01 · SSH (db-core-01 as fixer@db-core-01.bank.local), or simulated (nothing runs).

Commands run with a time limit of five minutes each. Their exit code and output (up to 8,000 characters) are stored on the step.

Plan status Meaning
waiting for approval Prepared; steps can still be changed
approved, starting Approved; the run is about to start
running A command is running
waiting for a person The run waits at a step for a person
done Every step finished
stopped: a step failed A command failed; the later steps did not run
rejected An administrator rejected it
stopped by an administrator Someone pressed Stop the fix

If nothing has happened for a while, the plan warns “Nothing has happened for a while: the run may have been interrupted”. Check the hosts, then stop the fix and prepare a new one.

Every decision and step goes to the incident’s Activity tab. When the MSN provider has an audit key, each one also goes to MSN, in the avacom-changes stream, and a command runs only after MSN has received its “started” event. Without an audit key, the plan says “The audit trail is only the incident activity: give the MSN provider an audit key to record fixes in MSN.” See MSN as a source.

On a demo server with dummy data, AVACOM_FIX_SIMULATE=true pretends to run commands on hosts that have no SSH provider. The plan then says Simulated: nothing runs on any host, and results are not real. Production refuses to start with this setting.

Action Permission Roles
See the plan read:incident admin, NOC
Prepare, change a step, mark a step done execute:workflows admin, NOC, workflowrunner
Approve, reject, stop execute:fixes admin only

See Roles.