Community
Participate
Working Groups
The following set of patches adds an active solution allowing to check the system time against some reference time servers. These patches add just three classes: - the main TimeChecker class in core - a corresponding test class in core.test - the active solution CheckSystemTimeSolution in ui Some extra typo fixes (text strings and comments) are also included Currently ONLY the voms proxy creation is using this solution if a connection problem occurs... All other connection failures which could be originated by a wrong system time (gridftp, jobsubmission, ...) still have to be identified and changed to propose this solution.
Created attachment 73805 [details] The TimeChecker class and other core patches
Created attachment 73806 [details] The TimeChecker_Test class
Created attachment 73807 [details] A trivial/refactoring patch to .voms
Created attachment 73808 [details] The CheckSystemTimeSolution class and other ui patches
About how it works: it uses the time/rdate 'protocol' to query 3 time servers in a row, for the case one is down, etc. In the worst case these queries time out after 5s each, so 15s in total, the user is kept informed via a progress bar. In the pathological case that the hostnames cannot be resolved (DNS unreachable) the query would take longer but if there is no DNS the user must have noticed already! It also doen's make sense to query the time servers in parallel, in the normal situation all three are done in a fraction of a second. If the query succeeds the user is informed if the system time is OK or not. If the query fails a new problem dialog is presented -> network problems. These time queries use outgoing UDP packets to port 37. Implementing the much more complicated NTP protocol wouldn't make things better because it is also UDP.
patches applied and committed
closing this item
Comment on attachment 73805 [details] The TimeChecker class and other core patches Applied by Mathias
Comment on attachment 73806 [details] The TimeChecker_Test class Applied by Mathias
Comment on attachment 73807 [details] A trivial/refactoring patch to .voms Applied by Mathias
Comment on attachment 73808 [details] The CheckSystemTimeSolution class and other ui patches Applied by Mathias