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

Bug 635007

Summary: ipa host-disable: inconsistent Error messge
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, mkosek
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-17 15:11:21 UTC
Description of problem:
When attempting to disable a host that doesn't exist, the error message returned is not consistent with the error returned by the other topic commands..

<snip>

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: ipa-host-cli-28: Disable Host that doesn't Exist
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [   LOG    ] :: Executing: ipa host-disable nightcrawler.bos.redhat.com
:: [   LOG    ] :: ERROR: Message not as expected. GOT: ipa: ERROR: no such entry  EXP: ipa: ERROR: nightcrawler.bos.redhat.com: host not found
:: [   FAIL   ] :: Verify expected error message. (Expected 0, got 1)
:: [   LOG    ] :: Duration: 3s
:: [   LOG    ] :: Assertions: 0 good, 1 bad
:: [   FAIL   ] :: RESULT: ipa-host-cli-28: Disable Host 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 disable a host that doesn't exist
  ipa host-disable badhost.domain.com
2.
3.
  
Actual results:
ipa: ERROR: no such entry

Expected results:
ipa: ERROR: badhost.domain.com: host not found

Additional info:

Comment 1 Rob Crittenden 2010-09-27 19:05:25 UTC
https://fedorahosted.org/freeipa/ticket/303

Comment 2 Martin Kosek 2011-01-06 16:35:29 UTC
Fixed by 39a93612105ae7ed687ad4d0bf1320b1213fda9d. Closing the ticket.

Comment 3 Jenny Severance 2011-06-10 17:44:49 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-host-cli-29: Disable Host that doesn't Exist
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [12:19:09] ::  Executing: ipa host-disable nightcrawler.testrelm
ipa: ERROR: nightcrawler.testrelm: host not found
:: [12:19:11] ::  "ipa host-disable nightcrawler.testrelm" failed as expected.
:: [12:19:12] ::  Error message as expected: ipa: ERROR: nightcrawler.testrelm: host not found
:: [   PASS   ] :: Verify expected error message.
'f10e2832-5fee-438e-9a00-6ecac0f7573d'
ipa-host-cli-29 result: PASS
   metric: 0
   Log: /tmp/beakerlib-1458923/journal.txt
    Info: Searching AVC errors produced since 1300810749.16 (Tue Mar 22 12:19:09 2011)
     Searching logs...
     Info: No AVC messages found.
 Writing to /mnt/testarea/tmp.sbxb5m
:
   AvcLog: /mnt/testarea/tmp.sbxb5m