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.
Description of problem:
Not able to modify the DNS record with new values in DNS record module
Version-Release number of selected component (if applicable):
ansible-freeipa-0.1.12-6.el8.noarch
Steps to Reproduce:
[root@client ~]# ipa dnsrecord-show rectestzone.test _naptr ; cat test.yaml; ansible-playbook test.yaml ; ipa dnsrecord-show rectestzone.test _naptr | grep "NAPTR"
Record name: _naptr
NAPTR record: 102 12 U E2U+msg !^.*$!prio! ., 101 11 U E2U+msg !^.*$!info! ., 50 50 U SIP+D2U
!^.*$!debug! ., 100 50 U E2U+msg !^.*$!info! .
---
- name: Playbook to ensure
hosts: ipaserver
tasks:
- ipadnsrecord:
ipaadmin_password: Secret123
name: _naptr
zone_name: rectestzone.test
naptr_preference: 50
naptr_record: "102 12 U E2U+msg !^.*$!prio! ."
PLAY [Playbook to ensure] ************************************************************************************************************************
TASK [Gathering Facts] ***************************************************************************************************************************
ok: [master.ipadomain.test]
TASK [ipadnsrecord] ******************************************************************************************************************************
fatal: [master.ipadomain.test]: FAILED! => {"changed": false, "msg": "dnsrecord_mod: rectestzone.test: invalid 'naptrrecord': DNS records can be only updated one at a time"}
PLAY RECAP ***************************************************************************************************************************************
master.ipadomain.test : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
NAPTR record: 102 12 U E2U+msg !^.*$!prio! ., 101 11 U E2U+msg !^.*$!info! ., 50 50 U SIP+D2U !^.*$!debug! ., 100 50 U E2U+msg !^.*$!info! .
[root@client ~]#
Additional info:
===================
CLI Console output
===================
[root@client ~]# ipa dnsrecord-mod rectestzone.test _naptr
No option to modify specific record provided.
Current DNS record contents:
NAPTR record: 102 12 U E2U+msg !^.*$!prio! ., 101 11 U E2U+msg !^.*$!info! ., 50 50 U SIP+D2U !^.*$!debug! ., 100 50 U E2U+msg !^.*$!info! .
Modify NAPTR record '102 12 U E2U+msg !^.*$!prio! .'? Yes/No (default No): yes
NAPTR Order:
NAPTR Preference: 50
NAPTR Flags:
NAPTR Service:
NAPTR Regular Expression:
NAPTR Replacement:
3 NAPTR records skipped. Only one value per DNS record type can be modified at one time.
Record name: _naptr
NAPTR record: 101 11 U E2U+msg !^.*$!info! ., 50 50 U SIP+D2U !^.*$!debug! ., 100 50 U E2U+msg
!^.*$!info! ., 102 50 U E2U+msg !^.*$!prio! .
[root@client ~]#
Verified:
ansible-freeipa-0.3.1-1.el8.noarch
ansible_freeipa_tests/dns_module.py::TestDNSNAPTRrecord::test_dns_naptrrec_update_single
2020-12-11T07:57:59+0000 -------------------------------- live log call ---------------------------------
2020-12-11T07:57:59+0000 [pytest_multihost.host.Host.ansible.ParamikoTransport] INFO RUN ['/usr/bin/rpm', '-q', 'ansible-freeipa']
2020-12-11T07:57:59+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['kinit', 'admin']
2020-12-11T07:57:59+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['ipa', 'dnsrecord-show', 'rectestzone.test', 'naptrmultiple']
2020-12-11T07:58:01+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['kdestroy', '-A']
2020-12-11T07:58:01+0000 [pytest_multihost.host.Host.ansible.ParamikoTransport] INFO WRITE inventory/dns.hosts
2020-12-11T07:58:01+0000 [pytest_multihost.host.Host.ansible.ParamikoTransport] INFO PUT dns_module.yml
2020-12-11T07:58:01+0000 [pytest_multihost.host.Host.ansible.ParamikoTransport] INFO RUN ['ansible-playbook', '--ssh-extra-args="-o StrictHostKeyChecking=no"', '-vv', '-i', 'inventory/dns.hosts', 'dns_module.yml']
2020-12-11T07:58:07+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['kinit', 'admin']
2020-12-11T07:58:07+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['ipa', 'dnsrecord-show', 'rectestzone.test', 'naptrmultiple']
2020-12-11T07:58:08+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['kdestroy', '-A']
2020-12-11T07:58:08+0000 PASSED
Based on the test result, marking the bug VERIFIED.
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-2021:1860
Description of problem: Not able to modify the DNS record with new values in DNS record module Version-Release number of selected component (if applicable): ansible-freeipa-0.1.12-6.el8.noarch Steps to Reproduce: [root@client ~]# ipa dnsrecord-show rectestzone.test _naptr ; cat test.yaml; ansible-playbook test.yaml ; ipa dnsrecord-show rectestzone.test _naptr | grep "NAPTR" Record name: _naptr NAPTR record: 102 12 U E2U+msg !^.*$!prio! ., 101 11 U E2U+msg !^.*$!info! ., 50 50 U SIP+D2U !^.*$!debug! ., 100 50 U E2U+msg !^.*$!info! . --- - name: Playbook to ensure hosts: ipaserver tasks: - ipadnsrecord: ipaadmin_password: Secret123 name: _naptr zone_name: rectestzone.test naptr_preference: 50 naptr_record: "102 12 U E2U+msg !^.*$!prio! ." PLAY [Playbook to ensure] ************************************************************************************************************************ TASK [Gathering Facts] *************************************************************************************************************************** ok: [master.ipadomain.test] TASK [ipadnsrecord] ****************************************************************************************************************************** fatal: [master.ipadomain.test]: FAILED! => {"changed": false, "msg": "dnsrecord_mod: rectestzone.test: invalid 'naptrrecord': DNS records can be only updated one at a time"} PLAY RECAP *************************************************************************************************************************************** master.ipadomain.test : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0 NAPTR record: 102 12 U E2U+msg !^.*$!prio! ., 101 11 U E2U+msg !^.*$!info! ., 50 50 U SIP+D2U !^.*$!debug! ., 100 50 U E2U+msg !^.*$!info! . [root@client ~]# Additional info: =================== CLI Console output =================== [root@client ~]# ipa dnsrecord-mod rectestzone.test _naptr No option to modify specific record provided. Current DNS record contents: NAPTR record: 102 12 U E2U+msg !^.*$!prio! ., 101 11 U E2U+msg !^.*$!info! ., 50 50 U SIP+D2U !^.*$!debug! ., 100 50 U E2U+msg !^.*$!info! . Modify NAPTR record '102 12 U E2U+msg !^.*$!prio! .'? Yes/No (default No): yes NAPTR Order: NAPTR Preference: 50 NAPTR Flags: NAPTR Service: NAPTR Regular Expression: NAPTR Replacement: 3 NAPTR records skipped. Only one value per DNS record type can be modified at one time. Record name: _naptr NAPTR record: 101 11 U E2U+msg !^.*$!info! ., 50 50 U SIP+D2U !^.*$!debug! ., 100 50 U E2U+msg !^.*$!info! ., 102 50 U E2U+msg !^.*$!prio! . [root@client ~]#