Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 631946 - dev-python/rtslib-fb-2.1.62: Attempting to create pscsi cdrom lun causes index out of range error
Summary: dev-python/rtslib-fb-2.1.62: Attempting to create pscsi cdrom lun causes inde...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Matthew Thode ( prometheanfire )
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-24 20:28 UTC by rkuchiki
Modified: 2017-09-25 13:14 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info & application log (log.txt,8.67 KB, text/plain)
2017-09-24 20:28 UTC, rkuchiki
Details
patch to fix issue (target.patch,644 bytes, patch)
2017-09-24 21:14 UTC, rkuchiki
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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