def get_bootstrap_mds_key(cluster):
    """
    Read the bootstrap-mds key for `cluster`.
    """
    path = '{cluster}.bootstrap-mds.keyring'.format(cluster=cluster)
    try:
        with file(path, 'rb') as f:
            return f.read()
    except __HOLE__:
        raise RuntimeError('bootstrap-mds keyring not found; run \'gatherkeys\'')
dataset/ETHPy150Open ceph/ceph-deploy/ceph_deploy/mds.py/get_bootstrap_mds_key