Description
Priority: high. Each pending change in the UI looks like a failure.
What happens
A change that goes pending and is then confirmed, such as a dns update or an interface change, completes on the agent: the job is completed, and the final result is ok. But the Plans row stays red, as failed, with the pending text ("pending: the rescue rolls the change back at … unless the controller confirms it"). The summary says "1 host: 1 failed". The chain shows no confirm step.
How it was found
UI pass of #1943 in the lab: Plans, a step that makes a pending change. The CLI and the job show the change as completed and kept.
Where to look
- The UI takes the first response of the host (status pending, error text) and does not read the final result that the agent writes after the confirm (
internal/agent/pending.go,internal/job/client/pending.goConfirmPending). - A pending status is shown as failed. It is neither.
- The confirm job (
pending.confirm) does not add a step to the chain of the original job, so the record does not show that the change was kept.
Fix to evaluate
The Plans row and the job page follow the response to its final state: pending (amber) until the confirm, then ok, or rolled back as failed. The chain gets a step for the confirm.
Activity