Difference between revisions of "OpenStack: Installing Sahara"
Jump to navigation
Jump to search
m |
|||
| (7 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| + | Install RDO sahara package | ||
<syntaxhighlight> | <syntaxhighlight> | ||
# yum install openstack-sahara | # yum install openstack-sahara | ||
| + | # yum install python-croniter | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| + | Create Sahara database | ||
<syntaxhighlight> | <syntaxhighlight> | ||
| − | mysql -u root -p | + | $ mysql -u root -p |
| − | |||
CREATE DATABASE sahara; | CREATE DATABASE sahara; | ||
| Line 15: | Line 17: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| + | Update sahara config in file /etc/sahara/sahara.conf | ||
| + | NOTE: In order to use heat as infrastructure backend for Sahara, HEAT should be setup first inside Openstack. | ||
<syntaxhighlight> | <syntaxhighlight> | ||
[DEFAULT] | [DEFAULT] | ||
| Line 23: | Line 27: | ||
[database] | [database] | ||
| − | connection=mysql://sahara:SAHARA_DBPASS@ | + | connection=mysql://sahara:SAHARA_DBPASS@controller/sahara |
[keystone_authtoken] | [keystone_authtoken] | ||
| − | auth_uri=http:// | + | auth_uri=http://controller:5000/v2.0/ |
| − | identity_uri=http:// | + | identity_uri=http://controller:35357/ |
| + | admin_user = sahara | ||
| + | admin_password =$SAHARA_PASS | ||
| + | admin_tenant_name = service | ||
| + | |||
[oslo_messaging_rabbit] | [oslo_messaging_rabbit] | ||
| − | rabbit_host= | + | rabbit_host=controller |
rabbit_port=5672 | rabbit_port=5672 | ||
rabbit_hosts=$rabbit_host:$rabbit_port | rabbit_hosts=$rabbit_host:$rabbit_port | ||
| Line 43: | Line 51: | ||
driver = messaging | driver = messaging | ||
| + | </syntaxhighlight> | ||
| + | |||
| + | Create user, service and endpoints for Sahara | ||
| + | <syntaxhighlight> | ||
| + | $ openstack user create --domain default --password-prompt sahara | ||
| + | $ openstack role add --project service --user sahara admin | ||
| + | $ openstack service create --name sahara --description "Sahara Data Processing" data-processing | ||
| + | |||
| + | $ openstack endpoint create --region RegionOne data-processing public http://controller:8386/v1.1/%\(tenant_id\)s | ||
| + | $ openstack endpoint create --region RegionOne data-processing admin http://controller:8386/v1.1/%\(tenant_id\)s | ||
| + | $ openstack endpoint create --region RegionOne data-processing internal http://controller:8386/v1.1/%\(tenant_id\)s | ||
| + | |||
| + | </syntaxhighlight> | ||
| + | |||
| + | Edit mysql config at /etc/my.cnf | ||
| + | <syntaxhighlight> | ||
| + | max_allowed_packet = 256M | ||
| + | </syntaxhighlight> | ||
| + | |||
| + | Restart db, install extra python packages and update sahara db | ||
| + | <syntaxhighlight> | ||
| + | # service restart mysql | ||
| + | $ sudo -H pip install debtcollector netaddr monotonic python-dateutil PyMySQL fasteners paste PasteDeploy \ | ||
| + | Routes keystoneauth1 prettytable netifaces enum-compat pycrypto ecdsa functools32 cliff cryptography | ||
| + | |||
| + | $ sahara-db-manage --config-file /etc/sahara/sahara.conf upgrade head | ||
| + | |||
| + | </syntaxhighlight> | ||
| + | |||
| + | Enable sahara service and start it | ||
| + | <syntaxhighlight> | ||
| + | |||
| + | # systemctl enable openstack-sahara-all | ||
| + | # systemctl start openstack-sahara-all | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Latest revision as of 07:49, 18 July 2016
Install RDO sahara package
# yum install openstack-sahara
# yum install python-croniterCreate Sahara database
$ mysql -u root -p
CREATE DATABASE sahara;
GRANT ALL PRIVILEGES ON sahara.* TO 'sahara'@'localhost' \
IDENTIFIED BY 'SAHARA_DBPASS';
GRANT ALL PRIVILEGES ON sahara.* TO 'sahara'@'%' \
IDENTIFIED BY 'SAHARA_DBPASS';Update sahara config in file /etc/sahara/sahara.conf NOTE: In order to use heat as infrastructure backend for Sahara, HEAT should be setup first inside Openstack.
[DEFAULT]
use_neutron=True
use_namespaces=True
rpc_backend = rabbit
infrastructure_engine=heat
[database]
connection=mysql://sahara:SAHARA_DBPASS@controller/sahara
[keystone_authtoken]
auth_uri=http://controller:5000/v2.0/
identity_uri=http://controller:35357/
admin_user = sahara
admin_password =$SAHARA_PASS
admin_tenant_name = service
[oslo_messaging_rabbit]
rabbit_host=controller
rabbit_port=5672
rabbit_hosts=$rabbit_host:$rabbit_port
rabbit_userid=guest
rabbit_password=guest
rabbit_virtual_host=/
[oslo_messaging_notifications]
enable = true
[oslo_messaging_notifications]
driver = messagingCreate user, service and endpoints for Sahara
$ openstack user create --domain default --password-prompt sahara
$ openstack role add --project service --user sahara admin
$ openstack service create --name sahara --description "Sahara Data Processing" data-processing
$ openstack endpoint create --region RegionOne data-processing public http://controller:8386/v1.1/%\(tenant_id\)s
$ openstack endpoint create --region RegionOne data-processing admin http://controller:8386/v1.1/%\(tenant_id\)s
$ openstack endpoint create --region RegionOne data-processing internal http://controller:8386/v1.1/%\(tenant_id\)sEdit mysql config at /etc/my.cnf
max_allowed_packet = 256MRestart db, install extra python packages and update sahara db
# service restart mysql
$ sudo -H pip install debtcollector netaddr monotonic python-dateutil PyMySQL fasteners paste PasteDeploy \
Routes keystoneauth1 prettytable netifaces enum-compat pycrypto ecdsa functools32 cliff cryptography
$ sahara-db-manage --config-file /etc/sahara/sahara.conf upgrade headEnable sahara service and start it
# systemctl enable openstack-sahara-all
# systemctl start openstack-sahara-all