Activity log for bug #1257082

Date Who What changed Old value New value Message
2013-12-02 21:54:14 Brian Rzycki bug added bug
2013-12-02 22:30:12 dann frazier bug added subscriber dann frazier
2013-12-02 23:38:25 Julian Edwards bug task added isc-dhcp (Ubuntu)
2013-12-02 23:38:33 Julian Edwards maas: status New Invalid
2013-12-02 23:41:02 Julian Edwards bug task added ntp (Ubuntu)
2013-12-03 01:33:18 Scott Moser bug added subscriber Scott Moser
2013-12-03 07:45:50 Robie Basak bug added subscriber Robie Basak
2013-12-04 14:18:47 Robie Basak bug watch added http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=731352
2013-12-05 16:24:24 Robie Basak isc-dhcp (Ubuntu): status New Invalid
2013-12-05 16:24:39 Robie Basak ntp (Ubuntu): status New Confirmed
2013-12-05 16:25:28 Robie Basak ntp (Ubuntu): importance Undecided High
2013-12-05 18:39:08 Scott Moser bug task added isc-dhcp (Debian)
2013-12-05 18:56:39 Robie Basak affects isc-dhcp (Debian) ntp (Debian)
2013-12-05 19:09:15 Robie Basak bug watch added http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=617965
2013-12-06 16:43:26 Bug Watch Updater ntp (Debian): status Unknown New
2013-12-15 00:58:39 Nobuto Murata bug added subscriber Nobuto MURATA
2013-12-16 12:44:37 Robie Basak description I have tried setting up NTP servers as DHCP options to MAAS nodes because I am behind a proxy here at work that cannot contact ntp.ubuntu.com. Here is the top of the dhcpd.conf file on on my MAAS head node, maas01: root@maas01:/etc/dhcp# less dhcpd.conf default-lease-time 600; max-lease-time 7200; subnet 192.168.0.0 netmask 255.255.0.0 { option domain-name "mgmt"; option domain-name-servers 192.168.255.254; option routers 192.168.255.254; pool { range 192.168.0.1 192.168.255.253; deny unknown-clients; } } subnet 10.255.0.0 netmask 255.255.0.0 { option domain-name "maas"; option domain-name-servers 10.255.0.1; option routers 10.255.0.1; option ntp-servers 172.31.22.1, 172.31.23.1, 172.31.20.104; next-server 10.255.0.1; pool { range 10.255.1.0 10.255.255.254; deny unknown-clients; } } I have also verified the parameter is being sent to a client’s DHCP lease: ubuntu@sled204n0:/var$ cat /var/lib/dhcp/dhclient.eth0.leases lease { interface "eth0"; fixed-address 10.255.4.44; option subnet-mask 255.255.0.0; option routers 10.255.0.1; option dhcp-lease-time 600; option dhcp-message-type 5; option domain-name-servers 10.255.0.1; option dhcp-server-identifier 10.255.0.1; option ntp-servers 172.31.22.1,172.31.23.1,172.31.20.104; option domain-name "maas"; renew 4 2000/01/06 19:40:51; rebind 4 2000/01/06 19:40:51; expire 4 2000/01/06 19:40:51; } Even so, the date on the target node is still incorrect. ubuntu@sled204n0:/etc$ date Thu Jan 6 19:52:29 UTC 2000 The ntpdate defaults are the following (unchanged from MAAS defaults): ubuntu@sled204n0:/etc$ cat /etc/default/ntpdate # The settings in this file are used by the program ntpdate-debian, but not # by the upstream program ntpdate. # Set to "yes" to take the server list from /etc/ntp.conf, from package ntp, # so you only have to keep it in one place. NTPDATE_USE_NTP_CONF=yes # List of NTP servers to use (Separate multiple servers with spaces.) # Not used if NTPDATE_USE_NTP_CONF is yes. NTPSERVERS="ntp.ubuntu.com" # Additional options to pass to ntpdate NTPOPTIONS="" And the DHCP generated NTP server file is correct: ubuntu@sled204n0:/etc$ cat /var/lib/ntpdate/default.dhcp # NTP server entries received from DHCP server NTPSERVERS='172.31.22.1 172.31.23.1 172.31.20.104' The culprit seems to be in how ntpdate-debian is programmed. the logic ignores /var/lib/ntpdate/default.dhcp if /etc/default/ntpdate sets NTPDATE_USE_NTP_CONF=yes (the default). After examining the script further my recommendation would be for the /etc/dhcp/dhclient-exit-hooks.d/ntpdate to create the file /var/lib/ntp/ntp.conf.dhcp. By doing so ntpdate-debian will work transparently with /etc/defaults/ntpdate and NTP servers advertised by DHCPD. ------------------------------------------------------------------------- (contents of /var/log/maas/* is 125MB in size, will post data from there if requested) # dpkg -l '*maas*'|cat Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-==================================-======================================-============-========================================================================== ii maas 1.3+bzr1461+dfsg-0ubuntu2.2+tay.8 all Ubuntu MAAS Server ii maas-cli 1.3+bzr1461+dfsg-0ubuntu2.2+tay.8 all Ubuntu MAAS Client Tool ii maas-cluster-controller 1.3+bzr1461+dfsg-0ubuntu2.2+tay.8 all Ubuntu MAAS Cluster Controller ii maas-common 1.3+bzr1461+dfsg-0ubuntu2.2+tay.8 all Ubuntu MAAS Server un maas-dhcp <none> (no description available) un maas-dns <none> (no description available) ii maas-region-controller 1.3+bzr1461+dfsg-0ubuntu2.2+tay.8 all Ubuntu MAAS Server ii python-django-maas 1.3+bzr1461+dfsg-0ubuntu2.2+tay.8 all Ubuntu MAAS Server - (django files) ii python-maas-client 1.3+bzr1461+dfsg-0ubuntu2.2+tay.8 all Ubuntu MAAS API Client - (python files) ii python-maas-provisioningserver 1.3+bzr1461+dfsg-0ubuntu2.2+tay.8 all Ubuntu MAAS Server [Impact] MAAS-deployed systems *that do not have persistent RTCs* (unusual) have difficulty with time and authentication, generally making these nodes unusable. [Workaround] See comment #8. [Original Description] I have tried setting up NTP servers as DHCP options to MAAS nodes because I am behind a proxy here at work that cannot contact ntp.ubuntu.com. Here is the top of the dhcpd.conf file on on my MAAS head node, maas01: root@maas01:/etc/dhcp# less dhcpd.conf default-lease-time 600; max-lease-time 7200; subnet 192.168.0.0 netmask 255.255.0.0 {   option domain-name "mgmt";   option domain-name-servers 192.168.255.254;   option routers 192.168.255.254;   pool {     range 192.168.0.1 192.168.255.253;     deny unknown-clients;   } } subnet 10.255.0.0 netmask 255.255.0.0 {   option domain-name "maas";   option domain-name-servers 10.255.0.1;   option routers 10.255.0.1;   option ntp-servers 172.31.22.1, 172.31.23.1, 172.31.20.104;   next-server 10.255.0.1;   pool {     range 10.255.1.0 10.255.255.254;     deny unknown-clients;   } } I have also verified the parameter is being sent to a client’s DHCP lease: ubuntu@sled204n0:/var$ cat /var/lib/dhcp/dhclient.eth0.leases lease {   interface "eth0";   fixed-address 10.255.4.44;   option subnet-mask 255.255.0.0;   option routers 10.255.0.1;   option dhcp-lease-time 600;   option dhcp-message-type 5;   option domain-name-servers 10.255.0.1;   option dhcp-server-identifier 10.255.0.1;   option ntp-servers 172.31.22.1,172.31.23.1,172.31.20.104;   option domain-name "maas";   renew 4 2000/01/06 19:40:51;   rebind 4 2000/01/06 19:40:51;   expire 4 2000/01/06 19:40:51; } Even so, the date on the target node is still incorrect. ubuntu@sled204n0:/etc$ date Thu Jan 6 19:52:29 UTC 2000 The ntpdate defaults are the following (unchanged from MAAS defaults): ubuntu@sled204n0:/etc$ cat /etc/default/ntpdate # The settings in this file are used by the program ntpdate-debian, but not # by the upstream program ntpdate. # Set to "yes" to take the server list from /etc/ntp.conf, from package ntp, # so you only have to keep it in one place. NTPDATE_USE_NTP_CONF=yes # List of NTP servers to use (Separate multiple servers with spaces.) # Not used if NTPDATE_USE_NTP_CONF is yes. NTPSERVERS="ntp.ubuntu.com" # Additional options to pass to ntpdate NTPOPTIONS="" And the DHCP generated NTP server file is correct: ubuntu@sled204n0:/etc$ cat /var/lib/ntpdate/default.dhcp # NTP server entries received from DHCP server NTPSERVERS='172.31.22.1 172.31.23.1 172.31.20.104' The culprit seems to be in how ntpdate-debian is programmed. the logic ignores /var/lib/ntpdate/default.dhcp if /etc/default/ntpdate sets NTPDATE_USE_NTP_CONF=yes (the default). After examining the script further my recommendation would be for the /etc/dhcp/dhclient-exit-hooks.d/ntpdate to create the file /var/lib/ntp/ntp.conf.dhcp. By doing so ntpdate-debian will work transparently with /etc/defaults/ntpdate and NTP servers advertised by DHCPD. ------------------------------------------------------------------------- (contents of /var/log/maas/* is 125MB in size, will post data from there if requested) # dpkg -l '*maas*'|cat Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-==================================-======================================-============-========================================================================== ii maas 1.3+bzr1461+dfsg-0ubuntu2.2+tay.8 all Ubuntu MAAS Server ii maas-cli 1.3+bzr1461+dfsg-0ubuntu2.2+tay.8 all Ubuntu MAAS Client Tool ii maas-cluster-controller 1.3+bzr1461+dfsg-0ubuntu2.2+tay.8 all Ubuntu MAAS Cluster Controller ii maas-common 1.3+bzr1461+dfsg-0ubuntu2.2+tay.8 all Ubuntu MAAS Server un maas-dhcp <none> (no description available) un maas-dns <none> (no description available) ii maas-region-controller 1.3+bzr1461+dfsg-0ubuntu2.2+tay.8 all Ubuntu MAAS Server ii python-django-maas 1.3+bzr1461+dfsg-0ubuntu2.2+tay.8 all Ubuntu MAAS Server - (django files) ii python-maas-client 1.3+bzr1461+dfsg-0ubuntu2.2+tay.8 all Ubuntu MAAS API Client - (python files) ii python-maas-provisioningserver 1.3+bzr1461+dfsg-0ubuntu2.2+tay.8 all Ubuntu MAAS Server
2013-12-16 12:48:53 Robie Basak bug watch added http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=731594
2013-12-16 12:49:01 Robie Basak ntp (Ubuntu): importance High Medium
2014-06-24 21:32:19 James Troup bug added subscriber The Canonical Sysadmins
2014-06-24 21:57:55 Andreas Hasenack bug added subscriber Andreas Hasenack
2014-09-11 14:18:52 Chris J Arges nominated for series Ubuntu Trusty
2014-09-11 14:18:52 Chris J Arges bug task added ntp (Ubuntu Trusty)
2014-09-11 14:18:52 Chris J Arges bug task added isc-dhcp (Ubuntu Trusty)
2014-09-11 14:18:52 Chris J Arges nominated for series Ubuntu Precise
2014-09-11 14:18:52 Chris J Arges bug task added ntp (Ubuntu Precise)
2014-09-11 14:18:52 Chris J Arges bug task added isc-dhcp (Ubuntu Precise)
2014-09-11 14:59:49 Jorge Niedbalski description [Impact] MAAS-deployed systems *that do not have persistent RTCs* (unusual) have difficulty with time and authentication, generally making these nodes unusable. [Workaround] See comment #8. [Original Description] I have tried setting up NTP servers as DHCP options to MAAS nodes because I am behind a proxy here at work that cannot contact ntp.ubuntu.com. Here is the top of the dhcpd.conf file on on my MAAS head node, maas01: root@maas01:/etc/dhcp# less dhcpd.conf default-lease-time 600; max-lease-time 7200; subnet 192.168.0.0 netmask 255.255.0.0 {   option domain-name "mgmt";   option domain-name-servers 192.168.255.254;   option routers 192.168.255.254;   pool {     range 192.168.0.1 192.168.255.253;     deny unknown-clients;   } } subnet 10.255.0.0 netmask 255.255.0.0 {   option domain-name "maas";   option domain-name-servers 10.255.0.1;   option routers 10.255.0.1;   option ntp-servers 172.31.22.1, 172.31.23.1, 172.31.20.104;   next-server 10.255.0.1;   pool {     range 10.255.1.0 10.255.255.254;     deny unknown-clients;   } } I have also verified the parameter is being sent to a client’s DHCP lease: ubuntu@sled204n0:/var$ cat /var/lib/dhcp/dhclient.eth0.leases lease {   interface "eth0";   fixed-address 10.255.4.44;   option subnet-mask 255.255.0.0;   option routers 10.255.0.1;   option dhcp-lease-time 600;   option dhcp-message-type 5;   option domain-name-servers 10.255.0.1;   option dhcp-server-identifier 10.255.0.1;   option ntp-servers 172.31.22.1,172.31.23.1,172.31.20.104;   option domain-name "maas";   renew 4 2000/01/06 19:40:51;   rebind 4 2000/01/06 19:40:51;   expire 4 2000/01/06 19:40:51; } Even so, the date on the target node is still incorrect. ubuntu@sled204n0:/etc$ date Thu Jan 6 19:52:29 UTC 2000 The ntpdate defaults are the following (unchanged from MAAS defaults): ubuntu@sled204n0:/etc$ cat /etc/default/ntpdate # The settings in this file are used by the program ntpdate-debian, but not # by the upstream program ntpdate. # Set to "yes" to take the server list from /etc/ntp.conf, from package ntp, # so you only have to keep it in one place. NTPDATE_USE_NTP_CONF=yes # List of NTP servers to use (Separate multiple servers with spaces.) # Not used if NTPDATE_USE_NTP_CONF is yes. NTPSERVERS="ntp.ubuntu.com" # Additional options to pass to ntpdate NTPOPTIONS="" And the DHCP generated NTP server file is correct: ubuntu@sled204n0:/etc$ cat /var/lib/ntpdate/default.dhcp # NTP server entries received from DHCP server NTPSERVERS='172.31.22.1 172.31.23.1 172.31.20.104' The culprit seems to be in how ntpdate-debian is programmed. the logic ignores /var/lib/ntpdate/default.dhcp if /etc/default/ntpdate sets NTPDATE_USE_NTP_CONF=yes (the default). After examining the script further my recommendation would be for the /etc/dhcp/dhclient-exit-hooks.d/ntpdate to create the file /var/lib/ntp/ntp.conf.dhcp. By doing so ntpdate-debian will work transparently with /etc/defaults/ntpdate and NTP servers advertised by DHCPD. ------------------------------------------------------------------------- (contents of /var/log/maas/* is 125MB in size, will post data from there if requested) # dpkg -l '*maas*'|cat Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-==================================-======================================-============-========================================================================== ii maas 1.3+bzr1461+dfsg-0ubuntu2.2+tay.8 all Ubuntu MAAS Server ii maas-cli 1.3+bzr1461+dfsg-0ubuntu2.2+tay.8 all Ubuntu MAAS Client Tool ii maas-cluster-controller 1.3+bzr1461+dfsg-0ubuntu2.2+tay.8 all Ubuntu MAAS Cluster Controller ii maas-common 1.3+bzr1461+dfsg-0ubuntu2.2+tay.8 all Ubuntu MAAS Server un maas-dhcp <none> (no description available) un maas-dns <none> (no description available) ii maas-region-controller 1.3+bzr1461+dfsg-0ubuntu2.2+tay.8 all Ubuntu MAAS Server ii python-django-maas 1.3+bzr1461+dfsg-0ubuntu2.2+tay.8 all Ubuntu MAAS Server - (django files) ii python-maas-client 1.3+bzr1461+dfsg-0ubuntu2.2+tay.8 all Ubuntu MAAS API Client - (python files) ii python-maas-provisioningserver 1.3+bzr1461+dfsg-0ubuntu2.2+tay.8 all Ubuntu MAAS Server [Impact] MAAS-deployed systems *that do not have persistent RTCs* (unusual) have difficulty with time and authentication, generally making these nodes unusable. [Workaround] See comment #8. [Original Description] I have tried setting up NTP servers as DHCP options to MAAS nodes because I am behind a proxy here at work that cannot contact ntp.ubuntu.com. Here is the top of the dhcpd.conf file on on my MAAS head node, maas01: root@maas01:/etc/dhcp# less dhcpd.conf default-lease-time 600; max-lease-time 7200; subnet 192.168.0.0 netmask 255.255.0.0 {   option domain-name "mgmt";   option domain-name-servers 192.168.255.254;   option routers 192.168.255.254;   pool {     range 192.168.0.1 192.168.255.253;     deny unknown-clients;   } } subnet 10.255.0.0 netmask 255.255.0.0 {   option domain-name "maas";   option domain-name-servers 10.255.0.1;   option routers 10.255.0.1;   option ntp-servers 172.31.22.1, 172.31.23.1, 172.31.20.104;   next-server 10.255.0.1;   pool {     range 10.255.1.0 10.255.255.254;     deny unknown-clients;   } } I have also verified the parameter is being sent to a client’s DHCP lease: ubuntu@sled204n0:/var$ cat /var/lib/dhcp/dhclient.eth0.leases lease {   interface "eth0";   fixed-address 10.255.4.44;   option subnet-mask 255.255.0.0;   option routers 10.255.0.1;   option dhcp-lease-time 600;   option dhcp-message-type 5;   option domain-name-servers 10.255.0.1;   option dhcp-server-identifier 10.255.0.1;   option ntp-servers 172.31.22.1,172.31.23.1,172.31.20.104;   option domain-name "maas";   renew 4 2000/01/06 19:40:51;   rebind 4 2000/01/06 19:40:51;   expire 4 2000/01/06 19:40:51; } Even so, the date on the target node is still incorrect. ubuntu@sled204n0:/etc$ date Thu Jan 6 19:52:29 UTC 2000 The ntpdate defaults are the following (unchanged from MAAS defaults): ubuntu@sled204n0:/etc$ cat /etc/default/ntpdate # The settings in this file are used by the program ntpdate-debian, but not # by the upstream program ntpdate. # Set to "yes" to take the server list from /etc/ntp.conf, from package ntp, # so you only have to keep it in one place. NTPDATE_USE_NTP_CONF=yes # List of NTP servers to use (Separate multiple servers with spaces.) # Not used if NTPDATE_USE_NTP_CONF is yes. NTPSERVERS="ntp.ubuntu.com" # Additional options to pass to ntpdate NTPOPTIONS="" And the DHCP generated NTP server file is correct: ubuntu@sled204n0:/etc$ cat /var/lib/ntpdate/default.dhcp # NTP server entries received from DHCP server NTPSERVERS='172.31.22.1 172.31.23.1 172.31.20.104' The culprit seems to be in how ntpdate-debian is programmed. the logic ignores /var/lib/ntpdate/default.dhcp if /etc/default/ntpdate sets NTPDATE_USE_NTP_CONF=yes (the default). After examining the script further my recommendation would be for the /etc/dhcp/dhclient-exit-hooks.d/ntpdate to create the file /var/lib/ntp/ntp.conf.dhcp. By doing so ntpdate-debian will work transparently with /etc/defaults/ntpdate and NTP servers advertised by DHCPD. ------------------------------------------------------------------------- (contents of /var/log/maas/* is 125MB in size, will post data from there if requested) # dpkg -l '*maas*'|cat Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-==================================-======================================-============-========================================================================== ii maas 1.3+bzr1461+dfsg-0ubuntu2.2+tay.8 all Ubuntu MAAS Server ii maas-cli 1.3+bzr1461+dfsg-0ubuntu2.2+tay.8 all Ubuntu MAAS Client Tool ii maas-cluster-controller 1.3+bzr1461+dfsg-0ubuntu2.2+tay.8 all Ubuntu MAAS Cluster Controller ii maas-common 1.3+bzr1461+dfsg-0ubuntu2.2+tay.8 all Ubuntu MAAS Server un maas-dhcp <none> (no description available) un maas-dns <none> (no description available) ii maas-region-controller 1.3+bzr1461+dfsg-0ubuntu2.2+tay.8 all Ubuntu MAAS Server ii python-django-maas 1.3+bzr1461+dfsg-0ubuntu2.2+tay.8 all Ubuntu MAAS Server - (django files) ii python-maas-client 1.3+bzr1461+dfsg-0ubuntu2.2+tay.8 all Ubuntu MAAS API Client - (python files) ii python-maas-provisioningserver 1.3+bzr1461+dfsg-0ubuntu2.2+tay.8 all Ubuntu MAAS Server [Test Case]: 1) Configure a MAAS server to pass via DHCP the following options:  option ntp-servers your-ntp-server-address. 2) Boot a new MAAS node that do not have persistent RTC. 3) Check that the contents of /var/lib/ntpdate/default.dhcp exists after boot and has the correct ntp-servers value. 3) Check that the `date` is correct according to your DHCP defined ntp-servers. 4) If the date is correct according to your DHCP defined ntp-servers, the problem is fixed. Regression : None expected since if NTPDATE_USE_NTP_CONF is set to YES, and some of the default ntp.conf files is found that will be used.
2014-09-11 15:02:04 Jorge Niedbalski attachment added lp1257082_prefers_dhcp_ntp_servers_utopic.debdiff https://bugs.launchpad.net/maas/+bug/1257082/+attachment/4201541/+files/lp1257082_prefers_dhcp_ntp_servers_utopic.debdiff
2014-09-11 15:02:36 Jorge Niedbalski attachment added lp1257082_prefers_dhcp_ntp_servers_trusty.debdiff https://bugs.launchpad.net/maas/+bug/1257082/+attachment/4201542/+files/lp1257082_prefers_dhcp_ntp_servers_trusty.debdiff
2014-09-11 15:02:59 Jorge Niedbalski attachment added lp1257082_prefers_dhcp_ntp_servers_precise.debdiff https://bugs.launchpad.net/maas/+bug/1257082/+attachment/4201543/+files/lp1257082_prefers_dhcp_ntp_servers_precise.debdiff
2014-09-11 15:03:51 Jorge Niedbalski bug added subscriber Ubuntu Sponsors Team
2014-09-11 15:04:37 Jorge Niedbalski ntp (Ubuntu Precise): status New In Progress
2014-09-11 15:04:42 Jorge Niedbalski ntp (Ubuntu Trusty): status New In Progress
2014-09-12 12:24:55 Jorge Niedbalski bug added subscriber Jorge Niedbalski
2014-10-10 22:58:19 Jorge Niedbalski tags cts
2014-10-22 14:05:28 Bryan Quigley bug added subscriber Bryan Quigley
2014-10-22 15:37:57 Simon Déziel bug added subscriber Simon Déziel
2015-05-05 09:49:57 Iain Lane removed subscriber Ubuntu Sponsors Team
2016-03-21 21:14:07 mahmoh bug added subscriber M.Morana
2016-04-26 23:12:50 Paul Gear bug added subscriber Paul Gear
2016-09-20 15:22:33 Mathew Hodson bug watch removed http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=731594
2016-09-20 15:22:52 Mathew Hodson bug watch removed http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=617965
2016-09-20 15:24:40 Mathew Hodson marked as duplicate 427775