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

Michal Fojtik commented on DTACLOUD-364:
----------------------------------------

The set 150 was successfully recorded to http://tracker.deltacloud.org/set/150.

Patches:

 * [1/1] Mock: Fix reporting wrong hardware profile when creating instances 
(DTACLOUD-364)
   http://tracker.deltacloud.org/patch/08cfbb03

Apply: $ tracker download 150 -b reviews/set_150
                
> base_driver.rb causes 500: [ArgumentError] wrong number of arguments (4 for 2)
> ------------------------------------------------------------------------------
>
>                 Key: DTACLOUD-364
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-364
>             Project: DeltaCloud
>          Issue Type: Bug
>          Components: Server
>            Reporter: Dies Koper
>            Assignee: Michal Fojtik
>            Priority: Minor
>
> Uncovered a bug while experimenting with adding machines with the mock driver.
> The bug is in base_driver.rb:107 and 112 (and possibly in other locations):
>           raise BackendError.new(400, "bad-hardware-profile-name",
>                                  "Hardware profile '#{name}' does not exist", 
> nil)
> causes the error in the subject because exceptions.rb has:
>     class BackendError < DeltacloudException
>       def initialize(e, message=nil)
> To reproduce:
> curl --user "mockuser:mockpassword" -X POST 
> http://localhost:3001/cimi/machines -H "Content-Type: application/json" -d 
> @post.json
> with post.json having:
> { "resourceURI": "http://schemas.dmtf.org/cimi/1/MachineCreate";, "name": 
> "myMachine1", "description": "My very first machine", "machineTemplate": { 
> "machineConfig": { "href": 
> "http://localhost:3001/cimi/machine_configurations/economy"; }, 
> "machineImage": { "href": 
> "http://localhost:3001/cimi/machine_images/IMG_3c9820_S24FWXU0Q9VH0JK"; } } }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to