#7982 Cannot modify TTL with ipa dnsrecord-mod --ttl alone on command line
Closed: fixed by abbra. Opened by frenaud.

Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 7): Bug 1720952

Description of problem:
See the following output and reported error:
vesemir:~> ipa dnsrecord-mod ZZZZZ.org ns11 --ttl=86400
No option to modify specific record provided.
Current DNS record contents:
A record: xxx.xxx.xxx.xxx
AAAA record: xxxx:xx
Modify A record 'xxxx.xxxx.xxxx.xxxx'? Yes/No (default No):
Modify AAAA record 'xxxx:xx'? Yes/No (default No):
ipa: ERROR: No options to modify a specific record provided.
Version-Release number of selected component (if applicable):
ipa-client-4.6.4-10.el7.centos.3.x86_64
How reproducible:
Always
Actual results:
Cannot modify DNS record's TTL.
Expected results:
DNS record's TTL modified.
Additional info:
Disclosure - found on CentOS 7.6 and NOT replicated on RHEL.
Passing data already on the record already allows changing TTL but is error
prone (especially for records with many data):
vesemir:~> ipa dnsrecord-mod ZZZZ.org ns11 --ttl=86400 --a-rec=xxx.xxx.xxx.xxx
--aaaa-rec=xxxx:xx
  Record name: ns11
  Czas życia: 86400
  A record: xxx.xxx.xxx.xxx
  AAAA record: xxxx:xx

Metadata Update from @frenaud:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1720952

Metadata Update from @frenaud:
- Issue assigned to frenaud

Metadata Update from @frenaud:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/3288

master:

  • bb91fcabee352fcaa71c8e66998a25e01cfaf9f7 dnsrecord-mod: allow to modify ttl without passing the record
  • f25a7c2e962e3165e54a01479067ca9a900db6a2 XMLRPC tests: add new test for ipa dsnrecord-mod $ZONE $RECORD --ttl

Metadata Update from @frenaud:
- Custom field test_case adjusted to ipatests/test_xmlrpc/test_dns_plugin.py::test_dns

master:

  • 71884176478917aa75a4277e580ed785f818b57d ipatests: fix ipatests/test_xmlrpc/test_dns_plugin.py

Metadata Update from @abbra:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

ipa-4-6:

  • e7fa5f31379dce4fc245359499301233b455136b dnsrecord-mod: allow to modify ttl without passing the record
  • de17f2af7343d2980ab676808d8f08065d512537 XMLRPC tests: add new test for ipa dsnrecord-mod $ZONE $RECORD --ttl
  • 104247dab79f039e1ecace985240bbd5bd220cb9 ipatests: fix ipatests/test_xmlrpc/test_dns_plugin.py

ipa-4-7:

  • eb115374a2a49ef0a6600e36d575a2a38027a03e dnsrecord-mod: allow to modify ttl without passing the record
  • 45c3d6ea568b027d3621104a8042850c483195e7 XMLRPC tests: add new test for ipa dsnrecord-mod $ZONE $RECORD --ttl
  • 1d020086d9c3793de924fd96075b62069f154981 ipatests: fix ipatests/test_xmlrpc/test_dns_plugin.py
Metadata