Open-iSCSI Interface by libvirt

While I was introducing an iSCSI pool to libvirt with KVM, a new interface was introduced to Open-iSCSI called libvirt-iface-*, with the effect that LUNs were no longer detected after target login.

It took nearly an hour to analyze the reason for this failure, the initiator ID changed and the default CHAP login was not set for this interface, thus the iSCSI LUNs failed.

The following approach solved the problem on each KVM host:

  • Remove the interface definition from /etc/iscsi.
  • Remove all node and target definitions containing the libvirt device name from /etc/iscsi.
  • Reboot
  • Introduce the iSCSI targets before binding them to a pool in libvirt.