我是新的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