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.
Bug 1269200 - ipa-server crashing while trying to preserve admin user
Summary: ipa-server crashing while trying to preserve admin user
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ipa
Version: 7.2
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Varun Mylaraiah
QA Contact: Namita Soman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-06 15:36 UTC by Varun Mylaraiah
Modified: 2016-11-04 05:38 UTC (History)
4 users (show)

Fixed In Version: ipa-4.4.0-0.el7.1.alpha1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-04 05:38:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
internal server error (104.38 KB, image/png)
2015-10-06 15:37 UTC, Varun Mylaraiah
no flags Details
Delete Admin (104.12 KB, image/png)
2015-10-06 15:38 UTC, Varun Mylaraiah
no flags Details
message dailog (95.78 KB, image/png)
2015-10-06 15:39 UTC, Varun Mylaraiah
no flags Details
Verification snapshot (37.76 KB, image/png)
2016-09-13 10:29 UTC, Varun Mylaraiah
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:2404 0 normal SHIPPED_LIVE ipa bug fix and enhancement update 2016-11-03 13:56:18 UTC

Description Varun Mylaraiah 2015-10-06 15:36:43 UTC
Description of problem:
ipa-server crashing while trying to preserve admin user in WebUI

Version-Release number of selected component (if applicable):
ipa-server-4.2.0-12.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1.Navigate "Active users" page.
2.Select admin
3.Click delete button
4.Select preserve radio button
5.Click delete button

Actual results:
Internal server error pops up after clicking OK button in "operation Error" dialog 

Expected results:
-Detailed message should be relevant to the error in "operation Error" dialog.
-"Internal server error" should not occur.
-If possible can "preserve" option for admin user be removed/hidden??


Additional info:
Attached screenshots

