Repository navigation
slurm: remove Loki and Alloy when log search is turned off - #1450
Merged
Merged
Conversation
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>
michael-balint
approved these changes
Dec 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Setting
slurm_enable_log_search: falseon an existing cluster removed the Grafana data source but left the Loki and Alloy services/containers running.remove.ymltasks in thelokiandalloyroles: stop/disable unit, delete unit, remove any leftover container, delete config. Idempotent. Docker data volumes are kept.slurm-cluster.ymlruns them when the flag is off; standaloneloki-remove.yml/alloy-remove.ymlplaybooks added.removescenario per role (idempotence checked), run in the molecule workflow.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.