entrypoint='/usr/bin/ceph-authtool',
args=['--gen-print-key'],
).run().strip()
- crash_key = CephContainer(
- image=args.image,
- entrypoint='/usr/bin/ceph-authtool',
- args=['--gen-print-key'],
- ).run().strip()
keyring = ('[mon.]\n'
'\tkey = %s\n'
'\tcaps mon = profile mgr\n'
'\tcaps mds = allow *\n'
'\tcaps osd = allow *\n'
- '[client.crash.%s]\n'
- '\tkey = %s\n'
- '\tcaps mon = profile crash\n'
- '\tcaps mgr = profile crash\n'
- % (mon_key, admin_key, mgr_id, mgr_key, hostname, crash_key))
+ % (mon_key, admin_key, mgr_id, mgr_key))
# tmp keyring file
tmp_bootstrap_keyring = write_tmp(keyring, uid, gid)