deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@redhat.com
Subject Create volume with config by value - DTACLOUD-385
Date Tue, 04 Dec 2012 12:23:06 GMT

Patches above fix this issue - also available at 
http://tracker.deltacloud.org/set/177

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:

XML:

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>' http://localhost:3001//cimi/volumes

JSON: 

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

XML:

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>http://schemas.dmtf.org/cimi/1/mapped</type>
<capacity> 1024 </capacity></volumeConfig></volumeTemplate> </VolumeCreate>'

http://localhost:3001//cimi/volumes

JSON:

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


marios

Mime
View raw message