Ceph Iscsi gateway list corrupt

chell

New Member
Dec 6, 2023
5
0
1
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'
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!