#5362 ipa-server crashing while trying to preserve admin user
Closed: Fixed None Opened 7 years ago by pvoborni.

Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 7): Bug 1269200

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@DTESTRELM.TEST: 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@DTESTRELM.TEST: 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@DTESTRELM.TEST: 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

master:

  • 6a401fb execute user-del pre-callback also during user preservation

ipa-4-2:

  • a85a8f3 execute user-del pre-callback also during user preservation

Metadata Update from @pvoborni:
- Issue assigned to mbabinsk
- Issue set to the milestone: FreeIPA 4.2.3

5 years ago

Login to comment on this ticket.

Metadata