Return-Path: X-Original-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-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 9CA4ADAB5 for ; Tue, 5 Mar 2013 17:05:01 +0000 (UTC) Received: (qmail 55996 invoked by uid 500); 5 Mar 2013 17:05:01 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 55778 invoked by uid 500); 5 Mar 2013 17:05:00 -0000 Mailing-List: contact cloudstack-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-dev@incubator.apache.org Received: (qmail 55756 invoked by uid 99); 5 Mar 2013 17:05:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Mar 2013 17:05:00 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.128.176] (HELO mail-ve0-f176.google.com) (209.85.128.176) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Mar 2013 17:04:55 +0000 Received: by mail-ve0-f176.google.com with SMTP id cz10so5862213veb.21 for ; Tue, 05 Mar 2013 09:04:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type:x-gm-message-state; bh=5JUY/5u12/p3DBXaNnFANBDJ7x9gqN3syUESNJ0Mrtk=; b=k88wH3ubQsIP4GieN7xFwAO3NsH7j9icTTXptRDJdXtHH0HoF8hKuPE9WYJmx4PCJ5 Galevy1YsGl7/ugxVHzDHhXkbFhNkqAULqPbFQCWgUOKQX9XV0k58IwPRvna8peRt/In nzeu1ImbT6EHjTZ3Q56+q9ZTq5FoEz8ZmzobcoWuCv1LcCu9fGgx8Eux3O3FvuHOb7Tl CJWfKCD0x+oe0LYmoTyQO/kkA4DcxtEBpvxIYgzSFdkKuYYfJLi2h3G0Vw8NU7YCoFs4 116soJFmRklsEcHpihMh5cGcFtTqbTyjNdgJWKSZIgBYD0vIKpVgT/Km0RaS124cqMOc paag== X-Received: by 10.220.153.143 with SMTP id k15mr9796552vcw.33.1362503074554; Tue, 05 Mar 2013 09:04:34 -0800 (PST) MIME-Version: 1.0 Received: by 10.220.140.130 with HTTP; Tue, 5 Mar 2013 09:04:14 -0800 (PST) In-Reply-To: <20130305165423.GC738@cloud-2.local> References: <20130305165423.GC738@cloud-2.local> From: David Nalley Date: Tue, 5 Mar 2013 12:04:14 -0500 Message-ID: Subject: Re: [DISCUSS] db changes on the 4.0.x release line To: cloudstack-dev@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQkBy2XBXqHMoAwL8hYIzpAK7T0tVQ0DzPFwho7/cR8qNMmMM+jiitakuUyYkBtRMGiyaZ+H X-Virus-Checked: Checked by ClamAV on apache.org On Tue, Mar 5, 2013 at 11:54 AM, Prasanna Santhanam wrote: > So this is broken off from the thread on Support Timelines for the > 4.0.x group of releases: > > The issue is regarding upgrades. With the introduction of the > DatabaseCreator I notice that we don't have to do any sort of changes > to the baseline schema of 4.0. This is a great improvement but it only > is enforced on the 4.1,4.2 etc releases. > > We have the 4.0.x release line for 4.0.1, 4.0.2 etc. There currently > is no upgrade path from this release line to the 4.1,4.2 release line. > The 4.0 branch also uses the older way of doing schema changes > (create-schema.sql, upgradeXtoY.sql) which conflicts with the way the > DbCreator works. That will have problems in upgrades of deployments > going from 4.0.x-incubating to anything in 4.1,4.2. > > How should this be tackled? > > Since there have been few schema changes (only one) in > 4.0.1-incubating it's probably best to port the DbCreator back to 4.0 > as well? Rohit suggested that the 4.0 branch not add db changes but I > think it's better enforced than left as a rule. > So I personally am a bit irked that 4.0.1 needed a schema change, but its our own fault, and usage simply didn't work without it. Ideally point releases would not have a frozen schema; but it clearly it isn't an option if we ship a release with a broken schema. Upgrades are non-negotiable - they must work. Stranding a user on any given release without an option to upgrade is not acceptable. I don't personally think backporting dbcreator into 4.0 is the right answer. If we can't get dbcreator to smoothly handle upgrades, perhaps we need to revisit it. Handling upgrades smoothly is a requirement for release IMO. --David