Trust NTP to actually sync things. But check the clock skew so we can
verify it if something seems off.
Signed-off-by: Sage Weil <sage@inktank.com>
machine_type: $mtype
tasks:
- chef:
-- clock:
overrides:
workunit:
sha1: $CEPH_SHA1
],
logger=log.getChild(rem.name),
)
+
+
+@contextlib.contextmanager
+def check(ctx, config):
+ log.info('Checking initial clock skew...')
+ for rem in ctx.cluster.remotes.iterkeys():
+ rem.run(
+ args=[
+ 'ntpdc', '-p',
+ ],
+ logger=log.getChild(rem.name),
+ )
+
+ try:
+ yield
+
+ finally:
+ log.info('Checking final clock skew...')
+ for rem in ctx.cluster.remotes.iterkeys():
+ rem.run(
+ args=[
+ 'ntpdc', '-p',
+ ],
+ logger=log.getChild(rem.name),
+ )