Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 636076

Summary: ipa group-detach: inconsistent Error message
Product: [Retired] freeIPA Reporter: Jenny Severance <jgalipea>
Component: ipa-admintoolsAssignee: Rob Crittenden <rcritten>
Status: CLOSED ERRATA QA Contact: Chandrasekar Kannan <ckannan>
Severity: low Docs Contact:
Priority: low    
Version: 2.0CC: benl, dpal, jgalipea
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: freeipa-2.0.0-1.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jenny Severance 2010-09-21 13:48:46 UTC
Description of problem:
When attempting to detach a private group that doesn't exist, the error message returned is not consistent with the error returned by the other topic commands ...

<snip>

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: ipa-group-cli-21: Negative - Detach group that doesn't exist
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [   LOG    ] :: Executing: ipa group-detach doesntexist
:: [   LOG    ] :: "ipa group-detach doesntexist" failed as expected.
:: [   LOG    ] :: ERROR: Message not as expected. GOT: ipa: ERROR: no such entry  EXP: ipa: ERROR: doesntexist: group not found
:: [   FAIL   ] :: Verify expected error message. (Expected 0, got 1)
:: [   LOG    ] :: Duration: 4s
:: [   LOG    ] :: Assertions: 0 good, 1 bad
:: [   FAIL   ] :: RESULT: ipa-group-cli-21: Negative - Detach group that doesn't exist


</snip>

Version-Release number of selected component (if applicable):

ipa-server-1.91-0.2010091519git5fd09b0.fc12.i686
ipa-admintools-1.91-0.2010091519git5fd09b0.fc12.i686


How reproducible:
always

Steps to Reproduce:
1. attempt to detach a group that doesn't exist
  # ipa group-detach doesntexist
2.
3.
  
Actual results:
GOT: ipa: ERROR: no such entry

Expected results:
pa: ERROR: doesntexist: group not found

Additional info:

Comment 1 Dmitri Pal 2010-09-24 17:46:11 UTC
https://fedorahosted.org/freeipa/ticket/291

Comment 2 Dmitri Pal 2011-02-10 19:50:39 UTC
master: c9ff669cdd7906fcd463a33f3468623e27116f52

Comment 3 Jenny Severance 2011-06-10 17:41:57 UTC
verified

# rpm -qi ipa-server | head
Name        : ipa-server                   Relocations: (not relocatable)
Version     : 2.0.0                             Vendor: Red Hat, Inc.
Release     : 23.el6                        Build Date: Wed 20 Apr 2011 09:57:13 AM EDT
Install Date: Thu 19 May 2011 12:47:52 PM EDT      Build Host: x86-003.build.bos.redhat.com
Group       : System Environment/Base       Source RPM: ipa-2.0.0-23.el6.src.rpm
Size        : 2565882                          License: GPLv3+
Signature   : RSA/8, Thu 21 Apr 2011 03:48:25 PM EDT, Key ID 199e2f91fd431d51
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL         : http://www.freeipa.org/
Summary     : The IPA authentication serve

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: ipa-group-cli-22: Negative - Detach group that doesn't exist
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [10:35:18] ::  Executing: ipa group-detach doesntexist
ipa: ERROR: doesntexist: group not found
:: [10:35:20] ::  "ipa group-detach doesntexist" failed as expected.
:: [10:35:22] ::  Error message as expected: ipa: ERROR: doesntexist: group not found
:: [   PASS   ] :: Verify expected error message.
'c69d0df6-93cd-443c-b6b4-069ad894b4f3'
ipa-group-cli-22 result: PASS
   metric: 0
   Log: /tmp/beakerlib-1458376/journal.txt
    Info: Searching AVC errors produced since 1300804517.93 (Tue Mar 22 10:35:17 2011)
     Searching logs...
     Info: No AVC messages found.
 Writing to /mnt/testarea/tmp.tL1Yce
:
   AvcLog: /mnt/testarea/tmp.tL1Yce