首页 > 其他分享 >创建dashboard用户时报错:Error EINVAL: Please specify the file containing the password/secret with "-i&

创建dashboard用户时报错:Error EINVAL: Please specify the file containing the password/secret with "-i&

时间:2023-02-24 15:56:35浏览次数:41  
标签:containing option admin Please ceph dashboard password root

创建 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!

标签:containing,option,admin,Please,ceph,dashboard,password,root
From: https://www.cnblogs.com/itsfei/p/17151768.html

相关文章