0.0
No commit activity in last 3 years
No release in over 3 years
Ruby client for Solidfire Storage API. Usefull for metric collection of Volumes and cluster status
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.5
~> 1.5

Runtime

 Project Readme

SolidfireApi

Gem Version

Ruby Gem to connect on Solidfire storage Array API to collect stats. Currently support Simple Authentication and very basic functionalities. Work with API version 8 of SolidFire.

Currently supporting volumes, cluster and disks listing and stats API call's to collect performance metrics for monitoring usage. Nothing for managing cluster yet.

Creation of VolumeAccessGroup, map volumes and iSCSI initiator.

Use gem: RestClient to interract with Solidfire API.

Installation

Gems requirements:

  • rest_client
  • net/http
  • json

Install it:

$ gem install solidfire_api
$ irb
> require 'solidfire_api'

Usage

Get some cluster informations

  require 'solidfire_api'
  my_sf = SolidfireApi::Connection.new({
    :mvip => "192.168.0.1",
    :username => "monitor",
    :password =>  "patate",
    :verify_ssl => true
  })

  # Some method examples:
  my_sf.name
  my_sf.mvip
  my_sf.svip
  my_sf.volumes_list
  

Map Volume to a Volume Access Group

If you don't want to use CHAP authentication for iSCSI LUN access from initiator, you have to attach Volume to Volume Access Group that include iSCSI initiators.

Administrator privileges required.

  require 'solidfire_api'
  my_sf = SolidfireApi::Connection.new({
    :mvip => "192.168.0.1",
    :username => "admin",
    :password =>  "admin_password"
  })
  
  my_sf.vag_add_volume("volumename", "group_name")
   => {}

Contributing

  1. Fork it ( http://github.com/pdion891/solidfire_api/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Todo

  • Everything else