You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(slm): Redeploy for slm-monitoring never reaches the SLM host #20484
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.
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.
Activity
mrveiss commentedon Nov 2, 2026
Part of this landed in the merge train (PR #20594,
655489c4e6) via #20537:autobot-slm-backend/api/_role_procedure_vars.pynow passestarget_host(the chosen node) in the extra vars, withautobot-slm-backend/api/role_procedure_vars_20484_test.py. Stays open:docs/infrastructure/GRAFANA_ROLE_CONSISTENCY.mdwas not changed, and the host check (Redeploy changesgrafana.ini) has not been run.