Return-Path: X-Original-To: apmail-deltacloud-dev-archive@www.apache.org Delivered-To: apmail-deltacloud-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EC504EB0C for ; Tue, 4 Dec 2012 12:23:42 +0000 (UTC) Received: (qmail 14491 invoked by uid 500); 4 Dec 2012 12:23:42 -0000 Delivered-To: apmail-deltacloud-dev-archive@deltacloud.apache.org Received: (qmail 14384 invoked by uid 500); 4 Dec 2012 12:23:42 -0000 Mailing-List: contact dev-help@deltacloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@deltacloud.apache.org Delivered-To: mailing list dev@deltacloud.apache.org Received: (qmail 14360 invoked by uid 99); 4 Dec 2012 12:23:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Dec 2012 12:23:42 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of marios@redhat.com designates 209.132.183.28 as permitted sender) Received: from [209.132.183.28] (HELO mx1.redhat.com) (209.132.183.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Dec 2012 12:23:36 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id qB4CNDAR017756 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 4 Dec 2012 07:23:13 -0500 Received: from name.redhat.com (ovpn-112-22.ams2.redhat.com [10.36.112.22]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id qB4CNBHV017708; Tue, 4 Dec 2012 07:23:12 -0500 From: marios@redhat.com To: dev@deltacloud.apache.org Cc: lutter@redhat.com Subject: Create volume with config by value - DTACLOUD-385 Date: Tue, 4 Dec 2012 14:23:06 +0200 Message-Id: <1354623788-23863-1-git-send-email-marios@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-Virus-Checked: Checked by ClamAV on apache.org 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 ' marios_new_volume a new volume ' 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 ' marios_volume a new volume http://schemas.dmtf.org/cimi/1/mapped 1024 ' 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