centos7安装配置openstack-kilo(详细部署实施版)

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

######################################安装service之前#####################

1.安装openstack-selinux和SQL数据库

RHEL and CentOS enable SELinux by default. Install the openstack-selinux package toautomatically manage security policies for OpenStack services:

yum install openstack-selinux

yum install mariadb mariadb-server MySQL-python

2.配置mariadb:Create and edit the /etc/my.cnf.d/mariadb_openstack.cnf file

[mysqld]

bind-address = 192.168.142.13 

[mysqld]

default-storage-engine = innodb

innodb_file_per_table

collation-server = utf8_general_ci

init-connect = 'SET NAMES utf8'

character-set-server = utf8

3.重启服务

systemctl enable mariadb.service

systemctl start mariadb.service

4.加强mariadb数据库安全,这是root账户密码

 mysql_secure_installation

5.安装信息队列

 yum install rabbitmq-server

6.启动和配置rabbitmq服务

 systemctl enable rabbitmq-server.service

 systemctl start rabbitmq-server.service

7.在MQ中添加openstack 用户(密码:openstack)

 rabbitmqctl add_user openstack openstack

 为openstack用户配置read,write权限

rabbitmqctl set_permissions openstack ".*" ".*" ".*"

#########################################################################

######################安装配置keystone############################

1.安装keystone之前需要新建一个keystone数据库,同时设置初始administrator token

mysql -u root -p

创建database:

CREATE DATABASE keystone;

设置 keystone database的访问权限:

GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'localhost' IDENTIFIED BY 'KEYSTONE_DBPASS';GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'%' IDENTIFIED BY 'KEYSTONE_DBPASS';

手动生成administrator token:

openssl rand -hex 10

7f5f1f6b6ab54bad78f6

2.安装keystone相关的packages,kilo版本不在使用eventlet而是采用mod_wsgi来提供keystone服务.因此在kilo中,keystone服务是不会启动的

 yum install openstack-keystone httpd mod_wsgi python-openstackclient memcached python-

memcached

3.启动Memcached服务

 systemctl enable memcached.service

 systemctl start memcached.service

4.配置 /etc/keystone/keystone.conf 文件

[DEFAULT]

admin_token = 7f5f1f6b6ab54bad78f6

verbose = True

debug = True

[database]

connection = mysql://keystone:KEYSTONE_DBPASS@ceph3/keystone

[memcache]

servers = localhost:11211

[token]

provider = keystone.token.providers.uuid.Provider

driver = keystone.token.persistence.backends.memcache.Token

[revoke]

driver = keystone.contrib.revoke.backends.sql.Revoke

设置命令:

sed '/#admin_token = ADMIN/a admin_token = 7f5f1f6b6ab54bad78f6' -i /etc/keystone/keystone.conf

相关文档
最新文档