Created attachment 496310 [details]
emerge --info & application log
Steps to reproduce:
1) Follow guide here:
2) After performing the steps in the "Now I need to export the LUN" step, the "cd" or "ls" command crashes targetcli, with "IndexError: list index out of range"
3) Issue persists after restarting targetcli, until target (iqn... etc) is deleted
Created attachment 496326 [details, diff]
patch to fix issue
After additional research, I found the problem is actually in rtslib-fb, and made this patch (target.patch) based on the current git version of rtslib-fb and applied it to gentoo's older 2.1.62, and the problem was solved.
Thanks. Can you please also report this upstream (https://github.com/open-iscsi/rtslib-fb/issues)?
(In reply to Diogo Pereira from comment #3)
> Thanks. Can you please also report this upstream
I think they already knew about it, see this commit from Feb 6 2017, which is nearly the same as the patch I made: