Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better systemd integration #35510

Merged
merged 13 commits into from
Aug 17, 2016
Merged

Better systemd integration #35510

merged 13 commits into from
Aug 17, 2016

Conversation

terminalmage
Copy link
Contributor

@terminalmage terminalmage commented Aug 17, 2016

This pull request adds the use (where applicable) of systemd-run --scope to isolate package (and service) management commands from the salt-minion daemon's cgroup. This ensures that service restarts do not interrupt these commands.

Additionally, it adds systemd notification support for the minion, syndic, and api.

Resolves #33516.
Resolves #33803.

NOTE: this will also require the removal of KillMode=process from our unit files. Additionally, to fully support systemd notification, we need to change the Type= line in the unit files for salt-minion, salt-syndic, and salt-api from simple to notify. vmware-archive/salt-pack#131 has been opened to address this.

@cachedout
Copy link
Contributor

@cachedout
Copy link
Contributor

You mentioned some DRY last night and I think there's some room for that but overall, thumbs up for sure.

@terminalmage
Copy link
Contributor Author

Lint is passing now, I made some changes to the tests because of the lint warning, so the tests should also pass.

/me crosses fingers...

@terminalmage
Copy link
Contributor Author

Tests passing.

@thatch45 thatch45 merged commit fd3274c into saltstack:2015.8 Aug 17, 2016
@thatch45
Copy link
Contributor

W00t! this should finally resolve the long standing issue of the minion restarting itself, this is fantastic!

rallytime pushed a commit to rallytime/salt that referenced this pull request Aug 18, 2016
…d.booted

This brings these tests inline with the changes made to salt.utils.systemd.booted
in saltstack#35510
@terminalmage terminalmage deleted the issue33516 branch November 30, 2016 03:27
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.

3 participants