deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marios Andreou (JIRA)" <>
Subject [jira] [Commented] (DTACLOUD-385) Can not create volume with inlined volume config
Date Tue, 04 Dec 2012 12:20:58 GMT


Marios Andreou commented on DTACLOUD-385:

Patches above fix this issue - also available at

Scenarios for testing:

1. Create from template by reference - not yet supported - can likely be added with new Datamapper
(persistence layer) implementation

2. Create from template by value, with config by reference:


curl -v --user "mockuser:mockpassword" -H "Accept:application/xml" -X POST -d '<VolumeCreate><name>
marios_new_volume </name> <description> a new volume </description><volumeTemplate><volumeConfig
href="http://localhost:3001/cimi/volume_configurations/2"> </volumeConfig></volumeTemplate></VolumeCreate>'


curl -v --user "mockuser:mockpassword" -H "Accept:application/xml" -X POST -d '{"name": "marios_new_volume",
"description": "a new volume", "volumeTemplate": { "volumeConfig": {"href":"http://localhost:3001/cimi/volume_configurations/2"
}}}' http://localhost:3001//cimi/volumes

3. Create from template by value, with config by value (issue reported/addressed here):


curl -v --user "mockuser:mockpassword" -H "Accept:application/xml" -X POST -d '<VolumeCreate><name>
marios_volume </name><description> a new volume </description> <volumeTemplate><volumeConfig><type></type><capacity>
1024 </capacity></volumeConfig></volumeTemplate> </VolumeCreate>'

curl --user "mockuser:mockpassword" -H "Accept:application/xml"  -X POST -d '{"name": "marios_new_volume",
"description": "a new volume", "volumeTemplate": { "volumeConfig": {"type":"",
"capacity": 1024 }}}'   http://localhost:3001/cimi/volumes


> Can not create volume with inlined volume config
> ------------------------------------------------
>                 Key: DTACLOUD-385
>                 URL:
>             Project: DeltaCloud
>          Issue Type: Bug
>          Components: CIMI/Frontend
>            Reporter: David Lutterkort
>            Assignee: Marios Andreou
>         Attachments: 0001-CIMI-Adds-Volume-creation-with-template-and-config-b.patch,
> The volme creation code in lib/cimi/models/volume.rb assumes that the volumConfig that
is passed in has an href. It is legal to pass in a volumeConfig that is entirely inline, i.e.
does not refer to an existing volumeConfig and only conists of values.

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:

View raw message