deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ramesh A (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DTACLOUD-41) RHEVM driver returns 500 Internal Server Error if a instance name has been entered > 50chars
Date Wed, 21 Mar 2012 12:15:39 GMT

    [ https://issues.apache.org/jira/browse/DTACLOUD-41?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13234305#comment-13234305
] 

Ramesh A commented on DTACLOUD-41:
----------------------------------

Verified and working fine.  Deltacloud API now throws 400 Bad Request in the ui stating "Deltacloud::ExceptionHandler::ValidationFailure
- Parameter name must be 50 characters or less" and in the console throws the below mentioned
message.
Tested on the commit - 89b0c42449470ba373eb2f4d5fafd607d6409efc

console output:
===========
RuntimeError:Parameter name must be 50 characters or less
/home/rananda/deltacloud/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb:183:in `create_instance'
/home/rananda/deltacloud/server/lib/deltacloud/base_driver/exceptions.rb:173:in `call'
/home/rananda/deltacloud/server/lib/deltacloud/base_driver/exceptions.rb:173:in `safely'
/home/rananda/deltacloud/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb:181:in `create_instance'
/home/rananda/deltacloud/server/lib/deltacloud/server.rb:483
/home/rananda/deltacloud/server/lib/sinatra/rabbit.rb:125:in `instance_eval'
/home/rananda/deltacloud/server/lib/sinatra/rabbit.rb:125:in `POST /api/instances'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:1211:in `call'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:1211:in `compile!'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in `[]'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in `route!'
127.0.0.1 - - [21/Mar/2012 17:38:15] "POST /api/instances HTTP/1.1" 400 82841 0.2194

                
> RHEVM driver returns 500 Internal Server Error if a instance name has been entered >
50chars
> --------------------------------------------------------------------------------------------
>
>                 Key: DTACLOUD-41
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-41
>             Project: DeltaCloud
>          Issue Type: Bug
>          Components: Server
>            Reporter: Martyn Taylor
>            Assignee: Ramesh A
>         Attachments: error-message.png
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> On an instance create request for server using RHEV-M backend, when trying to create
with an instance name > 50 chars.  The Server returns an Internal Server Error HTTP 500.
 This is because the RHEV-M backend does not support Instances names of this length.
> Some validation Checks should be applied before requests are sent to the RHEV-M backend
to make sure that these errors do not occur and to make sure a relevant Error message is returned
to the client

--
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

        

Mime
View raw message