]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tasks/clock: tolerate ntp daemon
authorSage Weil <sage@newdream.net>
Wed, 22 Jun 2011 21:14:49 +0000 (14:14 -0700)
committerSage Weil <sage@newdream.net>
Tue, 28 Jun 2011 21:18:08 +0000 (14:18 -0700)
teuthology/task/clock.py

index e7df8b6e34077c71ade215d2ff7da3d7d3bd6278..e9e3e2e27f102e0a306778446ab0b622b25a4794 100644 (file)
@@ -34,11 +34,19 @@ def task(ctx, config):
 
     ctx.cluster.run(
         args=[
+            'sudo',
+            'service', 'ntp', 'stop',
+            run.Raw(';'),
             'sudo',
             'ntpdate',
             'clock1.dreamhost.com',
             'clock2.dreamhost.com',
             'clock3.dreamhost.com',
+            run.Raw(';'),
+            'sudo',
+            'service', 'ntp', 'start',
+            run.Raw('||'),
+            'true'
             ],
         )