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 A7FD6DCBD for ; Sat, 19 Jan 2013 02:28:13 +0000 (UTC) Received: (qmail 39505 invoked by uid 500); 19 Jan 2013 02:28:13 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 39442 invoked by uid 500); 19 Jan 2013 02:28:13 -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 39317 invoked by uid 99); 19 Jan 2013 02:28:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Jan 2013 02:28:12 +0000 Date: Sat, 19 Jan 2013 02:28:12 +0000 (UTC) From: "Rohit Yadav (JIRA)" To: cloudstack-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CLOUDSTACK-1019) Fix cloud-setup-database to use DatabaseCreator for setting up cloudstack databases MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Rohit Yadav created CLOUDSTACK-1019: --------------------------------------- Summary: Fix cloud-setup-database to use DatabaseCreator for setting up cloudstack databases Key: CLOUDSTACK-1019 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-1019 Project: CloudStack Issue Type: Bug Security Level: Public (Anyone can view this level - this is the default.) Environment: branch: javelin (or master if merge happens) Reporter: Rohit Yadav Assignee: Rohit Yadav Fix For: 4.1.0 A new tool/class called DatabaseCreator is introduced in javelin, the idea is that DatabaseCreator can be used by mgmt server, cloud-setup-database script, maven (developer/pom.xml) and possibly by plugins in future to: 1. Initialize database using db.properties file 2. Run sql scripts 3. Run database upgrades Presently, this has been fixed in javelin, in cloud-server and is used by maven to deploydb, the task is to fix that same for cloud-setup-databases. Current help doc, usage and options: DatabaseCreator creates the database schema by removing the previous schema, creating the schema, and running through the database updaters. Usage: DatabaseCreator [options] [db.properties file] [schema.sql files] [database upgrade class] Options: --database=a,b comma separate databases to initialize, use the db name in db.properties defined as db.xyz.host, xyz should be passed --rootpassword=password, by default it will try with an empty password --dry or -d, this would not run any process, just does a dry run --verbose or -v to print running sql commands, by default it won't print them --help or -h for help -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira