deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ramesh A (Commented) (JIRA)" <>
Subject [jira] [Commented] (DTACLOUD-34) Driver selection does not work when using WEBrick server
Date Mon, 26 Mar 2012 13:22:29 GMT


Ramesh A commented on DTACLOUD-34:

Verified and working fine.  Deltcloud API now throws HTTP status 200 for the driver selection
using WEBrick server.  Please find the test procedure qualifying the result. Hence closing
this issue

Procedure to test:
1. Un-install "thin" server,  which makes deltacloud to use WEBrick forcefully 
2. Started the deltacloudd server and passed the url "http://localhost:3001/api;driver=mock"

Actual Result:
Deltacloud API throws http status code 200.  below is the console output snippet

" - - [26/Mar/2012 08:50:37] "GET /api;driver=mock?api[driver]=mock HTTP/1.1"
200 3388 0.2866"

> Driver selection does not work when using WEBrick server
> --------------------------------------------------------
>                 Key: DTACLOUD-34
>                 URL:
>             Project: DeltaCloud
>          Issue Type: Bug
>          Components: Server
>         Environment: Fedora 14, deltacloud git-svn-id:
>            Reporter: Chris Lalancette
>            Assignee: Michal Fojtik
>         Attachments: deltacloudd-webrick-driverswitch.patch
> One of the new features of deltacloud 0.3.0 is the ability to switch backend drivers
on a per-request basis.  One of the ways to do this is to create a URL like: http://localhost:3001/api;driver=mock.
 When using the thin webserver, this invocation works just fine, and you get the output from
the mock driver.  However, when using the WEBrick server, this does not work and you get an
error page that says "Sinatra doesn't know this ditty" (this generally means a 404).  The
relevant part of the deltacloudd log looks like:
> - - [29/Apr/2011 09:04:03] "GET http://localhost:3001/api?api[driver]=mock
HTTP/1.1" 404 433 0.0124
> That GET request is actually wrong; it should be something like "GET /api?api[driver]=mock",
not the full URL.  This observation led me to a patch (which I will attach), which seems to
improve the situation.  However, it doesn't completely solve the problem, as even with this
patch applied I still cannot make driver selection work.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message