Skip to content

bug(slm): scheduled and run-now fleet updates drop the list of enrollment-skipped nodes — the operator only sees it in the log #21391

Open

Description

@mrveiss

Problem

PR #21094 makes fleet updates skip nodes that never completed enrollment and report them. On the fleet "update all" path the skipped nodes are returned to the operator (enrollment_skipped_nodes on the job, with a reason per node). On the schedule path — both "run now" and the timed run — the same selection is used but the skip list is discarded (targets, _ = await split_enrollment_failed(...) in autobot-slm-backend/services/schedule_executor.py::get_schedule_target_nodes): the operator sees it only as a warning in the service log.

Same operation, different behaviour by route: a schedule that silently updates fewer nodes than it targets looks successful.

Acceptance criteria

  • The shared target-selection function returns the skipped nodes with their reasons to both schedule callers.
  • "Run now" returns them in its response, and a timed run records them on the schedule's last-run record/message, in the same shape the fleet path uses.
  • The case where every targeted node is skipped (no job is created) still records and returns the skip list.
  • The two tests that pin the single-function selection are updated; a test covers each of the three cases above.
  • If the response model changes, the generated frontend types are regenerated and the schedule view shows the skipped nodes.

Parent: #21036. Found in the independent review of PR #21094.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions