1. 程式人生 > >安裝OpenStack QUEENS版本一:基礎環境

安裝OpenStack QUEENS版本一:基礎環境

install cached ESS linu ado connect url 分享 var

很久沒搞openstack了,這兩天閑來無事,裝了一下QUEENS版本,記錄一下。
[root@controller ~]# 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
[root@controller ~]# 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:

[root@controller ~]# vim /etc/etcd/etcd.conf
[root@controller ~]# 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版本一:基礎環境