Bug #1988

NTP server validation failed

Added by Davide Principi about 8 years ago. Updated about 8 years ago.

Status:CLOSEDStart date:05/30/2013
Priority:NormalDue date:05/30/2013
Assignee:-% Done:

100%

Category:nethserver-ntp
Target version:v6.4-beta2
Security class: Resolution:
Affected version:v6.4-beta1 NEEDINFO:No

Description

The Date & Time form validation fails when NTP Server field is set to a valid NTP server.

This does not always happen, but it prevents the admin to complete NTP configuration.


Related issues

Related to NethServer 6 - Enhancement #1964: Ntp: force ntpd syncronization CLOSED 05/30/2013 05/30/2013

Associated revisions

Revision 0edd9aa9
Added by Davide Principi about 8 years ago

DateTime UI module: removed ntp-server system validator. Refs #1988

Revision a34078dd
Added by Davide Principi about 8 years ago

/etc/ntp.conf template: use upstream defaults with expanded ntpd/NTPServer prop value. Refs #1988

Revision eb2c0208
Added by Davide Principi about 8 years ago

/etc/ntp/step-tickers template: removed, because ntpdate is deprecated. Refs #1988

Revision 8d4313a4
Added by Davide Principi about 8 years ago

DateTime UI module template: time controls enabled only if ntpd is not running; fixed translations. Refs #1988

Revision c684b19e
Added by Davide Principi about 8 years ago

DateTime UI module: refresh time visualization every minute. Refs #1988

History

#1 Updated by Davide Principi about 8 years ago

  • Description updated (diff)

The system validator uses ntpq command to query the remote address. ntpq manual page says

It uses the standard NTP mode 6 control message formats defined in Appendix B of the NTPv3 specification RFC1305.

Probably requests from remote hosts are not authorized.

#2 Updated by Davide Principi about 8 years ago

  • Status changed from ON_DEV to ON_QA
  • % Done changed from 30 to 80

In testing repo: nethserver-ntp-1.0.3-1.ns6

Removed system validator based on ntpq command.

#3 Updated by Davide Principi about 8 years ago

  • Assignee deleted (Davide Principi)

Test case 1

Hours and minutes field is automatically updated every minute. Should be synchronized with server time.

Test case 2

In NTP Server field pool.ntp.org must always be validated, as any other valid host name or IP address.

#4 Updated by Giacomo Sanchietti about 8 years ago

  • Assignee set to Giacomo Sanchietti

#5 Updated by Giacomo Sanchietti about 8 years ago

  • Status changed from ON_QA to VERIFIED
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 80 to 100

Test case 1

An ajax request is done every minute. OK.

Test case 2

Any valid hostname is accepted: OK.

Marking VERIFIED.

#6 Updated by Davide Principi about 8 years ago

  • Status changed from VERIFIED to CLOSED

Released!

In nethserver-updates:
nethserver-ntp-1.0.4-1.ns6.noarch.rpm

Also available in: Atom PDF