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 3FCDED193 for ; Tue, 6 Nov 2012 16:32:33 +0000 (UTC) Received: (qmail 85892 invoked by uid 500); 6 Nov 2012 16:32:32 -0000 Delivered-To: apmail-deltacloud-dev-archive@deltacloud.apache.org Received: (qmail 85768 invoked by uid 500); 6 Nov 2012 16:32:32 -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 85747 invoked by uid 99); 6 Nov 2012 16:32:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Nov 2012 16:32:31 +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 (athena.apache.org: domain of mandreou@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, 06 Nov 2012 16:32:25 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id qA6GW3nd007951 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 6 Nov 2012 11:32:03 -0500 Received: from [10.36.112.21] (ovpn-112-21.ams2.redhat.com [10.36.112.21]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id qA6GW1RO004485; Tue, 6 Nov 2012 11:32:02 -0500 Message-ID: <50993B80.4030405@redhat.com> Date: Tue, 06 Nov 2012 18:32:00 +0200 From: "marios@redhat.com" User-Agent: Mozilla/5.0 (X11; Linux i686; rv:16.0) Gecko/20121016 Thunderbird/16.0.1 MIME-Version: 1.0 To: dev@deltacloud.apache.org CC: Ian Main Subject: Re: [PATCH] Set name in hardware profile in openstack driver. References: <1351794469-14705-1-git-send-email-imain@redhat.com> <50939B7C.2000500@redhat.com> <20121106161629.GA12136@hank.mains.priv> In-Reply-To: <20121106161629.GA12136@hank.mains.priv> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-Virus-Checked: Checked by ClamAV on apache.org On 06/11/12 18:16, Ian Main wrote: > On Fri, Nov 02, 2012 at 12:07:56PM +0200, marios@redhat.com wrote: >> Hi Ian: >> >> On 01/11/12 20:27, Ian Main wrote: >>> Name was not being set which is crucial for heat usage. >>> >> >> patch looks fine - in the sense that there is no problem for us to grab >> the 'name' of a flavor being passed back from Openstack and expose this >> as the 'name' attribute of a hardware_profile. >> >> HOWEVER, it is not possible to then use this 'name' attribute as a >> reference to a hardware profile. For example, lets say there is a flavor >> with ID: 1 and name: "256_MB_and_1_CPU": >> >> (against Deltacloud): >> >> GET /api/hardware_profiles/1 ==> 200 OK >> >> GET /api/hardware_profiles/256 MB and 1 CPU ==> explosions. >> >> Can you explain why is crucial for heat to have 'name'. If you really >> need to have lookup/reference to hardware profile by descriptive name, >> its possible but we need to change the deltacloud code. So that GET >> "256_MB_and_1_CPU" would mean getting a list of all flavors and >> filtering for the one with that name. > > Believe it or not it's so that humans can tell which one to use.. :) No > need to change deltacloud code as we will pass the ID into deltacloud > API. ok - thanks for the clarification. I just pushed this patch with commit id cf5a3ae7b2e27b1e28d1e9cb33629e6ae8a9a824 - should make its way into release 1.0.5 which we are working to cut this week, (waiting for your input on the user-data patch - likely any changes there won't make their way into this release as we are getting the rc out asap) thanks, marios > >> Only issue here though is that :id is a bona-fide UUID whereas :name is >> just a string. I wonder if there can be duplicates? > > I think that depends on the configuration of the cloud.. I would think > in 99% of cases it would be unique. > > Ian >