Bug 713604

Summary: [ipa webui] enroll in Role reports internal error
Product: Red Hat Enterprise Linux 6 Reporter: Yi Zhang <yzhang>
Component: ipaAssignee: Rob Crittenden <rcritten>
Status: CLOSED CURRENTRELEASE QA Contact: Chandrasekar Kannan <ckannan>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0CC: benl, jgalipea
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-21 20:17:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
error dialog box shows ipa internal error none

Description Yi Zhang 2011-06-15 22:05:30 UTC
Created attachment 504951 [details]
error dialog box shows ipa internal error

Description of problem:
when enroll a group into "Role", Web UI reports internal error. Please check it out the screenshot

Version-Release number of selected component (if applicable):ipa-server-2.0.0-23.el6.i686


How reproducible:


Steps to Reproduce:
1. create a group
2. go to group editing page
3. enroll into any Role (Role is on the left side of panel)
  
Actual results:
dialog box pop up, reports internal error. 

Expected results:


Additional info:

error message in httpd/error_log

[Wed Jun 15 14:57:52 2011] [error] ipa: ERROR: non-public: ValueError: list.remove(x): x not in list
[Wed Jun 15 14:57:52 2011] [error] Traceback (most recent call last):
[Wed Jun 15 14:57:52 2011] [error]   File "/usr/lib/python2.6/site-packages/ipaserver/rpcserver.py", line 217, in wsgi_execute
[Wed Jun 15 14:57:52 2011] [error]     result = self.Command[name](*args, **options)
[Wed Jun 15 14:57:52 2011] [error]   File "/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 422, in __call__
[Wed Jun 15 14:57:52 2011] [error]     ret = self.run(*args, **options)
[Wed Jun 15 14:57:52 2011] [error]   File "/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 728, in run
[Wed Jun 15 14:57:52 2011] [error]     return self.execute(*args, **options)
[Wed Jun 15 14:57:52 2011] [error]   File "/usr/lib/python2.6/site-packages/ipalib/plugins/baseldap.py", line 710, in execute
[Wed Jun 15 14:57:52 2011] [error]     dn, attrs_list, normalize=self.obj.normalize_dn
[Wed Jun 15 14:57:52 2011] [error]   File "/usr/lib/python2.6/site-packages/ipaserver/plugins/ldap2.py", line 628, in get_entry
[Wed Jun 15 14:57:52 2011] [error]     size_limit=size_limit, normalize=normalize
[Wed Jun 15 14:57:52 2011] [error]   File "/usr/lib/python2.6/site-packages/ipalib/encoder.py", line 188, in new_f
[Wed Jun 15 14:57:52 2011] [error]     return f(*new_args, **kwargs)
[Wed Jun 15 14:57:52 2011] [error]   File "/usr/lib/python2.6/site-packages/ipalib/encoder.py", line 199, in new_f
[Wed Jun 15 14:57:52 2011] [error]     return args[0].decode(f(*args, **kwargs))
[Wed Jun 15 14:57:52 2011] [error]   File "/usr/lib/python2.6/site-packages/ipaserver/plugins/ldap2.py", line 597, in find_entries
[Wed Jun 15 14:57:52 2011] [error]     (direct, indirect) = self.get_memberof(r[0], memberof, time_limit=time_limit, size_limit=size_limit, normalize=normalize)
[Wed Jun 15 14:57:52 2011] [error]   File "/usr/lib/python2.6/site-packages/ipaserver/plugins/ldap2.py", line 1020, in get_memberof
[Wed Jun 15 14:57:52 2011] [error]     indirect.remove(r[0].lower())
[Wed Jun 15 14:57:52 2011] [error] ValueError: list.remove(x): x not in list
[Wed Jun 15 14:57:52 2011] [error] ipa: INFO: admin.COM: group_show(u'levelone', rights=True, all=True): ValueError

Comment 2 Rob Crittenden 2011-06-16 15:03:30 UTC
Please re-retest using a daily build.

Comment 3 Jenny Severance 2011-06-21 20:17:20 UTC
This is not happening with the lastest IPA server:

]# rpm -qi ipa-server
Name        : ipa-server                   Relocations: (not relocatable)
Version     : 2.0.99                            Vendor: (none)
Release     : 1.20110621T1617zgitd0af8b2.el6   Build Date: Tue 21 Jun 2011 12:29:22 PM EDT
Install Date: Tue 21 Jun 2011 02:13:13 PM EDT      Build Host: goofy-vm16.dsdev.sjc.redhat.com
Group       : System Environment/Base       Source RPM: ipa-2.0.99-1.20110621T1617zgitd0af8b2.el6.src.rpm
Size        : 3257509                          License: GPLv3+
Signature   : (none)
URL         : http://www.freeipa.org/
Summary     : The IPA authentication server
Description :
IPA is an integrated solution to provide centrally managed Identity (machine,
user, virtual machines, groups, authentication credentials), Policy
(configuration settings, access control information) and Audit (events,
logs, analysis thereof). If you are installing an IPA server you need
to install this package (in other words, most people should NOT install
this package).