----- Original Message -----
From: "Michal Fojtik" <mfojtik(a)redhat.com>
To: "James Labocki" <jlabocki(a)redhat.com>
Cc: aeolus-devel(a)lists.fedorahosted.org
Sent: Wednesday, August 17, 2011 10:03:04 AM
Subject: Re: Error After Launching Deployment
On Aug 17, 2011, at 3:28 PM, James Labocki wrote:
Hi,
> Here are the contents of /var/log/deltacloud-rhevm/rhevm.log
> 127.0.0.1 - - [16/Aug/2011 17:23:13] "GET /api HTTP/1.1" 200 869
> 0.0090
> 127.0.0.1 - - [16/Aug/2011 17:23:13] "GET /api HTTP/1.1" 200 869
> 0.0101
> 127.0.0.1 - - [16/Aug/2011 17:23:13] "GET /api/instances HTTP/1.1"
> 200 1293 0.2889
> 127.0.0.1 - - [16/Aug/2011 17:23:13] "GET /api/instances HTTP/1.1"
> 200 1293 0.2894
> 127.0.0.1 - - [16/Aug/2011 17:23:13] "GET /api HTTP/1.1" 200 869
> 0.0061
> 127.0.0.1 - - [16/Aug/2011 17:23:18] "GET /api HTTP/1.1" 200 869
> 0.0454
> Deltacloud::ExceptionHandler::ProviderError - 500 Internal Server
> Error:
Since in 2.2 with Powershell there are no nice error messages, just
tomcat/jboss
tracebacks we're unable to parse them and display to user.
For the record, this is RHEV 3.0 with REST API. I'm not sure if this changes my
ability to troubleshoot the API from the RHEVM perspective. I'll dig into this.
However you can debug this issue using 'puts' to actually see
what is
being sent
to RHEV-M when creating a new machine.
You can do following:
$ vim/emacs
/usr/share/deltacloud-core/lib/deltacloud/drivers/rhevm/rhevm_client.rb
Now put this on line 73:
puts "========= new instance ========="
puts Nokogiri::XML(builder.to_xml).root.to_s
puts "================================"
This code will show you what XML is used to launch a RHEV-M instance.
Things that
are worth to verify are:
- <template id="*should_be_UUID*"/>
- memory value should be in bytes
- cluster should be valid cluster (realm_id)
Here is the output.
===== new instance =====
<vm>
<name>5407c065-cd55-4424-bbb9-2aeb4bcc4215</name>
<template id="b049f12f-9c6a-429c-8e9a-b465392c1da2"/>
<cluster id="99408929-82cf-4dc7-a532-9d998063fa95"/>
<type>SERVER</type>
<memory>536870912</memory>
<cpu>
<topology sockets="1" cores="1"/>
</cpu>
</vm>
===== end new instance =====
It appears the template ID is not correct (it doesn't exist in RHEVM). I'm trying
to rebuild/push to make sure I didn't just confuse a UUID somewhere. When will
aeolus-image delete become available so I can clean up all these images? :)
If nothing, posting log output with this chunk will help us to debug
the problem.
-- Michal
>
/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/abstract_response.rb:48:in
> `return!'
> /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:220:in
> `process_result'
> /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:169:in
> `transmit'
> /usr/lib/ruby/1.8/net/http.rb:543:in `start'
> /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:166:in
> `transmit'
> /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:60:in
> `execute'
> /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:31:in
> `execute'
> /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/resource.rb:63:in
> `post'
> ././lib/deltacloud/drivers/rhevm/rhevm_client.rb:73:in `create_vm'
> ././lib/deltacloud/drivers/rhevm/rhevm_driver.rb:188:in
> `create_instance'
> ././lib/deltacloud/base_driver/exceptions.rb:111:in `call'
> ././lib/deltacloud/base_driver/exceptions.rb:111:in `safely'
> ././lib/deltacloud/drivers/rhevm/rhevm_driver.rb:182:in
> `create_instance'
> ././server.rb:397
> ././lib/sinatra/rabbit.rb:113:in `instance_eval'
> ././lib/sinatra/rabbit.rb:113:in `POST /api/instances'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:863:in
> `call'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:863:in
> `route'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:521:in
> `instance_eval'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:521:in
> `route_eval'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:500:in
> `route!'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:497:in
> `catch'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:497:in
> `route!'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:476:in
> `each'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:476:in
> `route!'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:601:in
> `dispatch!'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:411:in
> `call!'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:566:in
> `instance_eval'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:566:in
> `invoke'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:566:in
> `catch'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:566:in
> `invoke'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:411:in
> `call!'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:399:in
> `call'
> ././lib/sinatra/rack_driver_select.rb:45:in `call'
> ././lib/sinatra/rack_matrix_params.rb:85:in `call'
> ././lib/sinatra/rack_runtime.rb:36:in `call'
> ././lib/sinatra/rack_etag.rb:42:in `call'
> /usr/lib/ruby/gems/1.8/gems/rack-accept-0.4.3/lib/rack/accept/context.rb:22:in
> `call'
> /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/methodoverride.rb:24:in
> `call'
> /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/commonlogger.rb:18:in
> `call'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:979:in
> `call'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:1005:in
> `synchronize'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:979:in
> `call'
> /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/connection.rb:76:in
> `pre_process'
> /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/connection.rb:74:in
> `catch'
> /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/connection.rb:74:in
> `pre_process'
> /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1060:in
> `call'
> /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1060:in
> `spawn_threadpool'
> /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1057:in
> `initialize'
> /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1057:in
> `new'
> /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1057:in
> `spawn_threadpool'
> /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1049:in
> `defer'
> /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/connection.rb:54:in
> `process'
> /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/connection.rb:42:in
> `receive_data'
> /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in
> `run_machine'
> /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in
> `run'
> /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/backends/base.rb:57:in
> `start'
> /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/server.rb:156:in
> `start'
> /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/controllers/controller.rb:80:in
> `start'
> /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/runner.rb:177:in
> `send'
> /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/runner.rb:177:in
> `run_command'
> /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/runner.rb:143:in
> `run!'
> /usr/share/deltacloud-core/bin/deltacloudd:126
> /usr/bin/deltacloudd:5:in `load'
> /usr/bin/deltacloudd:5
> _machine'
> /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in
> `run'
> /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/backends/base.rb:57:in
> `start'
> /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/server.rb:156:in
> `start'
> /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/controllers/controller.rb:80:in
> `start'
> /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/runner.rb:177:in
> `send'
> /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/runner.rb:177:in
> `run_command'
> /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/runner.rb:143:in
> `run!'
> /usr/share/deltacloud-core/bin/deltacloudd:126
> /usr/bin/deltacloudd:5:in `load'
> /usr/bin/deltacloudd:5
> !! Unexpected error while processing request: undefined method
> `details' for
> #<Deltacloud::ExceptionHandler::ProviderError:0x7f3f426f6778>
> undefined method `details' for
> #<Deltacloud::ExceptionHandler::ProviderError:0x7f3f426f6778>
> ././views/errors/502.xml.haml:5:in
> `__tilt_c2d225826150225b6ff2072079794052'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/tilt.rb:192:in
> `send'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/tilt.rb:192:in
> `evaluate'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/tilt.rb:449:in
> `evaluate'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/tilt.rb:131:in
> `render'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:343:in
> `render_without_format'
> ././lib/sinatra/respond_to.rb:129:in `render'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:311:in
> `haml'
> ././lib/deltacloud/helpers/application_helper.rb:112:in
> `report_error'
> ././lib/sinatra/respond_to.rb:242:in `call'
> ././lib/sinatra/respond_to.rb:242:in `respond_to'
> ././lib/deltacloud/helpers/application_helper.rb:111:in
> `report_error'
> ././server.rb:61
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:641:in
> `instance_eval'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:641:in
> `error_block!'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:636:in
> `each'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:636:in
> `error_block!'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:630:in
> `handle_exception!'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:605:in
> `dispatch!'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:411:in
> `call!'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:566:in
> `instance_eval'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:566:in
> `invoke'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:566:in
> `catch'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:566:in
> `invoke'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:411:in
> `call!'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:399:in
> `call'
> ././lib/sinatra/rack_driver_select.rb:45:in `call'
> ././lib/sinatra/rack_matrix_params.rb:85:in `call'
> ././lib/sinatra/rack_runtime.rb:36:in `call'
> ././lib/sinatra/rack_etag.rb:42:in `call'
> /usr/lib/ruby/gems/1.8/gems/rack-accept-0.4.3/lib/rack/accept/context.rb:22:in
> `call'
> /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/methodoverride.rb:24:in
> `call'
> /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/commonlogger.rb:18:in
> `call'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:979:in
> `call'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:1005:in
> `synchronize'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:979:in
> `call'
> /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/connection.rb:76:in
> `pre_process'
> /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/connection.rb:74:in
> `catch'
> /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/connection.rb:74:in
> `pre_process'
> /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1060:in
> `call'
> /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1060:in
> `spawn_threadpool'
> /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1057:in
> `initialize'
> /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1057:in
> `new'
> /usr/lib/ruby/gems/1.8/gems/ev
>
>
>
> I am able to hit the RHEVM API from the host runnig
> aeolus/deltacloud:
>
> # curl -k -u admin@rhev3.cloud.redhat.com:password
>
https://rhev3.cloud.redhat.com:8443/rhevm-api/
> <?xml version="1.0" encoding="UTF-8"
standalone="yes"?>
> <api>
> <link rel="capabilities"
href="/rhevm-api/capabilities"/>
> <link rel="clusters" href="/rhevm-api/clusters"/>
> <link rel="clusters/search"
> href="/rhevm-api/clusters?search={query}"/>
> <link rel="datacenters"
href="/rhevm-api/datacenters"/>
> <link rel="datacenters/search"
> href="/rhevm-api/datacenters?search={query}"/>
> <link rel="events" href="/rhevm-api/events"/>
> <link rel="events/search"
> href="/rhevm-api/events?search={query}"/>
> <link rel="hosts" href="/rhevm-api/hosts"/>
> <link rel="hosts/search"
href="/rhevm-api/hosts?search={query}"/>
> <link rel="networks" href="/rhevm-api/networks"/>
> <link rel="roles" href="/rhevm-api/roles"/>
> <link rel="storagedomains"
href="/rhevm-api/storagedomains"/>
> <link rel="storagedomains/search"
> href="/rhevm-api/storagedomains?search={query}"/>
> <link rel="tags" href="/rhevm-api/tags"/>
> <link rel="templates" href="/rhevm-api/templates"/>
> <link rel="templates/search"
> href="/rhevm-api/templates?search={query}"/>
> <link rel="users" href="/rhevm-api/users"/>
> <link rel="groups" href="/rhevm-api/groups"/>
> <link rel="domains" href="/rhevm-api/domains"/>
> <link rel="vmpools" href="/rhevm-api/vmpools"/>
> <link rel="vmpools/search"
> href="/rhevm-api/vmpools?search={query}"/>
> <link rel="vms" href="/rhevm-api/vms"/>
> <link rel="vms/search"
href="/rhevm-api/vms?search={query}"/>
> <special_objects>
> <link rel="templates/blank"
>
href="/rhevm-api/templates/00000000-0000-0000-0000-000000000000"/>
> <link rel="tags/root"
> href="/rhevm-api/tags/00000000-0000-0000-0000-000000000000"/>
> </special_objects>
> <system_version revision="0" build="0" minor="0"
major="3"/>
> <summary>
> <vms>
> <total>1</total>
> <active>1</active>
> </vms>
> <hosts>
> <total>2</total>
> <active>2</active>
> </hosts>
> <users>
> <total>1</total>
> <active>1</active>
> </users>
> <storage_domains>
> <total>3</total>
> <active>3</active>
> </storage_domains>
> </summary>
> </api>
>
> _______________________________________________
> aeolus-devel mailing list
> aeolus-devel(a)lists.fedorahosted.org
>
https://fedorahosted.org/mailman/listinfo/aeolus-devel
------------------------------------------------------
Michal Fojtik, mfojtik(a)redhat.com
Deltacloud API:
http://deltacloud.org
_______________________________________________
aeolus-devel mailing list
aeolus-devel(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/aeolus-devel