[
https://issues.apache.org/jira/browse/DTACLOUD-381?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13504271#comment-13504271
]
Jesus Molina commented on DTACLOUD-381:
---------------------------------------
I have a similar problem, but a different error with latest git. Notice that
nil erros are created usually because one of the tags point to a bad URL, so
check the href. When I attempt to attach a volume I get a 404. A GET request to
the same machinevolume will work fine
127.0.0.1 - - [26/Nov/2012 16:37:12] "POST /cimi/machines/inst3/volumes
HTTP/1.1" 404 464 0.0150
to the following request in JSON
curl --user mockuser:mockpassword -H 'Content-Type: application/json' -H
'Accept: application/json' -d '{ "resourceURI":
"http://schemas.dmtf.org/cimi/1/MachineVolume", "initialLocation": "V",
"volume": { "href": "http://localhost:3003/cimi/volumes/vol1" } }'
http://localhost:3003/cimi/machines/inst3/volumes
or in XML
curl --user $PASSWORD -H "Content-Type: application/xml" -H "Accept:
application/xml" -d '<machineVolume xmlns="http://schemas.dmtf.org/cimi/1">
<volume href="'http://$IP:$PORT/$VOLUMES/$VOLUMEID'"> </volume>
</machineVolume>'
> CIMI: attaching a volume to a machine and deleting volumes are not working
> ---------------------------------------------------------------------------
>
> Key: DTACLOUD-381
> URL: https://issues.apache.org/jira/browse/DTACLOUD-381
> Project: DeltaCloud
> Issue Type: Bug
> Components: CIMI/Frontend
> Environment: Deltacloud 1.0.5
> mock driver
> CIMI frontend
> Reporter: Ronelle Landy
>
> Maybe syntax is just incorrect but:
> Attempting to attach a volume:
> "POST /cimi/machines/inst32/volumes?format=xml HTTP/1.1" 404 490 0.0182
> (full command: curl -X POST --user "n:pw" -d
> '<MachineVolume><initialLocation>V</initialLocation><volume
> href="http://cloud-qe-11.idm.lab.bos.redhat.com:3001/cimi/volumes/Volume1353965611"></volume></MachineVolume>'
>
> "http://cloud-qe-11.idm.lab.bos.redhat.com:3001/cimi/machines/inst32/volumes?format=xml")
> Attempting to delete a volume:
> "DELETE /cimi/volumes/Volume1353965612 HTTP/1.1" 500 1764 0.0565
> E, [2012-11-26T16:34:32.490539 #17196] ERROR -- 500: [TypeError] nil is not a
> symbol
> /home/dcloud/workspace/deltacloud/server/lib/cimi/collections/volumes.rb:19:in
> `respond_to?'
> /home/dcloud/workspace/deltacloud/server/lib/cimi/collections/volumes.rb:19:in
> `capability'
> /usr/lib/ruby/gems/1.8/gems/sinatra-rabbit-1.1.3/lib/sinatra/rabbit/base.rb:384:in
> `DELETE /volumes/:id'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.3/lib/sinatra/base.rb:1264:in `call'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.3/lib/sinatra/base.rb:1264:in
> `compile!'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.3/lib/sinatra/base.rb:835:in `[]'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.3/lib/sinatra/base.rb:835:in `route!'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.3/lib/sinatra/base.rb:851:in
> `route_eval'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.3/lib/sinatra/base.rb:835:in `route!'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.3/lib/sinatra/base.rb:872:in
> `process_route'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.3/lib/sinatra/base.rb:870:in `catch'
--
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