Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Cannot Reproduce
-
None
-
RHEVM 3.1
Ruby 1.9.3
Deltacloud gem under test 1.1.1 rc2
rbovirt-0.0.17
Description
Creating an instance using:
Deltacloud server + rhvem 3.1 -> works
Deltacloud server + rhvem 3.0 -> works
Deltacloud server + Ruby client + rhvem 3.1 -> works
Deltacloud server + Ruby client + rhvem 3.0 -> error
see below ....
irb(main):034:0> client = DeltaCloud.new("username", "password" , "http://localhost:3001/api")
=> #<DeltaCloud::API:0x000000028e3850 @api_provider=nil, @api_driver=nil, @password="password", @username="username", @api_uri=#<URI::HTTP:0x000000028e3558 URL:http://localhost:3001/api>, @entry_points={:storage_volumes=>"http://localhost:3001/api/storage_volumes", :images=>"http://localhost:3001/api/images", :hardware_profiles=>"http://localhost:3001/api/hardware_profiles", :instances=>"http://localhost:3001/api/instances", :drivers=>"http://localhost:3001/api/drivers", :realms=>"http://localhost:3001/api/realms", :instance_states=>"http://localhost:3001/api/instance_states"}, @features={:instances=>[:user_name, :user_data]}, @verbose=false, @driver_name="rhevm", @api_version="1.1.1">
irb(main):035:0> instance = client.create_instance( "dd01aa3a-36d6-42cc-972a-a29cd2c6b21", :hardware_profile=>'SERVER', :name=>"rlandyUserData2", :user_data=>'<data>')
DeltaCloud::HTTPError::DeltacloudError: 500
DeltaCloud::HTTPError::ServerError: Entity not found: GetVmTemplate
Parameters: {:hardware_profile=>"SERVER", :name=>"rlandyUserData2", :user_data=>"\n TVh4b2RIUndjem92TDJSbFlXUmtiMjVyWlhrdWRYTmxjbk41Y3k1eVpXUm9Z\n WFF1WTI5dGZHTnZibVIxWTNSdmNsOXJaWGw4T1RVek9Ea3dOVGd5TURZNU5U\n RTNNRGswTkRReE56Z3hOelkzTVRreE56QTVORGc0TXpVNU5UUTVORGc0TVRn\n dw==\n ", :hwp_id=>"SERVER", :image_id=>"dd01aa3a-36d6-42cc-972a-a29cd2c6b21", :splat=>"[]", :captures=>"[#]\n "}
Driver: rhevm@https:<driver>
from /usr/local/share/gems/gems/rbovirt-0.0.17/lib/rbovirt.rb:89:in `rescue in http_post'
from /usr/local/share/gems/gems/rbovirt-0.0.17/lib/rbovirt.rb:86:in `http_post'
from /usr/local/share/gems/gems/rbovirt-0.0.17/lib/client/vm_api.rb:35:in `create_vm'
from /usr/local/share/gems/gems/deltacloud-core-1.1.1/lib/deltacloud/drivers/rhevm/rhevm_driver.rb:190:in `block in create_instance'
from /usr/local/share/gems/gems/deltacloud-core-1.1.1/lib/deltacloud/drivers/exceptions.rb:220:in `call'
from /usr/local/share/gems/gems/deltacloud-core-1.1.1/lib/deltacloud/drivers/exceptions.rb:220:in `safely'
from /usr/local/share/gems/gems/deltacloud-core-1.1.1/lib/deltacloud/drivers/rhevm/rhevm_driver.rb:178:in `create_instance'
from /usr/local/share/gems/gems/deltacloud-core-1.1.1/lib/deltacloud/collections/instances.rb:52:in `block (3 levels) in <class:Instances>'
from /usr/local/share/gems/gems/sinatra-rabbit-1.1.3/lib/sinatra/rabbit/base.rb:396:in `instance_eval'
from /usr/local/share/gems/gems/sinatra-rabbit-1.1.3/lib/sinatra/rabbit/base.rb:396:in `block in control'
irb(main):036:0>