Bug 15019 - Live ISOs offer NTP at boot but use both chronyd and systemd-timesyncd regardless
Summary: Live ISOs offer NTP at boot but use both chronyd and systemd-timesyncd regard...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: i586 Linux
Priority: release_blocker normal
Target Milestone: ---
Assignee: Mageia tools maintainers
QA Contact:
URL:
Whiteboard: MGA5TOO
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-12 15:09 CET by claire robinson
Modified: 2017-01-17 10:29 CET (History)
6 users (show)

See Also:
Source RPM: systemd
CVE:
Status comment: Also see Bug 17091


Attachments
live.txt (8.68 KB, text/plain)
2015-01-12 15:09 CET, claire robinson
Details
installed.txt (2.60 KB, text/plain)
2015-01-12 15:09 CET, claire robinson
Details

Description claire robinson 2015-01-12 15:09:05 CET
Live ISOs ignore NTP setting which is set when booting in live mode and use both chronyd and systemd-timesyncd. This is carried through to the installed system

Attaching..

# journalctl -b -1 | grep -i -e chrony -e timesync -e ntp > /home/user/live.txt

and

# journalctl -b | grep -i -e chrony -e timesync -e ntp > /home/user/installed.txt

from the installed system.

Reproducible: 

Steps to Reproduce:
Comment 1 claire robinson 2015-01-12 15:09:35 CET
Created attachment 5807 [details]
live.txt
Comment 2 claire robinson 2015-01-12 15:09:57 CET
Created attachment 5808 [details]
installed.txt
Comment 3 Angelo Naselli 2015-01-25 14:59:25 CET
Claire i cannot understand which is the side effect in having both. Looking at installed.txt seems that both are trying to sync clock
chronyd from 178.63.64.14 and 85.21.78.91
and 
systemd-timesyncd from 216.239.32.15:123 (time1.google.com).

But I see that setting NTP in drackclock could at least disable systemd-timesyncd,
since it does not manage it

CC: (none) => anaselli

Comment 4 claire robinson 2015-01-25 16:01:45 CET
When neither is selected during installation, neither should be sync'ing the clock though really.

I'm not sure the effect of having multiple services installed, they could conceivably end up fighting each other.
Comment 5 Angelo Naselli 2015-01-25 16:11:34 CET
I think we missed to change the chronyd.service with
Conflicts=ntpd.service systemd-timesyncd.service
and to add a similar line to ntpd.service
Conflicts=chronyd.service systemd-timesyncd.service

That should stop systemd-timesyncd.service i believe
Comment 6 Florian Hubold 2015-01-25 16:28:43 CET
CC'ing Colin.

CC: (none) => doktor5000, mageia

Samuel Verschelde 2015-05-31 23:31:45 CEST

Whiteboard: (none) => MGA5TOO FOR_ERRATA

Comment 7 Angelo Naselli 2015-06-01 18:44:15 CEST
i think this is related to bug #15534
Samuel Verschelde 2015-06-02 09:46:20 CEST

See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=15534

Marja Van Waes 2016-08-01 12:42:05 CEST

See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=17091

Comment 8 David Walser 2016-08-09 23:38:22 CEST
We should find some solution for this before releasing Mageia 6.

Priority: Normal => release_blocker

David Walser 2016-08-09 23:39:13 CEST

Blocks: (none) => 15527

Comment 9 Marja Van Waes 2016-09-10 10:42:59 CEST
Why is this only a problem on the Live isos?

CC: (none) => marja11
Assignee: bugsquad => isobuild

Samuel Verschelde 2016-09-12 16:16:45 CEST

Status comment: (none) => Also see Bug 17091

Comment 10 Angelo Naselli 2016-09-12 16:24:41 CEST
If nothing changed in drakxclock i don't think it's only a matter of Live.
The problem is that systemd-timesyncd is installed and starts by default, if drakxclock does not manage it, it should at least disable it regardless if it installed or not e.g without care of command output. manaclock manages systemd-timesyncd but the code is pretty changed since it uses dbus.
Comment 11 Rémi Verschelde 2016-10-18 09:44:59 CEST
Assigning to Mageia tools maintainers as it seems to affect more than just live ISOs, as per comment 10.

Also, the release blocker status of this bug might have to be reassessed based on our current priorities.

Assignee: isobuild => mageiatools
CC: sysadmin-bugs => isobuild
Component: Release (media or process) => RPM Packages
Summary: 5beta2: Live ISOs offer NTP at boot but use both chronyd and systemd-timesyncd regardless => Live ISOs offer NTP at boot but use both chronyd and systemd-timesyncd regardless
Source RPM: (none) => drakxtools

Samuel Verschelde 2016-10-18 13:09:53 CEST

Whiteboard: MGA5TOO FOR_ERRATA => MGA5TOO

Comment 12 Thierry Vignaud 2017-01-16 10:14:56 CET
AFAIC, it should be disabled by default in systemd...

Source RPM: drakxtools => systemd
CC: (none) => thierry.vignaud

Comment 13 Thierry Vignaud 2017-01-16 10:39:00 CET
Done in systemd-230-7

Resolution: (none) => FIXED
Status: NEW => RESOLVED

Comment 14 Samuel Verschelde 2017-01-16 14:17:15 CET
Build failed

Status: RESOLVED => REOPENED
Resolution: FIXED => (none)

Comment 15 David Walser 2017-01-16 19:10:32 CET
Thierry pushed systemd-230-8 which fixed the build, so this one should be fixed.

Status: REOPENED => RESOLVED
Resolution: (none) => FIXED

Samuel Verschelde 2017-01-17 10:29:39 CET

Blocks: 15527 => (none)


Note You need to log in before you can comment on or make changes to this bug.