open-iscsi / rtslib-fb

Python library for configuring the Linux kernel-based multiprotocol SCSI target (LIO)
Apache License 2.0
72 stars 90 forks source link

MappedLUN constructor fails #90

Open schegi opened 7 years ago

schegi commented 7 years ago

I wanted to create a mapped lun. I got a LUN object (lun) and an NodeACL object (acl). First i tried this:

'MappedLUN(acl, lun.lun, lun)' and it fails with

Traceback (most recent call last): File "", line 2, in File "/usr/lib/python2.7/site-packages/rtslib/target.py", line 1028, in init

with a 'type(acl)' i could verify that it is of type: <class 'rtslib_fb.target.NodeACL'>

But do it the other way with: acl.mapped_lun(lun.lun, lun) it worked.

agrover commented 7 years ago

I can't reproduce. Can you give me more detailed steps to try? Also, what is the rtslib version? Thanks.