Skip to content

Better systemd integration - #35510

Merged
thatch45 merged 13 commits into
saltstack:2015.8from
terminalmage:issue33516
Aug 17, 2016
Merged

thatch45 merged 13 commits into
saltstack:2015.8from
terminalmage:issue33516

Conversation

@terminalmage

@terminalmage terminalmage commented Aug 17, 2016 •

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

@cachedout

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

Tests passing.

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

Copy link
Copy Markdown
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