** Description changed:

- cloud-init: 0.7.8-49-g9e904bb-0ubuntu1~16.04.1
+ === Begin SRU Template ===
+ [Impact]
+ Existing security permissions on /etc/ssh/sshd_config file not honored.
  
- Expected NTP server address is written in /etc/ntp.conf by cloud-init through 
vendor-data. However, `ntpq -p` shows the default ntp pools, not my local NTP 
server written in /etc/ntp.conf.
- It looks like cloud-init needs to write /etc/ntp.conf before installing ntp 
package, or restart ntp after writing /etc/ntp.conf.
+ [Test Case]
+ if [ ! -f lxc-proposed-snapshot ]; then
+   wget 
https://git.launchpad.net/~smoser/cloud-init/+git/sru-info/plain/bin/lxc-proposed-snapshot
+   chmod 755 lxc-proposed-snapshot
+ fi
+ 
+ cat << EOF > config.yaml
+ #cloud-config
+ ntp:
+   pools: [1.ntp.mypool]
+   servers: [my.server.nonpool]
+ EOF
+ 
+ for release in xenial yaketty zesty; do
+         ref=$release-proposed;
+         echo "$release START --------------";
+         ./lxc-proposed-snapshot --proposed --install ntp --publish $release 
$ref;
+         lxc init $ref test-$release;
+         lxc config set test-$release user.user-data - < config.yaml
+         lxc start test-$release;
+         sleep 10
+         # Should not see [0-3].ubuntu.pool.n
+         lxc exec test-$release -- ntpq -p
+         echo "$release DONE --------------";
+ done
+ 
+ 
+ [Regression Potential]
+ Minimal ntp service confguration could be stale if this breaks anything.
+ It is minimal regression potential as the fix only reorders the creation of 
/etc/ntp.conf prior to the package intall and adds a call to service ntp 
restart.
+ 
+ [Other Info]
+ 
+ === End SRU Template ===

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

Title:
  ntp not using expected servers

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1645644/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to