Package: ntpsec
Version: 1.1.3+dfsg1-2
Severity: important

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
the /etc/ntpsec/ntp.conf file (attached) has two "pool" directives and no 
"server" directives.
So it requires DNS (hence network services) to find out the IP addresses it 
needs for servers.
DNS fails on the first "peer" and (for some reason) succeeds on the second 
"peer".
If ntpsec implemented the "preempt" option on "peer" directives, the first 
"peer" would be 
revisited after a few minutes and all would be well.  But it doesn't.  So the 
first "peer"
is as if it never existed.
   * What exactly did you do (or not do) that was effective (or ineffective)?
Wait several seconds after boot completes then issue "sudo service ntpset 
restart"
   * What was the outcome of this action?
This time around, it sees both sets of "peers".
   * What outcome did you expect instead?
I would have hoped that the systemd stuff would wait until DNS was available 
before starting up ntpsec.
Unfortunately, I don't know systemd configuration well enough to suggest a 
patch.

*** End of the template - remove these template lines ***

Systemd log files of a representative boot can be provided if necessary.


-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: armhf (armv7l)

Kernel: Linux 4.19.0-2-armmp (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages ntpsec depends on:
ii  adduser      3.118
ii  libc6        2.28-7
ii  libcap2      1:2.25-2
ii  libssl1.1    1.1.1a-1
ii  lsb-base     10.2018112800
ii  netbase      5.6
ii  python3      3.7.2-1
ii  python3-ntp  1.1.3+dfsg1-2
ii  tzdata       2018i-1

Versions of packages ntpsec recommends:
ii  cron [cron-daemon]  3.0pl1-132
ii  systemd             241-1

Versions of packages ntpsec suggests:
ii  apparmor       2.13.2-9
ii  ntpsec-doc     1.1.3+dfsg1-2
pn  ntpsec-ntpviz  <none>

-- Configuration Files:
/etc/default/ntpsec changed:
NTPD_OPTS="-g -N"
IGNORE_DHCP="yes"

/etc/ntpsec/ntp.conf changed:
driftfile /var/lib/ntpsec/ntp.drift
leapfile /usr/share/zoneinfo/leap-seconds.list
statsdir /var/log/ntpsec/
statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable
tos minclock 7      minsane 5
pool pool.rcthomas.org minpoll 3 maxpoll 6 prefer iburst
pool us.pool.ntp.org minpoll 6 maxpoll 10 iburst
restrict default kod nomodify nopeer noquery limited
restrict 127.0.0.1
restrict ::1
restrict 192.168.0.0  mask  255.255.240.0 nomodify
restrict   2001:4978:02d2:0001::0 mask ffff:ffff:ffff:ffff:0000:0000:0000:0000 
nomodify


-- no debconf information

Reply via email to