Tony Asleson
2015-03-19 15:17:45 UTC
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 789a9c375c32e77d3361c35ac8b61548ba2dcb86 (commit)
via 7eaf7792098366ded0a2f3e00c4e23a47647c8e2 (commit)
via 45289e60a294ab09e8558ca00de5bf3c7886986b (commit)
via 9686b2c27e2f9540e2504e1947ecf2a8ab51e180 (commit)
via 64b508db60497e94cbb83aa133b71ceb6882ce0c (commit)
via 93e8968c3c8ad18dda67174e145816344e42abf3 (commit)
via afabf3c08907d718e605706c33cd2969f0f2adc5 (commit)
from 38d9abdccea6f16ec8e752c2c8bfac1f799abc0a (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 789a9c375c32e77d3361c35ac8b61548ba2dcb86
Merge: 38d9abd 7eaf779
Author: Tony Asleson <***@redhat.com>
Date: Thu Mar 19 10:16:58 2015 -0500
Merge branch 'cathay4t-new_disk_status_free'
commit 7eaf7792098366ded0a2f3e00c4e23a47647c8e2
Author: Gris Ge <***@redhat.com>
Date: Sat Mar 14 21:04:07 2015 +0800
SMI-S Plugin: Add Disk.STATUS_SPARE_DISK and Disk.STATUS_FREE
* Using SNIA SMI-S 1.4 'Disk Sparing' profile to set Disk.STATUS_SPARE_DISK.
# Works well on EMC VMAX, Fujitsu ETERNUS, LSI MegaRAID.
# They are only array have spare disks I got access.
* Use vendor specific way to set Disk.STATUS_FREE:
1. EMC:
'EMCInUse' property of CIM_DiskDrive. False == Free.
# Tested on EMC VNX.
2. LSI MegaRAID:
StoragePool_InstanceID of CIM_StorageExtent,
if not contain 'Pool' keyword, it could be free disk or spare disk.
Then filter out spare disk, we got free disks.
# Tested on LSI MegaRAID.
Changes in V4(No changes in V2, V3):
* Remove LSI MegaRAID free disk code as we have dedicated plugin for
MegaRAID.
Signed-off-by: Gris Ge <***@redhat.com>
commit 45289e60a294ab09e8558ca00de5bf3c7886986b
Author: Gris Ge <***@redhat.com>
Date: Sat Mar 14 21:04:06 2015 +0800
MegaRAID Plugin: Add support of Disk.STATUS_FREE
* Treat 'UGood' and 'UBad' as free disk.
* Update algorithm of disk status query to support show spare disk with
sector error as SPARE|ERROR
Changes in V2:
* Fix the incorrect data assign:
disk_status == Disk.STATUS_UNKNOWN
Should be:
disk_status = Disk.STATUS_UNKNOWN
Signed-off-by: Gris Ge <***@redhat.com>
commit 9686b2c27e2f9540e2504e1947ecf2a8ab51e180
Author: Gris Ge <***@redhat.com>
Date: Sat Mar 14 21:04:05 2015 +0800
ONTAP Plugin: Add support of Disk.STATUS_FREE
* Any disk not have 'aggregate' property is considered as free disk.
* Added comments indicate how spare and free disk works on ONTAP:
1. Spare == free disk
2. Zeroed spare disk == OK | SPARE | FREE
3. Non-zeroed spare disk == STOPPED | SPARE | FREE
Changes in V2:
* Should not mark partner filer's disks as free.
# Don't check status of partner's disks, simply mark as STATUS_OTHER.
Signed-off-by: Gris Ge <***@redhat.com>
commit 64b508db60497e94cbb83aa133b71ceb6882ce0c
Author: Gris Ge <***@redhat.com>
Date: Sat Mar 14 21:04:04 2015 +0800
Simulator Plugin: Support Disk.STATUS_FREE
* Treating sim_disk['role'] == None as Free disk.
Changes in V3(No changes in V2):
* Remove debug code of 'print sim_disk.items()'.
Signed-off-by: Gris Ge <***@redhat.com>
commit 93e8968c3c8ad18dda67174e145816344e42abf3
Author: Gris Ge <***@redhat.com>
Date: Sat Mar 14 21:04:03 2015 +0800
lsmcli: Add support of Disk.STATUS_FREE
* Show Disk.STATUS_FREE as 'Free' in output.
Signed-off-by: Gris Ge <***@redhat.com>
commit afabf3c08907d718e605706c33cd2969f0f2adc5
Author: Gris Ge <***@redhat.com>
Date: Sat Mar 14 21:04:02 2015 +0800
API: New disk status DISK.STATUS_FREE/LSM_DISK_STATUS_FREE
* New status constant:
Disk.STATUS_FREE
LSM_DISK_STATUS_FREE
* In code document(Both in C and Python code):
New in version 1.2, indicate the whole disk is not holding any data or
acting as a dedicate spare disk.
This disk could be assigned as a dedicated spare disk or used for
creating pool.
If any spare disk(like those on NetApp ONTAP) does not require
any explicit action when assigning to pool, it should be treated as free
disk and marked as STATUS_FREE|STATUS_SPARE_DISK.
* Future design consideration for sliced RAID system(LVM RAID and EMC VMAX):
1. Introduce Disk.STATUS_FREE_PARTIAL
2. Introduce new class:
DiskSlice
properties:
id
owner_disk_id # Disk.id
block_size
block_count
start_block
status # FREE or SPARE or/and OK
Signed-off-by: Gris Ge <***@redhat.com>
-----------------------------------------------------------------------
Summary of changes:
.../include/libstoragemgmt/libstoragemgmt_types.h | 10 ++++++++
plugin/megaraid/megaraid.py | 25 ++++++++++++-------
plugin/ontap/ontap.py | 12 ++++++++-
plugin/sim/simarray.py | 8 ++++-
plugin/smispy/smis_disk.py | 12 ++++++++-
python_binding/lsm/_data.py | 8 ++++++
tools/lsmcli/data_display.py | 1 +
7 files changed, 63 insertions(+), 13 deletions(-)
hooks/post-receive
generated because a ref change was pushed to the repository containing
the project "libstoragemgmt".
The branch, master has been updated
via 789a9c375c32e77d3361c35ac8b61548ba2dcb86 (commit)
via 7eaf7792098366ded0a2f3e00c4e23a47647c8e2 (commit)
via 45289e60a294ab09e8558ca00de5bf3c7886986b (commit)
via 9686b2c27e2f9540e2504e1947ecf2a8ab51e180 (commit)
via 64b508db60497e94cbb83aa133b71ceb6882ce0c (commit)
via 93e8968c3c8ad18dda67174e145816344e42abf3 (commit)
via afabf3c08907d718e605706c33cd2969f0f2adc5 (commit)
from 38d9abdccea6f16ec8e752c2c8bfac1f799abc0a (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 789a9c375c32e77d3361c35ac8b61548ba2dcb86
Merge: 38d9abd 7eaf779
Author: Tony Asleson <***@redhat.com>
Date: Thu Mar 19 10:16:58 2015 -0500
Merge branch 'cathay4t-new_disk_status_free'
commit 7eaf7792098366ded0a2f3e00c4e23a47647c8e2
Author: Gris Ge <***@redhat.com>
Date: Sat Mar 14 21:04:07 2015 +0800
SMI-S Plugin: Add Disk.STATUS_SPARE_DISK and Disk.STATUS_FREE
* Using SNIA SMI-S 1.4 'Disk Sparing' profile to set Disk.STATUS_SPARE_DISK.
# Works well on EMC VMAX, Fujitsu ETERNUS, LSI MegaRAID.
# They are only array have spare disks I got access.
* Use vendor specific way to set Disk.STATUS_FREE:
1. EMC:
'EMCInUse' property of CIM_DiskDrive. False == Free.
# Tested on EMC VNX.
2. LSI MegaRAID:
StoragePool_InstanceID of CIM_StorageExtent,
if not contain 'Pool' keyword, it could be free disk or spare disk.
Then filter out spare disk, we got free disks.
# Tested on LSI MegaRAID.
Changes in V4(No changes in V2, V3):
* Remove LSI MegaRAID free disk code as we have dedicated plugin for
MegaRAID.
Signed-off-by: Gris Ge <***@redhat.com>
commit 45289e60a294ab09e8558ca00de5bf3c7886986b
Author: Gris Ge <***@redhat.com>
Date: Sat Mar 14 21:04:06 2015 +0800
MegaRAID Plugin: Add support of Disk.STATUS_FREE
* Treat 'UGood' and 'UBad' as free disk.
* Update algorithm of disk status query to support show spare disk with
sector error as SPARE|ERROR
Changes in V2:
* Fix the incorrect data assign:
disk_status == Disk.STATUS_UNKNOWN
Should be:
disk_status = Disk.STATUS_UNKNOWN
Signed-off-by: Gris Ge <***@redhat.com>
commit 9686b2c27e2f9540e2504e1947ecf2a8ab51e180
Author: Gris Ge <***@redhat.com>
Date: Sat Mar 14 21:04:05 2015 +0800
ONTAP Plugin: Add support of Disk.STATUS_FREE
* Any disk not have 'aggregate' property is considered as free disk.
* Added comments indicate how spare and free disk works on ONTAP:
1. Spare == free disk
2. Zeroed spare disk == OK | SPARE | FREE
3. Non-zeroed spare disk == STOPPED | SPARE | FREE
Changes in V2:
* Should not mark partner filer's disks as free.
# Don't check status of partner's disks, simply mark as STATUS_OTHER.
Signed-off-by: Gris Ge <***@redhat.com>
commit 64b508db60497e94cbb83aa133b71ceb6882ce0c
Author: Gris Ge <***@redhat.com>
Date: Sat Mar 14 21:04:04 2015 +0800
Simulator Plugin: Support Disk.STATUS_FREE
* Treating sim_disk['role'] == None as Free disk.
Changes in V3(No changes in V2):
* Remove debug code of 'print sim_disk.items()'.
Signed-off-by: Gris Ge <***@redhat.com>
commit 93e8968c3c8ad18dda67174e145816344e42abf3
Author: Gris Ge <***@redhat.com>
Date: Sat Mar 14 21:04:03 2015 +0800
lsmcli: Add support of Disk.STATUS_FREE
* Show Disk.STATUS_FREE as 'Free' in output.
Signed-off-by: Gris Ge <***@redhat.com>
commit afabf3c08907d718e605706c33cd2969f0f2adc5
Author: Gris Ge <***@redhat.com>
Date: Sat Mar 14 21:04:02 2015 +0800
API: New disk status DISK.STATUS_FREE/LSM_DISK_STATUS_FREE
* New status constant:
Disk.STATUS_FREE
LSM_DISK_STATUS_FREE
* In code document(Both in C and Python code):
New in version 1.2, indicate the whole disk is not holding any data or
acting as a dedicate spare disk.
This disk could be assigned as a dedicated spare disk or used for
creating pool.
If any spare disk(like those on NetApp ONTAP) does not require
any explicit action when assigning to pool, it should be treated as free
disk and marked as STATUS_FREE|STATUS_SPARE_DISK.
* Future design consideration for sliced RAID system(LVM RAID and EMC VMAX):
1. Introduce Disk.STATUS_FREE_PARTIAL
2. Introduce new class:
DiskSlice
properties:
id
owner_disk_id # Disk.id
block_size
block_count
start_block
status # FREE or SPARE or/and OK
Signed-off-by: Gris Ge <***@redhat.com>
-----------------------------------------------------------------------
Summary of changes:
.../include/libstoragemgmt/libstoragemgmt_types.h | 10 ++++++++
plugin/megaraid/megaraid.py | 25 ++++++++++++-------
plugin/ontap/ontap.py | 12 ++++++++-
plugin/sim/simarray.py | 8 ++++-
plugin/smispy/smis_disk.py | 12 ++++++++-
python_binding/lsm/_data.py | 8 ++++++
tools/lsmcli/data_display.py | 1 +
7 files changed, 63 insertions(+), 13 deletions(-)
hooks/post-receive
--
libstoragemgmt
libstoragemgmt