Return-Path: X-Original-To: apmail-incubator-deltacloud-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-deltacloud-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DC4324F9D for ; Thu, 2 Jun 2011 08:27:50 +0000 (UTC) Received: (qmail 76073 invoked by uid 500); 2 Jun 2011 08:27:50 -0000 Delivered-To: apmail-incubator-deltacloud-dev-archive@incubator.apache.org Received: (qmail 76050 invoked by uid 500); 2 Jun 2011 08:27:50 -0000 Mailing-List: contact deltacloud-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: deltacloud-dev@incubator.apache.org Delivered-To: mailing list deltacloud-dev@incubator.apache.org Received: (qmail 76042 invoked by uid 99); 2 Jun 2011 08:27:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Jun 2011 08:27:49 +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 lutter@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; Thu, 02 Jun 2011 08:27:43 +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 p528RM31024580 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 2 Jun 2011 04:27:22 -0400 Received: from [10.3.112.20] (ovpn-112-20.phx2.redhat.com [10.3.112.20]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p528RJrv018310; Thu, 2 Jun 2011 04:27:20 -0400 Subject: Re: Length of instance names in Deltacloud From: David Lutterkort To: Chris Lalancette Cc: deltacloud-dev@incubator.apache.org, imain@redhat.com, Richard Su , David Lutterkort In-Reply-To: <20110601161816.GC2548@localhost.localdomain> References: <20110601161816.GC2548@localhost.localdomain> Content-Type: text/plain; charset="ISO-8859-15" Organization: Red Hat Inc Date: Thu, 02 Jun 2011 10:27:18 +0200 Message-ID: <1307003238.10050.30.camel@melon.watzmann.net> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 On Wed, 2011-06-01 at 12:18 -0400, Chris Lalancette wrote: > 4) Export the name length restriction through some sort of deltacloud feature. > Then the client can look at the restriction, and generate a name conforming > to the restriction. > > Pros: Requires very little change in deltacloud itself. Pushes the problem out > to the client > Cons: Pushes the problem out to the client ;). Sort of breaks the cloud > abstraction by having to have the client be smarter >From the API side, I see this as the only practical option - anything else would add some sort of application logic to the API. It would also require some name remapping scheme: Deltacloud says the instance is called 'frobnez' when the cloud provider calls it 'i-123476'. That means there's yet another piece of data that admins need to hang on to, with devastating consequences if they don't. In practical terms, we already have a feature 'user_name' for instances that indicates that the clouds supports user-supplied names. We could just enhance the XML to include the maximum size, e.g. (The pattern stuff as an example of something we don't need right now, but might want to add at some point) David