Ruby 1.9.3 p392 refuses to create a Ruby object from the JSON parser. This appears to be breaking the error reporting (and probably the cause of the error itself) in cloudstack/compute.rb. Note that the output from JSON parser is a hash, when the code seems to be expecting an object:
DEBUG: Using configuration from /Users/Mojo/.chef/knife.rb
DEBUG: Options: {"zoneid"=>"7c1b8a2e-9107-4a0c-ba88-c483074d074b", "templateid"=>"e096b683-fd25-4947-a61f-d693c9cd107e", "serviceofferingid"=>"7cfe46b3-07d5-4004-9732-ee826431b379", "displayname"=>"brandmhvmsh1a", "name"=>"brandmhvmsh1a", "networkids"=>["810384d3-4d1d-4614-a4ef-5ec0c934ddcd"], "diskofferingid"=>"caccbff8-0ff1-4170-a2f8-6bd42e6f8dec"}
/Users/Mojo/.rvm/gems/ruby-1.9.3-p327@global/gems/fog-1.8.0/lib/fog/cloudstack/compute.rb:235:in rescue in issue_request': undefined methodbody' for #Hash:0x007fff1470bdc0 (NoMethodError)
from /Users/Mojo/.rvm/gems/ruby-1.9.3-p327@global/gems/fog-1.8.0/lib/fog/cloudstack/compute.rb:226:in issue_request' from /Users/Mojo/.rvm/gems/ruby-1.9.3-p327@global/gems/fog-1.8.0/lib/fog/cloudstack/compute.rb:190:inrequest'
from /Users/Mojo/.rvm/gems/ruby-1.9.3-p327@global/gems/fog-1.8.0/lib/fog/cloudstack/requests/compute/deploy_virtual_machine.rb:26:in deploy_virtual_machine' from /Users/Mojo/.rvm/gems/ruby-1.9.3-p327/gems/knife-cloudstack-fog-0.3.2/lib/chef/knife/cloudstack_server_create.rb:230:inrun'
from /Users/Mojo/.rvm/gems/ruby-1.9.3-p327/gems/chef-10.24.0/lib/chef/knife.rb:408:in run_with_pretty_exceptions' from /Users/Mojo/.rvm/gems/ruby-1.9.3-p327/gems/chef-10.24.0/lib/chef/knife.rb:168:inrun'
from /Users/Mojo/.rvm/gems/ruby-1.9.3-p327/gems/chef-10.24.0/lib/chef/application/knife.rb:123:in run' from /Users/Mojo/.rvm/gems/ruby-1.9.3-p327/gems/chef-10.24.0/bin/knife:25:in<top (required)>'
from /Users/Mojo/.rvm/gems/ruby-1.9.3-p327/bin/knife:19:in load' from /Users/Mojo/.rvm/gems/ruby-1.9.3-p327/bin/knife:19:in'
from /Users/Mojo/.rvm/gems/ruby-1.9.3-p327/bin/ruby_noexec_wrapper:14:in eval' from /Users/Mojo/.rvm/gems/ruby-1.9.3-p327/bin/ruby_noexec_wrapper:14:in'
Ruby 1.9.3 p392 refuses to create a Ruby object from the JSON parser. This appears to be breaking the error reporting (and probably the cause of the error itself) in cloudstack/compute.rb. Note that the output from JSON parser is a hash, when the code seems to be expecting an object:
DEBUG: Using configuration from /Users/Mojo/.chef/knife.rb DEBUG: Options: {"zoneid"=>"7c1b8a2e-9107-4a0c-ba88-c483074d074b", "templateid"=>"e096b683-fd25-4947-a61f-d693c9cd107e", "serviceofferingid"=>"7cfe46b3-07d5-4004-9732-ee826431b379", "displayname"=>"brandmhvmsh1a", "name"=>"brandmhvmsh1a", "networkids"=>["810384d3-4d1d-4614-a4ef-5ec0c934ddcd"], "diskofferingid"=>"caccbff8-0ff1-4170-a2f8-6bd42e6f8dec"}
/Users/Mojo/.rvm/gems/ruby-1.9.3-p327@global/gems/fog-1.8.0/lib/fog/cloudstack/compute.rb:235:in'
from /Users/Mojo/.rvm/gems/ruby-1.9.3-p327/bin/ruby_noexec_wrapper:14:in '
rescue in issue_request': undefined method
body' for #Hash:0x007fff1470bdc0 (NoMethodError) from /Users/Mojo/.rvm/gems/ruby-1.9.3-p327@global/gems/fog-1.8.0/lib/fog/cloudstack/compute.rb:226:inissue_request' from /Users/Mojo/.rvm/gems/ruby-1.9.3-p327@global/gems/fog-1.8.0/lib/fog/cloudstack/compute.rb:190:in
request' from /Users/Mojo/.rvm/gems/ruby-1.9.3-p327@global/gems/fog-1.8.0/lib/fog/cloudstack/requests/compute/deploy_virtual_machine.rb:26:indeploy_virtual_machine' from /Users/Mojo/.rvm/gems/ruby-1.9.3-p327/gems/knife-cloudstack-fog-0.3.2/lib/chef/knife/cloudstack_server_create.rb:230:in
run' from /Users/Mojo/.rvm/gems/ruby-1.9.3-p327/gems/chef-10.24.0/lib/chef/knife.rb:408:inrun_with_pretty_exceptions' from /Users/Mojo/.rvm/gems/ruby-1.9.3-p327/gems/chef-10.24.0/lib/chef/knife.rb:168:in
run' from /Users/Mojo/.rvm/gems/ruby-1.9.3-p327/gems/chef-10.24.0/lib/chef/application/knife.rb:123:inrun' from /Users/Mojo/.rvm/gems/ruby-1.9.3-p327/gems/chef-10.24.0/bin/knife:25:in
<top (required)>' from /Users/Mojo/.rvm/gems/ruby-1.9.3-p327/bin/knife:19:inload' from /Users/Mojo/.rvm/gems/ruby-1.9.3-p327/bin/knife:19:in
eval' from /Users/Mojo/.rvm/gems/ruby-1.9.3-p327/bin/ruby_noexec_wrapper:14:in