RETIRED, OpenStack Database As A Service (Trove) Integration
Go to file
2012-07-18 12:21:29 -05:00
apidocs update docs for 7/18 EAP release, including auth 2.0 support 2012-07-18 12:21:29 -05:00
report adding the report/logs/ directory 2012-03-27 11:42:29 -05:00
scripts Merge pull request #115 from TimSimpsonR/broken_sed 2012-07-17 13:25:45 -07:00
tests Merge pull request #113 from TimSimpsonR/local_testing 2012-07-17 12:45:38 -07:00
xsd finalize DB Devguide and Getting Started for 6-20 release; readd xsd 2012-06-20 14:24:25 -05:00
.gitignore finalize DB Devguide and Getting Started for 6-20 release; readd xsd 2012-06-20 14:24:25 -05:00
README.md Made some changes suggested in the pull request. 2012-05-04 10:21:49 -05:00

Integration dev scripts, tests and docs for Reddwarf.


Steps to setup this environment:

Install a fresh Ubuntu 11.10 (Oneiric Ocelot) image ( We suggest to create a virtual machine )

Login to the machine as root

Make sure we have git installed:

$ apt-get update
$ apt-get install git-core -y

Add a user that is not root if you do not already have one:

$ adduser ubuntu
$ visudo

add this line to the file below the root user

ubuntu  ALL=(ALL:ALL) ALL

**OR use this if you dont want to type your password to sudo a command**

ubuntu  ALL=(ALL:NOPASSWD) ALL

if /dev/pts/0 does not have read/write for your user

$ chmod 660 /dev/pts/0

Note that this number can change and if you can not connect to the screen session then the /dev/pts/# needs modding like above.

Login with ubuntu:

$ su ubuntu
$ cd ~

Clone this repo:

$ git clone https://github.com/hub-cap/reddwarf_lite-integration.git

Go into the scripts directory:

$ cd reddwarf_lite-integration/scripts/

Running redstack is the core script:

Run this to get the command list with a short description of each

$ ./redstack

Install all the dependencies

$ ./redstack install

Connecting to the screen session

$ screen -x stack

If that command fails with the error

Cannot open your terminal '/dev/pts/1'

If that command fails with the error chmod the corresponding /dev/pts/#

$ chmod 660 /dev/pts/1

Detach from the screen session

Allows the services to continue running in the background

ctrl+a then d

Kick start the build/initialize/build-image commands

Add mysql as a parameter to set build and add the mysql guest image

$ ./redstack kick-start mysql

Start up the reddwarf services in a screen session

$ ./redstack start

or, to run outside of a screen:

$ ./redstack run

Optional commands if you did not run kick-start

Build the packages

$ ./redstack build

Initialize the database and setup everything

$ ./redstack initalize

Build the image and add it to glance

$ ./redstack build-image mysql

Running the reddwarf client (It's so easy!)

This sets of the authorization endpoint and gets a token for you

$ ./redstack rd-client

Running the nova client (It's so easy!)

This sets of the authorization endpoint and gets a token for you

$ ./redstack nova-client

Reset your environment

Stop all the services running in the screens and refresh the envirnoment:

$ killall -9 screen

$ RECLONE=yes ./redstack install
$ ./redstack kick-start mysql
$ ./redstack start

or

$ RECLONE=yes ./redstack install
$ ./redstack build
$ ./redstack initialize
$ ./redstack build-image mysql
$ ./redstack start