安装OpenStack QUEENS版本一:基础环境

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了安装OpenStack QUEENS版本一:基础环境相关的知识,希望对你有一定的参考价值。

很久没搞openstack了,这两天闲来无事,装了一下QUEENS版本,记录一下。
[[email protected] ~]# cat /etc/hosts
192.168.137.36 controller
192.168.137.37 compute

安装OpenStack Queens软件
yum install centos-release-openstack-queens -y
yum install python-openstackclient -y
yum install openstack-selinux -y
yum install openstack-utils -y

安装SQL数据库,控制节点
yum install mariadb mariadb-server python2-Pymysql -y
[[email protected] ~]# cat /etc/my.cnf.d/openstack.cnf
[mysqld]
bind-address = 192.168.137.36

default-storage-engine = innodb
innodb_file_per_table = on
max_connections = 4096
collation-server = utf8_general_ci
character-set-server = utf8

systemctl enable mariadb.service
systemctl start mariadb.service
systemctl status mariadb.service

mysql_secure_installation
Set root password? [Y/n] y
New password:password
Re-enter new password:password

安装RabbitMQ,在控制节点上
yum install rabbitmq-server -y
systemctl enable rabbitmq-server.service
systemctl start rabbitmq-server.service
systemctl status rabbitmq-server.service

rabbitmqctl add_user openstack password
rabbitmqctl set_permissions openstack "." "." ".*"

安装Memcached,在控制节点上
yum install memcached python-memcached -y
vim /etc/sysconfig/memcached
OPTIONS="-l 127.0.0.1,::1,controller"

systemctl enable memcached.service
systemctl start memcached.service
systemctl status memcached.service

安装Etcd,在控制节点上
yum install etcd -y
Edit the /etc/etcd/etcd.conf file and set the ETCD_INITIAL_CLUSTER, ETCD_INITIAL_ADVERTISE_PEER_URLS, ETCD_ADVERTISE_CLIENT_URLS, ETCD_LISTEN_CLIENT_URLS to the management IP address of the controller node to enable access by other nodes via the management network:

[[email protected] ~]# vim /etc/etcd/etcd.conf
[[email protected] ~]# grep -v "^#" /etc/etcd/etcd.conf
ETCD_DATA_DIR="/var/lib/etcd/default.etcd"
ETCD_LISTEN_PEER_URLS="http://192.168.137.36:2380"
ETCD_LISTEN_CLIENT_URLS="http://192.168.137.36:2379"
ETCD_NAME="controller"
ETCD_INITIAL_ADVERTISE_PEER_URLS="http://192.168.137.36:2380"
ETCD_ADVERTISE_CLIENT_URLS="http://192.168.137.36:2379"
ETCD_INITIAL_CLUSTER="default=http://192.168.137.36:2380"
ETCD_INITIAL_CLUSTER_TOKEN="etcd-cluster-01"
ETCD_INITIAL_CLUSTER_STATE="new"

systemctl enable etcd
systemctl start etcd
systemctl status etcd

技术分享图片

以上是关于安装OpenStack QUEENS版本一:基础环境的主要内容,如果未能解决你的问题,请参考以下文章

安装OpenStack QUEENS版本六:dashboard

安装OpenStack QUEENS版本三:Glance

安装OpenStack QUEENS版本二:keystone

安装OpenStack QUEENS版本五:neutron

Packstack 安装openstack queens版本: 在horizon里没有heat的编排目录

Centos7.4安装openstack(queens)详细安装部署块存储服务