Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
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:
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: