How to install OpenStack Dashboard (horizon) for Cactus

OpenStack Dashboard is poorly documented. Nevertheless, here you will get it working. This solution works for StackOps distribution too:

# First: install dependencies:
apt-get install -y git bzr python-setuptools python-pytools python-django
# Change to /opt/ directory and create the necessary directories:
cd /opt/
mkdir openstack-dashboard
cd openstack-dashboard
bzr init-repo .
bzr branch lp:horizon
cd horizon/

 

# revert it to revision 46, which works with cactus and doesn't need keystone.
bzr revert -r 46
sudo bash run_tests.sh

 

# If the previous step is successful, edit the settings:
vi openstack-dashboard/local/local_settings.py
# Replace these with values from your novarc file:
NOVA_DEFAULT_ENDPOINT = 'http://localhost:8773/services/Cloud' # EC2_URL
NOVA_DEFAULT_REGION = 'nova'
NOVA_ACCESS_KEY = 'admin' # EC2_ACCESS_KEY
NOVA_SECRET_KEY = 'admin' # EC2_SECRET_KEY
NOVA_ADMIN_USER = 'admin' # NOVA_USERNAME
NOVA_PROJECT = 'admin' # project name, usually part of EC2_ACCESS_KEY, after : .

 

# prepare the dashboard
cd openstack-dashboard/
source .dashboard-venv/bin/activate
tools/with_venv.sh dashboard/manage.py syncdb
# create a user which you will use to login to your nova page.

 

tools/with_venv.sh dashboard/manage.py runserver <ip-address>:8222
 # Now go to your browser and point to <ip-address>:8222
Anunțuri

Lasă un răspuns

Completează mai jos detaliile tale sau dă clic pe un icon pentru a te autentifica:

Logo WordPress.com

Comentezi folosind contul tău WordPress.com. Dezautentificare / Schimbă )

Poză Twitter

Comentezi folosind contul tău Twitter. Dezautentificare / Schimbă )

Fotografie Facebook

Comentezi folosind contul tău Facebook. Dezautentificare / Schimbă )

Fotografie Google+

Comentezi folosind contul tău Google+. Dezautentificare / Schimbă )

Conectare la %s

%d blogeri au apreciat asta: