Public bug reported:
"rndc dumpdb" returns before the output is written to named_dump.db.
This causes any script trying to operate on the generated file work on
an incomplete dataset.
My use of the feature is as follows. The following returns varying results on
each invocation:
ssh root@<nameserver> rndc dumpdb -zones '&&' cat /var/cache/bind/named_dump.db
The following returns the expected output:
ssh root@<nameserver> rndc dumpdb -zones '&&' sleep 5 '&&' cat
/var/cache/bind/named_dump.db
Expected behaviour:
The dump is actually complete with the termination of the rndc process, so that
error-prone mechanics such as calibrated delays or checks for the terminator
marker are unnecessary.
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: bind9utils 1:9.10.3.dfsg.P4-8ubuntu1.6
ProcVersionSignature:
Uname: Linux 4.4.35-2-pve x86_64
ApportVersion: 2.20.1-0ubuntu2.5
Architecture: amd64
Date: Mon May 22 11:42:07 2017
SourcePackage: bind9
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: bind9 (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug xenial
** Attachment removed: "JournalErrors.txt"
https://bugs.launchpad.net/ubuntu/+source/bind9/+bug/1692514/+attachment/4881312/+files/JournalErrors.txt
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1692514
Title:
dumpdb incomplete when used in scripts
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bind9/+bug/1692514/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs