def forgetkeys(args):
    import os
    for f in [
        'mon',
        'client.admin',
        'bootstrap-osd',
        'bootstrap-mds',
        'bootstrap-rgw',
        ]:
        try:
            os.unlink('{cluster}.{what}.keyring'.format(
                    cluster=args.cluster,
                    what=f,
                    ))
        except __HOLE__, e:
            if e.errno == errno.ENOENT:
                pass
            else:
                raise
dataset/ETHPy150Open ceph/ceph-deploy/ceph_deploy/forgetkeys.py/forgetkeys