[
https://issues.apache.org/jira/browse/DTACLOUD-151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13228392#comment-13228392
]
Michal Fojtik commented on DTACLOUD-151:
----------------------------------------
No, I think we behave correctly now. Also I sent a patch to the list to make
sure the empty API_PROVIDER is captured and correct exception is given to
client.
commit 588756f0feb754dcf1b6822981d45455bbba8e36
Author: Michal Fojtik <[email protected]>
Date: Tue Mar 13 12:53:50 2012 +0100
RHEV-M: Return 400 when API_PROVIDER is not set
(In the list for review)
> Unhandled exception or status code (No route to host - connect(2)) - invalid
> rhevm server/provider supplied
> -----------------------------------------------------------------------------------------------------------
>
> Key: DTACLOUD-151
> URL: https://issues.apache.org/jira/browse/DTACLOUD-151
> Project: DeltaCloud
> Issue Type: Bug
> Components: Server
> Environment: rhevm 3.0
> deltacloud-core-vsphere-0.5.0-5.el6.noarch
> deltacloud-core-ec2-0.5.0-5.el6.noarch
> deltacloud-core-rhevm-0.5.0-5.el6.noarch
> deltacloud-core-0.5.0-5.el6.noarch
> rubygem-deltacloud-client-0.5.0-2.el6.noarch
> Reporter: Ronelle Landy
> Assignee: Michal Fojtik
>
> Below are errors returned from Deltacloud when a user supplies either an
> invalid provider or rhevm server (note: unhandled exception error):
> Invalid rhevm provider:
> API_PROVIDER="https://10.16.120.230:8443/api;123456" deltacloudd -i rhevm -r
> hp-dl360g5-02.rhts.eng.bos.redhat.com -p 3008
> curl -X GET --user 'username:password'
> "http://hp-dl360g5-02.rhts.eng.bos.redhat.com:3008/api/instances?format=xml"
> <error status='404' url='/api/instances?format=xml'>
> <message>Resource not found</message>
> </error>
> >> Incorrect server:
> API_PROVIDER="https://10.16.120.235:8443/api;123456" deltacloudd -i rhevm -r
> hp-dl360g5-02.rhts.eng.bos.redhat.com -p 3008
> curl -X GET --user 'username:password'
> "http://hp-dl360g5-02.rhts.eng.bos.redhat.com:3008/api/instances?format=xml"
> <error status='500' url='/api/instances?format=xml'>
> <kind>backend_error</kind>
> <backend driver='rhevm' provider='https://10.16.120.235:8443/api;123456'>
> <code>500</code>
> </backend>
> <message><![CDATA[Unhandled exception or status code (No route to host -
> connect(2))]]></message>
> <backtrace>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira