ceph - 无法为 ceph 仪表板创建用户
问题描述
我正在尝试为具有管理员角色的 ceph 仪表板创建用户。版本是 Nautilus 14.2.19 并使用手动安装进行部署。
我已经安装了仪表板模块,安装了所有依赖项并启用了它。我的仪表板可以从监视器 ip 和默认端口 8443 访问。
当我运行 te 命令时:
ceph dashboard ac-user-create <user> <pw> administrator
我收到以下错误:
Please specify the file containing the password/secret with "-i" option.
在挖掘了这方面的信息后,它说必须有一个 bcrypt 格式的文件。是否有为此创建的默认文件?或者,如果需要创建一个,我该怎么做?
解决方案
没关系,您似乎只需要创建一个文本文件并在其中写入您的密码。
当您像这样运行命令时:
ceph dashboard ac-user-create <user> -i /file/location administrator
它创建用户并以加密格式应用密码。
推荐阅读
- c++ - 如何使用 std::enable_if_t 进行完美转发?
- android - 将具有较少字段的新 POJO 类映射到现有 Room 表
- discord.py - Discord python:如何获得可以访问和/或写入通道的所有角色?
- python - 将视图连接到 Django 中的我的模型
- reactjs - 将金额从按钮向下传递到“支付”组件
- docker - docker: jwilder/nginx-proxy 后面的 seafile
- java - 与高斯模糊内核的卷积有效,其他内核无效
- java - 如何比较 Java 中 switch 语句中的 int 变量?
- python - 在不知道第二个坐标的情况下获取直线上的点/像素
- javascript - Axios 请求待处理,但在邮递员上工作