Return-Path: Delivered-To: apmail-incubator-deltacloud-dev-archive@minotaur.apache.org Received: (qmail 62268 invoked from network); 7 Dec 2010 16:52:06 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Dec 2010 16:52:06 -0000 Received: (qmail 86558 invoked by uid 500); 7 Dec 2010 16:52:06 -0000 Delivered-To: apmail-incubator-deltacloud-dev-archive@incubator.apache.org Received: (qmail 86477 invoked by uid 500); 7 Dec 2010 16:52:05 -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 86469 invoked by uid 99); 7 Dec 2010 16:52:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Dec 2010 16:52:04 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=10.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 clalance@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, 07 Dec 2010 16:51:58 +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.13.8/8.13.8) with ESMTP id oB7Gpa3t012347 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 7 Dec 2010 11:51:36 -0500 Received: from localhost.localdomain (ovpn-113-91.phx2.redhat.com [10.3.113.91]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id oB7GpXWF023186 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Tue, 7 Dec 2010 11:51:36 -0500 Date: Tue, 7 Dec 2010 11:51:32 -0500 From: Chris Lalancette To: deltacloud-dev@incubator.apache.org Subject: Re: [PATCH] very minor fix to ec2 driver for reporting when instance is terminated - removes the ability to 'start' a terminated instance Message-ID: <20101207165131.GF2875@localhost.localdomain> Reply-To: Chris Lalancette References: <1291738523-2881-1-git-send-email-marios@redhat.com> <1291738523-2881-2-git-send-email-marios@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1291738523-2881-2-git-send-email-marios@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 On 12/07/10 - 06:15:23PM, marios@redhat.com wrote: > From: marios > > --- > server/lib/deltacloud/drivers/ec2/ec2_driver.rb | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/server/lib/deltacloud/drivers/ec2/ec2_driver.rb b/server/lib/deltacloud/drivers/ec2/ec2_driver.rb > index fff3663..fb5a0f4 100644 > --- a/server/lib/deltacloud/drivers/ec2/ec2_driver.rb > +++ b/server/lib/deltacloud/drivers/ec2/ec2_driver.rb > @@ -574,7 +574,7 @@ class EC2Driver < Deltacloud::BaseDriver > def convert_state(ec2_state) > case ec2_state > when "terminated" > - "STOPPED" > + "TERMINATED" > when "stopped" > "STOPPED" > when "running" As we discussed on IRC, we do want to introduce a TERMINATED state back, but I think we need to do it in a slightly less ad-hoc fashion. These states are visible to the clients, and as such, they need to be consistently defined across all of the drivers. If we are going to add this back, what I would like to see is: 1) This applied consistently to all of the drivers where it makes sense 2) The meaning of the various client-visible states documented for future driver writers 3) Some sort of ruby construct to try to enforce a consistent set of externally visible states (this may not be possible). NACK for now. -- Chris Lalancette