Scénario #25457
La gestion de la mise à l’heure du serveur doit être fonctionnelle sur 2.7.0
Status:
Terminé (Sprint)
Priority:
Normal
Assigned To:
Category:
-
Target version:
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 leWants=
), 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
Subtasks
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é parntpstat
.
#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 quenetplan-wait-online.service
soit terminé, c’est à dire aprèsnetwork-online.target
. - Le service
ntp.service
doit démarrer après quentpdate.service
soit terminé, c’est à dire aprèstime-sync.target
- Le service
mysql.service
doit démarrer après quentpdate.service
soit terminé, c’est à dire aprèstime-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)