Upload
asmaa-ibrahim
View
791
Download
1
Tags:
Embed Size (px)
DESCRIPTION
Installing sahara within RDO using Centos 6.5
Citation preview
Simple steps to install Sahara within RDO
Asmaa Ibrahim
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
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
4
Setup Sahara on RDO
5
Installing Sahara Package
● Install the sahara-api service:
$ yum install openstack-sahara
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
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
8
Sahara Dashboard Installation
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
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'
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:
12
13
Thanks