释放双眼,带上耳机,听听看~!
ceph dashboard创建密码时提示如下
[root@ceph-03 ~]# ceph dashboard ac-user-create abcdocker admin administrator
Error EINVAL: Please specify the file containing the password/secret with "-i" option.
最新的ceph dashboard不支持直接在命令行里面创建用户的密码,所以需要.先创建一个包含用户密码的文件
解决方法
# 创建密码文本
cat >/opt/secretkey<<EOF
123123
EOF
# 使用该文本作为密钥
ceph dashboard ac-user-create admin administrator -i /opt/secretkey