From: Dan Mick Date: Mon, 30 Jan 2017 21:25:57 +0000 (-0800) Subject: ntpdc is deprecated; use ntpq (in the ntp package everywhere) X-Git-Tag: 1.1.0~453^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1039%2Fhead;p=teuthology.git ntpdc is deprecated; use ntpq (in the ntp package everywhere) See https://www.eecis.udel.edu/~mills/ntp/html/ntpdc.html Signed-off-by: Dan Mick --- diff --git a/teuthology/task/clock.py b/teuthology/task/clock.py index 0af18495a..cf3fe1784 100644 --- a/teuthology/task/clock.py +++ b/teuthology/task/clock.py @@ -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', ], )