我已经正确配置了 3 个存储节点和 1 个控制节点(控制节点具有存储节点服务),以及正确配置的 iSCI 存储。但是,我注意到,为了在仪表板上查看 iSCI 监控,必须配置相关内容
ceph dashboard iscsi-gateway-add -i 1.conf images
conf 包含以下内容
http://admin: [email protected] :5588
http://admin: [email protected] :5588
http://admin: [email protected] :5588
运行成功后显示Success,但是之后出现了dashboard首页无法正常使用,dashboard中的监控ISCSI网关不可用等问题,命令行也出现了相关错误。
root@node1:~# ceph dashboard iscsi-gateway-list
Error EINVAL: Traceback (most recent call last):
File "/usr/share/ceph/mgr/mgr_module.py", line 1759, in _handle_command
return CLICommand.COMMANDS[cmd['prefix']].call(self, cmd, inbuf)
File "/usr/share/ceph/mgr/mgr_module.py", line 462, in call
return self.func(mgr, **kwargs)
File "/usr/share/ceph/mgr/dashboard/services/iscsi_cli.py", line 21, in list_iscsi_gateways
return 0, json.dumps(IscsiGatewaysConfig.get_gateways_config()), ''
File "/usr/share/ceph/mgr/dashboard/services/iscsi_config.py", line 104, in get_gateways_config
return cls._load_config_from_store()
File "/usr/share/ceph/mgr/dashboard/services/iscsi_config.py", line 47, in _load_config_from_store
cls.update_iscsi_config(config)
File "/usr/share/ceph/mgr/dashboard/services/iscsi_config.py", line 64, in update_iscsi_config
service_url=service_url).get_hostname()['data']
File "/usr/share/ceph/mgr/dashboard/services/iscsi_client.py", line 42, in instance
port = url.port
File "/lib64/python3.6/urllib/parse.py", line 181, in port
port = int(port, 10)
ValueError: invalid literal for int() with base 10: '5588http:'
我的要求是恢复正常状态并成功配置监控谢谢