freeipa / freeipa-pr-ci

FreeIPA Pull Request CI
GNU General Public License v3.0
8 stars 32 forks source link

Failure in the playbook ansible/roles/windows/sshd/tasks /main.yml #512

Closed flo-renaud closed 3 weeks ago

flo-renaud commented 4 weeks ago

The upstream nightly tests using runAdTests are failing in the step configuring cygwin ssh, in the playbook ansible/roles/windows/sshd/tasks /main.yml.

Example of failure: in [testing_ipa-4.10_latest_selinux] Nightly PR 4121 test_http_kdc_proxy: Details

The runner.log shows:

2024-11-01 05:31:26,549    DEBUG  TASK [windows/sshd : Check if cygwin sshd service exists] **********************
2024-11-01 05:31:31,195    DEBUG  ok: [ad-root]
2024-11-01 05:31:31,199    DEBUG  
2024-11-01 05:31:31,199    DEBUG  TASK [windows/sshd : Download cygwin installer] ********************************
2024-11-01 05:31:37,909    DEBUG  changed: [ad-root]
2024-11-01 05:31:37,911    DEBUG  
2024-11-01 05:31:37,911    DEBUG  TASK [windows/sshd : Install cygwin OpenSSH] ***********************************
2024-11-01 05:33:52,782    DEBUG  changed: [ad-root] => (item=http://mirror.cs.vt.edu/pub/cygwin/cygwin/)
2024-11-01 05:33:52,787    DEBUG  skipping: [ad-root] => (item=https://mirror.easyname.at/cygwin/) 
2024-11-01 05:33:52,805    DEBUG  fatal: [ad-root]: FAILED! => {}
2024-11-01 05:33:52,805    DEBUG  
2024-11-01 05:33:52,806    DEBUG  MSG:
2024-11-01 05:33:52,806    DEBUG  
2024-11-01 05:33:52,806    DEBUG  The conditional check 'cygwin_result is undefined or cygwin_result.failed' failed. The error was: error while evaluating conditional (cygwin_result is undefined or cygwin_result.failed): 'dict object' has no attribute 'failed'. 'dict object' has no attribute 'failed'
2024-11-01 05:33:52,806    DEBUG  
2024-11-01 05:33:52,806    DEBUG  The error appears to be in '/root/freeipa-pr-ci/ansible/roles/windows/sshd/tasks/main.yml': line 18, column 5, but may
2024-11-01 05:33:52,806    DEBUG  be elsewhere in the file depending on the exact syntax problem.
2024-11-01 05:33:52,807    DEBUG  
2024-11-01 05:33:52,807    DEBUG  The offending line appears to be:
2024-11-01 05:33:52,807    DEBUG  
2024-11-01 05:33:52,807    DEBUG  
2024-11-01 05:33:52,807    DEBUG    - name: Install cygwin OpenSSH
2024-11-01 05:33:52,807    DEBUG      ^ here
2024-11-01 05:33:52,807    DEBUG  
2024-11-01 05:33:52,807    DEBUG  ...ignoring
2024-11-01 05:33:52,810    DEBUG  
2024-11-01 05:33:52,810    DEBUG  TASK [windows/sshd : Check Cygwin installation status] *************************
2024-11-01 05:33:52,854    DEBUG  fatal: [ad-root]: FAILED! => {}
2024-11-01 05:33:52,855    DEBUG  
2024-11-01 05:33:52,855    DEBUG  MSG:
2024-11-01 05:33:52,855    DEBUG  
2024-11-01 05:33:52,856    DEBUG  The task includes an option with an undefined variable. The error was: {{ cygwin_result.results | rejectattr('skipped', 'defined') | list | last }}: 'dict object' has no attribute 'results'. 'dict object' has no attribute 'results'. {{ cygwin_result.results | rejectattr('skipped', 'defined') | list | last }}: 'dict object' has no attribute 'results'. 'dict object' has no attribute 'results'
2024-11-01 05:33:52,856    DEBUG  
2024-11-01 05:33:52,856    DEBUG  The error appears to be in '/root/freeipa-pr-ci/ansible/roles/windows/sshd/tasks/main.yml': line 32, column 5, but may
2024-11-01 05:33:52,856    DEBUG  be elsewhere in the file depending on the exact syntax problem.
2024-11-01 05:33:52,857    DEBUG  
2024-11-01 05:33:52,857    DEBUG  The offending line appears to be:
2024-11-01 05:33:52,857    DEBUG  
2024-11-01 05:33:52,857    DEBUG  
2024-11-01 05:33:52,857    DEBUG    - name: Check Cygwin installation status
2024-11-01 05:33:52,858    DEBUG      ^ here

Ansible version:

# rpm -qa | grep ansible
ansible-core-2.16.11-1.fc39.noarch
ansible-srpm-macros-1-12.fc39.noarch
ansible-9.10.0-1.fc39.noarch

The role is available here

flo-renaud commented 3 weeks ago

Upstream PR https://github.com/freeipa/freeipa-pr-ci/pull/515