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

Pending reboot #56489

Merged
merged 8 commits into from
Apr 26, 2020
Merged

Pending reboot #56489

merged 8 commits into from
Apr 26, 2020

Conversation

twangboy
Copy link
Contributor

What does this PR do?

Adds a new pending_reboot grain for Windows systems.

This moves code from many functions in the salt.modules.win_system execution module to a new salt.utils.win_system salt util. This code used by the new grain to determine if the system needs to be rebooted and must be available on minion start.

Tests written?

Yes

Commits signed with GPG?

Yes

@twangboy twangboy requested a review from a team as a code owner March 31, 2020 20:31
@ghost ghost requested a review from Ch3LL March 31, 2020 20:31
@twangboy twangboy added ZRelease-Sodium retired label Feature new functionality including changes to functionality and code refactors, etc. Grains Has Testcase severity-critical top severity, seen by most users, serious issues Windows labels Mar 31, 2020
@Ch3LL Ch3LL self-assigned this Apr 1, 2020
Copy link
Contributor

@Ch3LL Ch3LL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like there are a couple failing tests.
Also Can you update the changelog and the sodium release notes with this new feature?

I think there would be added value in adding an integration test here as well to coincide with the unit tests?

tests/unit/modules/test_win_system.py Show resolved Hide resolved
Ch3LL
Ch3LL previously approved these changes Apr 9, 2020
@Ch3LL
Copy link
Contributor

Ch3LL commented Apr 9, 2020

@twangboy looks like it needs to be rebased and run black against this PR. Unfortunately I cannot see the test results so we will see the results after the rebase

@xeacott
Copy link
Contributor

xeacott commented Apr 14, 2020

This also links here ...
https://github.com/saltstack/release-planning/issues/197

cmcmarrow
cmcmarrow previously approved these changes Apr 15, 2020
Adds pending_reboot graint
Adds new win_system salt util
Adds tests for new grain
Adds tests for new salt util
These have been moved to the win_system salt util and are being tested
there
@dwoz dwoz merged commit adec0c8 into saltstack:master Apr 26, 2020
@twangboy twangboy deleted the pending_reboot branch May 26, 2020 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature new functionality including changes to functionality and code refactors, etc. Grains severity-critical top severity, seen by most users, serious issues Windows ZRelease-Sodium retired label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants