openstack user create --password-promptsahara
User Password:
Repeat User Password:
+----------+----------------------------------+
| Field | Value |
+----------+----------------------------------+
| email | None |
| enabled | True |
| id | 773d5ba9655e4c8e8117d2fbdf853a48 |
| name | sahara |
| username |sahara |
+----------+----------------------------------+
openstack role add --project service --usersahara admin
+-------+----------------------------------+
| Field |Value |
+-------+----------------------------------+
| id | 14b826a870464c67900a963d675cc8cb |
| name | admin |
+-------+----------------------------------+
openstack service create --name sahara--description "Data processing service" data_processing
+-------------+----------------------------------+
| Field | Value |
+-------------+----------------------------------+
| description |Data processing service |
| enabled | True |
| id | 41eefb3b82b94836bc960f2cf8e626b7 |
| name | sahara |
| type | data_processing |
+-------------+----------------------------------+
openstack endpoint create --publicurlhttp://kilo:8386/v1.1/%\(tenant_id\)s --adminurlhttp://kilo:8386/v1.1/%\(tenant_id\)s --internalurlhttp://kilo:8386/v1.1/%\(tenant_id\)s --region RegionOne sahara
+--------------+-------------------------------------+
| Field | Value |
+--------------+-------------------------------------+
| adminurl | http://kilo:8386/v1.1/%(tenant_id)s |
| id |baecceb349d04e6297460b1505c226b1 |
|internalurl |http://kilo:8386/v1.1/%(tenant_id)s |
| publicurl |http://kilo:8386/v1.1/%(tenant_id)s |
| region | RegionOne |
| service_id | 41eefb3b82b94836bc960f2cf8e626b7 |
| service_name |sahara |
| service_type |data_processing |
+--------------+-------------------------------------+
mysql -u root -p
create database sahara;
grant all privileges on sahara.* to'sahara'@'kilo' identified by 'sahara_dbpass';
grant all privileges on sahara.* to'sahara'@'localhost' identified by 'sahara_dbpass';
grant all privileges on sahara.* to'sahara'@'%' identified by 'sahara_dbpass';
exit
sudo apt-get install python-setuptoolspython-virtualenv python-dev
sudo apt-get install sahara
vim /etc/sahara/sahara.conf
[DEFAULT]
use_neutron=True
use_floating_ips=False
use_namespaces=True
debug=true
verbose=true
log_file=sahara.log
log_dir=/var/log
rpc_backend = rabbit
rabbit_host=kilo
rabbit_userid=openstack_rabbit_user
rabbit_password=openstack_rabbit_password
rabbit_virtual_host=/
os_region_name=RegionOne
[database]
connection=mysql://sahara:sahara_dbpass@kilo/sahara
[keystone_authtoken]
auth_uri = http://kilo:5000
identity_uri = http://kilo:35357
admin_tenant_name = service
admin_user = sahara
admin_password = sahara_pass
sudo sahara-db-manage --config-file/etc/sahara/sahara.conf upgrade head
sudo service sahara-api restart
sudo service sahara-engine restart
sahara cluster-list