Difference between revisions of "OpenStack: Installing Sahara"

From Define Wiki
Jump to navigation Jump to search
Line 23: Line 23:
  
 
[database]
 
[database]
connection=mysql://sahara:SAHARA_DBPASS@host/sahara
+
connection=mysql://sahara:SAHARA_DBPASS@controller/sahara
  
 
[keystone_authtoken]  
 
[keystone_authtoken]  
auth_uri=http://127.0.0.1:5000/v2.0/
+
auth_uri=http://controller:5000/v2.0/
identity_uri=http://127.0.0.1:35357/
+
identity_uri=http://controller:35357/
  
 
[oslo_messaging_rabbit]
 
[oslo_messaging_rabbit]
rabbit_host=localhost
+
rabbit_host=controller
 
rabbit_port=5672
 
rabbit_port=5672
 
rabbit_hosts=$rabbit_host:$rabbit_port
 
rabbit_hosts=$rabbit_host:$rabbit_port
Line 43: Line 43:
 
driver = messaging
 
driver = messaging
  
 +
</syntaxhighlight>
 +
 +
<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>
 +
 +
<syntaxhighlight>
 +
max_allowed_packet = 256M
 +
</syntaxhighlight>
 +
 +
<syntaxhighlight>
 +
#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>
 +
 +
<syntaxhighlight>
 +
 +
# systemctl enable openstack-sahara-api
 +
# systemctl enable openstack-sahara-engine
 +
 +
# systemctl start openstack-sahara-api
 +
# systemctl start openstack-sahara-engine
 
</syntaxhighlight>
 
</syntaxhighlight>

Revision as of 10:55, 14 July 2016

# yum install openstack-sahara
mysql -u root -p
<mysql_password>

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';
[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/

[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 = messaging
# 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
max_allowed_packet = 256M
#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
# systemctl enable openstack-sahara-api
# systemctl enable openstack-sahara-engine

# systemctl start openstack-sahara-api
# systemctl start openstack-sahara-engine