Hi,
you could try to set config keys, but I'm not sure if this will work.
What do you get if you run this:
ceph config-key get mgr/dashboard/_iscsi_config
obtained 'mgr/dashboard/_iscsi_config'
{"gateways": {"ses7-host1.fqdn": {"service_url":
"http://<user>:<PW>@<IP>:5000"}, "ses7-host2.fqdn": {"service_url":
"http://<user>:<PW>@<IP>:5000"}}}
Zitat von Stanislav Kopp <staskopp@xxxxxxxxx>:
Hello,
I was trying to add iscsi-gateway to dashboard, but did it with wrong
configuration format, and now most of dashboard throwing 500 internal
error. This is the exception if try to remove or list "iscis-gateways"
ceph01-dev:/etc/iscsi# ceph dashboard iscsi-gateway-list
Error EINVAL: Traceback (most recent call last):
File "/usr/share/ceph/mgr/mgr_module.py", line 1214, in _handle_command
return CLICommand.COMMANDS[cmd['prefix']].call(self, cmd, inbuf)
File "/usr/share/ceph/mgr/mgr_module.py", line 320, in call
return self.func(mgr, **kwargs)
File "/usr/share/ceph/mgr/dashboard/services/iscsi_cli.py", line 17, in
list_iscsi_gateways
return 0, json.dumps(IscsiGatewaysConfig.get_gateways_config()), ''
File "/usr/share/ceph/mgr/dashboard/services/iscsi_config.py", line 105,
in get_gateways_config
return cls._load_config_from_store()
File "/usr/share/ceph/mgr/dashboard/services/iscsi_config.py", line 48,
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
new_gateway_name = IscsiClient.instance(
File "/usr/share/ceph/mgr/dashboard/services/iscsi_client.py", line 44,
in instance
port = url.port
File "/usr/lib/python3.8/urllib/parse.py", line 177, in port
raise ValueError(message) from None
ValueError: Port could not be cast to integer value as '5001http:'
Is it possible to somehow reset dashboard configuration or change values
manually/directly?
Ceph version: 15.2.14
best,
Stan
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx