Discussion:
[PATCH] MegaRAID plugin: Add volume VPD83 support.
Gris Ge
2016-01-12 03:24:42 UTC
Permalink
Use 'SCSI NAA Id' property for volume VPD83.
This feature only valid with storcli 1.18.05 or later version.

Signed-off-by: Gris Ge <***@redhat.com>
---
plugin/megaraid/megaraid.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugin/megaraid/megaraid.py b/plugin/megaraid/megaraid.py
index 731af5b..a4dc26d 100644
--- a/plugin/megaraid/megaraid.py
+++ b/plugin/megaraid/megaraid.py
@@ -508,7 +508,7 @@ def _vd_to_lsm_vol(vd_id, dg_id, sys_id, vd_basic_info, vd_pd_info_list,
if 'Name' in vd_basic_info.keys() and vd_basic_info['Name']:
name += ": %s" % vd_basic_info['Name']

- vpd83 = '' # TODO(Gris Ge): Beg LSI to provide this information.
+ vpd83 = vd_prop_info.get('SCSI NAA Id', '')
block_size = size_human_2_size_bytes(vd_pd_info_list[0]['SeSz'])
num_of_blocks = vd_prop_info['Number of Blocks']
admin_state = Volume.ADMIN_STATE_ENABLED
--
2.7.0
Loading...