Bug 1088014

Summary: [RFE] libstoragemgmt should be able to create/modify/read from RAID devices
Product: Red Hat Enterprise Linux 7 Reporter: James (purpleidea) <jshubin>
Component: libstoragemgmtAssignee: Gris Ge <fge>
Status: CLOSED ERRATA QA Contact: Barry Donahue <bdonahue>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.2CC: bdonahue, bgoncalv, jsafrane, jshubin, riehecky, sgallagh, tasleson, yanwang
Target Milestone: rcKeywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Rebase: Bug Fixes and Enhancements
Doc Text:
Rebase package(s) to version: 1.2.3 Add raid adapter support for: - LSI MegaRAID - HP SmartArray
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-19 11:46:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description James (purpleidea) 2014-04-15 20:21:49 UTC
Description of problem:

It would be great if OpenLMI/libstoragemgmt could make HW RAID devices, and read properties such as raid_sw, and raid_su.

This would be useful for Puppet-Gluster so that it could automatically manage RAID devices, and set the correct performance parameters too.

https://github.com/purpleidea/puppet-gluster

Cheers!

(Stephen Gallagher asked me to file this!)


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Jan Safranek 2014-04-16 11:51:56 UTC
James, thanks for the RFE.

What exactly do you mean by raid_su and raid_sw? And whatever it is, is it all you need or do you expect any other information about HW RAID from OpenLMI?

Comment 3 James (purpleidea) 2014-04-17 21:15:55 UTC
(In reply to Jan Safranek from comment #2)
> James, thanks for the RFE.
My pleasure.

> 
> What exactly do you mean by raid_su and raid_sw? And whatever it is, is it
> all you need or do you expect any other information about HW RAID from
> OpenLMI?
There is probably other information that is useful, but I'm not sure what else I will need for now.

raid_su and raid_sw and stripe unit and stripe width respectively.
See: https://github.com/purpleidea/puppet-gluster/blob/master/manifests/brick.pp#L23

for an example.

Let me know if you need more info.

Thanks,
James

Comment 4 Jan Safranek 2014-04-18 13:18:40 UTC
Ah, stripes, that sounds useful. Now, do you need a local library/cmdline tool, i.e. running on the machine with the HW RAID, or a remote API? I guess that Puppet handles the 'remote' part internally, so local API is what you seek, right?

Comment 5 James (purpleidea) 2014-04-18 16:24:04 UTC
(In reply to Jan Safranek from comment #4)
> Ah, stripes, that sounds useful. Now, do you need a local library/cmdline
> tool, i.e. running on the machine with the HW RAID, or a remote API? I guess
> that Puppet handles the 'remote' part internally, so local API is what you
> seek, right?

Correct, a local API, or more preferably a local command line tool with stable, parseable output is what I seek. If you only provide a local API, that is okay too, but then I would probably write a small python stub to call it and return something to Puppet.

Thanks for looking into this!

James

Comment 6 Jan Safranek 2014-04-22 07:41:47 UTC
Local API (maybe with Python bindings) is provided by libstoragemgmt project. OpenLMI will only wrap it into CIM and make it available remotely.

Comment 7 James (purpleidea) 2014-04-23 06:29:24 UTC
(In reply to Jan Safranek from comment #6)
> Local API (maybe with Python bindings) is provided by libstoragemgmt
So I keep hearing about this libstoragemgmt. I didn't realize I was able (or allowed) to use it directly (actually I thought it was a c api). In any case, is it ready, and can you point me to a simple how-to-libstoragemgmt how to?

> project. OpenLMI will only wrap it into CIM and make it available remotely.

Sounds good! I actually don't think I need this use case.

Comment 8 Jan Safranek 2014-04-28 14:42:19 UTC
[Updating the 'Summary' to reflect actual RFE.]

(In reply to James from comment #7)
> (In reply to Jan Safranek from comment #6)
> > Local API (maybe with Python bindings) is provided by libstoragemgmt
> So I keep hearing about this libstoragemgmt. I didn't realize I was able (or
> allowed) to use it directly (actually I thought it was a c api). In any
> case, is it ready, and can you point me to a simple how-to-libstoragemgmt
> how to?

See https://sourceforge.net/p/libstoragemgmt/wiki/Home/ for examples and uri syntax. Tony Asleson [libstoragemgmt author] should be able to answer specific questions.

Comment 9 James (purpleidea) 2014-04-28 22:48:51 UTC
(In reply to Jan Safranek from comment #8)
> [Updating the 'Summary' to reflect actual RFE.]
> 
> (In reply to James from comment #7)
> > (In reply to Jan Safranek from comment #6)
> > > Local API (maybe with Python bindings) is provided by libstoragemgmt
> > So I keep hearing about this libstoragemgmt. I didn't realize I was able (or
> > allowed) to use it directly (actually I thought it was a c api). In any
> > case, is it ready, and can you point me to a simple how-to-libstoragemgmt
> > how to?
> 
> See https://sourceforge.net/p/libstoragemgmt/wiki/Home/ for examples and uri
> syntax. Tony Asleson [libstoragemgmt author] should be able to answer
> specific questions.

I have talked to them on IRC. They were very friendly. Looks as if this work is in progress. Great stuff, just not 100% ready yet.

Cheers

Comment 10 RHEL Program Management 2014-05-06 05:48:34 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 13 errata-xmlrpc 2015-11-19 11:46:19 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHEA-2015-2342.html