Project

General

Profile

Scénario #25457

La gestion de la mise à l’heure du serveur doit être fonctionnelle sur 2.7.0

Added by Daniel Dehennin almost 5 years ago. Updated almost 5 years ago.

Status:
Terminé (Sprint)
Priority:
Normal
Assigned To:
Category:
-
Start date:
10/15/2018
Due date:
10/26/2018
% Done:

100%

Estimated time:
(Total: 6.00 h)
Story points:
3.0
Remaining (hours):
0.00 hour
Velocity based estimate:
Release:
Release relationship:
Auto

Description

Problème

Actuellement le service *ntp* :

  • n’est pas actif car systemd-timesyncd.service est actif
  • s’exécute après network.target (et de façon mal faite car il manque le Wants=), il essaye donc trop tôt de s’accrocher à une adresse IP qui n’est pas encore configurée
# /lib/systemd/system/ntp.service
[Unit]
Description=Network Time Service
Documentation=man:ntpd(8)
After=network.target
Conflicts=systemd-timesyncd.service

[Service]
Type=forking
# Debian uses a shell wrapper to process /etc/default/ntp
# and select DHCP-provided NTP servers if available
ExecStart=/usr/lib/ntp/ntp-systemd-wrapper
PrivateTmp=true

[Install]
WantedBy=multi-user.target

Propositions

  • Désactiver systemd-timesyncd.service
  • Surcharger la configuration de l’unit systemd avec les informations suivantes :
    [Unit]
    After=network-online.target
    Wants=network-online.target
    

boot.svg View (176 KB) Daniel Dehennin, 10/15/2018 05:06 PM


Subtasks

Tâche #25555: Désactiver le service systemd-timesyncdFerméDaniel Dehennin

Tâche #25561: Forcer la synchronisation de l’heure au démarrage du systèmeFerméDaniel Dehennin

Tâche #25562: Le service NTP doit attendre que l’heure soit synchroniséeFerméDaniel Dehennin

Tâche #25565: Le service MySQL doit démarrer après que l’heure soit synchroniséeFerméDaniel Dehennin

History

#1 Updated by Daniel Dehennin almost 5 years ago

Il semble y avoir autre chose:

  • Le service systemd-timesyncd doit être désactivé pour utiliser NTP
  • Le service NTP ne sollicite que le pool et non le serveur configuré
  • Le service NTP est configuré pour utiliser hestia.eole.lan (ça devrait pas être l’Amon ?)
  • Même après un ntpdate le daemon ntp est noté non synchronisé par ntpstat.

#2 Updated by Daniel Dehennin almost 5 years ago

  • Project changed from Distribution EOLE to eole-common
  • Subject changed from Le service NTP n’attend pas que le réseau soit en service pour démarrer to Le service NTP n’est pas en service sur les modules 2.7.0
  • Description updated (diff)
  • Assigned To set to Daniel Dehennin
  • Parent task deleted (#25242)
  • Release set to EOLE 2.7.0

#3 Updated by Daniel Dehennin almost 5 years ago

  • Tracker changed from Tâche to Scénario
  • Due date set to 10/26/2018
  • Story points set to 3.0

#4 Updated by Daniel Dehennin almost 5 years ago

La surcharge de l’unit systemd n’est pas utile, testé sur Scribe.

#5 Updated by Daniel Dehennin almost 5 years ago

  • Subject changed from Le service NTP n’est pas en service sur les modules 2.7.0 to La gestion de la mise à l’heure du serveur doit être fonctionnelle sur 2.7.0

#6 Updated by Daniel Dehennin almost 5 years ago

Pour tester

  • Le service ntpdate.service doit démarrer après que netplan-wait-online.service soit terminé, c’est à dire après network-online.target.
  • Le service ntp.service doit démarrer après que ntpdate.service soit terminé, c’est à dire après time-sync.target
  • Le service mysql.service doit démarrer après que ntpdate.service soit terminé, c’est à dire après time-sync.target

Obtenir le graphique de démarrage

root@scribe:~# systemd-analyze plot > boot.svg

Voir boot.svg

#7 Updated by Laurent Flori almost 5 years ago

  • Status changed from Nouveau to Terminé (Sprint)

Also available in: Atom PDF