Running the ceph status command to exercise the key did not add the
client name to the ceph command therefore failing to authenticate to the
cluster on daemon startup.
Fixes: https://tracker.ceph.com/issues/64102
Signed-off-by: Raimund Sacherer <rsachere@redhat.com>
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()
+ for n in auth_names:
+ log.info("pinging cluster to exercise our key, trying key {}.".format(n))
+ pr = subprocess.Popen(args=['timeout', '30', 'ceph', '-s', '-n', n])
+ pr.wait()
log.info("monitoring path %s, delay %ds" % (args.path, args.delay * 60.0))
while True: