Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1845058

Summary: [ansible-freeipa] Not able to delete multiple DNS forward zones in the DNZ Zone module.
Product: Red Hat Enterprise Linux 8 Reporter: Varun Mylaraiah <mvarun>
Component: ansible-freeipaAssignee: Thomas Woerner <twoerner>
Status: CLOSED ERRATA QA Contact: ipa-qe <ipa-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.3CC: amore, pvoborni, twoerner
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: 8.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-04 02:46:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Varun Mylaraiah 2020-06-08 11:30:56 UTC
Description of problem:
Not able to delete multiple DNS zones in the ansible-freeipa DNS zone module

Version-Release number of selected component (if applicable):
ansible-freeipa-0.1.10-1.el8.noarch

Steps to Reproduce:
Command line output:

[root@master ~]# ipa dnszone-del {testzone11.test,testzone15.test,testzone18.test}
---------------------------------------------------------------------
Deleted DNS zone "testzone11.test.,testzone15.test.,testzone18.test."
---------------------------------------------------------------------

Comment 4 Sergio Oliveira Campos 2020-08-06 13:35:35 UTC
Upstream PR: https://github.com/freeipa/ansible-freeipa/pull/335

Comment 5 Thomas Woerner 2020-08-18 07:09:31 UTC
The upstream PR has been merged.

Comment 8 anuja 2020-08-19 08:40:09 UTC
Verified using:
ansible-freeipa-0.1.12-6.el8.noarch
ansible_freeipa_tests/dns_module.py::TestDNSZone::()::test_dnszone_del_multiple

