Guest User!

You are not Sophos Staff.

[8.965][FEATURE] Date problem

Hi all, 

I'm having a strange problem with my Astaro v8.965. 
I configured Astaro to use 2 of my own ntp servers. For some strange reason, Astaro forgets to update himself. 

When I set the time correct, Astaro's time is correct for about 3 days. After that the difference is more then 3 minutes. (This makes my IPv6 tunnels fail). 

In both of the screenshots you can find more information on my configuration. As you see I configured both of those servers, I did this configuration 2 day's ago. I made sure that the time was in sync. 

However today I see that I'm having a difference of at least 1 minute. 

If I enter the terminal mode of Astaro, kill the ntp daemon and initiate the command manually (ntpdate x.x.x.x) I see that Astaro updates himself correctly. 

Kr.
  • Hi, check the packetfilter log for NTP packets, and, iirc the system log has the ntpd info.

    Barry
  • Hi 

    Thanks for your reply. I've done some research on my log files: 

    2012:06:14-03:02:42 snake-jailbird ntpd[25652]: peers refreshed
    2012:06:14-03:02:49 snake-jailbird ntpd[25652]: Listen normally on 55 aiccu fe80::4f8:202:550:2 UDP 123
    2012:06:14-03:02:49 snake-jailbird ntpd[25652]: Listen normally on 56 aiccu 2001:6f8:202:550::2 UDP 123
    2012:06:14-03:02:49 snake-jailbird ntpd[25652]: peers refreshed
    2012:06:14-03:02:49 snake-jailbird ntpd[25652]: new interface(s) found: waking up resolver



    This all seems very normal to me. 


    snake-jailbird:/var/log # date
    Thu Jun 14 09:48:09 CEST 2012

    [***xx@Dr-Nick-Riviera tmp]$ date
    Thu Jun 14 09:46:23 CEST 2012

    ***xx@kwik-e-mart:~$ date
    Thu Jun 14 09:46:44 CEST 2012



    Dr-nick and Kwik-e-mart, both Debian servers, use the same NTP server as snake-jailbird. However, snake his time is off by 2 min. I synced the time yesterday as I posted this problem. So it's off by 2 min in less then a day. 

    Requesting the ps list on the server gives me the following output

    snake-jailbird:/var/log # ps aux | egrep ntp
    root      5111  0.0  0.0   3440   720 pts/0    S+   09:52   0:00 egrep ntp
    root     25652  0.0  0.0   3188   688 ?        Ss   Jun11   1:14 /sbin/ntpd



    vi ntp.conf.external 


    server xx.13.37.xx iburst minpoll 4 maxpoll 7
    server xx.13.37.xx iburst minpoll 4 maxpoll 7


    I modified the IP address, but I can confirm that this is the correct IP.

    vi ntp.conf

    ##
    ## Outside source of synchronized time
    ##
    ## e.g.: pool.ntp.org
    ##
    ## minpoll 128s maxpoll 9h
    #includefile /etc/ntp.conf.ha
    includefile /etc/ntp.conf.external



    That file seems correct aswell. (I added the complete configuration file)
  • Perhaps something that I should mention. This server was added as master into an Active / Passive setup. However, due instability I recently disabled this feature. (I'm still researching if this is an Astaro or a KVM problem)
  • VM's can mess with linux's sense of time; I know VMWare has a setting that helps; perhaps there is something for KVM as well?

    Barry
  • Regardless whether KVM messes up my time or not, fact is that the NTP daemon doesn't correct it. If I run it manually it works, if it runs as a daemon it seems to forget to update. 

    I'm reading the logs but I can't find the problem, nor do I see the NTP daemon update. Is there a way to set higher debug settings? Perhaps I should enter the public NTP pool again and see how that goes. 

    Today my IPv6 tunnel broke again due a time difference of 300 seconds.
  • Maybe the KVM documentation can help us here.

    Ubuntu recommends to turn off NTP on guests, btw.

    I think i'll close this as "myth"...

    Cheers,
    Kai

    EDIT: rethink this, i'll better turn it into a feature request. Since this has to be handled correctly for every virtualization platform, we probably have to write separate code for each environment...
Share Feedback
×

Submitted a Tech Support Case lately from the Support Portal?