Ubuntu 14.04一步一步安装Openstack Kilo版本-15(Sahara)

15.1.    创建用户和API endpoint

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                     |

+--------------+-------------------------------------+

15.2.    创建数据库

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

 

15.3.    安装软件包

sudo apt-get install python-setuptoolspython-virtualenv python-dev

sudo apt-get install sahara

15.4.    配置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

 

15.5.    同步数据库

sudo sahara-db-manage --config-file/etc/sahara/sahara.conf upgrade head

15.6.    重启服务,验证

sudo service sahara-api restart

sudo service sahara-engine restart

sahara cluster-list

你可能感兴趣的:(云计算)