Bug 671279

Summary: ipa dnsrecord-del always passes
Product: [Retired] freeIPA Reporter: Michael Gregg <mgregg>
Component: ipa-admintoolsAssignee: Rob Crittenden <rcritten>
Status: CLOSED ERRATA QA Contact: Chandrasekar Kannan <ckannan>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: benl, dpal, jhrozek
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-28 09:26:02 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 Michael Gregg 2011-01-20 23:28:10 UTC
Description of problem:
If I try to delete a record that doesn't exist, the tool prints out the entries in the zone, gives no error message, and returns a 0 to the console.

Version-Release number of selected component (if applicable):
ipa-server-2.0-0.2011011418gita68b2d2.fc14.x86_64

How reproducible:
always

Steps to Reproduce:
1. ipa dnsrecord-del <zone> <record> --ns-rec-<anything wrong>
  
Actual results:
[root@ipaqavmh ipa-dns]# ipa  dnsrecord-del newzone1 @ --ns-rec=gar.bag.e.
  Record name: @
  MX record: 3.4.5.6
  NS record: 10.16.98.193, 127.0.0.1.
[root@ipaqavmh ipa-dns]# echo $?
0

Expected results:
[root@ipaqavmh ipa-dns]# ipa  dnsrecord-del newzone1 @ --ns-rec=gar.bag.e.
<various "that didn't work" messages>

echo $? 
<something not 0>

Comment 1 Jakub Hrozek 2011-01-21 15:01:53 UTC
https://fedorahosted.org/freeipa/ticket/829

Comment 2 Rob Crittenden 2011-01-28 21:31:54 UTC
master: a641f1f23d40dec7dc596c9d6d2bf7265ea54f97