From c7b8b8afc710c41ce16af53ff79ade41d61cc5f9 Mon Sep 17 00:00:00 2001 From: Dan Mick Date: Mon, 30 Jan 2017 13:25:57 -0800 Subject: [PATCH] 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 --- teuthology/task/clock.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/teuthology/task/clock.py b/teuthology/task/clock.py index 0af18495a4..cf3fe1784d 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', ], ) -- 2.39.5