Bug 671019 - ipa dnsrecord-del not deleting records
Summary: ipa dnsrecord-del not deleting records
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: freeIPA
Classification: Retired
Component: ipa-admintools
Version: unspecified
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ---
Assignee: Rob Crittenden
QA Contact: Chandrasekar Kannan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-19 22:42 UTC by Michael Gregg
Modified: 2015-01-04 23:45 UTC (History)
2 users (show)

Fixed In Version: freeipa-2.0.0-1.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-28 09:41:26 UTC
Embargoed:


Attachments (Terms of Use)

Description Michael Gregg 2011-01-19 22:42:09 UTC
Description of problem:
running dnsrecord-del on a created record does not seem to destroy the record.

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

How reproducible:
always

Steps to Reproduce:
1. Create zone newzone1
1. ipa dnsrecord-add newzone1 as --a-rec 3.4.5.6
2. ipa dnsrecord-del newzone1 as
3. ipa dnsrecord-find newzone1 as
3b. dig as.newzone1
  
Actual results:
[root@ipaqavmh ipa-dns]# ipa dnsrecord-del newzone1 as
  Record name: as
  A record: 3.4.5.6
[root@ipaqavmh ipa-dns]# ipa dnsrecord-find newzone1 as
  Record name: as
  A record: 3.4.5.6
----------------------------
Number of entries returned 1
----------------------------


Expected results:
[root@ipaqavmh ipa-dns]# ipa dnsrecord-del newzone1 as
  Record name: as
  A record: 3.4.5.6
[root@ipaqavmh ipa-dns]# ipa dnsrecord-find newzone1 as
----------------------------
Number of entries returned 0
----------------------------

Comment 1 Rob Crittenden 2011-01-19 22:53:58 UTC
A wild guess but I wonder if it wants the -a-rec 3.4.5.6 included.

Can you verify that this works (or doesn't):

ipa dnsrecord-del newzone1 as --a-rec 3.4.5.6

I guess the expectation would be that all records for machine 'as' would be removed, regardless of type?

Comment 2 Michael Gregg 2011-01-19 23:18:37 UTC
You were right, adding the --a-rec 3.4.5.6 removed the a record. 

I suppose that this makes sense in that you may want to delete a specific entry within a entry. 

This may just end up being a doc bug. I'll have to think about what the behavior should be.

At the very least, some better examples in the help section would be great.

Comment 3 Dmitri Pal 2011-01-19 23:52:50 UTC
https://fedorahosted.org/freeipa/ticket/816

Tacking either decision.

Comment 4 Rob Crittenden 2011-01-28 21:32:19 UTC
master: a641f1f23d40dec7dc596c9d6d2bf7265ea54f97


Note You need to log in before you can comment on or make changes to this bug.