Skip to content

bug(slm): Redeploy for slm-monitoring never reaches the SLM host #20484

Open

Description

@mrveiss

Problem

The Roles page's Redeploy for slm-monitoring cannot reach the SLM host. Found in the review of #20251.

  • services/role_registry.py gives the role ansible_playbook: deploy-monitoring.yml.
  • ansible/deploy-monitoring.yml runs on hosts: "{{ target_host | default('localhost') }}".
  • api/roles.py runs it with limit=[target_node_id], and api/_role_procedure_vars.py sets only role_name, never target_host.

So the play targets localhost and the limit names a node, and by reading the code the play matches nothing. Not run on a host: what the button shows the user is not observed.

This leaves no builtin way to apply the monitoring role's Grafana settings to the SLM host, since the updater re-renders Prometheus configuration but has no Grafana step.

Acceptance criteria

  • Redeploying slm-monitoring from the Roles page runs the monitoring role on the node chosen (test).
  • docs/infrastructure/GRAFANA_ROLE_CONSISTENCY.md names that action once it works.
  • Host: a Redeploy on the local install changes grafana.ini as the role renders it, with output pasted here.

Activity

  1. mrveiss commented on Nov 2, 2026

    @mrveiss
    OwnerAuthor

    Part of this landed in the merge train (PR #20594, 655489c4e6) via #20537: autobot-slm-backend/api/_role_procedure_vars.py now passes target_host (the chosen node) in the extra vars, with autobot-slm-backend/api/role_procedure_vars_20484_test.py. Stays open: docs/infrastructure/GRAFANA_ROLE_CONSISTENCY.md was not changed, and the host check (Redeploy changes grafana.ini) has not been run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions