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
win_system.reboot: wait_for_reboot limited by minion retry timer #39469
Comments
@morganwillcock it seems you are attempting to run a state module with a sls file. Would you share a small snippet of that to help attempt to replicate this? |
@Ch3LL thanks for looking. install_security_rollup: dism.package_installed: - name: 'C:\path\to\file.cab' # this should sleep for 35 seconds reboot_after_update: module.run: - name: system.reboot - timeout: 5 - in_seconds: True - wait_for_reboot: True - only_on_pending_reboot: True # only do something else if not rebooting do_something_else: ... There are win_system state functions in develop that will work around this, but I imagine they aren't going to get backported to the stable branches as they are brand new. Basically, I'm only calling the execution module because the state functions aren't available yet, but wasn't expecting to encounter the timing problems. |
Function was superseded by a state module, which doesn't encounter the same issue. |
I am having this issue in 3005.1, both with the state and the module. Neither are waiting for the reboot to complete, and are failing out with a [Not connected] error. How can I make this work, so that I can reboot, and then continue with a state. I have tried both with the state and the module. Here is my SLS that I am testing with:
Here is my return:
Am I missing something, or is this still an issue? I have looked for answers, for several days, and haven't been able to find anything. |
Description of Issue/Question
I've been seeing some inconsistency when
wait_for_reboot: True
is used with the reboot function of the win_system execution module. Initially I thought that the sleep wasn't long enough to cover component based serving on shutdown, but it looks like the function throws an exception because of the shutdown signal.Replacing the sleep function with a long running process also exhibits the same issue. In my case (because updates have been applied) the 8 seconds was short enough that the system is still shutting down and the next state function starts to run:
Steps to Reproduce Issue
This is probably tricky to reproduce, but I imagine any time updates are installed or the disk is slow on shutdown, the state run may continue because the minion service is still running.
It looks like it may not affect Python 3.
https://www.python.org/dev/peps/pep-0475/
Versions Report
Tested on 2016.11.2
The text was updated successfully, but these errors were encountered: