-
Notifications
You must be signed in to change notification settings - Fork 157
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_reboot: Ansible 2.8.5 win_reboot never successfully validate reboot completion #27
Comments
From @samdoran on Sep 20, 2019 19:11 I am unable to reproduce this problem. I see the connection attempts while the system reboots, then the task complete successfully.
Can you please run
Could you do a packet capture on the Ansible node to see if the packets are leaving the Ansible control node? If the Windows machine does indeed boot, could you perform a packet capture on the Windows hosts to see if it is receiving the packets? needs_info |
From @vfuyong on Oct 10, 2019 11:26 @samdoran Attached logs here.
|
From @ShachafGoldstein on Nov 17, 2019 07:01 What version of pywinrm are you using? |
@jborean93 i have a customer running into this issue with pywinrm 0.3.0, will ask them to upgrade to latest and verify if anything changes |
From @vfuyong on Sep 16, 2019 08:35
SUMMARY
win_reboot is able to initiate reboot successfully. After 15 seconds, Windows is back with Windows Remote Management service running fine. Ansible debug log says it is still sending commands to get OS bootup time even Windows is ready to receive commands.
However, since reboot is initiated I validated that Ansible is NOT sending any more wsman protocol action (like shell creation, execute command, send input, receive, signal or shell deletion) over HTTPS despite logging repetitively says "ESTABLISH WINRM CONNECTION FOR USER: on PORT 5002 TO windows01" (this is totally unexpected behavior)
ISSUE TYPE
COMPONENT NAME
win_reboot
ANSIBLE VERSION
ansible 2.8.5
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/home/young/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/dist-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.15+ (default, Jul 9 2019, 16:51:35) [GCC 7.4.0]
CONFIGURATION
DEFAULT_FORKS(/etc/ansible/ansible.cfg) = 100
OS / ENVIRONMENT
Ansible client runs on Ubuntu 18
Target: Windows 2016
STEPS TO REPRODUCE
EXPECTED RESULTS
Expecting win_reboot to detect Windows reboot has completed
ACTUAL RESULTS
Copied from original issue: ansible/ansible#62343
The text was updated successfully, but these errors were encountered: