On 01/26/2015 06:14 AM, Gris Ge wrote:
To test this patch set:
- Install rtslib-fb at commit 27e9a1df9c004862fedea4786838a4e4acb8ef94 cp <git_folder>/rtslib /usr/lib/python2.7/site-packages/rtslib_fb
- Apply this patch set.
- Restart targetd.
- Apply this patch set to libstoragemgmt developer tree[1]: [PATCH 0/6] Targetd Plugin: Introduce full access group support
- Test these commands: lsmcli ac --name gris_ag_03 --init iqn.2000-04.com.redhat:gris.03 \ --sys targetd lsmcli aa --ag gris_ag_03 --init iqn.2000-04.com.redhat:gris.13 lsmcli ar --ag gris_ag_03 --init iqn.2000-04.com.redhat:gris.13 lsmcli vm --vol gQTwyb-PoV5-NxWw-gMn1-0u7X-2tGp-8iaV0A --ag gris_ag_03 lsmcli vu --vol gQTwyb-PoV5-NxWw-gMn1-0u7X-2tGp-8iaV0A --ag gris_ag_03 lsmcli ad --ag gris_ag_03
Tested against libstoragemgmt targetd plugin patch.
Let me know if your prefer I submit this via github pull request.
[1] b933bccad3ee29538f6200ae1b26e3644e9358fe
Gris Ge (9): New method: initiator_list(standalone_only=False) New method: access_group_list() New method: access_group_create() New method: access_group_destroy(ag_name) New method: access_group_init_add(ag_name, init_id, init_type) New method: access_group_init_del(ag_name, init_id, init_type) New method: access_group_map_list() New method: access_group_map_create(pool_name, vol_name, ag_name, h_lun_id=None) New method: access_group_map_destroy(pool_name, vol_name, ag_name)
API.md | 148 +++++++++++++++++++++++++- targetd/block.py | 315 ++++++++++++++++++++++++++++++++++++++++++++++++++----- targetd/main.py | 6 +- targetd/utils.py | 18 ++++ 4 files changed, 455 insertions(+), 32 deletions(-)
Great work.
I've applied this patchset and will look to tag a new release later this week.
Thanks! -- Regards -- Andy