Description of problem: While running the Install_fluentd playbook, the task of Ruby install fails. The current configuration does not follow the redirects for successful download of the installer Version-Release number of selected component (if applicable): How reproducible: Sometimes Observed on only Azure Windows instances for now. Steps to Reproduce: 1. Bring up a Windows instance and enable for remote management via Ansible 2. Run main.yml under tools\ansible\tasks\logging Actual results: Download task will show successful, but the downloaded file would not be the one expected, so the following task of Ruby install would fail Expected results: Ruby_devkit installer is downloaded in its entirety. Additional info:
This bug has been verified and passed on Azure Windows instances, move status to VERIFIED. Version-Release number of selected component (if applicable): windows-machine-config-operator repo commit: # git show commit 39f7e018985b08171d1a0eb852c830fb8ab0a4cd Steps: 1. Install/Upgrade ansible to 2.9 2. Reproduce, git reset windows-machine-config-operator repo to commit before the fix, run ansible-playbook failed when install ruby, check rubyinstaller-devkit downloaded in windows instance, wrong size. # git reset c14e605f59183db3e63d12b7a3e1fd16b68ed66f --hard # ansible-playbook -v -i hosts ~/go/src/windows-machine-config-operator/tools/ansible/tasks/logging/main.yml --extra-vars ruby_fetch_url='https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.5.7-1/rubyinstaller-devkit-2.5.7-1-x64.exe' -vvv ansible-playbook 2.9.0 ... TASK [Install ruby] *********************************************************************************************************************************************************************************************** task path: /root/go/src/windows-machine-config-operator/tools/ansible/tasks/logging/install_fluentd.yml:22 Using module file /root/window_container/ansible/venv_ansible_3/lib/python3.7/site-packages/ansible/modules/windows/win_shell.ps1 Pipelining is enabled. <13.90.229.46> ESTABLISH WINRM CONNECTION FOR USER: core on PORT 5986 TO 13.90.229.46 EXEC (via pipeline wrapper) fatal: [13.90.229.46]: FAILED! => { "changed": true, "cmd": "C:\\Users\\core\\AppData\\Local\\Temp\\ansible.twtpkyhi.pni\\rubyinstaller-devkit-2.5.7-1-x64.exe /VERYSILENT /SUPPRESSMSGBOXES", "delta": "0:00:00.676148", "end": "2019-11-06 09:07:02.566031", "msg": "non-zero return code", "rc": 1, "start": "2019-11-06 09:07:01.889882", "stderr": "Program 'rubyinstaller-devkit-2.5.7-1-x64.exe' failed to run: The file or directory is corrupted and unreadableAt \r\nline:1 char:65\r\n+ ... ing $false; C:\\Users\\core\\AppData\\Local\\Temp\\ansible.twtpkyhi.pni\\rub ...\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~.\r\nAt line:1 char:65\r\n+ ... ing $false; C:\\Users\\core\\AppData\\Local\\Temp\\ansible.twtpkyhi.pni\\rub ...\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n + CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException\r\n + FullyQualifiedErrorId : NativeCommandFailed", "stderr_lines": [ "Program 'rubyinstaller-devkit-2.5.7-1-x64.exe' failed to run: The file or directory is corrupted and unreadableAt ", "line:1 char:65", "+ ... ing $false; C:\\Users\\core\\AppData\\Local\\Temp\\ansible.twtpkyhi.pni\\rub ...", "+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~.", "At line:1 char:65", "+ ... ing $false; C:\\Users\\core\\AppData\\Local\\Temp\\ansible.twtpkyhi.pni\\rub ...", "+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", " + CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException", " + FullyQualifiedErrorId : NativeCommandFailed" ], "stdout": "", "stdout_lines": [] } PLAY RECAP ******************************************************************************************************************************************************************************************************** 13.90.229.46 : ok=4 changed=2 unreachable=0 failed=1 skipped=2 rescued=0 ignored=0 PS C:\Users\core\AppData\Local\Temp\ansible.twtpkyhi.pni> ls Directory: C:\Users\core\AppData\Local\Temp\ansible.twtpkyhi.pni Mode LastWriteTime Length Name ---- ------------- ------ ---- -a---- 11/6/2019 4:06 AM 626 rubyinstaller-devkit-2.5.7-1-x64.exe 3. Git pull windows-machine-config-operator repo to latest commit, run ansible-playbook passed, check rubyinstaller-devkit downloaded in windows instance during running, correct size. # git pull # ansible-playbook -v -i hosts ~/go/src/windows-machine-config-operator/tools/ansible/tasks/logging/main.yml --extra-vars ruby_fetch_url='https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.5.7-1/rubyinstaller-devkit-2.5.7-1-x64.exe' -vvv ansible-playbook 2.9.0 ... PLAY RECAP ******************************************************************************************************************************************************************************************************** 13.90.229.46 : ok=10 changed=7 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 PS C:\Users\core\AppData\Local\Temp\ansible.1vfptfwa.gxr> ls Directory: C:\Users\core\AppData\Local\Temp\ansible.1vfptfwa.gxr Mode LastWriteTime Length Name ---- ------------- ------ ---- -a---- 11/6/2019 4:21 AM 133588640 rubyinstaller-devkit-2.5.7-1-x64.exe
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:0062