[
https://issues.apache.org/jira/browse/DTACLOUD-381?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ronelle Landy resolved DTACLOUD-381.
------------------------------------
Resolution: Fixed
Fixed in deltacloud commit version fe30257ecc0d17b8fa300300cdc9e227651373e1.
curl -v -X DELETE --user "un:pw"
"http://qe-blade-02.idm.lab.bos.redhat.com:3001/cimi/volumes/vol3?format=xml"
* About to connect() to qe-blade-02.idm.lab.bos.redhat.com port 3001 (#0)
* Trying 10.16.76.33... connected
* Connected to qe-blade-02.idm.lab.bos.redhat.com (10.16.76.33) port 3001 (#0)
* Server auth using Basic with user 'mockuser'
> DELETE /cimi/volumes/vol3?format=xml HTTP/1.1
> Authorization: Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
> User-Agent: curl/7.21.7 (x86_64-redhat-linux-gnu) libcurl/7.21.7 NSS/3.13.1.0
> zlib/1.2.5 libidn/1.22 libssh2/1.2.7
> Host: qe-blade-02.idm.lab.bos.redhat.com:3001
> Accept: */*
>
< HTTP/1.1 200 OK
< X-Content-Type-Options: nosniff
< CIMI-Specification-Version: 1.0.1
< Date: Tue, 11 Dec 2012 16:10:26 GMT
< X-XSS-Protection: 1; mode=block
< Content-Length: 0
< Content-Type: text/html;charset=utf-8
< X-Frame-Options: SAMEORIGIN
< Connection: keep-alive
< Server: thin 1.5.0 codename Knife
<
* Connection #0 to host qe-blade-02.idm.lab.bos.redhat.com left intact
* Closing connection #0
[rlandy@localhost /]$
[rlandy@localhost /]$
[rlandy@localhost /]$
[rlandy@localhost /]$
[rlandy@localhost /]$ curl -X GET --user "un:pw"
"http://qe-blade-02.idm.lab.bos.redhat.com:3001/cimi/volumes?format=xml"
<Collection xmlns="http://schemas.dmtf.org/cimi/1"
resourceURI="http://schemas.dmtf.org/cimi/1/VolumeCollection">
<id>http://qe-blade-02.idm.lab.bos.redhat.com:3001/cimi/volumes</id>
<count>2</count>
<Volume>
<bootable>false</bootable>
<state>AVAILABLE</state>
<name>vol1</name>
<capacity>1048576</capacity>
<id>http://qe-blade-02.idm.lab.bos.redhat.com:3001/cimi/volumes/vol1</id>
<created>2009-07-30T14:35:11Z</created>
<operation
href="http://qe-blade-02.idm.lab.bos.redhat.com:3001/cimi/volumes/vol1"
rel="delete" />
<type>http://schemas.dmtf.org/cimi/1/mapped</type>
<description>Description of Volume</description>
</Volume>
<Volume>
<bootable>false</bootable>
<state>AVAILABLE</state>
<name>vol2</name>
<capacity>1048576</capacity>
<id>http://qe-blade-02.idm.lab.bos.redhat.com:3001/cimi/volumes/vol2</id>
<created>2009-07-30T14:35:11Z</created>
<operation
href="http://qe-blade-02.idm.lab.bos.redhat.com:3001/cimi/volumes/vol2"
rel="delete" />
<type>http://schemas.dmtf.org/cimi/1/mapped</type>
<description>Description of Volume</description>
</Volume>
<operation href="http://qe-blade-02.idm.lab.bos.redhat.com:3001/cimi/volumes"
rel="add" />
</Collection>
[rlandy@localhost /]$
> 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
> Assignee: 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