/var/log/httpd/error_log
[Tue Oct 06 17:57:34.507251 2015] [:error] [pid 22443] ipa: INFO: [jsonserver_session] admin: user_find(u'', sizelimit=0, version=u'2.156', pkey_only=True): SUCCESS
[Tue Oct 06 17:57:34.632858 2015] [:error] [pid 22443] [remote 10.70.35.158:120] mod_wsgi (pid=22443): Exception occurred processing WSGI script '/usr/share/ipa/wsgi.py'.
[Tue Oct 06 17:57:34.632943 2015] [:error] [pid 22443] [remote 10.70.35.158:120] Traceback (most recent call last):
[Tue Oct 06 17:57:34.632983 2015] [:error] [pid 22443] [remote 10.70.35.158:120]   File "/usr/share/ipa/wsgi.py", line 49, in application
[Tue Oct 06 17:57:34.633097 2015] [:error] [pid 22443] [remote 10.70.35.158:120]     return api.Backend.wsgi_dispatch(environ, start_response)
[Tue Oct 06 17:57:34.633112 2015] [:error] [pid 22443] [remote 10.70.35.158:120]   File "/usr/lib/python2.7/site-packages/ipaserver/rpcserver.py", line 258, in __call__
[Tue Oct 06 17:57:34.633447 2015] [:error] [pid 22443] [remote 10.70.35.158:120]     return self.route(environ, start_response)
[Tue Oct 06 17:57:34.633460 2015] [:error] [pid 22443] [remote 10.70.35.158:120]   File "/usr/lib/python2.7/site-packages/ipaserver/rpcserver.py", line 270, in route
[Tue Oct 06 17:57:34.633480 2015] [:error] [pid 22443] [remote 10.70.35.158:120]     return app(environ, start_response)
[Tue Oct 06 17:57:34.633490 2015] [:error] [pid 22443] [remote 10.70.35.158:120]   File "/usr/lib/python2.7/site-packages/ipaserver/rpcserver.py", line 808, in __call__
[Tue Oct 06 17:57:34.633504 2015] [:error] [pid 22443] [remote 10.70.35.158:120]     self.create_context(ccache=ipa_ccache_name)
[Tue Oct 06 17:57:34.633513 2015] [:error] [pid 22443] [remote 10.70.35.158:120]   File "/usr/lib/python2.7/site-packages/ipalib/backend.py", line 114, in create_context
[Tue Oct 06 17:57:34.633611 2015] [:error] [pid 22443] [remote 10.70.35.158:120]     self.Backend.ldap2.connect(ccache=ccache)
[Tue Oct 06 17:57:34.633642 2015] [:error] [pid 22443] [remote 10.70.35.158:120]   File "/usr/lib/python2.7/site-packages/ipalib/backend.py", line 63, in connect
[Tue Oct 06 17:57:34.633665 2015] [:error] [pid 22443] [remote 10.70.35.158:120]     conn = self.create_connection(*args, **kw)
[Tue Oct 06 17:57:34.633688 2015] [:error] [pid 22443] [remote 10.70.35.158:120]   File "/usr/lib/python2.7/site-packages/ipaserver/plugins/ldap2.py", line 149, in create_connection
[Tue Oct 06 17:57:34.633835 2015] [:error] [pid 22443] [remote 10.70.35.158:120]     client_controls=clientctrls)
[Tue Oct 06 17:57:34.633862 2015] [:error] [pid 22443] [remote 10.70.35.158:120]   File "/usr/lib/python2.7/site-packages/ipapython/ipaldap.py", line 1070, in gssapi_bind
[Tue Oct 06 17:57:34.634147 2015] [:error] [pid 22443] [remote 10.70.35.158:120]     '', auth_tokens, server_controls, client_controls)
[Tue Oct 06 17:57:34.634191 2015] [:error] [pid 22443] [remote 10.70.35.158:120]   File "/usr/lib64/python2.7/contextlib.py", line 35, in __exit__
[Tue Oct 06 17:57:34.634268 2015] [:error] [pid 22443] [remote 10.70.35.158:120]     self.gen.throw(type, value, traceback)
[Tue Oct 06 17:57:34.634294 2015] [:error] [pid 22443] [remote 10.70.35.158:120]   File "/usr/lib/python2.7/site-packages/ipapython/ipaldap.py", line 983, in error_handler
[Tue Oct 06 17:57:34.634316 2015] [:error] [pid 22443] [remote 10.70.35.158:120]     raise errors.DatabaseError(desc=desc, info=info)
[Tue Oct 06 17:57:34.634352 2015] [:error] [pid 22443] [remote 10.70.35.158:120] DatabaseError: Server is unwilling to perform: Account inactivated. Contact system administrator.
[Tue Oct 06 17:57:35.223891 2015] [:error] [pid 22444] ipa: INFO: admin: batch: user_del((u'admin',), preserve=u'true'): EmptyResult
[Tue Oct 06 17:57:35.224379 2015] [:error] [pid 22444] ipa: INFO: [jsonserver_session] admin: batch(({u'params': ((u'admin',), {u'preserve': u'true'}), u'method': u'user_del'},), version=u'2.156'): SUCCESS
[Tue Oct 06 17:58:24.446789 2015] [:error] [pid 22443] [remote 10.70.35.158:120] mod_wsgi (pid=22443): Exception occurred processing WSGI script '/usr/share/ipa/wsgi.py'.
[Tue Oct 06 17:58:24.446836 2015] [:error] [pid 22443] [remote 10.70.35.158:120] Traceback (most recent call last):
[Tue Oct 06 17:58:24.446854 2015] [:error] [pid 22443] [remote 10.70.35.158:120]   File "/usr/share/ipa/wsgi.py", line 49, in application
[Tue Oct 06 17:58:24.446897 2015] [:error] [pid 22443] [remote 10.70.35.158:120]     return api.Backend.wsgi_dispatch(environ, start_response)
[Tue Oct 06 17:58:24.446907 2015] [:error] [pid 22443] [remote 10.70.35.158:120]   File "/usr/lib/python2.7/site-packages/ipaserver/rpcserver.py", line 258, in __call__
[Tue Oct 06 17:58:24.446924 2015] [:error] [pid 22443] [remote 10.70.35.158:120]     return self.route(environ, start_response)
[Tue Oct 06 17:58:24.446932 2015] [:error] [pid 22443] [remote 10.70.35.158:120]   File "/usr/lib/python2.7/site-packages/ipaserver/rpcserver.py", line 270, in route
[Tue Oct 06 17:58:24.446944 2015] [:error] [pid 22443] [remote 10.70.35.158:120]     return app(environ, start_response)
[Tue Oct 06 17:58:24.446952 2015] [:error] [pid 22443] [remote 10.70.35.158:120]   File "/usr/lib/python2.7/site-packages/ipaserver/rpcserver.py", line 808, in __call__
[Tue Oct 06 17:58:24.446964 2015] [:error] [pid 22443] [remote 10.70.35.158:120]     self.create_context(ccache=ipa_ccache_name)
[Tue Oct 06 17:58:24.446972 2015] [:error] [pid 22443] [remote 10.70.35.158:120]   File "/usr/lib/python2.7/site-packages/ipalib/backend.py", line 114, in create_context
[Tue Oct 06 17:58:24.446986 2015] [:error] [pid 22443] [remote 10.70.35.158:120]     self.Backend.ldap2.connect(ccache=ccache)
[Tue Oct 06 17:58:24.446994 2015] [:error] [pid 22443] [remote 10.70.35.158:120]   File "/usr/lib/python2.7/site-packages/ipalib/backend.py", line 63, in connect
[Tue Oct 06 17:58:24.447007 2015] [:error] [pid 22443] [remote 10.70.35.158:120]     conn = self.create_connection(*args, **kw)
[Tue Oct 06 17:58:24.447014 2015] [:error] [pid 22443] [remote 10.70.35.158:120]   File "/usr/lib/python2.7/site-packages/ipaserver/plugins/ldap2.py", line 149, in create_connection
[Tue Oct 06 17:58:24.447028 2015] [:error] [pid 22443] [remote 10.70.35.158:120]     client_controls=clientctrls)
[Tue Oct 06 17:58:24.447036 2015] [:error] [pid 22443] [remote 10.70.35.158:120]   File "/usr/lib/python2.7/site-packages/ipapython/ipaldap.py", line 1070, in gssapi_bind
[Tue Oct 06 17:58:24.447049 2015] [:error] [pid 22443] [remote 10.70.35.158:120]     '', auth_tokens, server_controls, client_controls)
[Tue Oct 06 17:58:24.447057 2015] [:error] [pid 22443] [remote 10.70.35.158:120]   File "/usr/lib64/python2.7/contextlib.py", line 35, in __exit__
[Tue Oct 06 17:58:24.447070 2015] [:error] [pid 22443] [remote 10.70.35.158:120]     self.gen.throw(type, value, traceback)
[Tue Oct 06 17:58:24.447089 2015] [:error] [pid 22443] [remote 10.70.35.158:120]   File "/usr/lib/python2.7/site-packages/ipapython/ipaldap.py", line 983, in error_handler
[Tue Oct 06 17:58:24.447102 2015] [:error] [pid 22443] [remote 10.70.35.158:120]     raise errors.DatabaseError(desc=desc, info=info)
[Tue Oct 06 17:58:24.447117 2015] [:error] [pid 22443] [remote 10.70.35.158:120] DatabaseError: Server is unwilling to perform: Account inactivated. Contact system administrator.
(END) - Next: for

Comment 1 Varun Mylaraiah 2015-10-06 15:37:46 UTC
Created attachment 1080292 [details]
internal server error

Comment 2 Varun Mylaraiah 2015-10-06 15:38:40 UTC
Created attachment 1080293 [details]
Delete Admin

Comment 3 Varun Mylaraiah 2015-10-06 15:39:16 UTC
Created attachment 1080294 [details]
message dailog

Comment 5 Petr Vobornik 2015-10-13 08:46:18 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/5362

Comment 7 Mike McCune 2016-03-28 22:43:24 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions

Comment 9 Varun Mylaraiah 2016-09-13 10:29:49 UTC
Created attachment 1200457 [details]
Verification snapshot

Verified 
On WebUI
ipa server version: 
ipa-server-4.4.0-10.el7.x86_64

Comment 11 errata-xmlrpc 2016-11-04 05:38:40 UTC
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


Note You need to log in before you can comment on or make changes to this bug.