Bug 656001

Summary: Inconsistent Error Message Trying to add a service group that already exists
Product: [Retired] freeIPA Reporter: Jenny Severance <jgalipea>
Component: ipa-serverAssignee: 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: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: freeipa-2.0.0-1.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-27 07:14:31 UTC 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-11-22 20:27:09 UTC
Description of problem:
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: ipa-hbacsvc-cli-010: Negative - Add HBAC Service Group that already exists
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [   LOG    ] :: Executing: ipa hbacsvcgroup-add --desc=test SUDO
:: [   LOG    ] :: "ipa hbacsvcgroup-add --desc=test SUDO" failed as expected.
:: [   LOG    ] :: ERROR: Message not as expected. GOT: ipa: ERROR: This entry already exists  EXP: ipa: ERROR: HBAC service group with name SUDO already exists
:: [   FAIL   ] :: Verify expected error message for empty Rule Type (Expected 0, got 1)
:: [   LOG    ] :: Duration: 5s
:: [   LOG    ] :: Assertions: 0 good, 1 bad
:: [   FAIL   ] :: RESULT: ipa-hbacsvc-cli-010: Negative - Add HBAC Service Group that already exists


Version-Release number of selected component (if applicable):
ipa-server-1.91-0.2010110118git813dfe5.fc12.i686
ipa-admintools-1.91-0.2010110118git813dfe5.fc12.i686

How reproducible:
always

Steps to Reproduce:
1. ipa hbacsvcgroup-add --desc=test SUDO

2.
3.
  
Actual results:
ipa: ERROR: This entry already exists

Expected results:
ipa: ERROR: HBAC service group with name SUDO already exists

Additional info:

Comment 1 Dmitri Pal 2010-11-23 04:17:03 UTC
https://fedorahosted.org/freeipa/ticket/530

Comment 2 Rob Crittenden 2010-11-30 20:16:35 UTC
commit: 9120155daeeee8287115a09f280f0e4f075f96df

Comment 3 Jenny Severance 2011-06-10 17:22:32 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 server

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: ipa-hbacsvc-cli-010: Negative - Add HBAC Service Group that already exists
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [16:06:50] ::  Executing: ipa hbacsvcgroup-add --desc=test SUDO
ipa: ERROR: hbacsvcgroup with name "sudo" already exists
:: [16:06:52] ::  "ipa hbacsvcgroup-add --desc=test SUDO" failed as expected.
:: [16:06:53] ::  Error message as expected: ipa: ERROR: hbacsvcgroup with name sudo already exists
:: [   PASS   ] :: Verify expected error message for empty Rule Type
'ca25764c-b839-49c7-80e2-2526f052ac74'
ipa-hbacsvc-cli-010 result: PASS
   metric: 0
   Log: /tmp/beakerlib-1459149/journal.txt
    Info: Searching AVC errors produced since 1300824410.52 (Tue Mar 22 16:06:50 2011)
     Searching logs...
     Info: No AVC messages found.
 Writing to /mnt/testarea/tmp.3tBDFf
:
   AvcLog: /mnt/testarea/tmp.3tBDFf