Skip to content
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.

stop and start munge when writing the munge key #25

Merged
merged 2 commits into from
Jul 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,11 @@ def _on_slurmctld_available(self, event: SlurmctldAvailableEvent) -> None:

if (jwt := event.jwt_rsa) is not None:
self._slurmdbd_ops_manager.write_jwt_rsa(jwt)

if (munge_key := event.munge_key) is not None:
self._slurmdbd_ops_manager.stop_munge()
self._slurmdbd_ops_manager.write_munge_key(munge_key)
self._slurmdbd_ops_manager.start_munge()

self._write_config_and_restart_slurmdbd(event)

Expand Down
Loading