Class OpenStack::Volume::Connection
In: lib/openstack/volume/connection.rb
Parent: Object

Methods

Attributes

connection  [RW] 
volume_path  [R] 
volumes_native  [R] 

Public Class methods

Public Instance methods

Returns true if the authentication was successful and returns false otherwise.

  cs.authok?
  => true

require params: {:display_name, :volume_id} optional params: {:display_description, :metadata=>{:key=>val, …}, :availability_zone, :volume_type } returns OpenStack::Volume::Snapshot object

require params: {:display_name, :size} optional params: {:display_description, :metadata=>{:key=>val, …}, :availability_zone, :volume_type } returns OpenStack::Volume::Volume object

Lists all back-end storage pools that are known to the scheduler service

get_quotas(1)

> { "volumes_slow"=>-1, "snapshots_slow"=>-1, "gigabytes_slow"=>-1,

     "volumes_fast"=>-1, "snapshots_fast"=>-1, "gigabytes_fast"=>-1,
     "volumes"=>10, "snapshots"=>10, "gigabytes"=>1001, "id"=>"1"}

[ {:extra_specs=>{:volume_backend_name=>"volumes-standard"}, :name=>"slow", :id=>"b3a104b6-fe70-4450-8681-e911a153f41f"},

  {:extra_specs=>{:volume_backend_name=>"volumes-speed"}, :name=>"fast", :id=>"0e278952-9baa-4aa8-88a7-fe8387f1d86c"} ]

no options documented in API at Nov 2012 (e.g. like limit/marker as used in Nova for servers)

snapshot(snap_id)

Alias for get_snapshot

snapshots()

Alias for list_snapshots

types()

Alias for list_volume_types

quota_set = { gigabytes: 500, gigabytes_slow: 200, gigabytes_fast: 300 } cinder.update_quotas(1, quota_set)

volume(vol_id)

Alias for get_volume

volumes(options = {})

Alias for list_volumes

[Validate]