Bug 2041753
| Summary: | [ansible-freeipa] Client deploy failing with ipaadmin keytab and OTP due to latest ansible version. | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Varun Mylaraiah <mvarun> |
| Component: | ansible-freeipa | Assignee: | Thomas Woerner <twoerner> |
| Status: | CLOSED ERRATA | QA Contact: | ipa-qe <ipa-qe> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 8.6 | Keywords: | Regression, Triaged |
| Target Milestone: | rc | Flags: | pm-rhel:
mirror+
|
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | ansible-freeipa-1.6.1-1.el8 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-05-10 13:38:28 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Here is the upstream PR: https://github.com/freeipa/ansible-freeipa/pull/733 *** Bug 2041752 has been marked as a duplicate of this bug. *** Verified
ansible-freeipa-1.6.3-1.el8.noarch
Passed ansible_freeipa_tests/client/test_idm_deploy_client.py::TestClientTC26::()::test_specified_server_keytab_otp 46.07
------------------------------ Captured log call -------------------------------
channel.py 1212 DEBUG [chan 14] Max packet in: 32768 bytes
channel.py 1212 DEBUG [chan 14] Max packet out: 32768 bytes
transport.py 1819 DEBUG Secsh channel 14 opened.
transport.py 318 INFO RUN ['ipactl', 'status']
transport.py 519 DEBUG RUN ['ipactl', 'status']
channel.py 1212 DEBUG [chan 14] Sesch channel 14 request ok
transport.py 563 DEBUG -bash: line 1: cd: /root/multihost_tests: No such file or directory
transport.py 563 DEBUG -bash: line 2: /root/multihost_tests/env.sh: No such file or directory
transport.py 563 DEBUG ipa: INFO: The ipactl command was successful
transport.py 563 DEBUG Directory Service: RUNNING
transport.py 563 DEBUG krb5kdc Service: RUNNING
transport.py 563 DEBUG kadmin Service: RUNNING
transport.py 563 DEBUG named Service: RUNNING
transport.py 563 DEBUG httpd Service: RUNNING
transport.py 563 DEBUG ipa-custodia Service: RUNNING
transport.py 563 DEBUG pki-tomcatd Service: RUNNING
transport.py 563 DEBUG ipa-otpd Service: RUNNING
transport.py 563 DEBUG ipa-dnskeysyncd Service: RUNNING
channel.py 1212 DEBUG [chan 14] EOF received (14)
channel.py 1212 DEBUG [chan 14] EOF sent (14)
transport.py 217 DEBUG Exit code: 0
channel.py 1212 DEBUG [chan 15] Max packet in: 32768 bytes
channel.py 1212 DEBUG [chan 15] Max packet out: 32768 bytes
transport.py 1819 DEBUG Secsh channel 15 opened.
transport.py 318 INFO RUN ['ipa-getkeytab', '--retrieve', '-k', 'ipaadmin.keytab', '-D', 'cn=directory manager', '-p', 'admin', '-w', 'Secret.123']
transport.py 519 DEBUG RUN ['ipa-getkeytab', '--retrieve', '-k', 'ipaadmin.keytab', '-D', 'cn=directory manager', '-p', 'admin', '-w', 'Secret.123']
channel.py 1212 DEBUG [chan 15] Sesch channel 15 request ok
transport.py 563 DEBUG -bash: line 1: cd: /root/multihost_tests: No such file or directory
transport.py 563 DEBUG -bash: line 2: /root/multihost_tests/env.sh: No such file or directory
transport.py 563 DEBUG Keytab successfully retrieved and stored in: ipaadmin.keytab
channel.py 1212 DEBUG [chan 15] EOF received (15)
channel.py 1212 DEBUG [chan 15] EOF sent (15)
transport.py 217 DEBUG Exit code: 0
transport.py 284 DEBUG READ /root/ipaadmin.keytab
sftp.py 158 DEBUG [chan 10] open(b'/root/ipaadmin.keytab', 'rb')
sftp.py 158 DEBUG [chan 10] open(b'/root/ipaadmin.keytab', 'rb') -> 00000000
sftp.py 158 DEBUG [chan 10] close(00000000)
transport.py 293 INFO WRITE /root/ipaadmin.keytab
sftp.py 158 DEBUG [chan 0] open(b'/root/ipaadmin.keytab', 'wb')
sftp.py 158 DEBUG [chan 0] open(b'/root/ipaadmin.keytab', 'wb') -> 00000000
sftp.py 158 DEBUG [chan 0] close(00000000)
transport.py 293 INFO WRITE inventory/clients.hosts
sftp.py 158 DEBUG [chan 0] open(b'inventory/clients.hosts', 'wb')
sftp.py 158 DEBUG [chan 0] open(b'inventory/clients.hosts', 'wb') -> 00000000
sftp.py 158 DEBUG [chan 0] close(00000000)
transport.py 329 INFO PUT install-clients.yaml
sftp.py 158 DEBUG [chan 0] open(b'install-clients.yaml', 'wb')
sftp.py 158 DEBUG [chan 0] open(b'install-clients.yaml', 'wb') -> 00000000
sftp.py 158 DEBUG [chan 0] close(00000000)
sftp.py 158 DEBUG [chan 0] stat(b'install-clients.yaml')
channel.py 1212 DEBUG [chan 25] Max packet in: 32768 bytes
channel.py 1212 DEBUG [chan 25] Max packet out: 32768 bytes
transport.py 1819 DEBUG Secsh channel 25 opened.
transport.py 318 INFO RUN ['ansible-playbook', '--ssh-extra-args="-o StrictHostKeyChecking=no"', '-vv', '-i', 'inventory/clients.hosts', 'install-clients.yaml']
transport.py 519 DEBUG RUN ['ansible-playbook', '--ssh-extra-args="-o StrictHostKeyChecking=no"', '-vv', '-i', 'inventory/clients.hosts', 'install-clients.yaml']
channel.py 1212 DEBUG [chan 25] Sesch channel 25 request ok
transport.py 563 DEBUG -bash: line 1: cd: /root/multihost_tests: No such file or directory
transport.py 563 DEBUG -bash: line 2: /root/multihost_tests/env.sh: No such file or directory
transport.py 563 DEBUG ansible-playbook [core 2.12.2]
transport.py 563 DEBUG config file = /etc/ansible/ansible.cfg
transport.py 563 DEBUG configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
transport.py 563 DEBUG ansible python module location = /usr/lib/python3.8/site-packages/ansible
transport.py 563 DEBUG ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
transport.py 563 DEBUG executable location = /usr/bin/ansible-playbook
transport.py 563 DEBUG python version = 3.8.12 (default, Sep 16 2021, 10:46:05) [GCC 8.5.0 20210514 (Red Hat 8.5.0-3)]
transport.py 563 DEBUG jinja version = 2.10.3
transport.py 563 DEBUG libyaml = True
transport.py 563 DEBUG Using /etc/ansible/ansible.cfg as config file
transport.py 563 DEBUG Skipping callback 'default', as we already have a stdout callback.
transport.py 563 DEBUG Skipping callback 'minimal', as we already have a stdout callback.
transport.py 563 DEBUG Skipping callback 'oneline', as we already have a stdout callback.
transport.py 563 DEBUG
transport.py 563 DEBUG PLAYBOOK: install-clients.yaml *************************************************
transport.py 563 DEBUG 1 plays in install-clients.yaml
transport.py 563 DEBUG
transport.py 563 DEBUG PLAY [Playbook to configure IPA clients] ***************************************
transport.py 563 DEBUG
transport.py 563 DEBUG TASK [Gathering Facts] *********************************************************
transport.py 563 DEBUG task path: /root/install-clients.yaml:2
transport.py 563 DEBUG ok: [client1.ipadomain.test]
transport.py 563 DEBUG META: ran handlers
transport.py 563 DEBUG
transport.py 563 DEBUG TASK [ipaclient : Import variables specific to distribution] *******************
transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/main.yml:4
transport.py 563 DEBUG ok: [client1.ipadomain.test] => (item=/usr/share/ansible/roles/ipaclient/vars/RedHat-8.yml) => {"ansible_facts": {"ipaclient_packages": ["@idm:DL1/client"]}, "ansible_included_var_files": ["/usr/share/ansible/roles/ipaclient/vars/RedHat-8.yml"], "ansible_loop_var": "item", "changed": false, "item": "/usr/share/ansible/roles/ipaclient/vars/RedHat-8.yml"}
transport.py 563 DEBUG
transport.py 563 DEBUG TASK [ipaclient : Install IPA client] ******************************************
transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/main.yml:19
transport.py 563 DEBUG included: /usr/share/ansible/roles/ipaclient/tasks/install.yml for client1.ipadomain.test
transport.py 563 DEBUG
transport.py 563 DEBUG TASK [ipaclient : Install - Ensure that IPA client packages are installed] *****
transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:4
transport.py 563 DEBUG ok: [client1.ipadomain.test] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []}
transport.py 563 DEBUG
transport.py 563 DEBUG TASK [ipaclient : Install - Set ipaclient_servers] *****************************
transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:10
transport.py 563 DEBUG skipping: [client1.ipadomain.test] => {"changed": false, "skip_reason": "Conditional result was False"}
transport.py 563 DEBUG
transport.py 563 DEBUG TASK [ipaclient : Install - Set ipaclient_servers from cluster inventory] ******
transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:15
transport.py 563 DEBUG skipping: [client1.ipadomain.test] => {"changed": false, "skip_reason": "Conditional result was False"}
transport.py 563 DEBUG
transport.py 563 DEBUG TASK [ipaclient : Install - Check that either principal or keytab is set] ******
transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:21
transport.py 563 DEBUG skipping: [client1.ipadomain.test] => {"changed": false, "skip_reason": "Conditional result was False"}
transport.py 563 DEBUG
transport.py 563 DEBUG TASK [ipaclient : Install - Set default principal if no keytab is given] *******
transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:25
transport.py 563 DEBUG ok: [client1.ipadomain.test] => {"ansible_facts": {"ipaadmin_principal": "admin"}, "changed": false}
transport.py 563 DEBUG
transport.py 563 DEBUG TASK [ipaclient : Install - IPA client test] ***********************************
transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:30
transport.py 563 DEBUG ok: [client1.ipadomain.test] => {"basedn": "dc=ipadomain,dc=test", "changed": false, "client_already_configured": false, "client_domain": "ipadomain.test", "dnsok": true, "domain": "ipadomain.test", "hostname": "client1.ipadomain.test", "ipa_python_version": 40908, "kdc": "master.ipadomain.test", "nosssd_files": {}, "ntp_pool": null, "ntp_servers": null, "realm": "IPADOMAIN.TEST", "servers": ["master.ipadomain.test"], "sssd": true}
transport.py 563 DEBUG
transport.py 563 DEBUG TASK [ipaclient : Install - Cleanup leftover ccache] ***************************
transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:56
transport.py 563 DEBUG ok: [client1.ipadomain.test] => {"changed": false, "path": "/etc/ipa/.dns_ccache", "state": "absent"}
transport.py 563 DEBUG
transport.py 563 DEBUG TASK [ipaclient : Install - Configure NTP] *************************************
transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:61
transport.py 563 DEBUG ok: [client1.ipadomain.test] => {"changed": false}
transport.py 563 DEBUG
transport.py 563 DEBUG TASK [ipaclient : Install - Make sure One-Time Password is enabled if it's already defined] ***
transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:73
transport.py 563 DEBUG skipping: [client1.ipadomain.test] => {"changed": false, "skip_reason": "Conditional result was False"}
transport.py 563 DEBUG
transport.py 563 DEBUG TASK [ipaclient : Install - Disable One-Time Password for on_master] ***********
transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:78
transport.py 563 DEBUG skipping: [client1.ipadomain.test] => {"changed": false, "skip_reason": "Conditional result was False"}
transport.py 563 DEBUG
transport.py 563 DEBUG TASK [ipaclient : Install - Test if IPA client has working krb5.keytab] ********
transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:83
transport.py 563 DEBUG ok: [client1.ipadomain.test] => {"ca_crt_exists": false, "changed": false, "krb5_conf_ok": false, "krb5_keytab_ok": false, "ping_test_ok": false}
transport.py 563 DEBUG
transport.py 563 DEBUG TASK [ipaclient : Install - Disable One-Time Password for client with working krb5.keytab] ***
transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:93
transport.py 563 DEBUG skipping: [client1.ipadomain.test] => {"changed": false, "skip_reason": "Conditional result was False"}
transport.py 563 DEBUG
transport.py 563 DEBUG TASK [ipaclient : Install - Keytab or password is required for getting otp] ****
transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:109
transport.py 563 DEBUG skipping: [client1.ipadomain.test] => {"changed": false, "skip_reason": "Conditional result was False"}
transport.py 563 DEBUG
transport.py 563 DEBUG TASK [ipaclient : Install - Get One-Time Password for client enrollment] *******
transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:113
transport.py 563 DEBUG changed: [client1.ipadomain.test -> master.ipadomain.test] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true}
transport.py 563 DEBUG
transport.py 563 DEBUG TASK [ipaclient : Install - Report error for OTP generation] *******************
transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:132
transport.py 563 DEBUG skipping: [client1.ipadomain.test] => {}
transport.py 563 DEBUG
transport.py 563 DEBUG TASK [ipaclient : Install - Store the previously obtained OTP] *****************
transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:138
transport.py 563 DEBUG ok: [client1.ipadomain.test] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false}
transport.py 563 DEBUG
transport.py 563 DEBUG TASK [ipaclient : Store predefined OTP in admin_password] **********************
transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:147
transport.py 563 DEBUG skipping: [client1.ipadomain.test] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false}
transport.py 563 DEBUG
transport.py 563 DEBUG TASK [ipaclient : Install - Check if principal and keytab are set] *************
transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:163
transport.py 563 DEBUG skipping: [client1.ipadomain.test] => {"changed": false, "skip_reason": "Conditional result was False"}
transport.py 563 DEBUG
transport.py 563 DEBUG TASK [ipaclient : Install - Check if one of password or keytabs are set] *******
transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:167
transport.py 563 DEBUG skipping: [client1.ipadomain.test] => {"changed": false, "skip_reason": "Conditional result was False"}
transport.py 563 DEBUG
transport.py 563 DEBUG TASK [ipaclient : Install - Purge IPADOMAIN.TEST from host keytab] *************
transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:175
transport.py 563 DEBUG changed: [client1.ipadomain.test] => {"changed": true, "cmd": ["/usr/sbin/ipa-rmkeytab", "-k", "/etc/krb5.keytab", "-r", "IPADOMAIN.TEST"], "delta": "0:00:00.005365", "end": "2022-02-07 03:49:22.571231", "failed_when_result": false, "msg": "non-zero return code", "rc": 7, "start": "2022-02-07 03:49:22.565866", "stderr": "Failed to set cursor 'No such file or directory'", "stderr_lines": ["Failed to set cursor 'No such file or directory'"], "stdout": "", "stdout_lines": []}
transport.py 563 DEBUG
transport.py 563 DEBUG TASK [ipaclient : Install - Backup and set hostname] ***************************
transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:192
transport.py 563 DEBUG changed: [client1.ipadomain.test] => {"changed": true}
transport.py 563 DEBUG
transport.py 563 DEBUG TASK [ipaclient : Install - Join IPA] ******************************************
transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:197
transport.py 563 DEBUG changed: [client1.ipadomain.test] => {"already_joined": false, "changed": true}
transport.py 563 DEBUG
transport.py 563 DEBUG TASK [ipaclient : fail] ********************************************************
transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:219
transport.py 563 DEBUG skipping: [client1.ipadomain.test] => {"changed": false, "skip_reason": "Conditional result was False"}
transport.py 563 DEBUG
transport.py 563 DEBUG TASK [ipaclient : fail] ********************************************************
transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:224
transport.py 563 DEBUG skipping: [client1.ipadomain.test] => {"changed": false, "skip_reason": "Conditional result was False"}
transport.py 563 DEBUG
transport.py 563 DEBUG TASK [ipaclient : fail] ********************************************************
transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:227
transport.py 563 DEBUG skipping: [client1.ipadomain.test] => {"changed": false, "skip_reason": "Conditional result was False"}
transport.py 563 DEBUG
transport.py 563 DEBUG TASK [ipaclient : Install - Configure IPA default.conf] ************************
transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:239
transport.py 563 DEBUG changed: [client1.ipadomain.test] => {"changed": true}
transport.py 563 DEBUG
transport.py 563 DEBUG TASK [ipaclient : Install - Configure SSSD] ************************************
transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:248
transport.py 563 DEBUG changed: [client1.ipadomain.test] => {"changed": true}
transport.py 563 DEBUG
transport.py 563 DEBUG TASK [ipaclient : Install - Configure krb5 for IPA realm] **********************
transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:270
transport.py 563 DEBUG changed: [client1.ipadomain.test] => {"changed": true}
transport.py 563 DEBUG
transport.py 563 DEBUG TASK [ipaclient : Install - IPA API calls for remaining enrollment parts] ******
transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:284
transport.py 563 DEBUG changed: [client1.ipadomain.test] => {"ca_enabled": true, "changed": true, "subject_base": "O=IPADOMAIN.TEST"}
transport.py 563 DEBUG
transport.py 563 DEBUG TASK [ipaclient : Install - Fix IPA ca] ****************************************
transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:292
transport.py 563 DEBUG skipping: [client1.ipadomain.test] => {"changed": false, "skip_reason": "Conditional result was False"}
transport.py 563 DEBUG
transport.py 563 DEBUG TASK [ipaclient : Install - Create IPA NSS database] ***************************
transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:302
transport.py 563 DEBUG changed: [client1.ipadomain.test] => {"ca_enabled_ra": true, "changed": true}
transport.py 563 DEBUG
transport.py 563 DEBUG TASK [ipaclient : Install - Configure SSH and SSHD] ****************************
transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:334
transport.py 563 DEBUG changed: [client1.ipadomain.test] => {"changed": true}
transport.py 563 DEBUG
transport.py 563 DEBUG TASK [ipaclient : Install - Configure automount] *******************************
transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:342
transport.py 563 DEBUG changed: [client1.ipadomain.test] => {"changed": true}
transport.py 563 DEBUG
transport.py 563 DEBUG TASK [ipaclient : Install - Configure firefox] *********************************
transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:348
transport.py 563 DEBUG skipping: [client1.ipadomain.test] => {"changed": false, "skip_reason": "Conditional result was False"}
transport.py 563 DEBUG
transport.py 563 DEBUG TASK [ipaclient : Install - Configure NIS] *************************************
transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:354
transport.py 563 DEBUG changed: [client1.ipadomain.test] => {"changed": true}
transport.py 563 DEBUG
transport.py 563 DEBUG TASK [ipaclient : Install - Restore original admin password if overwritten by OTP] ***
transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:372
transport.py 563 DEBUG skipping: [client1.ipadomain.test] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false}
transport.py 563 DEBUG
transport.py 563 DEBUG TASK [ipaclient : Cleanup leftover ccache] *************************************
transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:378
transport.py 563 DEBUG ok: [client1.ipadomain.test] => {"changed": false, "path": "/etc/ipa/.dns_ccache", "state": "absent"}
transport.py 563 DEBUG
transport.py 563 DEBUG TASK [ipaclient : Uninstall IPA client] ****************************************
transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/main.yml:23
transport.py 563 DEBUG skipping: [client1.ipadomain.test] => {"changed": false, "skip_reason": "Conditional result was False"}
transport.py 563 DEBUG META: role_complete for client1.ipadomain.test
transport.py 563 DEBUG META: ran handlers
transport.py 563 DEBUG META: ran handlers
transport.py 563 DEBUG
transport.py 563 DEBUG PLAY RECAP *********************************************************************
transport.py 563 DEBUG client1.ipadomain.test : ok=23 changed=12 unreachable=0 failed=0 skipped=18 rescued=0 ignored=0
transport.py 563 DEBUG
channel.py 1212 DEBUG [chan 25] EOF received (25)
channel.py 1212 DEBUG [chan 25] EOF sent (25)
transport.py 217 DEBUG Exit code: 0
Based on the test result, marking the bug Verified.
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 (ansible-freeipa bug fix and enhancement update), 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-2022:1791 |
Description of problem: Client installation failing with keytab and OTP due to latest ansible pulling python-3.8.12 Ansible-freeipa was working fine with ansible 2.9.27 and python version = 3.6.8 [root@ansible ~]# cat /etc/redhat-release Red Hat Enterprise Linux release 8.6 Beta (Ootpa) [root@ansible ~]# ansible --version ansible [core 2.12.1] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.8/site-packages/ansible ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections executable location = /usr/bin/ansible python version = 3.8.12 (default, Sep 16 2021, 10:46:05) [GCC 8.5.0 20210514 (Red Hat 8.5.0-3)] jinja version = 2.10.3 Console-output: =============== transport.py 563 DEBUG PLAY [Playbook to configure IPA clients] *************************************** transport.py 563 DEBUG transport.py 563 DEBUG TASK [Gathering Facts] ********************************************************* transport.py 563 DEBUG task path: /root/install-clients.yaml:2 transport.py 563 DEBUG ok: [client1.ipadomain.test] transport.py 563 DEBUG META: ran handlers transport.py 563 DEBUG transport.py 563 DEBUG TASK [ipaclient : Import variables specific to distribution] ******************* transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/main.yml:4 transport.py 563 DEBUG ok: [client1.ipadomain.test] => (item=/usr/share/ansible/roles/ipaclient/vars/RedHat-8.yml) => {"ansible_facts": {"ipaclient_packages": ["@idm:DL1/client"]}, "ansible_included_var_files": ["/usr/share/ansible/roles/ipaclient/vars/RedHat-8.yml"], "ansible_loop_var": "item", "changed": false, "item": "/usr/share/ansible/roles/ipaclient/vars/RedHat-8.yml"} transport.py 563 DEBUG transport.py 563 DEBUG TASK [ipaclient : Install IPA client] ****************************************** transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/main.yml:19 transport.py 563 DEBUG included: /usr/share/ansible/roles/ipaclient/tasks/install.yml for client1.ipadomain.test transport.py 563 DEBUG transport.py 563 DEBUG TASK [ipaclient : Install - Ensure that IPA client packages are installed] ***** transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:4 transport.py 563 DEBUG ok: [client1.ipadomain.test] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} transport.py 563 DEBUG transport.py 563 DEBUG TASK [ipaclient : Install - Set ipaclient_servers] ***************************** transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:10 transport.py 563 DEBUG skipping: [client1.ipadomain.test] => {"changed": false, "skip_reason": "Conditional result was False"} transport.py 563 DEBUG transport.py 563 DEBUG TASK [ipaclient : Install - Set ipaclient_servers from cluster inventory] ****** transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:15 transport.py 563 DEBUG skipping: [client1.ipadomain.test] => {"changed": false, "skip_reason": "Conditional result was False"} transport.py 563 DEBUG transport.py 563 DEBUG TASK [ipaclient : Install - Check that either principal or keytab is set] ****** transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:21 transport.py 563 DEBUG skipping: [client1.ipadomain.test] => {"changed": false, "skip_reason": "Conditional result was False"} transport.py 563 DEBUG transport.py 563 DEBUG TASK [ipaclient : Install - Set default principal if no keytab is given] ******* transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:25 transport.py 563 DEBUG ok: [client1.ipadomain.test] => {"ansible_facts": {"ipaadmin_principal": "admin"}, "changed": false} transport.py 563 DEBUG transport.py 563 DEBUG TASK [ipaclient : Install - IPA client test] *********************************** transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:30 transport.py 563 DEBUG ok: [client1.ipadomain.test] => {"basedn": "dc=ipadomain,dc=test", "changed": false, "client_already_configured": false, "client_domain": "ipadomain.test", "dnsok": true, "domain": "ipadomain.test", "hostname": "client1.ipadomain.test", "ipa_python_version": 40908, "kdc": "master.ipadomain.test", "nosssd_files": {}, "ntp_pool": null, "ntp_servers": null, "realm": "IPADOMAIN.TEST", "servers": ["master.ipadomain.test"], "sssd": true} transport.py 563 DEBUG transport.py 563 DEBUG TASK [ipaclient : Install - Cleanup leftover ccache] *************************** transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:56 transport.py 563 DEBUG ok: [client1.ipadomain.test] => {"changed": false, "path": "/etc/ipa/.dns_ccache", "state": "absent"} transport.py 563 DEBUG transport.py 563 DEBUG TASK [ipaclient : Install - Configure NTP] ************************************* transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:61 transport.py 563 DEBUG ok: [client1.ipadomain.test] => {"changed": false} transport.py 563 DEBUG transport.py 563 DEBUG TASK [ipaclient : Install - Make sure One-Time Password is enabled if it's already defined] *** transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:73 transport.py 563 DEBUG skipping: [client1.ipadomain.test] => {"changed": false, "skip_reason": "Conditional result was False"} transport.py 563 DEBUG transport.py 563 DEBUG TASK [ipaclient : Install - Disable One-Time Password for on_master] *********** transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:78 transport.py 563 DEBUG skipping: [client1.ipadomain.test] => {"changed": false, "skip_reason": "Conditional result was False"} transport.py 563 DEBUG transport.py 563 DEBUG TASK [ipaclient : Install - Test if IPA client has working krb5.keytab] ******** transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:83 transport.py 563 DEBUG ok: [client1.ipadomain.test] => {"ca_crt_exists": false, "changed": false, "krb5_conf_ok": false, "krb5_keytab_ok": false, "ping_test_ok": false} transport.py 563 DEBUG transport.py 563 DEBUG TASK [ipaclient : Install - Disable One-Time Password for client with working krb5.keytab] *** transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:93 transport.py 563 DEBUG skipping: [client1.ipadomain.test] => {"changed": false, "skip_reason": "Conditional result was False"} transport.py 563 DEBUG transport.py 563 DEBUG TASK [ipaclient : Install - Keytab or password is required for getting otp] **** transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:109 transport.py 563 DEBUG skipping: [client1.ipadomain.test] => {"changed": false, "skip_reason": "Conditional result was False"} transport.py 563 DEBUG transport.py 563 DEBUG TASK [ipaclient : Install - Get One-Time Password for client enrollment] ******* transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:113 transport.py 563 DEBUG fatal: [client1.ipadomain.test -> master.ipadomain.test]: FAILED! => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false} transport.py 563 DEBUG ...ignoring transport.py 563 DEBUG transport.py 563 DEBUG TASK [ipaclient : Install - Report error for OTP generation] ******************* transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:132 transport.py 563 DEBUG fatal: [client1.ipadomain.test]: FAILED! => { transport.py 563 DEBUG "msg": "kinit admin with keytab /root/ipaadmin.keytab failed: gssapi is not available" transport.py 563 DEBUG } transport.py 563 DEBUG transport.py 563 DEBUG TASK [ipaclient : Install - Restore original admin password if overwritten by OTP] *** transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:372 transport.py 563 DEBUG skipping: [client1.ipadomain.test] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false} transport.py 563 DEBUG transport.py 563 DEBUG TASK [ipaclient : Cleanup leftover ccache] ************************************* transport.py 563 DEBUG task path: /usr/share/ansible/roles/ipaclient/tasks/install.yml:378 transport.py 563 DEBUG ok: [client1.ipadomain.test] => {"changed": false, "path": "/etc/ipa/.dns_ccache", "state": "absent"} transport.py 563 DEBUG transport.py 563 DEBUG PLAY RECAP ********************************************************************* transport.py 563 DEBUG client1.ipadomain.test : ok=11 changed=0 unreachable=0 failed=1 skipped=8 rescued=0 ignored=1 transport.py 563 DEBUG channel.py 1212 DEBUG [chan 21] EOF received (21)