]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
ntpdc is deprecated; use ntpq (in the ntp package everywhere) 1039/head
authorDan Mick <dan.mick@redhat.com>
Mon, 30 Jan 2017 21:25:57 +0000 (13:25 -0800)
committerDan Mick <dan.mick@redhat.com>
Fri, 3 Mar 2017 21:26:07 +0000 (13:26 -0800)
See https://www.eecis.udel.edu/~mills/ntp/html/ntpdc.html

Signed-off-by: Dan Mick <dan.mick@redhat.com>
teuthology/task/clock.py

index 0af18495a4e7623f4474de2f8de0b9232bd19035..cf3fe1784d98366d86f8dfbf639375d1873b0733 100644 (file)
@@ -55,7 +55,7 @@ def task(ctx, config):
             'sudo', 'service', 'ntpd', 'start',
             run.Raw(';'),
             'PATH=/usr/bin:/usr/sbin',
-            'ntpdc', '-p',
+            'ntpq', '-p',
         ])
         rem.run(args=args)
 
@@ -68,7 +68,7 @@ def task(ctx, config):
             rem.run(
                 args=[
                     'PATH=/usr/bin:/usr/sbin',
-                    'ntpdc', '-p',
+                    'ntpq', '-p',
                     ],
                 )
 
@@ -76,7 +76,7 @@ def task(ctx, config):
 @contextlib.contextmanager
 def check(ctx, config):
     """
-    Run ntpdc at the start and the end of the task.
+    Run ntpq at the start and the end of the task.
 
     :param ctx: Context
     :param config: Configuration
@@ -86,7 +86,7 @@ def check(ctx, config):
         rem.run(
             args=[
                 'PATH=/usr/bin:/usr/sbin',
-                'ntpdc', '-p',
+                'ntpq', '-p',
                 ],
             )
 
@@ -99,6 +99,6 @@ def check(ctx, config):
             rem.run(
                 args=[
                     'PATH=/usr/bin:/usr/sbin',
-                    'ntpdc', '-p',
+                    'ntpq', '-p',
                     ],
                 )