找回密码
 注册
查看: 2169|回复: 1

ceph 添加用户时报错Error EINVAL: Please specify the file containing the password/secret

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2021-12-5 20:30:12 | 显示全部楼层 |阅读模式
ceph dashboard ac-user-create admin admin administrator4 |, i9 C- W: O+ v+ t7 E4 E. p' C& a
Error EINVAL: Please specify the file containing the password/secret with "-i" option.
( E% W, M# i# r+ ]  w
7 Y) g% U- Q2 r) Q1 }$ n解决办法:
- n' @# I) t6 \创建一个文件,并把密码写入其中:
- ?% P. d3 m; N vim /etc/ceph/dashboard_passwd.txt" r+ B3 |6 W: D2 E. y" [1 a  C" R- R
随后执行:6 h5 S. R; n, {
ceph dashboard ac-user-create admin  -i /etc/ceph/dashboard_passwd.txt
* ]9 x" a6 e- F7 A{"username": "admin", "lastUpdate": 1638735877, "name": null, "roles": [], "password": "$2b$12$JC1U7YCcpH4LurmjeL6Vfe8LFzXgCpDn0aEZJgw6ASVuKmpENT136", "email": null}6 F% C- t) g* j+ G

5 e, y' m$ t) o$ K! x即可完成创建用户和密码4 t$ [% t. i1 {2 E  J

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2021-12-5 21:20:08 | 显示全部楼层
dashboard 安装
5 g! t0 e3 f  H; Z* F2 v8 `1. yum install ceph-mgr-dashboard% r( f: Y8 {# r
2. ceph mgr module enable dashboard! y: \( h$ h( i5 T" ~2 s8 W
3. 创建证书
8 A' ~, Z" z; E2 x7 K3 M; eceph dashboard create-self-signed-cert; |% [+ l% O" d# ^' B& s
4. 创建用户名密码; [% y* j$ x7 q; G: |% F
ceph dashboard set-login-credentials admin admin
6 P6 b5 E- j) ^5 ]9 a5.但是会报错 Error EINVAL: Please specify the file containing the password/secret with "-i" option.7 x! I/ F' {" `% }  P0 O) O, S
把密码写入到 /etc/ceph/dashboard_passwd.txt,名字随便写
+ z5 C& x' ?# h6. 访问dashbord1 I- y- @1 `3 H7 t" i: B
ceph mgr services1 @$ \0 A8 S' V! A1 s
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 00:02 , Processed in 0.017588 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表