[Bug 556467] New: RC2: ntp module doesn't change time of appliance
http://bugzilla.novell.com/show_bug.cgi?id=556467#c0 Summary: RC2: ntp module doesn't change time of appliance Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: Other OS/Version: Other Status: NEEDINFO Severity: Normal Priority: P5 - None Component: WebYaST AssignedTo: jreidinger@novell.com ReportedBy: jreidinger@novell.com QAContact: qa@suse.de CC: kkaempf@novell.com Found By: --- Blocker: --- synchronize via NTP doesn't change time on target machine. Why this happen? Because ntp doesn't write system time to hardware clock and yast2-country during next reading move hardware time to system time and remove any changes done by ntp synchronization. I try add hwclock write to ntp yapi, but it still doesn't work, even if I run it manually it works. Jiri - Do you have idea if country doesn't store same cache for reading time and date? I am sure, that hwclock is correct and also that I doesn't manually set time or date and it still return time to previous value (I also call before read another write). -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=556467#c1
Jiří Suchomel
http://bugzilla.novell.com/show_bug.cgi?id=556467#c2
Josef Reidinger
http://bugzilla.novell.com/show_bug.cgi?id=556467
http://bugzilla.novell.com/show_bug.cgi?id=556467#c3
Josef Reidinger
http://bugzilla.novell.com/show_bug.cgi?id=556467
http://bugzilla.novell.com/show_bug.cgi?id=556467#c5
--- Comment #5 from Jiří Suchomel
3) properly pass to NTP in which format is hwclock (quite big change as it affect frontend, ntp backend and also NTP YaPI). What solution do you prefer?
Why does it affect frontend? I think this is doable only with a change in NTP YaPI: (did not tested, but I believe something like this should help:) diff --git a/plugins/ntp/package/NTP.pm b/plugins/ntp/package/NTP.pm index a399ae4..6e5771b 100644 --- a/plugins/ntp/package/NTP.pm +++ b/plugins/ntp/package/NTP.pm @@ -22,7 +22,9 @@ sub Synchronize { $out = "Error for server $server: $out"; } return "NOSERVERS" unless (defined ($out)); - my $ret = `hwclock --utc --systohc`; + my $hwclock = SCR->Read (".sysconfig.clock.HWCLOCK"); + $hwclock = "-u" if ! defined $hwclock; + my $ret = `hwclock $hwclock --systohc`; if ($? == 0){ return "OK"; } -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=556467
http://bugzilla.novell.com/show_bug.cgi?id=556467#c8
Klaus Kämpf
http://bugzilla.novell.com/show_bug.cgi?id=556467
http://bugzilla.novell.com/show_bug.cgi?id=556467#c9
Josef Reidinger
http://bugzilla.novell.com/show_bug.cgi?id=556467
http://bugzilla.novell.com/show_bug.cgi?id=556467#c10
--- Comment #10 from Josef Reidinger
http://bugzilla.novell.com/show_bug.cgi?id=556467
http://bugzilla.novell.com/show_bug.cgi?id=556467#c11
Josef Reidinger
participants (1)
-
bugzilla_noreply@novell.com