Last week I was trying to install Sahara following link avaiable in OpenStack page, but it seemed kinda outdated, and thus I faced several problems due to API compatibility. So here I’ll try to explain how to install it in a more thoroughly approach and point some pitfalls that may happen.
First of all, Sahara has the following requirements:
I’m going to assume that you have all of them already installed and running properly!
— Note: Replace
controller by the IP address of your controller node.
Let’s install Sahara and its python binding to the OpenStack client (it enables you to use openstack dataprocessing …):
At first it will prompt you to input some configurations. You don’t need to mind them right now. Just leave them as default.
Now create a new service named
data-processing so the dashboard can make requests to Sahara.
Create the endpoints in order to communicate with the Sahara API.
1 2 3
Create a user named
sahara and add it to the
SAHARA_PASS by a proper password.
Now login to mysql and create a new database so the Sahara can use it.
SAHARA_DBPASS by a proper password.
Now open the configuration file
/etc/sahara/sahara.conf and edit:
- In the section
1 2 3 4
openstack by the RabbitMQ username and
RABBIT_PASS by the RabbitMQ password.
SAHARA_DBPASS by the password you set previously.
1 2 3 4 5 6
SAHARA_PASS by the password you set previously.
Save and close the file.
Populate the database.
Important step! The new neutron version doesn’t support floating ips. Hence, when Sahara go check the limits of floating ips of your network, it will prompt an Internal Error due to “Resource not found”. Disable floating ips calls on Sahara API.
Edit the file
Comment lines 152-153. Add a new line right below:
Comment lines 171-174. Add a new line right below:
Restart the Sahara services.
Installing Sahara Dashboard
Certify your Horizon is working properly!
Install it through pip:
The Developer dashboard is disabled by the default on Horizon. You need to enable it before installing Sahara dashboard, orelse an error like this could happen:
(Took me hours to discover this. Damn!)
To do it, edit
/usr/share/openstack-dashboard/openstack_dashboard/settings.py, and set:
Do the same to
Now install the dashboard.
Compress the new assets.
Check if a new dashboard appeared under the Project tab.