You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by "Marios Andreou (JIRA)" <ji...@apache.org> on 2012/12/04 13:54:58 UTC
[jira] [Comment Edited] (DTACLOUD-385) Can not create volume with
inlined volume config
[ https://issues.apache.org/jira/browse/DTACLOUD-385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13509700#comment-13509700 ]
Marios Andreou edited comment on DTACLOUD-385 at 12/4/12 12:53 PM:
-------------------------------------------------------------------
Patches above fix this issue - also available at http://tracker.deltacloud.org/set/179
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
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
was (Author: marios):
Patches above fix this issue - also available at http://tracker.deltacloud.org/set/178
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
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
> Can not create volume with inlined volume config
> ------------------------------------------------
>
> Key: DTACLOUD-385
> URL: https://issues.apache.org/jira/browse/DTACLOUD-385
> 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, 0002-CIMI-collections-use-grab_content_type-helper-to-gue.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: http://www.atlassian.com/software/jira