Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

export_create will not map a LUN if it's already mapped to in the target, even if attempting to map to a different initiator name in acls/ #19

Closed
clarkhale opened this issue Apr 25, 2017 · 1 comment

Comments

@clarkhale
Copy link
Contributor

I've submitted this bug for RHEL, but it also exists in the current version:
https://bugzilla.redhat.com/show_bug.cgi?id=1445536

If I want to map a LUN to two different initiators in the same target, create_export does not behave as expected:

jsonrequest('export_create', dict(pool=pool, vol='test18', initiator_wwn='iqn.2006-03.com.wtf.ohyeah:661', lun=1))
jsonrequest('export_create', dict(pool=pool, vol='test18', initiator_wwn='iqn.2006-03.com.wtf.ohyeah:662', lun=1))

I'd expect to see:

  o- iscsi ...................................................................... [Targets: 1]
  | o- iqn.2007-11.net.deadvax.nfs:auto ............................................ [TPGs: 1]
  |   o- tpg1 ......................................................... [no-gen-acls, no-auth]
  |     o- acls .................................................................... [ACLs: 2]
  |     | o- iqn.2006-03.com.wtf.ohyeah:661 ................................. [Mapped LUNs: 1]
  |     | | o- mapped_lun1 .................................... [lun0 block/my_vg:test18 (rw)]
  |     | o- iqn.2006-03.com.wtf.ohyeah:662 ................................. [Mapped LUNs: 1]
  |     |   o- mapped_lun1 .................................... [lun0 block/my_vg:test18 (rw)]

But instead I see:

  | o- iqn.2007-11.net.deadvax.nfs:auto ............................................ [TPGs: 1]
  |   o- tpg1 ......................................................... [no-gen-acls, no-auth]
  |     o- acls .................................................................... [ACLs: 2]
  |     | o- iqn.2006-03.com.wtf.ohyeah:661 ................................. [Mapped LUNs: 1]
  |     | | o- mapped_lun1 .................................... [lun0 block/my_vg:test18 (rw)]
  |     | o- iqn.2006-03.com.wtf.ohyeah:662 ................................. [Mapped LUNs: 0]
@tasleson
Copy link
Member

Fixed with merged #20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants