[Bug 1758775] Re: DHCP-received NTP servers override the configuration of the NTP charm

2020-01-06 Thread Haw Loeung
** Changed in: ntp-charm
 Assignee: (unassigned) => Haw Loeung (hloeung)

** Changed in: ntp-charm
   Status: Triaged => In Progress

** No longer affects: ntp (Ubuntu)

** Merge proposal linked:
   https://code.launchpad.net/~hloeung/ntp-charm/+git/ntp-charm/+merge/377213

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1758775

Title:
  DHCP-received NTP servers override the configuration of the NTP charm

To manage notifications about this bug go to:
https://bugs.launchpad.net/ntp-charm/+bug/1758775/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1758775] Re: DHCP-received NTP servers override the configuration of the NTP charm

2019-10-27 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: ntp (Ubuntu)
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1758775

Title:
  DHCP-received NTP servers override the configuration of the NTP charm

To manage notifications about this bug go to:
https://bugs.launchpad.net/ntp-charm/+bug/1758775/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1758775] Re: DHCP-received NTP servers override the configuration of the NTP charm

2019-10-27 Thread Haw Loeung
Even with removing 'ntp-servers' from /etc/dhcp/dhclient.conf,
/var/lib/ntp/ntp.conf.dhcp is written out. Steps to reproduce:

Current:

| ubuntu@juju-dca1e3-12:~$ ls -la /var/lib/ntp/ntp.conf.dhcp
| -rw-r--r-- 1 ntp ntp 2804 Feb 23  2018 /var/lib/ntp/ntp.conf.dhcp

Update removing 'ntp-servers':

| ubuntu@juju-dca1e3-12:~$ sudo vi /etc/dhcp/dhclient.conf
| (edit edit edit)

Restart networking:

| ubuntu@juju-dca1e3-12:~$ sudo service networking restart

Confirm dhclient restarted:

| ubuntu@juju-dca1e3-12:~$ ps afxuww | grep dhcl
| root  2864  0.0  0.0  16132   928 ?Ss   04:41   0:00 
/sbin/dhclient -1 -v -pf /run/dhclient.ens4.pid -lf 
/var/lib/dhcp/dhclient.ens4.leases -I -df /var/lib/dhcp/dhclient6.ens4.leases 
ens4

Check timestamp / date:

| ubuntu@juju-dca1e3-12:~$ ls -la /var/lib/ntp/ntp.conf.dhcp
| -rw-r--r-- 1 root root 2804 Oct 28 04:41 /var/lib/ntp/ntp.conf.dhcp

It's actually because ntp_servers_setup_add() in /etc/dhcp/dhclient-
exit-hooks.d/ntp writes that out no matter what.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1758775

Title:
  DHCP-received NTP servers override the configuration of the NTP charm

To manage notifications about this bug go to:
https://bugs.launchpad.net/ntp-charm/+bug/1758775/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1758775] Re: DHCP-received NTP servers override the configuration of the NTP charm

2019-08-02 Thread Paul Gear via ubuntu-bugs
I don't think this is really the same problem.  The init script for NTP
is designed to honour the settings provided by the DHCP client.  In most
cases, this is expected, but when the charm is configured, users expect
the charm to manage the local settings for them without needing to
override the DHCP client.  I think the preferred solution would be for
the charm to disable the DHCP client from modifying the NTP
configuration by removing "ntp-servers" from the "request" entry in
/etc/dhcp/dhclient.conf.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1758775

Title:
  DHCP-received NTP servers override the configuration of the NTP charm

To manage notifications about this bug go to:
https://bugs.launchpad.net/ntp-charm/+bug/1758775/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1758775] Re: DHCP-received NTP servers override the configuration of the NTP charm

2019-08-01 Thread Haw Loeung
This is actually LP: #1823098. I don't think this is a charm problem, I
mean, it could touch ntp.conf on update-status hook but that's ugly.

** Also affects: ntp (Ubuntu)
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1758775

Title:
  DHCP-received NTP servers override the configuration of the NTP charm

To manage notifications about this bug go to:
https://bugs.launchpad.net/ntp-charm/+bug/1758775/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs