Hi All
Does anyone know how to manually clear the Iscsi gateway list?
I tried to used the ceph dashboard iscsi-gateway-add command to add a missing iscsi gateway. I think I had a space in the url and a corrupt entry was saved. Now i cant remove, add or even list Iscsi gateways. Also in the dashboard I now has error 500 - internal server error, on pages that have any iscsi info on them.
ceph dashboard iscsi-gateway-list
Error EINVAL: Traceback (most recent call last):
File "/usr/share/ceph/mgr/mgr_module.py", line 1811, in _handle_command
return CLICommand.COMMANDS[cmd['prefix']].call(self, cmd, inbuf)
File "/usr/share/ceph/mgr/mgr_module.py", line 474, 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: '5000 host1'
ceph dashboard iscsi-gateway-rm host1
Error EINVAL: Traceback (most recent call last):
File "/usr/share/ceph/mgr/mgr_module.py", line 1811, in _handle_command
return CLICommand.COMMANDS[cmd['prefix']].call(self, cmd, inbuf)
File "/usr/share/ceph/mgr/mgr_module.py", line 474, in call
return self.func(mgr, **kwargs)
File "/usr/share/ceph/mgr/dashboard/services/iscsi_cli.py", line 53, in remove_iscsi_gateway
IscsiGatewaysConfig.remove_gateway(name)
File "/usr/share/ceph/mgr/dashboard/services/iscsi_config.py", line 95, in remove_gateway
config = 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: '5000 host1'
Does anyone know how to manually clear the Iscsi gateway list?
I tried to used the ceph dashboard iscsi-gateway-add command to add a missing iscsi gateway. I think I had a space in the url and a corrupt entry was saved. Now i cant remove, add or even list Iscsi gateways. Also in the dashboard I now has error 500 - internal server error, on pages that have any iscsi info on them.
ceph dashboard iscsi-gateway-list
Error EINVAL: Traceback (most recent call last):
File "/usr/share/ceph/mgr/mgr_module.py", line 1811, in _handle_command
return CLICommand.COMMANDS[cmd['prefix']].call(self, cmd, inbuf)
File "/usr/share/ceph/mgr/mgr_module.py", line 474, 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: '5000 host1'
ceph dashboard iscsi-gateway-rm host1
Error EINVAL: Traceback (most recent call last):
File "/usr/share/ceph/mgr/mgr_module.py", line 1811, in _handle_command
return CLICommand.COMMANDS[cmd['prefix']].call(self, cmd, inbuf)
File "/usr/share/ceph/mgr/mgr_module.py", line 474, in call
return self.func(mgr, **kwargs)
File "/usr/share/ceph/mgr/dashboard/services/iscsi_cli.py", line 53, in remove_iscsi_gateway
IscsiGatewaysConfig.remove_gateway(name)
File "/usr/share/ceph/mgr/dashboard/services/iscsi_config.py", line 95, in remove_gateway
config = 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: '5000 host1'