Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 631946

Summary: dev-python/rtslib-fb-2.1.62: Attempting to create pscsi cdrom lun causes index out of range error
Product: Gentoo Linux Reporter: rkuchiki
Component: Current packagesAssignee: Matthew Thode ( prometheanfire ) <prometheanfire>
Status: UNCONFIRMED ---    
Severity: normal CC: proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info & application log
patch to fix issue

Description rkuchiki 2017-09-24 20:28:42 UTC
Created attachment 496310 [details]
emerge --info & application log

Steps to reproduce:

1) Follow guide here:
http://www.smetana.name/blog/2014/10/20/sharing-dvd-drive-over-iscsi/

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
Comment 1 rkuchiki 2017-09-24 21:14:22 UTC
Created attachment 496326 [details, diff]
patch to fix issue
Comment 2 rkuchiki 2017-09-24 21:14:33 UTC
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.
Comment 3 Diogo Pereira 2017-09-25 07:09:27 UTC
Thanks. Can you please also report this upstream (https://github.com/open-iscsi/rtslib-fb/issues)?
Comment 4 rkuchiki 2017-09-25 13:14:28 UTC
(In reply to Diogo Pereira from comment #3)
> Thanks. Can you please also report this upstream
> (https://github.com/open-iscsi/rtslib-fb/issues)?

I think they already knew about it, see this commit from Feb 6 2017, which is nearly the same as the patch I made:

https://github.com/open-iscsi/rtslib-fb/commit/13dfb1aadbba3d1e2fa64133e9e2392071d58a5a