You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by "David Lutterkort (JIRA)" <ji...@apache.org> on 2012/12/04 07:02:03 UTC

[jira] [Created] (DTACLOUD-385) Can not create volume with inlined volume config

David Lutterkort created DTACLOUD-385:
-----------------------------------------

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


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

[jira] [Resolved] (DTACLOUD-385) Can not create volume with inlined volume config

Posted by "Marios Andreou (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DTACLOUD-385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marios Andreou resolved DTACLOUD-385.
-------------------------------------

    Resolution: Fixed
    
> 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

[jira] [Commented] (DTACLOUD-385) Can not create volume with inlined volume config

Posted by "Marios Andreou (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DTACLOUD-385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13510375#comment-13510375 ] 

Marios Andreou commented on DTACLOUD-385:
-----------------------------------------

thanks! - pushed by David with commit id: #d497f6a794ca7651d78a5b0d6f6e71367c3d7719

closing out the issue.
                
> 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

[jira] [Closed] (DTACLOUD-385) Can not create volume with inlined volume config

Posted by "Marios Andreou (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DTACLOUD-385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marios Andreou closed DTACLOUD-385.
-----------------------------------

    
> 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

[jira] [Commented] (DTACLOUD-385) Can not create volume with inlined volume config

Posted by "Ronelle Landy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DTACLOUD-385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13509874#comment-13509874 ] 

Ronelle Landy commented on DTACLOUD-385:
----------------------------------------

Creating a volume using an inline volume config works with the attached patches:

 <Volume xmlns="http://schemas.dmtf.org/cimi/1" resourceURI="http://schemas.dmtf.org/cimi/1/Volume">
  <id>http://qeblade39.rhq.lab.eng.bos.redhat.com:3001/cimi/volumes/Volume1354641041</id>
  <name>inline_config_volume</name>
  <description>test volume</description>
  <created>2012-12-04T12:10:41-05:00</created>
  <state>AVAILABLE</state>
  <type>http://schemas.dmtf.org/cimi/1/mapped</type>
  <capacity>1024</capacity>
  <bootable>false</bootable>
  <operation rel="delete" href="http://qeblade39.rhq.lab.eng.bos.redhat.com:3001/cimi/volumes/Volume1354641041" />
</Volume>


AcK'ed patches... will close this JIRA record after the patches are pushed.
                
> 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

[jira] [Comment Edited] (DTACLOUD-385) Can not create volume with inlined volume config

Posted by "Marios Andreou (JIRA)" <ji...@apache.org>.
    [ 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

[jira] [Updated] (DTACLOUD-385) Can not create volume with inlined volume config

Posted by "Marios Andreou (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DTACLOUD-385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marios Andreou updated DTACLOUD-385:
------------------------------------

    Attachment:     (was: 0002-CIMI-collections-use-grab_content_type-helper-to-gue.patch)
    
> 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
>
> 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

[jira] [Assigned] (DTACLOUD-385) Can not create volume with inlined volume config

Posted by "Marios Andreou (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DTACLOUD-385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marios Andreou reassigned DTACLOUD-385:
---------------------------------------

    Assignee: Marios Andreou
    
> 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
>
> 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

[jira] [Updated] (DTACLOUD-385) Can not create volume with inlined volume config

Posted by "Marios Andreou (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DTACLOUD-385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marios Andreou updated DTACLOUD-385:
------------------------------------

    Attachment:     (was: 0001-CIMI-Adds-Volume-creation-with-template-and-config-b.patch)
    
> 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
>
> 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

[jira] [Updated] (DTACLOUD-385) Can not create volume with inlined volume config

Posted by "Marios Andreou (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DTACLOUD-385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marios Andreou updated DTACLOUD-385:
------------------------------------

    Attachment: 0002-CIMI-collections-use-grab_content_type-helper-to-gue.patch
                0001-CIMI-Adds-Volume-creation-with-template-and-config-b.patch
    
> 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

[jira] [Updated] (DTACLOUD-385) Can not create volume with inlined volume config

Posted by "Marios Andreou (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DTACLOUD-385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marios Andreou updated DTACLOUD-385:
------------------------------------

    Attachment:     (was: 0002-CIMI-collections-use-grab_content_type-helper-to-gue.patch)
    
> 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

[jira] [Updated] (DTACLOUD-385) Can not create volume with inlined volume config

Posted by "Marios Andreou (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DTACLOUD-385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marios Andreou updated DTACLOUD-385:
------------------------------------

    Attachment: 0002-CIMI-collections-use-grab_content_type-helper-to-gue.patch
                0001-CIMI-Adds-Volume-creation-with-template-and-config-b.patch
    
> 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

[jira] [Updated] (DTACLOUD-385) Can not create volume with inlined volume config

Posted by "Marios Andreou (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DTACLOUD-385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marios Andreou updated DTACLOUD-385:
------------------------------------

    Attachment: 0002-CIMI-collections-use-grab_content_type-helper-to-gue.patch
                0001-CIMI-Adds-Volume-creation-with-template-and-config-b.patch
    
> 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

[jira] [Updated] (DTACLOUD-385) Can not create volume with inlined volume config

Posted by "Marios Andreou (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DTACLOUD-385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marios Andreou updated DTACLOUD-385:
------------------------------------

    Attachment:     (was: 0001-CIMI-Adds-Volume-creation-with-template-and-config-b.patch)
    
> 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

[jira] [Commented] (DTACLOUD-385) Can not create volume with inlined volume config

Posted by "Marios Andreou (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DTACLOUD-385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13509700#comment-13509700 ] 

Marios Andreou commented on DTACLOUD-385:
-----------------------------------------

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