centos7安装openstack经典已实践

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

Centos7安装openstack经典已实践

三个节点ip信息

controller:192.168.100.10

network:192.168.100.20

compute1:192.168.100.30

修改各节点的/etc/hosts 文件

测试各节点到的连通性

controller node

配置NTP服务

yum install -y ntp

vi /etc/ntp.conf 修改文件如下:

server NTP_SERVER iburst #此处未做修改,采用默认

restrict -4 default kod notrap nomodify

restrict -6 default kod notrap nomodify

systemctl enable ntpd.service #开机启动

systemctl start ntpd.service

其他节点同样安装

yum install ntp

修改/etc/ntp.conf文件如下:

server controller iburst

开机启动服务:

systemctl enable ntpd.service

systemctl start ntpd.service

OpenStack packages

Install the yum-plugin-priorities package to enable assignment of relative priorities within repositories:

# yum install -y yum-plugin-priorities

Install the epel-release package to enable the EPEL repository:

# yum

install /pub/epel/7/x86_64/e/epel-release-7-5.noarch .rpm

Install the rdo-release-juno package to enable the RDO repository:

# yum install /openstack-juno/rdo-release-juno.rpm

Upgrade the packages on your system:

# yum upgrade

# reboot

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

# yum install openstack-selinux

安装如果报错,可通过下面安装:

#yum

install /repos/openstack/openstack-juno/epel-7/ope nstack-selinux-0.5.19-2.el7ost.noarch.rpm

To install and configure the database server

# yum install mariadb mariadb-server MySQL-python

修改/etc/f

bind-address = 127.0.0.1

default-storage-engine = innodb

innodb_file_per_table

collation-server = utf8_general_ci

init-connect = 'SET NAMES utf8'

character-set-server = utf8

# systemctl enable mariadb.service

# systemctl start mariadb.service

To install the RabbitMQ message broker service # yum install rabbitmq-server

# systemctl enable rabbitmq-server.service

# systemctl start rabbitmq-server.service

启动服务时出现如下错误:

# rabbitmqctl change_password guest 123456

执行时如果有报错

Identity service Install and configure

# mysql

> create database keystone;

> grant all privileges on keystone.* to 'keystone'@'localhost' identified by 'test01';

> grant all privileges on keystone.* to 'keystone'@'%' identified by 'test01';

# openssl rand -hex 10

02456f17dc198d827a90 #值不一样

# yum install openstack-keystone python-keystoneclient

修改 /etc/keystone/keystone.conf

[DEFAULT]

...

admin_token= 02456f17dc198d827a90

verbose = True

[database]

...

connection=mysql://keystone:test01@localhost/keystone

[token]

...

provider = keystone.token.providers.uuid.Provider

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

# keystone-manage pki_setup --keystone-user keystone --keystone-group keystone # chown -R keystone:keystone /var/log/keystone

# chown -R keystone:keystone /etc/keystone/ssl

# chmod -R o-rwx /etc/keystone/ssl

# su -s /bin/sh -c "keystone-manage db_sync" keystone 或者keystone-manage db_sync # systemctl enable openstack-keystone

# systemctl start openstack-keystone

相关文档
最新文档