fog / fog-vsphere

Fog for vSphere
MIT License
36 stars 63 forks source link

Issue creating storage volume #108

Open puppetpies opened 7 years ago

puppetpies commented 7 years ago
  output = compute.volumes.create('server_id' => "50139021-8a50-cf77-3395-f1806364cd9a",
                                  'size_gb' => "10", 
                                  'name' => "myvol1}", 
                                  'datastore' => "datastore1")
  pp output

I Seem to be getting to below error when i try to create a new volume for my VM.

/usr/lib64/ruby/gems/2.4.0/gems/fog-core-1.45.0/lib/fog/core/attributes.rb:155:in requires': server is required for this operation (ArgumentError) from /usr/lib64/ruby/gems/2.4.0/gems/fog-vsphere-1.12.0/lib/fog/vsphere/models/compute/volume.rb:98:inserver_id' from /usr/lib64/ruby/gems/2.4.0/gems/fog-core-1.45.0/lib/fog/core/attributes.rb:172:in block in missing_attributes' from /usr/lib64/ruby/gems/2.4.0/gems/fog-core-1.45.0/lib/fog/core/attributes.rb:171:ineach' from /usr/lib64/ruby/gems/2.4.0/gems/fog-core-1.45.0/lib/fog/core/attributes.rb:171:in missing_attributes' from /usr/lib64/ruby/gems/2.4.0/gems/fog-core-1.45.0/lib/fog/core/attributes.rb:153:inrequires' from /usr/lib64/ruby/gems/2.4.0/gems/fog-vsphere-1.12.0/lib/fog/vsphere/models/compute/volume.rb:56:in save' from /usr/lib64/ruby/gems/2.4.0/gems/fog-core-1.45.0/lib/fog/core/collection.rb:50:increate'

puppetpies commented 7 years ago

Do you have any pointers of what i might need to look at the fix this ?

puppetpies commented 7 years ago

Anyone?

chris1984 commented 6 years ago

I will start looking into this

chris1984 commented 6 years ago

@jrgarcia can you assign this one to me please?

puppetpies commented 6 years ago

Thankyou for taking a look 👍