Ceph: key for mgr.HOST exists but cap mds does not match

Somewhere along the lines, maybe during the upgrade to Luminous one of my larger Ceph clusters got borked up. Everything was running fine, but my two dedicated MDSes which also act as MONs weren’t running the MGR daemon. Easy enough to fix with ceph-deploy:

$ ceph-deploy mgr create HOST
.....
[HOST][INFO ] Running command: sudo ceph --cluster ceph --name client.bootstrap-mgr --keyring /var/lib/ceph/bootstrap-mgr/ceph.keyring auth get-or-create mgr.HOST mon allow profile mgr osd allow * mds allow * -o /var/lib/ceph/mgr/ceph-HOST/keyring
[HOST][ERROR ] Error EINVAL: key for mgr.HOST exists but cap mds does not match
[HOST][ERROR ] exit code from command was: 22
[ceph_deploy.mgr][ERROR ] could not create mgr
[ceph_deploy][ERROR ] GenericError: Failed to create 1 MGRs

Continue reading “Ceph: key for mgr.HOST exists but cap mds does not match”