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 CCFE9D396 for ; Tue, 18 Dec 2012 17:26:59 +0000 (UTC) Received: (qmail 49226 invoked by uid 500); 18 Dec 2012 17:26:59 -0000 Delivered-To: apmail-deltacloud-dev-archive@deltacloud.apache.org Received: (qmail 48913 invoked by uid 500); 18 Dec 2012 17:26:58 -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 48816 invoked by uid 99); 18 Dec 2012 17:26:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Dec 2012 17:26:57 +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, 18 Dec 2012 17:26:50 +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 qBIHQS2l028494 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 18 Dec 2012 12:26:28 -0500 Received: from name.redhat.com (ovpn-112-20.ams2.redhat.com [10.36.112.20]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id qBIHQPxv010885 for ; Tue, 18 Dec 2012 12:26:27 -0500 From: marios@redhat.com To: dev@deltacloud.apache.org Subject: Rev1 CIMI ResourceMetadata capabilities Date: Tue, 18 Dec 2012 19:26:20 +0200 Message-Id: <1355851583-20476-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 Initial implementation/rework of CIMI ResourceMetadata: curl --user "mockuser:mockpassword" -H "Accept: application/xml" http://localhost:3001/cimi/resource_metadata *** Usage: CIMI features go in deltacloud/server/lib/deltacloud/drivers/cimi_features.rb - defined in same way as deltacloud features. Example usage in mock driver: 87 #cimi features$ 88 feature :machines, :default_initial_state do$ 89 { :values => ["STARTED"] }$ 90 end$ 91 feature :machines, :initial_states do$ 92 { :values => ["STARTED", "STOPPED"]}$ 93 end$ NOTE: these may note make sense for mock (e.g. initial_states) but are here just for testing/example *** Issues imo CIMI spec not entirely clear/I don't understand how 'values' are to be defined for capability (I tried following what is says for 'constraints' of attributes - i need to bring this up in next meeting)... and I can't work out how to serialize them correctly using our dsl - so the XML for example looks like (note how 'value' is specified...): http://localhost:3001/cimi/resource_metadata/machine Machine http://localhost:3001/cimi/machines STARTED STARTED STOPPED marios