Bug 824013

Summary: Operations Error when using invalid data to add automount location
Product: Red Hat Enterprise Linux 7 Reporter: Namita Soman <nsoman>
Component: ipaAssignee: Martin Kosek <mkosek>
Status: CLOSED WORKSFORME QA Contact: IDM QE LIST <seceng-idm-qe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: dpal, jgalipea, mkosek
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: 2015-01-16 14:23:09 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:
Embargoed:

Description Namita Soman 2012-05-22 14:56:10 UTC
Description of problem:
Using invalid daat when adding and deleting an automount locations throws Operations Error:

Add an automount location - C:
# ipa automountlocation-add C
----------------------------
Added automount location "C"
----------------------------
  Location: C

Delete it:
# ipa automountlocation-del
Location: C
ipa: ERROR: Operations error: 

Verify if 'C' was deleted:
# ipa automountlocation-find
----------------------------
1 automount location matched
----------------------------
  Location: default
----------------------------
Number of entries returned 1
----------------------------

'C' is not listed...so maybe it was deleted inspite of the error. Add it again:
# ipa automountlocation-add C
ipa: ERROR: automount location with name "C" already exists


Version-Release number of selected component (if applicable):
ipa-server-2.2.0-14.el6.x86_64

How reproducible:
always

Steps to Reproduce:
listed above
  
Actual results:
allows location to be added, deleted with Operations error, cannot readd

Expected results:
if data is invalid - indicate that and do not allow to be added

Additional info:
httpd/error_log:
[Tue May 22 10:34:49 2012] [error] ipa: INFO: admin: automountlocation_add(u'C', all=False, raw=False, version=u'2.34'): SUCCESS
[Tue May 22 10:35:02 2012] [error] ipa: INFO: admin: ping(): SUCCESS
[Tue May 22 10:35:06 2012] [error] ipa: INFO: Unhandled LDAPError: {'desc': 'Operations error'}
[Tue May 22 10:35:06 2012] [error] ipa: INFO: admin: automountlocation_del((u'C',), continue=False): DatabaseError
[Tue May 22 10:35:21 2012] [error] ipa: INFO: admin: ping(): SUCCESS
[Tue May 22 10:35:23 2012] [error] ipa: INFO: admin: automountlocation_find(None, all=False, raw=False, version=u'2.34', pkey_only=False): SUCCESS
[Tue May 22 10:39:04 2012] [error] ipa: INFO: admin: ping(): SUCCESS

dirsrv/errors:
22/May/2012:10:48:43 -0400] slapd_ldap_sasl_interactive_bind - Error: could not perform interactive bind for id [] mech [GSSAPI]: LDAP error 49 (Invalid credentials) (SASL(-13): authentication failure: GSSAPI Failure: gss_accept_sec_context) errno 0 (Success)
[22/May/2012:10:48:43 -0400] slapi_ldap_bind - Error: could not perform interactive bind for id [] mech [GSSAPI]: error 49 (Invalid credentials)

Comment 1 Martin Kosek 2012-05-22 15:37:23 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/2777

Comment 5 Martin Kosek 2015-01-16 14:23:09 UTC
This looks as an intermittent error I was no longer able to reproduce with current FreeIPA/IdM versions:

# ipa automountlocation-add C
----------------------------
Added automount location "C"
----------------------------
  Location: C

# ipa automountlocation-del
Location: C
------------------------------
Deleted automount location "C"
------------------------------

If you still reproduce the issue with current FreeIPA/IdM versions, please feel free to reopen the bug.