All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Lv, Shuo" <Shuo.Lv@dell.com>
To: "Nicholas A. Bellinger" <nab@linux-iscsi.org>
Cc: "target-devel@vger.kernel.org" <target-devel@vger.kernel.org>,
	"linux-rdma@vger.kernel.org" <linux-rdma@vger.kernel.org>
Subject: RE: fc access control issue
Date: Tue, 21 Mar 2017 07:29:22 +0000	[thread overview]
Message-ID: <6F7556A181C9E74390FFFEACC41B5ABB4C85A1A1@MX301CL01.corp.emc.com> (raw)
In-Reply-To: <1490079761.8236.94.camel@haakon3.risingtidesystems.com>

Hi,  Bellinger: 
          Thanks for your detail explanation.
      Yes, I means initiator access group is like this. Similar to what you described. for example: LUNS in group A in a FC target could be access by a initiator A, LUNS in group B in a FC target could be access by a initiator B. LUNS in group A in a FC target could not be access by a initiator B. LUNS in group B in a FC target could not be access by a initiator B. the FC target is the same target.
    
    I think the initiator access groups could be implemented in the python-rtslib or LIO kernel code. Do you have any suggestion? Do you have plans to add this feature?

Regards
Shuo
-----Original Message-----
From: Nicholas A. Bellinger [mailto:nab@linux-iscsi.org] 
Sent: 2017年3月21日 15:03
To: Lv, Shuo
Cc: target-devel@vger.kernel.org; linux-rdma@vger.kernel.org
Subject: Re: fc access control issue

Hi Shuo,

On Tue, 2017-03-21 at 00:41 +0000, Lv, Shuo wrote:
> Hi,
>       When I use tcm_qla2xxx target, I found that the granularity for
> the FC access control  is very large and it is target-level. The LUNS
> in the target could be all accessed by initiator or the LUNS in the
> target could not be accessed by initiator. I don't know If the
> tcm_qla2xxx could create multiple targets for the same port?

Multiple targets per port is accomplished with a FC switch feature
called N_Port ID Virtualization (NPIV).

This allows multiple virtual WWPNs to be configured on a single physical
FC port, each with it's LIO target configfs namespace residing
under /sys/kernel/config/target/qla2xxx_npiv/$NPIV_WWPN/, et al.

Support for tcm_qla2xxx/NPIV was added in mainline v4.1 here:

https://www.mail-archive.com/linux-scsi@vger.kernel.org/msg25618.html

and although information is pretty scarce how to actually use
tcm_qla2xxx/NPIV, there was some discussion back in 2015 about how it
currently works from an end-user perspective here:

https://lists.fedorahosted.org/pipermail/targetcli-fb-devel/2015-May/000157.html

> Could we implement the group level access  control? Like a group in a
> target could be access by a initiator, another group in the same
> target could be access by other initiator?   Any suggestion is
> welcome.
> 

I assume you mean a initiator access group abstraction, eg: where a
initiator group is associated with a specific target endpoint, and all
initiators associated with the group have ACLs added to the endpoint.

targetcli itself doesn't support initiator access groups, but there are
multiple vendors who have built initiator access group constructs into
their products atop python-rtslib, using vanilla LIO kernel code.


  reply	other threads:[~2017-03-21  7:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-21  0:41 fc access control issue Lv, Shuo
2017-03-21  7:02 ` Nicholas A. Bellinger
2017-03-21  7:29   ` Lv, Shuo [this message]
     [not found]   ` <1490079761.8236.94.camel-XoQW25Eq2zviZyQQd+hFbcojREIfoBdhmpATvIKMPHk@public.gmane.org>
2017-03-25  9:58     ` Lv, Shuo
2017-04-02 21:37       ` Nicholas A. Bellinger
2017-04-05  6:20         ` Lv, Shuo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6F7556A181C9E74390FFFEACC41B5ABB4C85A1A1@MX301CL01.corp.emc.com \
    --to=shuo.lv@dell.com \
    --cc=linux-rdma@vger.kernel.org \
    --cc=nab@linux-iscsi.org \
    --cc=target-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.