Skip to content

slurm: remove Loki and Alloy when log search is turned off - #1450

Merged
michael-balint merged 1 commit into
masterfrom
dholt/log-search-off-cleanup
Dec 1, 2026
Merged

michael-balint merged 1 commit into
masterfrom
dholt/log-search-off-cleanup

Conversation

@dholt

@dholt dholt commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Setting slurm_enable_log_search: false on an existing cluster removed the Grafana data source but left the Loki and Alloy services/containers running.

  • New remove.yml tasks in the loki and alloy roles: stop/disable unit, delete unit, remove any leftover container, delete config. Idempotent. Docker data volumes are kept.
  • slurm-cluster.yml runs them when the flag is off; standalone loki-remove.yml / alloy-remove.yml playbooks added.
  • New Molecule remove scenario per role (idempotence checked), run in the molecule workflow.
  • Docs updated.

Local check: second run of the remove tasks reports 0 changed. Docker/systemd steps are skipped in Molecule containers and need a lab re-run.

Switching slurm_enable_log_search from true to false left the Loki and
Alloy services and containers running. Add remove.yml tasks to both
roles (idempotent: stop/disable unit, delete unit, remove leftover
container, delete config; Docker data volumes are kept) and run them
from slurm-cluster.yml when the flag is off. Add a Molecule 'remove'
scenario for each role (idempotence-checked) and run it in CI. Update
the logging doc.

Signed-off-by: Doug Holt <dholt@nvidia.com>
@dholt
dholt requested a review from michael-balint December 1, 2026 01:53
@michael-balint
michael-balint merged commit a70b62b into master Dec 1, 2026
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants