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

restartcheck/opkg: add NILRT "sysapi" reboot support #47722

Conversation

Projects
None yet
3 participants
@10ne1
Copy link
Contributor

commented May 18, 2018

What does this PR do?

Adds reboot detection to restartcheck when NILinuxRT "System API" plugins are installed by the package manager. More details in the commit message & function docstrings.

New Behavior

Restartcheck asks for reboots on NILinuxRT when a new type of packages gets installed.

Tests written?

No

Commits signed with GPG?

No

@salt-jenkins salt-jenkins requested a review from saltstack/team-suse May 18, 2018

@10ne1 10ne1 force-pushed the 10ne1:dev/aratiu/upstream-nilrt-add-sysapi-reboot-support branch from 610de02 to fb7bda0 May 23, 2018

10ne1 and others added some commits May 17, 2018

restartcheck/opkg: add NILRT "sysapi" reboot support
The code was originally written with only kernel modules triggering
system reboots, but it turns out other components within NILinuxRT
need this functionality, so abstract out the reboot state logic so
it's not kernel-module specific anymore.

The abstracted logic basically functions the same as before: Packages
modify a specific file on disk which gets its md5sum & timestamp
stored under NILRT_RESTARTCHECK_STATE_PATH. The state files in turn
are checked using restartcheck's new  _file_changed_nilrt() function.

Now we just call the generic _file_changed_nilrt() both for kernel
modules and sysapi and anything else we might need in the future.

Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
@rallytime

This comment has been minimized.

Copy link
Contributor

commented Jun 8, 2018

@saltstack/team-suse Did any of you want to review this by chance?

@isbm

isbm approved these changes Jun 9, 2018

Copy link
Contributor

left a comment

Sorry being late. Done!

@rallytime rallytime merged commit 6eee17d into saltstack:develop Jun 11, 2018

5 of 10 checks passed

jenkins/PR/salt-pr-linode-ubuntu14-n Pull Requests » Salt PR - Linode Ubuntu14.04 #23524 — ABORTED
Details
jenkins/PR/salt-pr-linode-ubuntu16-py3 Pull Requests » Salt PR - Linode Ubuntu16.04 - PY3 #10565 — ABORTED
Details
default Build finished.
Details
jenkins/PR/salt-pr-linode-cent7-py3 Pull Requests » Salt PR - Linode CentOS 7 - PY3 #5594 — FAILURE
Details
jenkins/PR/salt-pr-rs-cent7-n Pull Requests » Salt PR - RS CentOS 7 #19648 — FAILURE
Details
WIP ready for review
Details
codeclimate All good!
Details
jenkins/PR/salt-pr-clone Pull Requests » Salt PR - Clone #25792 — SUCCESS
Details
jenkins/PR/salt-pr-docs-n Pull Requests » Salt PR - Docs #17857 — SUCCESS
Details
jenkins/PR/salt-pr-lint-n Pull Requests » Salt PR - Code Lint #22488 — SUCCESS
Details

@10ne1 10ne1 deleted the 10ne1:dev/aratiu/upstream-nilrt-add-sysapi-reboot-support branch Jun 11, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.