ceph-iscsi-config
ceph-iscsi-config copied to clipboard
IPv6 support for ceph iSCSI gateway
I tried to configure a iSCSI gateway on a IPv6 only host. It turns out that IPv6 is not supported at all :/. Why is this? LIO (and targetcli where gwcli is based on) both support IPv6
Do you have any more details of what issues you encountered? I cannot think off the top of my head why ceph-iscsi-config would need any IP address information.
I think Paul might have specifically only added support for ipv4. I can't remember why though.
I think a lot of functions like in ceph_iscsi_confg/utils.py are hard coded for ipv4 addresses.
I think I then added on to the problem and make some functions like the blacklist/lock cleanup code only support ipv4 too.
Thanks, it turns out I forgot about the portal addresses being configured by ceph_iscsi_config.
I think the problem is clear already, but the tool does not allow you to configure a IPv6 gateway. From the man page:
GATEWAYS Gateways provide the access points for rbd images over iSCSI, so there should be a minimum of 2 defined to provide fault tolerance.
/iscsi-target/<iqn>/ create <node_name> <portal_ip_address>
Gateways are defined by a node name (preferably a shortname, but it must resolve), and an IPv4 address that the iSCSI 'service' will be bound to (i.e. the iSCSI portal IP address). When adding a gateway, the candidate machine will be checked to ensure the relevant files and daemons are in place.
Trying to do so will ERR with something along the lines of "is not a valid IPv4 address".
@hydro-b I knew that ceph-iscsi-cli would have issues (i.e. the gwcli
referenced above), but I was wondering about this project (ceph-iscsi-config).