[
https://issues.apache.org/jira/browse/DTACLOUD-473?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Joseph J. VLcek closed DTACLOUD-473.
------------------------------------
Resolution: Cannot Reproduce
I've investigated and I'm wondering if this might be a "cockpit" error.
The image ID specified above does not exist:
dd01aa3a-36d6-42cc-972a-a29cd2c6b21
What does exists is that image id with an additional "1" at the end.
dd01aa3a-36d6-42cc-972a-a29cd2c6b211
I've produced a failure using the incorrect image Id listed above but it is
different
from what you have reported, which is a bit of a mystery.
If I use a correct image id I am able to successfully create the instance.
I'm going to mark this as "Cannot Reporduce"
Please let me know if you can still reproduce it and if so please provide a bit
more
info on how, including the ruby client create code being used.
> Creating an instance in RHEVM 3.0 using Deltacloud ruby client errors out
> -------------------------------------------------------------------------
>
> Key: DTACLOUD-473
> URL: https://issues.apache.org/jira/browse/DTACLOUD-473
> Project: DeltaCloud
> Issue Type: Bug
> Components: Client (Ruby)
> Environment: RHEVM 3.1
> Ruby 1.9.3
> Deltacloud gem under test 1.1.1 rc2
> rbovirt-0.0.17
> Reporter: Ronelle Landy
> Assignee: Joseph J. VLcek
>
> 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>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira