]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
testnode/tasks/ntp: remove '/etc/network/if-up.d/ntpdate' on Xenial 305/head
authorDan Mick <dan.mick@redhat.com>
Mon, 6 Feb 2017 22:24:48 +0000 (14:24 -0800)
committerDan Mick <dan.mick@redhat.com>
Mon, 6 Feb 2017 23:01:47 +0000 (15:01 -0800)
It's buggy (see comment in code) and we don't need it, because
teuthology does what it would do anyway.  Supposed to be fixed in
a later version of the Debian package which is in Yakkety.

Fixes: http://tracker.ceph.com/issues/18837
Signed-off-by: Dan Mick <dan.mick@redhat.com>
roles/testnode/tasks/ntp.yml

index c5cd2b79d3e0cbc2103be9bdf02bfae2256c4d91..e0cf84dcf77e2a268e4d7adcb1a008c0bce10734 100644 (file)
   tags:
     - packages
 
+# See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=806556.
+# ifdown/ifup would often leave ntpd not running on xenial.
+# We do our own ntpdate dance in teuthology's clock task.
+- name: Remove racy /etc/network/if-up.d/ntpdate on xenial
+  file:
+    name: /etc/network/if-up.d/ntpdate
+    state: absent
+  when: ansible_distribution == "Ubuntu" and
+        ansible_distribution_major_version == '16'
+
 - name: Create the ntp.conf file.
   template:
     src: ntp.conf