Bug 13613 - spurious error message RECORD_ALREADY_EXISTS with samba_dnsupdate --verbose
Summary: spurious error message RECORD_ALREADY_EXISTS with samba_dnsupdate --verbose
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: AD: LDB/DSDB/SAMDB (show other bugs)
Version: 4.9.0rc5
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Andrew Bartlett
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-12 16:02 UTC by Kevin Guerineau
Modified: 2018-09-12 16:02 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Guerineau 2018-09-12 16:02:21 UTC
Hi everyone,

With samba 4.9, "samba_dnsupdate --verbose --use-samba-tool" generate spurious error WERR_DNS_ERROR_RECORD_ALREADY_EXISTS (which is true), but it's appear as an error. In older version, it was not giving this error out.

I get this error message both for internal DNS server and Bind DLZ (which I think is logic, since it is using samba-tool...)

update (samba-tool): SRV _ldap._tcp.site3._sites.ForestDnsZones.env.tranquil.it srvads.env.tranquil.it 389
Calling samba-tool dns for SRV _ldap._tcp.site3._sites.ForestDnsZones.env.tranquil.it srvads.env.tranquil.it 389 (add)
Calling samba-tool dns add -k no -P ['192.168.1.2', 'env.tranquil.it', '_ldap._tcp.site3._sites.ForestDnsZones', 'SRV', 'srvads.env.tranquil.it 389 0 100']
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
  File "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py", line 177, in _run
    return self.run(*args, **kwargs)
  File "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/dns.py", line 945, in run
    raise e
Failed 'samba-tool dns' based update of SRV _ldap._tcp.site3._sites.ForestDnsZones.env.tranquil.it srvads.env.tranquil.it 389