13
Simple steps to install Sahara within RDO Asmaa Ibrahim

Sahara RDO part1

Embed Size (px)

DESCRIPTION

Installing sahara within RDO using Centos 6.5

Citation preview

Page 1: Sahara RDO part1

Simple steps to install Sahara within RDO

Asmaa Ibrahim

Page 2: Sahara RDO part1

2

Install RDO on Centos 6.5

● Open Terminal, and run these command as a root:● Update the system

sudo yum update -y● Setup the RDO repositories:

– sudo yum install -y http://rdo.fedorapeople.org/rdo-release.rpm

● Install Packstack Installer– sudo yum install -y openstack-packstack

● Run Packstack to install OpenStack– Packstack –-allinone # this command will ask you about your centos machine root password

Page 3: Sahara RDO part1

3

How to open dashboard

● Write the machine ip in the browser; then it will ask you for user name and password.

● To know this data, write this command :

cat keystone_admin

#this file exists on root home

Page 4: Sahara RDO part1

4

Setup Sahara on RDO

Page 5: Sahara RDO part1

5

Installing Sahara Package

● Install the sahara-api service:

$ yum install openstack-sahara

Page 6: Sahara RDO part1

6

Sahara Configuration● Configure the sahara-api service to your liking. The configuration file is located in /etc/sahara/sahara.conf.

1. Comment two lines:

#connection=sqlite:////var/lib/sahara/sahara-server.db

#connection=sqlite:////var/lib/sahara/sahara-server.db

2. Edit this line

connection=sqlite:////tmp/sahara.db

3. Uncomment these line, and you will find their data on keystone_admin file

os_auth_host=

os_auth_port=

os_admin_username=

os_admin_password=

os_admin_tenant_name=

4. If you are using Neutron for networking, then set

use_neutron=true

Page 7: Sahara RDO part1

7

Run These commands on the terminal

1. Create database schema

sahara-db-manage --config-file /etc/sahara/sahara.conf upgrade head

2. - :Start the sahara api service

service openstack-sahara-api start

3. Set the sahara on your run level

chkconfig openstack-sahara-api on

Page 8: Sahara RDO part1

8

Sahara Dashboard Installation

Page 9: Sahara RDO part1

9

Sahara Dashboard Installation

1. :Setup sahara dashboard using this command

sudo yum install python-django-sahara

2. Configure OpenStack Dashboard. In settings.py add sahara to

HORIZON_CONFIG = { 'dashboards': ('nova', 'syspanel', 'settings', ..., 'sahara'),

and also add saharadashboard toINSTALLED_APPS = (

x'saharadashboard',

....

File full path is:

/usr/share/openstack-dashboard/openstack_dashboard/settings.py

Page 10: Sahara RDO part1

10

More File Configuration

3. Open this file and edit 3 lines:

# vim /usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.py

SAHARA_USE_NEUTRON = True

AUTO_ASSIGNMENT_ENABLED = False

SAHARA_URL = 'http://ip:8386/v1.1'

Page 11: Sahara RDO part1

11

Restart The Related services

● Restart Sahara service:

service openstack-sahara-api start

● Restart web server service (httpd):

sudo service httpd reload

● Refresh web-browser, u will see:

Page 12: Sahara RDO part1

12

Page 13: Sahara RDO part1

13

Thanks