Hi Gris, I built some rpm's for RHEL7 and installed them on a test box along with the hpsa cli (hpssacli-2.10-14.0.x86_64).
When I try to list the systems I get: NOT_FOUND_SYSTEM(208): No HP SmartArray deteceted by hpssacli. If I... # setenforce 0 it works. I see this in the system log: SELinux is preventing /opt/hp/hpssacli/bld/hpssacli from read access on the directory . Have you run into this before? I didn't run into it last time I used one of the test systems so I'm a little confused why it's being a problem now. I'm sure the default is enabled... Otherwise everything seems to check out! Thanks, Tony On 03/31/2015 03:40 AM, Gris Ge wrote: > * 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). > > Changes in V4: > * Add new patch 7/7: Fix bug of parsing free disks. > > Gris Ge (7): > 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. > HP SmartArray Plugin: Fix bug of parsing free disks. > > 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 | 572 > +++++++++++++++++++++++++++++++++++++++ > plugin/hpsa/hpsa_lsmplugin | 37 +++ > plugin/hpsa/utils.py | 58 ++++ > 12 files changed, 790 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 > ------------------------------------------------------------------------------ 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