Discussion:
[Libstoragemgmt-devel] [SCM] libstoragemgmt branch, master, updated. 1.1.0-14-gabf0f98
Tony Asleson
2015-02-03 17:10:05 UTC
Permalink
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "libstoragemgmt".

The branch, master has been updated
via abf0f980abb06f89712160dc25e47db3a98cda79 (commit)
via 84636d00e69ad1f3ce5a453fd2caf41544465aee (commit)
via 5e172330ecd0a91d39c5a96606f6ff9b9286858d (commit)
via 811791c3a1af4b3a04e4b9cf8892b694f22c1c67 (commit)
via 9641126d46bbd95f564d9a221cd11cdea02d1088 (commit)
via 0751c202b931c80250aa90ba7ccaeb22ac06b88f (commit)
via a88cb51c956b63c6ef34ce60e40ca42349fc6bc2 (commit)
via d2f52020ff3f412be9763c27e898c16b1db85026 (commit)
from b933bccad3ee29538f6200ae1b26e3644e9358fe (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit abf0f980abb06f89712160dc25e47db3a98cda79
Author: Gris Ge <***@redhat.com>
Date: Tue Feb 3 18:37:28 2015 +0800

Targetd Plugin: PEP8 fix.

* Just fix this two blank links issue generated by python-PEP8:
targetd.py:41:1: E302 expected 2 blank lines, found 1

Signed-off-by: Gris Ge <***@redhat.com>

commit 84636d00e69ad1f3ce5a453fd2caf41544465aee
Author: Gris Ge <***@redhat.com>
Date: Tue Feb 3 18:37:27 2015 +0800

Plugin Test: Fix incorrect capability used in test_mask_unmask()

* test_mask_unmask() is incorrectly expecting ACCESS_GROUP_CREATE_WWPN
capability to create a actual iSCSI access group.
This patch fix it by change it to correct ACCESS_GROUP_CREATE_ISCSI_IQN.

Signed-off-by: Gris Ge <***@redhat.com>

commit 5e172330ecd0a91d39c5a96606f6ff9b9286858d
Author: Gris Ge <***@redhat.com>
Date: Tue Feb 3 18:37:26 2015 +0800

Targetd Plugin: Add access_group_delete() support.

* Use 'access_group_destroy()' of targetd to do so.
* Raise NO_SUPPORT error if got fake access group.
* Raise NO_SUPPORT error if working against old targetd.
* Raise IS_MASKED error if has volume masked.

Changes in V2:
* Add missing capability:
Capabilities.ACCESS_GROUP_DELETE

* Add missing @handle_errors decorator to this public method:
* access_group_delete()

Signed-off-by: Gris Ge <***@redhat.com>

commit 811791c3a1af4b3a04e4b9cf8892b694f22c1c67
Author: Gris Ge <***@redhat.com>
Date: Tue Feb 3 18:37:25 2015 +0800

Targetd Plugin: Add new targetd API support for volume mask.

* Changed _search_lsm_ag_by_name() to _lsm_ag_of_id() which now support
handling fake access group and true access group.
* Add _lsm_vol_of_id() for validating volume existence.

* Updated these public methods to support new targetd API:
* volume_mask()
* volume_unmask()
* access_groups_granted_to_volume()
* volumes_accessible_by_access_group()

Changes in V2:

* Check access group support status before call out 'access_group_map_list'
in _tgt_masks() method.

* Add missing @handle_errors decorator to these public methods:
* volume_mask()

* PEP8 fix.

Signed-off-by: Gris Ge <***@redhat.com>

commit 9641126d46bbd95f564d9a221cd11cdea02d1088
Author: Gris Ge <***@redhat.com>
Date: Tue Feb 3 18:37:24 2015 +0800

Targetd Plugin: Add access_group_initiator_delete() support.

* Add access_group_initiator_delete() support and raise proper error
as API document required.

Changes in V2:
* Add missing capabilities:
Capabilities.ACCESS_GROUP_INITIATOR_DELETE

* Add missing @handle_errors decorator to this public method:
* access_group_initiator_delete()

Signed-off-by: Gris Ge <***@redhat.com>

commit 0751c202b931c80250aa90ba7ccaeb22ac06b88f
Author: Gris Ge <***@redhat.com>
Date: Tue Feb 3 18:37:23 2015 +0800

Targetd Plugin: Add access_group_initiator_add() support.

* Add access_group_initiator_add() and raise proper error as API document
required.

Changes in V2:

* Add missing capability:
Capabilities.ACCESS_GROUP_INITIATOR_ADD_ISCSI_IQN

Signed-off-by: Gris Ge <***@redhat.com>

commit a88cb51c956b63c6ef34ce60e40ca42349fc6bc2
Author: Gris Ge <***@redhat.com>
Date: Tue Feb 3 18:37:22 2015 +0800

Targetd Plugin: Add access_group_create() support.

* Introduced a private method: _search_lsm_ag_by_name() to search
access group with given name. It is required because targetd does not
return anything on access_group_create() call.

* Use access_group_create() method of targetd to create new access group.
Only iSCSI supported due to restriction of targetd.

Changes in V2:

* Fix incorrect negative constant TargetdError.NAME_CONFLICT.
In _jsonrequest(), the negative error number provided by targetd
will be converted to absolute value.

* Add missing capabilities:
Capabilities.ACCESS_GROUP_CREATE_ISCSI_IQN

* Add missing @handle_errors decorator to this public method:
* access_group_create()

Signed-off-by: Gris Ge <***@redhat.com>

commit d2f52020ff3f412be9763c27e898c16b1db85026
Author: Gris Ge <***@redhat.com>
Date: Tue Feb 3 18:37:21 2015 +0800

Target Plugin: Add new access group query support.

* Check whether true access group is supported or not in plugin_register().
If not, set self._flag_ag_support as False

* Use initiator_list() method of targetd for backward compatibility.
* Use access_group_list() method of targetd for new access group support.

This break the access group ID backward compatibility:

* Add 'init.' prefix to ID of fake access groups. With this we could
identify whether requested access group could be handled by
access_group_delete(), access_group_initiator_add() and etc methods.

Signed-off-by: Gris Ge <***@redhat.com>

-----------------------------------------------------------------------

Summary of changes:
plugin/targetd/targetd.py | 447 +++++++++++++++++++++++++++++++++++++--------
test/plugin_test.py | 2 +-
2 files changed, 376 insertions(+), 73 deletions(-)


hooks/post-receive
--
libstoragemgmt
Loading...