Bug 1834754
Summary: | [ansible-freeipa] Certificates are removed while updating other attributes in the service module. | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Varun Mylaraiah <mvarun> |
Component: | ansible-freeipa | Assignee: | Rafael Jeffman <rjeffman> |
Status: | CLOSED ERRATA | QA Contact: | ipa-qe <ipa-qe> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 8.3 | CC: | rjeffman, twoerner |
Target Milestone: | rc | Flags: | pm-rhel:
mirror+
|
Target Release: | 8.0 | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | ansible-freeipa-0.1.11-1 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-11-04 02:46:35 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: |
Description
Varun Mylaraiah
2020-05-12 10:56:15 UTC
Could not reproduce this issue. Running the following script, service was correctly handled. --- - name: Test service certificates hosts: ipaserver become: true tasks: - set_fact: test_host: testcert.ipatest.local - name: Ensure service member certificate is present. ipaservice: name: "HTTP/{{ test_host }}" certificate: - MIIC/zCCAeegAwIBAgIUMNHIbn+hhrOVew/2WbkteisV29QwDQYJKoZIhvcNAQELBQAwDzENMAsGA1UEAwwEdGVzdDAeFw0yMDAyMDQxNDQxMDhaFw0zMDAyMDExNDQxMDhaMA8xDTALBgNVBAMMBHRlc3QwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC+XVVGFYpHVkcDfVnNInE1Y/pFciegdzqTjMwUWlRL4Zt3u96GhaMLRbtk+OfEkzLUAhWBOwEraELJzMLJOMvjYF3C+TiGO7dStFLikZmccuSsSIXjnzIPwBXa8KvgRVRyGLoVvGbLJvmjfMXp0nIToTx/i74KF9S++WEes9H5ErJ99CDhLKFgq0amnvsgparYXhypHaRLnikn0vQINt55YoEd1s4KrvEcD2VdZkIMPbLRu2zFvMprF3cjQQG4LT9ggfEXNIPZ1nQWAnAsu7OJEkNF+E4Mkmpcxj9aGUVt5bsq1D+Tzj3GsidSX0nSNcZ2JltXRnL/5v63g5cZyE+nAgMBAAGjUzBRMB0GA1UdDgQWBBRV0j7JYukuH/r/t9+QeNlRLXDlEDAfBgNVHSMEGDAWgBRV0j7JYukuH/r/t9+QeNlRLXDlEDAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQCgVy1+1kNwHs5y1Zp0WjMWGCJC6/zw7FDG4OW5r2GJiCXZYdJ0UonY9ZtoVLJPrp2/DAv1m5DtnDhBYqicuPgLzEkOS1KdTi20Otm/J4yxLLrZC5W4x0XOeSVPXOJuQWfwQ5pPvKkn6WxYUYkGwIt1OH2nSMngkbami3CbSmKZOCpgQIiSlQeDJ8oGjWFMLDymYSHoVOIXHwNoooyEiaio3693l6noobyGv49zyCVLVR1DC7i6RJ186ql0av+D4vPoiF5mX7+sKC2E8xEj9uKQ5GTWRh59VnRBVC/SiMJ/H78tJnBAvoBwXxSEvj8Z3Kjm/BQqZfv4IBsA5yqV7MVq action: member state: present - name: Ensure service member certificate is present. ipaservice: name: "HTTP/{{ test_host }}" auth_ind: radius state: present I can reproduce with ansible-freeipa-0.1.10-1 The bug is reproducible with ansible-freeipa-0.1.10-1, but is not reproduced with current upstream master. This has been fixed with https://github.com/freeipa/ansible-freeipa/pull/271 Verified: ansible-freeipa-0.1.12-5.el8.noarch Automation test result ansible-freeipa-tests/ansible_freeipa_tests/service_module.py::TestServiceWithCertificate::()::test_service_verify_cert_still_present_after_update ------------------------------ Captured log call ------------------------------- channel.py 1212 DEBUG [chan 39] Max packet in: 32768 bytes channel.py 1212 DEBUG [chan 39] Max packet out: 32768 bytes transport.py 1819 DEBUG Secsh channel 39 opened. transport.py 318 INFO RUN ['kinit', 'admin'] transport.py 519 DEBUG RUN ['kinit', 'admin'] channel.py 1212 DEBUG [chan 39] Sesch channel 39 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 Password for admin: channel.py 1212 DEBUG [chan 39] EOF received (39) channel.py 1212 DEBUG [chan 39] EOF sent (39) transport.py 217 DEBUG Exit code: 0 channel.py 1212 DEBUG [chan 40] Max packet in: 32768 bytes channel.py 1212 DEBUG [chan 40] Max packet out: 32768 bytes transport.py 1819 DEBUG Secsh channel 40 opened. transport.py 318 INFO RUN ['ipa', 'service-find', '11newservice'] transport.py 519 DEBUG RUN ['ipa', 'service-find', '11newservice'] channel.py 1212 DEBUG [chan 40] Sesch channel 40 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 ----------------- transport.py 563 DEBUG 1 service matched transport.py 563 DEBUG ----------------- transport.py 563 DEBUG Principal name: 11newservice/master.ipadomain.test transport.py 563 DEBUG Principal alias: 11newservice/master.ipadomain.test transport.py 563 DEBUG Certificate: MIIC/zCCAeegAwIBAgIUMNHIbn+hhrOVew/2WbkteisV29QwDQYJKoZIhvcNAQELBQAwDzENMAsGA1UEAwwEdGVzdDAeFw0yMDAyMDQxNDQxMDhaFw0zMDAyMDExNDQxMDhaMA8xDTALBgNVBAMMBHRlc3QwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC+XVVGFYpHVkcDfVnNInE1Y/pFciegdzqTjMwUWlRL4Zt3u96GhaMLRbtk+OfEkzLUAhWBOwEraELJzMLJOMvjYF3C+TiGO7dStFLikZmccuSsSIXjnzIPwBXa8KvgRVRyGLoVvGbLJvmjfMXp0nIToTx/i74KF9S++WEes9H5ErJ99CDhLKFgq0amnvsgparYXhypHaRLnikn0vQINt55YoEd1s4KrvEcD2VdZkIMPbLRu2zFvMprF3cjQQG4LT9ggfEXNIPZ1nQWAnAsu7OJEkNF+E4Mkmpcxj9aGUVt5bsq1D+Tzj3GsidSX0nSNcZ2JltXRnL/5v63g5cZyE+nAgMBAAGjUzBRMB0GA1UdDgQWBBRV0j7JYukuH/r/t9+QeNlRLXDlEDAfBgNVHSMEGDAWgBRV0j7JYukuH/r/t9+QeNlRLXDlEDAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQCgVy1+1kNwHs5y1Zp0WjMWGCJC6/zw7FDG4OW5r2GJiCXZYdJ0UonY9ZtoVLJPrp2/DAv1m5DtnDhBYqicuPgLzEkOS1KdTi20Otm/J4yxLLrZC5W4x0XOeSVPXOJuQWfwQ5pPvKkn6WxYUYkGwIt1OH2nSMngkbami3CbSmKZOCpgQIiSlQeDJ8oGjWFMLDymYSHoVOIXHwNoooyEiaio3693l6noobyGv49zyCVLVR1DC7i6RJ186ql0av+D4vPoiF5mX7+sKC2E8xEj9uKQ5GTWRh59VnRBVC/SiMJ/H78tJnBAvoBwXxSEvj8Z3Kjm/BQqZfv4IBsA5yqV7MVq transport.py 563 DEBUG Subject: CN=test transport.py 563 DEBUG Serial Number: 278709872803934558082230619207578591056323009492 transport.py 563 DEBUG Serial Number (hex): 0x30D1C86E7FA186B3957B0FF659B92D7A2B15DBD4 transport.py 563 DEBUG Issuer: CN=test transport.py 563 DEBUG Not Before: Tue Feb 04 14:41:08 2020 UTC transport.py 563 DEBUG Not After: Fri Feb 01 14:41:08 2030 UTC transport.py 563 DEBUG Fingerprint (SHA1): 08:15:a0:29:24:8f:a3:51:f5:43:cd:a8:a5:72:9e:bd:16:af:78:48 transport.py 563 DEBUG Fingerprint (SHA256): 99:48:2d:42:af:3c:85:a6:9c:b7:f1:b3:c8:6c:44:5c:9a:28:d3:7b:28:fc:38:58:0b:e5:3c:41:46:6d:9f:98 transport.py 563 DEBUG Keytab: False transport.py 563 DEBUG ---------------------------- transport.py 563 DEBUG Number of entries returned 1 transport.py 563 DEBUG ---------------------------- channel.py 1212 DEBUG [chan 40] EOF received (40) channel.py 1212 DEBUG [chan 40] EOF sent (40) transport.py 217 DEBUG Exit code: 0 channel.py 1212 DEBUG [chan 41] Max packet in: 32768 bytes channel.py 1212 DEBUG [chan 41] Max packet out: 32768 bytes transport.py 1819 DEBUG Secsh channel 41 opened. transport.py 318 INFO RUN ['kdestroy', '-A'] transport.py 519 DEBUG RUN ['kdestroy', '-A'] channel.py 1212 DEBUG [chan 41] Sesch channel 41 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 channel.py 1212 DEBUG [chan 41] EOF received (41) channel.py 1212 DEBUG [chan 41] EOF sent (41) transport.py 217 DEBUG Exit code: 0 transport.py 293 INFO WRITE inventory/service.hosts sftp.py 158 DEBUG [chan 0] open(b'inventory/service.hosts', 'wb') sftp.py 158 DEBUG [chan 0] open(b'inventory/service.hosts', 'wb') -> 00000000 sftp.py 158 DEBUG [chan 0] close(00000000) transport.py 329 INFO PUT service_module.yml sftp.py 158 DEBUG [chan 0] open(b'service_module.yml', 'wb') sftp.py 158 DEBUG [chan 0] open(b'service_module.yml', 'wb') -> 00000000 sftp.py 158 DEBUG [chan 0] close(00000000) sftp.py 158 DEBUG [chan 0] stat(b'service_module.yml') channel.py 1212 DEBUG [chan 9] Max packet in: 32768 bytes channel.py 1212 DEBUG [chan 9] Max packet out: 32768 bytes transport.py 1819 DEBUG Secsh channel 9 opened. transport.py 318 INFO RUN ['ansible-playbook', '--ssh-extra-args="-o StrictHostKeyChecking=no"', '-vv', '-i', 'inventory/service.hosts', 'service_module.yml'] transport.py 519 DEBUG RUN ['ansible-playbook', '--ssh-extra-args="-o StrictHostKeyChecking=no"', '-vv', '-i', 'inventory/service.hosts', 'service_module.yml'] channel.py 1212 DEBUG [chan 9] Sesch channel 9 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 2.9.11 transport.py 563 DEBUG config file = /root/ansible.cfg transport.py 563 DEBUG configured module search path = ['/root/ansible-freeipa/plugins/modules', '/usr/share/ansible/plugins/modules'] transport.py 563 DEBUG ansible python module location = /usr/lib/python3.6/site-packages/ansible transport.py 563 DEBUG executable location = /usr/bin/ansible-playbook transport.py 563 DEBUG python version = 3.6.8 (default, Jun 26 2020, 12:10:09) [GCC 8.3.1 20191121 (Red Hat 8.3.1-5)] transport.py 563 DEBUG Using /root/ansible.cfg as config file transport.py 563 DEBUG transport.py 563 DEBUG PLAYBOOK: service_module.yml *************************************************** transport.py 563 DEBUG 1 plays in service_module.yml transport.py 563 DEBUG transport.py 563 DEBUG PLAY [Playbook to verify existing certificates are not absent while adding other attributes.] *** transport.py 563 DEBUG transport.py 563 DEBUG TASK [Gathering Facts] ********************************************************* transport.py 563 DEBUG task path: /root/service_module.yml:2 transport.py 563 DEBUG ok: [master.ipadomain.test] transport.py 563 DEBUG META: ran handlers transport.py 563 DEBUG transport.py 563 DEBUG TASK [Get Domain from server name] ********************************************* transport.py 563 DEBUG task path: /root/service_module.yml:6 transport.py 563 DEBUG ok: [master.ipadomain.test] => {"ansible_facts": {"ipaserver_domain": "ipadomain.test"}, "changed": false} transport.py 563 DEBUG transport.py 563 DEBUG TASK [Get Realm from server name] ********************************************** transport.py 563 DEBUG task path: /root/service_module.yml:9 transport.py 563 DEBUG ok: [master.ipadomain.test] => {"ansible_facts": {"ipaserver_realm": "IPADOMAIN.TEST"}, "changed": false} transport.py 563 DEBUG transport.py 563 DEBUG TASK [ipaservice] ************************************************************** transport.py 563 DEBUG task path: /root/service_module.yml:13 transport.py 563 DEBUG changed: [master.ipadomain.test] => {"changed": true} 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 master.ipadomain.test : ok=4 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 transport.py 563 DEBUG channel.py 1212 DEBUG [chan 9] EOF received (9) channel.py 1212 DEBUG [chan 9] EOF sent (9) transport.py 217 DEBUG Exit code: 0 channel.py 1212 DEBUG [chan 42] Max packet in: 32768 bytes channel.py 1212 DEBUG [chan 42] Max packet out: 32768 bytes transport.py 1819 DEBUG Secsh channel 42 opened. transport.py 318 INFO RUN ['kinit', 'admin'] transport.py 519 DEBUG RUN ['kinit', 'admin'] channel.py 1212 DEBUG [chan 42] Sesch channel 42 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 Password for admin: channel.py 1212 DEBUG [chan 42] EOF received (42) channel.py 1212 DEBUG [chan 42] EOF sent (42) transport.py 217 DEBUG Exit code: 0 channel.py 1212 DEBUG [chan 43] Max packet in: 32768 bytes channel.py 1212 DEBUG [chan 43] Max packet out: 32768 bytes transport.py 1819 DEBUG Secsh channel 43 opened. transport.py 318 INFO RUN ['ipa', 'service-find', '11newservice'] transport.py 519 DEBUG RUN ['ipa', 'service-find', '11newservice'] channel.py 1212 DEBUG [chan 43] Sesch channel 43 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 ----------------- transport.py 563 DEBUG 1 service matched transport.py 563 DEBUG ----------------- transport.py 563 DEBUG Principal name: 11newservice/master.ipadomain.test transport.py 563 DEBUG Principal alias: 11newservice/master.ipadomain.test transport.py 563 DEBUG Certificate: MIIC/zCCAeegAwIBAgIUMNHIbn+hhrOVew/2WbkteisV29QwDQYJKoZIhvcNAQELBQAwDzENMAsGA1UEAwwEdGVzdDAeFw0yMDAyMDQxNDQxMDhaFw0zMDAyMDExNDQxMDhaMA8xDTALBgNVBAMMBHRlc3QwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC+XVVGFYpHVkcDfVnNInE1Y/pFciegdzqTjMwUWlRL4Zt3u96GhaMLRbtk+OfEkzLUAhWBOwEraELJzMLJOMvjYF3C+TiGO7dStFLikZmccuSsSIXjnzIPwBXa8KvgRVRyGLoVvGbLJvmjfMXp0nIToTx/i74KF9S++WEes9H5ErJ99CDhLKFgq0amnvsgparYXhypHaRLnikn0vQINt55YoEd1s4KrvEcD2VdZkIMPbLRu2zFvMprF3cjQQG4LT9ggfEXNIPZ1nQWAnAsu7OJEkNF+E4Mkmpcxj9aGUVt5bsq1D+Tzj3GsidSX0nSNcZ2JltXRnL/5v63g5cZyE+nAgMBAAGjUzBRMB0GA1UdDgQWBBRV0j7JYukuH/r/t9+QeNlRLXDlEDAfBgNVHSMEGDAWgBRV0j7JYukuH/r/t9+QeNlRLXDlEDAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQCgVy1+1kNwHs5y1Zp0WjMWGCJC6/zw7FDG4OW5r2GJiCXZYdJ0UonY9ZtoVLJPrp2/DAv1m5DtnDhBYqicuPgLzEkOS1KdTi20Otm/J4yxLLrZC5W4x0XOeSVPXOJuQWfwQ5pPvKkn6WxYUYkGwIt1OH2nSMngkbami3CbSmKZOCpgQIiSlQeDJ8oGjWFMLDymYSHoVOIXHwNoooyEiaio3693l6noobyGv49zyCVLVR1DC7i6RJ186ql0av+D4vPoiF5mX7+sKC2E8xEj9uKQ5GTWRh59VnRBVC/SiMJ/H78tJnBAvoBwXxSEvj8Z3Kjm/BQqZfv4IBsA5yqV7MVq transport.py 563 DEBUG Subject: CN=test transport.py 563 DEBUG Serial Number: 278709872803934558082230619207578591056323009492 transport.py 563 DEBUG Serial Number (hex): 0x30D1C86E7FA186B3957B0FF659B92D7A2B15DBD4 transport.py 563 DEBUG Issuer: CN=test transport.py 563 DEBUG Not Before: Tue Feb 04 14:41:08 2020 UTC transport.py 563 DEBUG Not After: Fri Feb 01 14:41:08 2030 UTC transport.py 563 DEBUG Fingerprint (SHA1): 08:15:a0:29:24:8f:a3:51:f5:43:cd:a8:a5:72:9e:bd:16:af:78:48 transport.py 563 DEBUG Fingerprint (SHA256): 99:48:2d:42:af:3c:85:a6:9c:b7:f1:b3:c8:6c:44:5c:9a:28:d3:7b:28:fc:38:58:0b:e5:3c:41:46:6d:9f:98 transport.py 563 DEBUG Authentication Indicators: radius transport.py 563 DEBUG Keytab: False transport.py 563 DEBUG ---------------------------- transport.py 563 DEBUG Number of entries returned 1 transport.py 563 DEBUG ---------------------------- channel.py 1212 DEBUG [chan 43] EOF received (43) channel.py 1212 DEBUG [chan 43] EOF sent (43) transport.py 217 DEBUG Exit code: 0 channel.py 1212 DEBUG [chan 44] Max packet in: 32768 bytes channel.py 1212 DEBUG [chan 44] Max packet out: 32768 bytes transport.py 1819 DEBUG Secsh channel 44 opened. transport.py 318 INFO RUN ['kdestroy', '-A'] transport.py 519 DEBUG RUN ['kdestroy', '-A'] channel.py 1212 DEBUG [chan 44] Sesch channel 44 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 channel.py 1212 DEBUG [chan 44] EOF received (44) channel.py 1212 DEBUG [chan 44] EOF sent (44) transport.py 217 DEBUG Exit code: 0 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/RHEA-2020:4663 |