Comment 4 for bug 1668808

Revision history for this message
Nish Aravamudan (nacc) wrote : Re: iscsitarget-dkms 1.4.20.3+svn502-2ubuntu4: iscsitarget kernel module failed to build [error: field ‘rx_hash’ has incomplete type]

Quoting smb in LP: #1613758:

"iscsitarget was the userspace part to manager iscsi targets which used the iscsitarget-dkms kernel module. But it looks to be no longer actively maintained which caused more and more problems with recent kernels.

As Nish pointed out, there is now an implementation of the kernel side driver that comes with the kernel package (so no longer needing any DKMS package) and "tgt" is the package that contains the administrative tools to manage those. This would already work with the 16.04 kernel and installation. Unfortunately the config differs and probably needs to be manually migrated."

So in the short term, Shawn, you can just remove iscsitarget-dkms (and iscsitarget, tbh) and use the in-kernel driver and the tgt daemon to host iSCSI disks.

In the long term (next few days ideally), I'll submit a change (presuming smb is able to review/ack it) that will simply disable the DKMS build on non-4.4.0 kernels (where it doesn't make sense to use it anymore since the HWE stack from later kernels (e.g., 16.10's 4.8) no longer tests that the same package works, since it has been removed. Honestly, it doesn't really make sense on 16.04 either and I would suggest migrating off the package sooner rather than later.