[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] IPv6 iscsi targets



Hello.

Before running iscsiadm, libvirt translates the source host to an IP address
for the --portal option. However, it only resolves to IPv4 and only uses the
first address.

iscsiadm allows a hostname to be specified [1][2], but specifying a hostname
instead of the address doesn't work if the hostname translates to an
unreachable IPv6 address first.

Would it be reasonable to go through all the addresses returned by
getaddrinfo() in libvirt, try to connect() to it and pass the address to
iscsiadm when the connection succeeds?

Or we should just pass the hostname and make iscsiadm deal with it?

Jan

[1] https://github.com/mikechristie/open-iscsi/commit/4d045cd
[2] https://bugzilla.redhat.com/show_bug.cgi?id=624437


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]