mirror of
https://github.com/ceph/ceph
synced 2025-04-01 23:02:17 +00:00
ceph-crash: ping cluster with key on startup
This is mostly pointless, *except* that after a key rotation it ensures that the new key is used immediately (and the pending_key is committed by the mon). Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
parent
772e4265bd
commit
84c4562f7b
@ -101,6 +101,10 @@ def main():
|
||||
log.error("directory %s does not exist; please create" % postdir)
|
||||
time.sleep(30)
|
||||
|
||||
log.info("pinging cluster to exercise our key")
|
||||
pr = subprocess.Popen(args=['timeout', '30', 'ceph', '-s'])
|
||||
pr.wait()
|
||||
|
||||
log.info("monitoring path %s, delay %ds" % (args.path, args.delay * 60.0))
|
||||
while True:
|
||||
scrape_path(args.path)
|
||||
|
Loading…
Reference in New Issue
Block a user