创建 dashboard 的用户的时候出现了报错
[root@ceph ceph]# ceph dashboard ac-user-create admin admin administrator
Error EINVAL: Please specify the file containing the password/secret with "-i" option.
看起来是创建方式不太正确,看下ceph版本
[root@ceph ceph]# ceph -v
ceph version 14.2.22 (ca74598065096e6fcbd8433c8779a2be0c889351) nautilus (stable)
原因:新版本ceph创建用户命令行里不允许直接输密码
解决方式:将密码写入一个文件,前面加 -i
[root@ceph ceph]# echo "admin" > ~/password.txt
[root@ceph ceph]# ceph dashboard ac-user-create admin -i ~/password.txt administrator
{"username": "admin", "lastUpdate": 1677224726, "name": null, "roles": ["administrator"], "password": "$2b$12$yQQ6ieMfbWzUQfU9XTdYEOAKwtLuksJimV5I6MTLGBeWE3mSiDLKi", "email": null}
- over!