Bug 1881452
Summary: | [ansible-freeipa] Also when tried to update multiple records with all attributes with type DS it creates new entry. | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | anuja <amore> |
Component: | ansible-freeipa | Assignee: | Rafael Jeffman <rjeffman> |
Status: | CLOSED ERRATA | QA Contact: | ipa-qe <ipa-qe> |
Severity: | unspecified | Docs Contact: | |
Priority: | high | ||
Version: | 8.3 | CC: | mvarun, pcech, rjeffman, twoerner |
Target Milestone: | rc | Keywords: | Triaged |
Target Release: | 8.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | ansible-freeipa-0.3.0-1 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-05-18 15:51:18 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
anuja
2020-09-22 12:16:50 UTC
In the example provided, the playbook should fail with message "`dsrecord` not found.", as it is modifying the same record twice, so in the second task the record does not exist anymore. There is an upstream PR for the issue: https://github.com/freeipa/ansible-freeipa/pull/438 Upstream PR was merged. Verified: ansible-freeipa-0.3.1-1.el8.noarch 2020-12-11T08:28:39+0000 ansible_freeipa_tests/dns_module.py::TestDNSDSrecord::test_dns_dsrec_update_multiple 2020-12-11T08:28:39+0000 -------------------------------- live log call --------------------------------- 2020-12-11T08:28:39+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['kinit', 'admin'] 2020-12-11T08:28:39+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['ipa', 'dnsrecord-show', 'rectestzone.test', 'dnsrecord'] 2020-12-11T08:28:40+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['kdestroy', '-A'] 2020-12-11T08:28:40+0000 [pytest_multihost.host.Host.ansible.ParamikoTransport] INFO WRITE inventory/dns.hosts 2020-12-11T08:28:40+0000 [pytest_multihost.host.Host.ansible.ParamikoTransport] INFO PUT dns_module.yml 2020-12-11T08:28:40+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-11T08:28:46+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['kinit', 'admin'] 2020-12-11T08:28:46+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['ipa', 'dnsrecord-show', 'rectestzone.test', 'dnsrecord'] 2020-12-11T08:28:47+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['kdestroy', '-A'] 2020-12-11T08:28:47+0000 [pytest_multihost.host.Host.ansible.ParamikoTransport] INFO RUN ['/usr/bin/rpm', '-q', 'ansible-freeipa'] 2020-12-11T08:28:47+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['kinit', 'admin'] 2020-12-11T08:28:47+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['ipa', 'dnsrecord-show', 'rectestzone.test', 'dnsrecord'] 2020-12-11T08:28:48+0000 [pytest_multihost.host.Host.master.ParamikoTransport] INFO RUN ['kdestroy', '-A'] 2020-12-11T08:28:49+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 |