| Summary: | ipa-winsync-migrate: Traceback should be fixed with proper console output | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Sudhir Menon <sumenon> |
| Component: | ipa | Assignee: | IPA Maintainers <ipa-maint> |
| Status: | CLOSED ERRATA | QA Contact: | Kaleem <ksiddiqu> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.2 | CC: | pvoborni, rcritten, sumenon |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | ipa-4.4.0-1.el7 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-11-04 05:52:24 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: | |
Upstream ticket: https://fedorahosted.org/freeipa/ticket/5767 Sudhir, could you retest with ipa 4.4? According to https://fedorahosted.org/freeipa/ticket/5767#comment:3 it seems, that it might be already fixed. Petr, Yes, the fix is already in the below packages. Verified using the below rpms. ipa-server-4.4.0-4.el7.x86_64 [root@client ~]# ipa-replica-prepare IPA is not configured on this system. The ipa-replica-prepare command failed. [root@client ~]# ipa-winsync-migrate IPA is not configured on this system. Verified using the below rpms. ipa-server-4.4.0-4.el7.x86_64 [root@client ~]# ipa-replica-prepare IPA is not configured on this system. The ipa-replica-prepare command failed. [root@client ~]# ipa-winsync-migrate IPA is not configured on this system. 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://rhn.redhat.com/errata/RHBA-2016-2404.html |
Description of problem: ipa-winsync-migrate: Traceback should be fixed with proper console output Version-Release number of selected component (if applicable): ipa-server-trust-ad-4.2.0-15.el7_2.10.x86_64 ipa-server-4.2.0-15.el7_2.10.x86_64 How reproducible:Always. Steps to Reproduce: 1. Ensure ipa related rpms are installed. 2. Ensure ipa-server-install is not run. 3. Now try to run command 'ipa-replica-prepare' and check console output. 4. Now try to run command 'ipa-winsync-migrate' and check console output. Actual results: Step3: [root@host2 ipa-idoverride]# ipa-replica-prepare IPA is not configured on this system. Step4: [root@host2 ~]# ipa-winsync-migrate ipa: WARNING: session memcached servers not running Traceback (most recent call last): File "/usr/sbin/ipa-winsync-migrate", line 23, in <module> WinsyncMigrate.run_cli() File "/usr/lib/python2.7/site-packages/ipapython/admintool.py", line 124, in run_cli sys.exit(cls.main(sys.argv)) File "/usr/lib/python2.7/site-packages/ipaserver/install/ipa_winsync_migrate.py", line 346, in main api.Backend.ldap2.connect(ccache) File "/usr/lib/python2.7/site-packages/ipalib/backend.py", line 63, in connect conn = self.create_connection(*args, **kw) File "/usr/lib/python2.7/site-packages/ipaserver/plugins/ldap2.py", line 149, in create_connection client_controls=clientctrls) File "/usr/lib/python2.7/site-packages/ipapython/ipaldap.py", line 1070, in gssapi_bind '', auth_tokens, server_controls, client_controls) File "/usr/lib64/python2.7/contextlib.py", line 35, in __exit__ self.gen.throw(type, value, traceback) File "/usr/lib/python2.7/site-packages/ipapython/ipaldap.py", line 975, in error_handler error=info) ipalib.errors.NetworkError: cannot connect to 'ldap://localhost:389': Expected results: When IPA server is not installed/configured and when commands are run on the console, they should display message like "IPA is not configured" instead of displaying a traceback on the console. All other command line options display proper message on the console. Additional info: