Bug 676554

Summary: Removing a host with its hostname in capital letters fails.
Product: [Retired] freeIPA Reporter: Gowrishankar Rajaiyan <grajaiya>
Component: ipa-admintoolsAssignee: Rob Crittenden <rcritten>
Status: CLOSED ERRATA QA Contact: Chandrasekar Kannan <ckannan>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: benl, dpal, jgalipea, jhrozek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: freeipa-2.1.0-1.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-28 09:27:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Gowrishankar Rajaiyan 2011-02-10 08:36:42 UTC
Description of problem:
Adding hosts to "ipa service-add-host" with hostname in capital letters works as expected, however, removing the same hostname by specifying it in capital letters fails.

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

freeipa-server-2.0-0.2011020720git7be1275.fc14.x86_64
freeipa-admintools-2.0-0.2011020720git7be1275.fc14.x86_64


How reproducible:
Always

Steps to Reproduce:
1.# ipa service-add-host --hosts=T.EXAMPLE.COM vpn/gsrf14ipas.testrelm@TESTRELM
  Principal: vpn/gsrf14ipas.testrelm@TESTRELM
  Managed by: gsrf14ipas.testrelm, t.example.com
-------------------------
Number of members added 1
-------------------------

2.# ipa service-remove-host --hosts=T.EXAMPLE.COM vpn/gsrf14ipas.testrelm@TESTRELM
  Principal: vpn/gsrf14ipas.testrelm@TESTRELM
  Managed by: gsrf14ipas.testrelm, t.example.com
---------------------------
Number of members removed 0
---------------------------
3.
  
Actual results:
Number of members removed 0
Workaround is to remove the host by specifying it in small letters.

Expected results:
# ipa service-remove-host --hosts=T.EXAMPLE.COM vpn/gsrf14ipas.testrelm@TESTRELM
  Principal: vpn/gsrf14ipas.testrelm@TESTRELM
  Managed by: gsrf14ipas.testrelm
---------------------------
Number of members removed 1
---------------------------

Hostnames specified in capital letters should be removed successfully.

Additional info:

Comment 1 Jakub Hrozek 2011-02-10 13:04:31 UTC
https://fedorahosted.org/freeipa/ticket/944

Comment 2 Rob Crittenden 2011-02-14 15:20:56 UTC
master: 0402f61009f3e69ef4cc1e6113bbddaece34e3a9