我是 Ceph 存储新手,但准备学习。 四天以来我一直遇到这个问题。就是解决不了
我已按照以下步骤操作:https://docs.ceph.com/en/latest/man/8/ceph-authtool/
问题是我无法针对 ceph 集群进行身份验证
root@node3 ceph]# ceph auth import -i ceph.admin.keyring
2022-05-10T14:34:37.998-0700 7f0637fff700 -1 monclient(hunting): handle_auth_bad_method server allowed_methods [2] but i only support [2,1]
2022-05-10T14:34:37.998-0700 7f0636ffd700 -1 monclient(hunting): handle_auth_bad_method server allowed_methods [2] but i only support [2,1]
2022-05-10T14:34:40.998-0700 7f0636ffd700 -1 monclient(hunting): handle_auth_bad_method server allowed_methods [2] but i only support [2,1]
2022-05-10T14:34:40.998-0700 7f0637fff700 -1 monclient(hunting): handle_auth_bad_method server allowed_methods [2] but i only support [2,1]
2022-05-10T14:34:43.998-0700 7f0637fff700 -1 monclient(hunting): handle_auth_bad_method server allowed_methods [2] but i only support [2,1]
2022-05-10T14:34:43.998-0700 7f06377fe700 -1 monclient(hunting): handle_auth_bad_method server allowed_methods [2] but i only support [2,1]
2022-05-10T14:34:46.998-0700 7f0637fff700 -1 monclient(hunting): handle_auth_bad_method server allowed_methods [2] but i only support [2,1]
2022-05-10T14:34:46.998-0700 7f06377fe700 -1 monclient(hunting): handle_auth_bad_method server allowed_methods [2] but i only support [2,1]
我的目录
[root@node3 ceph]# ls -ls
total 40
0 -rw-r--r--. 1 root root 0 May 5 00:15 admin.secret
0 drwxr-xr-x. 2 root root 6 May 4 00:36 cephadm
4 -rw-r--r--. 1 root root 144 May 10 14:33 ceph.admin.keyring
4 -rw-------. 1 ceph ceph 131 Aug 23 2021 ceph.client.crash.keyring
4 -rw-r--r--. 1 ceph ceph 958 May 10 12:39 ceph.conf
4 -rw-r--r--. 1 root root 460 May 3 12:21 ceph.conf.ak
4 -rw-rw-r--. 1 ceph ceph 1302 Aug 23 2021 ceph-dashboard.crt
4 -rw-------. 1 ceph ceph 1704 Aug 23 2021 ceph-dashboard.key
4 -rw-------. 1 root root 41 May 5 13:30 ceph.key
4 -rw-r--r--. 1 root root 145 May 10 14:27 keyring
4 -rw-------. 1 root root 56 May 2 11:31 keyring.mds.3
4 -rw-r--r--. 1 root root 92 Aug 5 2021 rbdmap
[root@node3 ceph]#
确实需要帮助
我有完全相同的错误
# microceph.ceph -n client.vasya -s
handle_auth_bad_method server allowed_methods [2] but i only support [2,1]
问题是我错误地命名了密钥环文件, 那就是:
wrong file name => ceph.client.vasya.keyring.conf
我重命名了文件:
correct file name => ceph.client.vasya.keyring
问题解决了。
为了确保 ceph 找到密钥环文件,您可以在命令行上指定它
# microceph.ceph -n client.vasya --keyring=/var/snap/microceph/current/conf/ceph.client.vasya.keyring -s
我只是通过在命令行中指定密钥环解决了相同的错误:
ceph auth get-key client.admin --keyring=ceph.client.admin.keyring
.keyring 文件位于 /etc/ceph 目录中,我正在 /etc/ceph 中执行命令,但它仍然需要 keyring 关键字。