ERROR: missing keyring, cannot use cephx for authentication

[talen@ceph_admin ~]$ ceph health

2015-09-14 15:11:55.503854 7fdc2297f700 -1 monclient(hunting): ERROR: missing keyring, cannot use cephx for authentication

2015-09-14 15:11:55.503876 7fdc2297f700  0 librados: client.admin initialization error (2) No such file or directory

Error connecting to cluster: ObjectNotFound

管理KEY权限问题,普通用户无法读取导致无法进行cephx认证

[talen@ceph_admin ~]$ sudo chmod +r /etc/ceph/ceph.client.admin.keyring

[talen@ceph_admin ~]$ ceph health

HEALTH_WARN 64 pgs stale; 64 pgs stuck stale

[talen@ceph_admin ~]$ ceph -w

    cluster f35a65ad-1a6a-4e8d-8f7e-cb5f113c0a02

     health HEALTH_WARN

            64 pgs stale

            64 pgs stuck stale

     monmap e1: 1 mons at {ceph_monitor=10.0.2.33:6789/0}

            election epoch 1, quorum 0 ceph_monitor

     osdmap e47: 7 osds: 2 up, 2 in

      pgmap v1677: 64 pgs, 1 pools, 0 bytes data, 0 objects

            10305 MB used, 6056 MB / 16362 MB avail

                  64 stale+active+clean

2015-09-14 15:11:44.150240 mon.0 [INF] pgmap v1677: 64 pgs: 64 stale+active+clean; 0 bytes data, 10305 MB used, 6056 MB / 16362 MB avail

点赞