[
https://issues.apache.org/jira/browse/CLOUDSTACK-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rohit Yadav resolved CLOUDSTACK-1019.
-------------------------------------
Resolution: Fixed
Implemented in javelin:
commit e70143c1dcac2eabfdce2ea068bd02a3d4f09bd7
Author: Rohit Yadav <[email protected]>
Date: Fri Jan 18 18:11:42 2013 -0800
maven: Fix developer/pom.xml to use DatabaseCreator
Signed-off-by: Rohit Yadav <[email protected]>
commit 03a3837d9290c93fa92ea37aa611068e0008226d
Author: Rohit Yadav <[email protected]>
Date: Fri Jan 18 18:09:04 2013 -0800
DatabaseCreator: Make it reinit db, add flags, opts, run scripts and
upgrade checkers
Signed-off-by: Rohit Yadav <[email protected]>
commit 7fbe935c367d1f93c07399d875f8ea540abbda39
Author: Rohit Yadav <[email protected]>
Date: Fri Jan 18 18:08:11 2013 -0800
Transaction: Fix static, add method to reinit static datasource off a db
props file
Signed-off-by: Rohit Yadav <[email protected]>
commit e688fbfc243bbac8ed2830ad7b11b206d483c9e2
Author: Rohit Yadav <[email protected]>
Date: Fri Jan 18 18:07:37 2013 -0800
ScriptRunner: Alternate constructor to get verbosity flag
Signed-off-by: Rohit Yadav <[email protected]>
commit 6214b1d4bd9347a2799e5fd461b776dd5e32f19d
Author: Rohit Yadav <[email protected]>
Date: Fri Jan 18 17:18:28 2013 -0800
db.properties: adding other key value info for dbcreator to work in a
generic way
Signed-off-by: Rohit Yadav <[email protected]>
> 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