* The new hpsa plugin is based on HP binary tool -- hpssacli which could be downloaded from: http://downloads.linux.hp.com/SDR/project/spp/
* This patch set introduced these methods support to hpsa plugin: * lsm.Client.systems() * lsm.Client.pools() * lsm.Client.volumes() * lsm.Client.disks() # With Disk.STATUS_FREE support also. * lsm.Client.volume_raid_info() * This patch set only coded and tested on 2 servers(Tony's and mine), a automatic tests is running in our internal lab to test this plugin on more HP SmartArray cards, will provide subsequent patch if found any bug. Changes in V2: * Patch 2/6: * Fix missing '()' in _parse_hpssacli_output(). * Handle 'No controllers detected' error. * Patch 6/6: * Fix uninitialized variables in volume_raid_info(). * Add an extra check to raise PLUGIN_BUG when LD found with no PD found. * Please be informed, on RHEL 7.1, you need to manually run 'modprobe sg' command before using this plugin. Changes in V3: * Moved 'utils.py' to patch 2/6. * Patch 2/6: Fixed a bug in _parse_hpssacli_output() when 'hpssacli' have this kind of message in output: ``` Note: Predictive Spare Activation Mode is enabled, physical drives that are in predictive failure state will not be available for use as data or spare drives. ``` We filter out all line start with 'Note:' * Patch 4/6: Changed file_read() to use python fileIO(open,read,close). * Tested on HP SmartArray P420i with plugin_test.py(only got expected failure for test_timeout). Gris Ge (6): New plugin: HP SmartArray Plugin. HP SmartArray Plugin: Add systems() support. HP SmartArray Plugin: Add lsm.Client.pools() support. HP SmartArray Plugin: Add lsm.Client.volumes() support. HP SmartArray Plugin: Add lsm.Client.disks() support. HP SmartArray Plugin: Add lsm.Client.volume_raid_info() support. config/Makefile.am | 5 + config/pluginconf.d/hpsa.conf | 1 + configure.ac | 14 ++ doc/man/Makefile.am | 4 + doc/man/hpsa_lsmplugin.1.in | 50 ++++ packaging/libstoragemgmt.spec.in | 39 +++ plugin/Makefile.am | 2 +- plugin/hpsa/Makefile.am | 8 + plugin/hpsa/__init__.py | 1 + plugin/hpsa/hpsa.py | 528 +++++++++++++++++++++++++++++++++++++++ plugin/hpsa/hpsa_lsmplugin | 37 +++ plugin/hpsa/utils.py | 58 +++++ 12 files changed, 746 insertions(+), 1 deletion(-) create mode 100644 config/pluginconf.d/hpsa.conf create mode 100644 doc/man/hpsa_lsmplugin.1.in create mode 100644 plugin/hpsa/Makefile.am create mode 100644 plugin/hpsa/__init__.py create mode 100644 plugin/hpsa/hpsa.py create mode 100755 plugin/hpsa/hpsa_lsmplugin create mode 100644 plugin/hpsa/utils.py -- 1.8.3.1 ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Libstoragemgmt-devel mailing list Libstoragemgmt-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libstoragemgmt-devel