nuke: ignore ntpdate errors

We keep seeing a race between ntpd startup and our stop + ntpdate + start
sequence.  Ignore errors here.
This commit is contained in:
Sage Weil 2012-04-23 09:21:02 -07:00
parent 6cf876733a
commit a11b69fd4c

View File

@ -218,6 +218,8 @@ def synch_clocks(remotes, log):
'sudo', 'hwclock', '--systohc', '--utc',
run.Raw('&&'),
'sudo', 'service', 'ntp', 'start',
run.Raw('||'),
'true', # ignore errors; we may be racing with ntpd startup
],
wait=False,
)