Bug 824013 - Operations Error when using invalid data to add automount location
Operations Error when using invalid data to add automount location
Status: CLOSED WORKSFORME
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ipa (Show other bugs)
7.0
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: Martin Kosek
IDM QE LIST
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-22 10:56 EDT by Namita Soman
Modified: 2015-01-16 09:23 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-01-16 09:23:09 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Namita Soman 2012-05-22 10:56:10 EDT
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@TESTRELM.COM: automountlocation_add(u'C', all=False, raw=False, version=u'2.34'): SUCCESS
[Tue May 22 10:35:02 2012] [error] ipa: INFO: admin@TESTRELM.COM: 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@TESTRELM.COM: automountlocation_del((u'C',), continue=False): DatabaseError
[Tue May 22 10:35:21 2012] [error] ipa: INFO: admin@TESTRELM.COM: ping(): SUCCESS
[Tue May 22 10:35:23 2012] [error] ipa: INFO: admin@TESTRELM.COM: 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@TESTRELM.COM: 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 11:37:23 EDT
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/2777
Comment 5 Martin Kosek 2015-01-16 09:23:09 EST
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.

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