1、出现的问题
[root@rabbitmq1 ceph-cluster]# ceph mgr module enable dashboard
Error ENOENT: all mgr daemons do not support module 'dashboard', pass --force to force enablement
解决办法:
所有mgr
节点都需要安装,不然在启用dashboard模块的时候会报错:
2、部署dashboard
dashboard
作为mgr
的模块存在,需要安装一下模块的软件包
yum install ceph-mgr-dashboard -y
启用dashboard
# ceph mgr module enable dashboard
禁用ssl加密
# ceph config set mgr mgr/dashboard/ssl false
重启ceph-dashboard
# ceph mgr module disable dashboard
# ceph mgr module enable dashboard
配置IP和端口
# ceph config set mgr mgr/dashboard/server_addr 192.168.65.129
# ceph config set mgr mgr/dashboard/server_port 9009
创建dashboard用户
[root@rabbitmq1 ceph-cluster]# ceph dashboard set-login-credentials admin 123456 ## #以前版本创建dashboard账号方式,新版本有所改变;
Invalid command: unused arguments: [u'123456']
dashboard set-login-credentials <username> : Set the login credentials. Password read from -i <file>
Error EINVAL: invalid command
[root@rabbitmq1 ceph-cluster]# echo "123456" > pass.txt
[root@rabbitmq1 ceph-cluster]# ceph dashboard set-login-credentials admin -i pass.txt
******************************************************************
*** WARNING: this command is deprecated. ***
*** Please use the ac-user-* related commands to manage users. ***
******************************************************************
Username and password updated
查看登录地址
[root@rabbitmq1 ~]# ceph mgr services
{
"dashboard": "http://rabbitmq1:9009/"
}
登录网页
http://192.168.65.129:8080/
查看配置
[root@rabbitmq1 ~]# ceph config dump
WHO MASK LEVEL OPTION VALUE RO
mon advanced auth_allow_insecure_global_id_reclaim false
mon advanced mon_max_pg_per_osd 500
mgr advanced mgr/dashboard//server_addr 192.168.65.129 *
mgr advanced mgr/dashboard//server_port 9009 *
mgr advanced mgr/dashboard/RGW_API_ACCESS_KEY KQK8MIE8MR3QUPHETJ0D *
mgr advanced mgr/dashboard/RGW_API_HOST 192.168.65.129 *
mgr advanced mgr/dashboard/RGW_API_PORT 7480 *
mgr advanced mgr/dashboard/RGW_API_SECRET_KEY Fa9mQbbJquSukUlaco3GxmmuUQsDHNbQH5mIUZFS *
mgr advanced mgr/dashboard/ceph-mgr1/server_addr 192.168.65.129 *
mgr advanced mgr/dashboard/ceph-mgr1/server_port 9009 *
mgr advanced mgr/dashboard/ceph-rabbitmq1/server_addr 192.168.65.129 *
mgr advanced mgr/dashboard/ceph-rabbitmq1/server_port 9009 *
mgr advanced mgr/dashboard/rabbitmq1/server_addr 192.168.65.129 *
mgr advanced mgr/dashboard/rabbitmq1/server_port 9009 *
mgr advanced mgr/dashboard/ssl false *