Bug 1515314
Summary: | ipa-replica-install fails with PIN error [ CA-less environment ] | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Aly <opennetworksolutions> |
Component: | ipa | Assignee: | IPA Maintainers <ipa-maint> |
Status: | CLOSED ERRATA | QA Contact: | ipa-qe <ipa-qe> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.2 | CC: | amore, frenaud, lmiksik, myusuf, ndehadra, pasik, pvoborni, rcritten, tdudlak, tscherf |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | ipa-4.6.4-7.el7 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-10-30 10:57:10 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
Aly
2017-11-20 14:46:18 UTC
Hi, the issue is reproducible with ipa-replica-install in interactive mode. The workaround is to provide --dirsrv-pin="" --http-pin="". The fix needs to modify ipaserver/install/server/replicainstall.py and add retry=False to the calls to installutils.read_password() used to set options.http_pin, options.dirsrv_pin and options.pkinit_pin. Upstream ticket: https://pagure.io/freeipa/issue/7274 Fixed upstream master: https://pagure.io/freeipa/c/a94ba732abe175f5b9061a63f9cd6f46dace2388 Version: ipa-server-4.6.4-6.el7.x86_64 Steps: Execute upstream test suite: $ IPATEST_YAML_CONFIG=/root/mh_cfg.yaml ipa-run-tests -v -r a --with-xunit test_integration/test_caless.py::TestReplicaInstall::test_certs_with_no_password --logging-level=DEBUG Actual result: [..] [ipatests.pytest_ipa.integration.host.Host.replica.cmd103] RUN ['rm', '-rvf', '/root/ipatests/file_backup', '/root/ipatests/file_remove'] [ipatests.pytest_ipa.integration.host.Host.replica.cmd103] bash: line 1: cd: /root/ipatests: No such file or directory [ipatests.pytest_ipa.integration.host.Host.replica.cmd103] bash: line 2: /root/ipatests/env.sh: No such file or directory [ipatests.pytest_ipa.integration.host.Host.replica.cmd103] Exit code: 0 [ipatests.pytest_ipa.integration.host.Host.replica.OpenSSHTransport] GET /root/ipatests/backup_hostname [ipatests.pytest_ipa.integration.host.Host.replica.cmd104] RUN ['cat', '/root/ipatests/backup_hostname'] [ipatests.pytest_ipa.integration.host.Host.replica.cmd104] cat: /root/ipatests/backup_hostname: No such file or directory [ipatests.pytest_ipa.integration.host.Host.replica.cmd104] Exit code: 1 [ipatests.pytest_ipa.integration.host.Host.replica.OpenSSHTransport] RUN ['kdestroy', '-A'] [ipatests.pytest_ipa.integration.host.Host.replica.cmd105] RUN ['kdestroy', '-A'] [ipatests.pytest_ipa.integration.host.Host.replica.cmd105] bash: line 1: cd: /root/ipatests: No such file or directory [ipatests.pytest_ipa.integration.host.Host.replica.cmd105] bash: line 2: /root/ipatests/env.sh: No such file or directory [ipatests.pytest_ipa.integration.host.Host.replica.cmd105] Exit code: 0 [ipatests.pytest_ipa.integration.host.Host.replica.OpenSSHTransport] RUN ['rm', '-rvf', '/root/ipatests'] [ipatests.pytest_ipa.integration.host.Host.replica.cmd106] RUN ['rm', '-rvf', '/root/ipatests'] [ipatests.pytest_ipa.integration.host.Host.replica.cmd106] bash: line 1: cd: /root/ipatests: No such file or directory [ipatests.pytest_ipa.integration.host.Host.replica.cmd106] bash: line 2: /root/ipatests/env.sh: No such file or directory [ipatests.pytest_ipa.integration.host.Host.replica.cmd106] Exit code: 0 ---------------------------------------------------- generated xml file: /root/nosetests.xml ----------------------------------------------------- =========================================================== 1 passed in 534.48 seconds =========================================================== Full console logs are provided. Hence based on above observation, marking the bug as verified. The fix is missing in ipa-4-6, reverting to POST. The right automation for this BZ is the following test: test_integration/test_caless.py::TestReplicaInstall::test_certs_with_no_password_interactive Fixed upstream ipa-4-6: https://pagure.io/freeipa/c/25e4b67a0af6c96f77648c6ddddffeff16a191de Automation for ipa-4-6 is in commit: https://pagure.io/freeipa/c/1a80ecc36f716bab88b4788ea8fb1a0aa3f5a9ce version: ipa-server-4.6.4-7.el7.x86_64 Steps: IPATEST_YAML_CONFIG=/root/mh_cfg.yaml ipa-run-tests -v -r a --with-xunit test_integration/test_caless.py::TestReplicaInstall --logging-level=DEBUG -k test_certs_with_no_password test_integration/test_caless.py::TestReplicaInstall::test_certs_with_no_password_interactive [ipatests.pytest_ipa.integration.host.Host.master.OpenSSHTransport] RUN ['kinit', 'admin'] [ipatests.pytest_ipa.integration.host.Host.master.cmd76] RUN ['kinit', 'admin'] [ipatests.pytest_ipa.integration.host.Host.master.cmd76] Password for admin: [ipatests.pytest_ipa.integration.host.Host.master.cmd76] Exit code: 0 [ipatests.pytest_ipa.integration.host.Host.master.OpenSSHTransport] RUN ['ipa', 'domainlevel-get'] [ipatests.pytest_ipa.integration.host.Host.master.cmd77] RUN ['ipa', 'domainlevel-get'] [ipatests.pytest_ipa.integration.host.Host.master.cmd77] ----------------------- [ipatests.pytest_ipa.integration.host.Host.master.cmd77] Current domain level: 1 [ipatests.pytest_ipa.integration.host.Host.master.cmd77] ----------------------- [ipatests.pytest_ipa.integration.host.Host.master.cmd77] Exit code: 0 [ipatests.pytest_ipa.integration.host.Host.master.OpenSSHTransport] RUN ['true'] [ipatests.pytest_ipa.integration.host.Host.master.cmd78] RUN ['true'] [ipatests.pytest_ipa.integration.host.Host.master.cmd78] Exit code: 0 [..] [ipatests.pytest_ipa.integration.host.Host.replica.cmd166] Exit code: 255 [ipatests.pytest_ipa.integration.host.Host.replica.OpenSSHTransport] RUN ['certutil', '-L', '-d', '/etc/httpd/alias'] [ipatests.pytest_ipa.integration.host.Host.replica.cmd167] RUN ['certutil', '-L', '-d', '/etc/httpd/alias'] [ipatests.pytest_ipa.integration.host.Host.replica.cmd167] bash: line 1: cd: /root/ipatests: No such file or directory [ipatests.pytest_ipa.integration.host.Host.replica.cmd167] bash: line 2: /root/ipatests/env.sh: No such file or directory [ipatests.pytest_ipa.integration.host.Host.replica.cmd167] certutil: function failed: SEC_ERROR_LEGACY_DATABASE: The certificate/key database is in an old, unsupported format. [ipatests.pytest_ipa.integration.host.Host.replica.cmd167] Exit code: 255 PASSED Full console logs are provided. Both test cases passed. Hence marking the bug as 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, 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-2018:3187 |