transport.py               563 DEBUG    TASK [ipadnszone] **************************************************************
transport.py               563 DEBUG    task path: /root/dns_module.yml:7
transport.py               563 DEBUG    changed: [master.ipadomain.test] => {"changed": true}
transport.py               563 DEBUG    META: ran handlers
transport.py               563 DEBUG    META: ran handlers
transport.py               563 DEBUG    
transport.py               563 DEBUG    PLAY RECAP *********************************************************************
transport.py               563 DEBUG    master.ipadomain.test      : ok=2    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
transport.py               563 DEBUG    
channel.py                1212 DEBUG    [chan 26] EOF received (26)
channel.py                1212 DEBUG    [chan 26] EOF sent (26)
transport.py               217 DEBUG    Exit code: 0
channel.py                1212 DEBUG    [chan 163] Max packet in: 32768 bytes
channel.py                1212 DEBUG    [chan 163] Max packet out: 32768 bytes
transport.py              1819 DEBUG    Secsh channel 163 opened.
transport.py               318 INFO     RUN ['kinit', 'admin']
transport.py               519 DEBUG    RUN ['kinit', 'admin']
channel.py                1212 DEBUG    [chan 163] Sesch channel 163 request ok
transport.py               563 DEBUG    -bash: line 1: cd: /root/multihost_tests: No such file or directory
transport.py               563 DEBUG    -bash: line 2: /root/multihost_tests/env.sh: No such file or directory
transport.py               563 DEBUG    Password for admin: 
channel.py                1212 DEBUG    [chan 163] EOF received (163)
channel.py                1212 DEBUG    [chan 163] EOF sent (163)
transport.py               217 DEBUG    Exit code: 0
channel.py                1212 DEBUG    [chan 164] Max packet in: 32768 bytes
channel.py                1212 DEBUG    [chan 164] Max packet out: 32768 bytes
transport.py              1819 DEBUG    Secsh channel 164 opened.
transport.py               318 INFO     RUN ['ipa', 'dnszone-show', 'delzone1.com']
transport.py               519 DEBUG    RUN ['ipa', 'dnszone-show', 'delzone1.com']
channel.py                1212 DEBUG    [chan 164] Sesch channel 164 request ok
transport.py               563 DEBUG    -bash: line 1: cd: /root/multihost_tests: No such file or directory
transport.py               563 DEBUG    -bash: line 2: /root/multihost_tests/env.sh: No such file or directory
transport.py               563 DEBUG    ipa: ERROR: delzone1.com.: DNS zone not found
channel.py                1212 DEBUG    [chan 164] EOF received (164)
channel.py                1212 DEBUG    [chan 164] EOF sent (164)
transport.py               217 DEBUG    Exit code: 2
channel.py                1212 DEBUG    [chan 165] Max packet in: 32768 bytes
channel.py                1212 DEBUG    [chan 165] Max packet out: 32768 bytes
transport.py              1819 DEBUG    Secsh channel 165 opened.
transport.py               318 INFO     RUN ['kdestroy', '-A']
transport.py               519 DEBUG    RUN ['kdestroy', '-A']
channel.py                1212 DEBUG    [chan 165] Sesch channel 165 request ok
transport.py               563 DEBUG    -bash: line 1: cd: /root/multihost_tests: No such file or directory
transport.py               563 DEBUG    -bash: line 2: /root/multihost_tests/env.sh: No such file or directory
channel.py                1212 DEBUG    [chan 165] EOF received (165)
channel.py                1212 DEBUG    [chan 165] EOF sent (165)
transport.py               217 DEBUG    Exit code: 0
channel.py                1212 DEBUG    [chan 166] Max packet in: 32768 bytes
channel.py                1212 DEBUG    [chan 166] Max packet out: 32768 bytes
transport.py              1819 DEBUG    Secsh channel 166 opened.
transport.py               318 INFO     RUN ['kinit', 'admin']
transport.py               519 DEBUG    RUN ['kinit', 'admin']
channel.py                1212 DEBUG    [chan 166] Sesch channel 166 request ok
transport.py               563 DEBUG    -bash: line 1: cd: /root/multihost_tests: No such file or directory
transport.py               563 DEBUG    -bash: line 2: /root/multihost_tests/env.sh: No such file or directory
transport.py               563 DEBUG    Password for admin: 
channel.py                1212 DEBUG    [chan 166] EOF received (166)
channel.py                1212 DEBUG    [chan 166] EOF sent (166)
transport.py               217 DEBUG    Exit code: 0
channel.py                1212 DEBUG    [chan 167] Max packet in: 32768 bytes
channel.py                1212 DEBUG    [chan 167] Max packet out: 32768 bytes
transport.py              1819 DEBUG    Secsh channel 167 opened.
transport.py               318 INFO     RUN ['ipa', 'dnszone-show', 'delzone2.com']
transport.py               519 DEBUG    RUN ['ipa', 'dnszone-show', 'delzone2.com']
channel.py                1212 DEBUG    [chan 167] Sesch channel 167 request ok
transport.py               563 DEBUG    -bash: line 1: cd: /root/multihost_tests: No such file or directory
transport.py               563 DEBUG    -bash: line 2: /root/multihost_tests/env.sh: No such file or directory
transport.py               563 DEBUG    ipa: ERROR: delzone2.com.: DNS zone not found
channel.py                1212 DEBUG    [chan 167] EOF received (167)
channel.py                1212 DEBUG    [chan 167] EOF sent (167)
transport.py               217 DEBUG    Exit code: 2
channel.py                1212 DEBUG    [chan 168] Max packet in: 32768 bytes
channel.py                1212 DEBUG    [chan 168] Max packet out: 32768 bytes
transport.py              1819 DEBUG    Secsh channel 168 opened.
transport.py               318 INFO     RUN ['kdestroy', '-A']
transport.py               519 DEBUG    RUN ['kdestroy', '-A']
channel.py                1212 DEBUG    [chan 168] Sesch channel 168 request ok
transport.py               563 DEBUG    -bash: line 1: cd: /root/multihost_tests: No such file or directory
transport.py               563 DEBUG    -bash: line 2: /root/multihost_tests/env.sh: No such file or directory
channel.py                1212 DEBUG    [chan 168] EOF received (168)
channel.py                1212 DEBUG    [chan 168] EOF sent (168)
transport.py               217 DEBUG    Exit code: 0
channel.py                1212 DEBUG    [chan 169] Max packet in: 32768 bytes
channel.py                1212 DEBUG    [chan 169] Max packet out: 32768 bytes
transport.py              1819 DEBUG    Secsh channel 169 opened.
transport.py               318 INFO     RUN ['kinit', 'admin']
transport.py               519 DEBUG    RUN ['kinit', 'admin']
channel.py                1212 DEBUG    [chan 169] Sesch channel 169 request ok
transport.py               563 DEBUG    -bash: line 1: cd: /root/multihost_tests: No such file or directory
transport.py               563 DEBUG    -bash: line 2: /root/multihost_tests/env.sh: No such file or directory
transport.py               563 DEBUG    Password for admin: 
channel.py                1212 DEBUG    [chan 169] EOF received (169)
channel.py                1212 DEBUG    [chan 169] EOF sent (169)
transport.py               217 DEBUG    Exit code: 0
channel.py                1212 DEBUG    [chan 170] Max packet in: 32768 bytes
channel.py                1212 DEBUG    [chan 170] Max packet out: 32768 bytes
transport.py              1819 DEBUG    Secsh channel 170 opened.
transport.py               318 INFO     RUN ['ipa', 'dnszone-show', 'delzone3.com']
transport.py               519 DEBUG    RUN ['ipa', 'dnszone-show', 'delzone3.com']
channel.py                1212 DEBUG    [chan 170] Sesch channel 170 request ok
transport.py               563 DEBUG    -bash: line 1: cd: /root/multihost_tests: No such file or directory
transport.py               563 DEBUG    -bash: line 2: /root/multihost_tests/env.sh: No such file or directory
transport.py               563 DEBUG    ipa: ERROR: delzone3.com.: DNS zone not found
channel.py                1212 DEBUG    [chan 170] EOF received (170)
channel.py                1212 DEBUG    [chan 170] EOF sent (170)
transport.py               217 DEBUG    Exit code: 2
channel.py                1212 DEBUG    [chan 171] Max packet in: 32768 bytes
channel.py                1212 DEBUG    [chan 171] Max packet out: 32768 bytes
transport.py              1819 DEBUG    Secsh channel 171 opened.
transport.py               318 INFO     RUN ['kdestroy', '-A']
transport.py               519 DEBUG    RUN ['kdestroy', '-A']
channel.py                1212 DEBUG    [chan 171] Sesch channel 171 request ok
transport.py               563 DEBUG    -bash: line 1: cd: /root/multihost_tests: No such file or directory
transport.py               563 DEBUG    -bash: line 2: /root/multihost_tests/env.sh: No such file or directory
channel.py                1212 DEBUG    [chan 171] EOF received (171)
channel.py                1212 DEBUG    [chan 171] EOF sent (171)
transport.py               217 DEBUG    Exit code: 0

Comment 12 errata-xmlrpc 2020-11-04 02:46:57 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (ansible-freeipa bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2020:4663