OpenCenter Test Environment

Lego ScientistsYou know, for when your laptop can’t drive your lab anymore or something. Either way, here’s a quick overview of how I OpenCenter (and the rest of the Rackspace Private Cloud stack) running on “the cloud”.

I followed the guide here: http://docs.python-guide.org/en/latest/dev/virtualenvs.html to get python & virtual environments going. Additionally, from a command line:

virtualenv
cd OpenCenter
source bin/activate

Next, we create and source a file containing our cloud credentials:

vim ~/.cloudrc 
OS_USERNAME=username
OS_TENANT_NAME=username
OS_AUTH_SYSTEM=rackspace
OS_PASSWORD=lolApiKeyGoezHear!
OS_AUTH_URL=https://identity.api.rackspacecloud.com/v2.0/
OS_REGION_NAME=DFW
OS_NO_CACHE=1
export OS_USERNAME OS_TENANT_NAME OS_AUTH_SYSTEM OS_PASSWORD OS_AUTH_URL OS_REGION_NAME OS_NO_CACHE

Setup our SSH keys:

cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys

Pull down the scripts:

git clone https://github.com/rcbops/opencenter-install-scripts

Install our cluster:

cd opencenter-install-scripts
./opencenter-cluster.sh

At the end of the install you will be prompted with something similar to:

*** COMPLETE ***

Run "export OPENCENTER_ENDPOINT=http://ip_address:8080" to use the opencentercli
Or connect to "http://ip_address:3000" to manage via the opencenter-dashboard interface

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.