]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Fixed 'clock:' on Centos
authorWarren Usui <warren.usui@inktank.com>
Fri, 15 Mar 2013 01:06:17 +0000 (18:06 -0700)
committerSage Weil <sage@inktank.com>
Fri, 15 Mar 2013 17:15:43 +0000 (10:15 -0700)
ntpdc commands were formerly returning -127 on CentOS

Signed-off-by: Warren Usui <warren.usui@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
teuthology/task/clock.py

index 5c763a8f42ad005759bb40a1153c59ced9909262..15ebf1bdb6c59291a9c1906b00cba20e7af7447d 100644 (file)
@@ -45,6 +45,7 @@ def task(ctx, config):
                 'sudo',
                 'service', 'ntp', 'start',
                 run.Raw(';'),
+                'PATH=/usr/bin:/usr/sbin',
                 'ntpdc', '-p',
                 ],
             logger=log.getChild(rem.name),
@@ -58,6 +59,7 @@ def task(ctx, config):
         for rem in ctx.cluster.remotes.iterkeys():
             rem.run(
                 args=[
+                    'PATH=/usr/bin:/usr/sbin',
                     'ntpdc', '-p',
                     ],
                 logger=log.getChild(rem.name),
@@ -70,6 +72,7 @@ def check(ctx, config):
     for rem in ctx.cluster.remotes.iterkeys():
         rem.run(
             args=[
+                'PATH=/usr/bin:/usr/sbin',
                 'ntpdc', '-p',
                 ],
             logger=log.getChild(rem.name),
@@ -83,6 +86,7 @@ def check(ctx, config):
         for rem in ctx.cluster.remotes.iterkeys():
             rem.run(
                 args=[
+                    'PATH=/usr/bin:/usr/sbin',
                     'ntpdc', '-p',
                     ],
                 logger=log.getChild(rem.name),