incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michal Fojtik (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (DTACLOUD-50) using the vmware driver, launching a new instance fails
Date Thu, 21 Jul 2011 11:51:00 GMT

     [ https://issues.apache.org/jira/browse/DTACLOUD-50?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Michal Fojtik resolved DTACLOUD-50.
-----------------------------------

    Resolution: Fixed

Should be fixed now.

> using the vmware driver, launching a new instance fails
> -------------------------------------------------------
>
>                 Key: DTACLOUD-50
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-50
>             Project: DeltaCloud
>          Issue Type: Bug
>          Components: Client (Ruby)
>         Environment: http://10.65.193.195:3005/api/instances
>            Reporter: wes hayutin
>            Assignee: Michal Fojtik
>              Labels: vmware
>
> recreate:
> 1. login, -> instances
> 2. choose a template
> 3. launch an instance.. used a "medium" hardware profile
> Internal Server Error
> NameError: undefined local variable or method `dc' for #
> Request URL
> /api/instances
> Request headers
> {"sinatra.error"=>#>, "HTTP_ACCEPT"=>"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
"HTTP_CACHE_CONTROL"=>"max-age=0", "HTTP_HOST"=>"10.65.193.195:3005", "SERVER_NAME"=>"10.65.193.195",
"rack.url_scheme"=>"http", "CONTENT_LENGTH"=>"68", "HTTP_USER_AGENT"=>"Mozilla/5.0
(X11; Linux i686) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.77 Safari/534.30",
"REQUEST_PATH"=>"/api/instances", "SERVER_PROTOCOL"=>"HTTP/1.1", "CONTENT_TYPE"=>"application/x-www-form-urlencoded",
"HTTP_ACCEPT_LANGUAGE"=>"en-US,en;q=0.8", "rack.errors"=>#, "async.callback"=>#,
"REMOTE_ADDR"=>"10.11.11.232", "PATH_INFO"=>"/api/instances", "rack.run_once"=>false,
"rack.version"=>[1, 0], "SERVER_SOFTWARE"=>"thin 1.2.5 codename This Is Not A Web Server",
"SCRIPT_NAME"=>"", "HTTP_AUTHORIZATION"=>"Basic QWRtaW5pc3RyYXRvcjoxMDB5YXJkLQ==", "HTTP_REFERER"=>"http://10.65.193.195:3005/api/instances/new?image_id=mfojtik-template",
"HTTP_VERSION"=>"HTTP/1.1", "rack.multithread"=>true, "rack.request.form_vars"=>"image_id=mfojtik-template&name=wes_test3&hwp_id=medium&commit=create",
"REQUEST_URI"=>"/api/instances", "rack.multiprocess"=>false, "rack.request.query_hash"=>{"image_id"=>"mfojtik-template",
"name"=>"wes_test3", "commit"=>"create", "hwp_id"=>"medium"}, "rack.request.form_input"=>#,
"SERVER_PORT"=>"3005", "HTTP_ACCEPT_CHARSET"=>"ISO-8859-1,utf-8;q=0.7,*;q=0.3", "async.close"=>#,
"REQUEST_METHOD"=>"POST", "rack-accept.request"=>#1, "text/html"=>1, "application/xml"=>0.9,
"*/*"=>0.8}>>, "HTTP_ORIGIN"=>"http://10.65.193.195:3005", "rack.request.query_string"=>"",
"rack.request.form_hash"=>{"name"=>"wes_test3", "image_id"=>"mfojtik-template", "commit"=>"create",
"hwp_id"=>"medium"}, "QUERY_STRING"=>"", "GATEWAY_INTERFACE"=>"CGI/1.2", "HTTP_ACCEPT_ENCODING"=>"gzip,deflate,sdch",
"HTTP_CONNECTION"=>"keep-alive", "rack.input"=>#}
> Parameters
> {"image_id"=>"mfojtik-template", "name"=>"wes_test3", "commit"=>"create", "hwp_id"=>"medium"}
> Response headers
> {"Content-Type"=>"text/html;charset=utf-8"}
> Code
> 500
> Backtrace
> ././lib/deltacloud/drivers/vsphere/vsphere_driver.rb:207:in `create_instance'
>               ././server.rb:396
>               ././lib/sinatra/rabbit.rb:114:in `instance_eval'
>               ././lib/sinatra/rabbit.rb:114: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/stats.rb:24:in `call'
>               /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/stats.rb:33:in `log'
>               /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/stats.rb:24: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/lib/ruby/gems/1.8/gems/thin-1.2.5/bin/thin:6
>               /usr/bin/thin:19:in `load'
>               /usr/bin/thin:19
> Explanation
> The server encountered an unexpected condition which prevented it from fulfilling the
request.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message