官方中文文档:https://docs.openstack.org/newton/zh_CN/install-guide-rdo/index.html
验证服务:KeyStone 5000 35357
镜像服务:Glance 9292 9191
计算服务:Nova 5672
网络服务:Neutron
1.安装Openstack仓库
yum install https://repos.fedorapeople.org/repos/openstack/openstack-newton/rdo-release-newton-5.noarch.rpm yum install centos-release-openstack-newton -y
官方文档:https://docs.openstack.org/newton/zh_CN/install-guide-rdo/environment-packages.html
2.安装MySQL数据库
yum install mariadb mariadb-server python2-PyMySQL -y vim /etc/my.cnf.d/openstack.cnf [mysqld] bind-address = 192.168.1.253 default-storage-engine = innodb innodb_file_per_table max_connections = 4096 collation-server = utf8_general_ci character-set-server = utf8
官方文档: https://docs.openstack.org/newton/zh_CN/install-guide-rdo/environment-sql-database.html
3.数据库初始化
reate database keystone; create database glance; create database nova; create database nova_api; create database neutron; create database cinder; grant all on keystone.* to 'keystone'@'localhost' identified by 'keystone'; grant all on keystone.* to 'keystone'@'%' identified by 'keystone'; grant all on glance.* to 'glance'@'localhost' identified by 'glance'; grant all on glance.* to 'glance'@'%' identified by 'glance'; grant all on nova.* to 'nova'@'localhost' identified by 'nova'; grant all on nova.* to 'nova'@'%' identified by 'nova'; grant all on nova_api.* to 'nova'@'localhost' identified by 'nova'; grant all on nova_api.* to 'nova'@'%' identified by 'nova'; grant all on neutron.* to 'neutron'@'localhost' identified by 'neutron'; grant all on neutron.* to 'neutron'@'%' identified by 'neutron'; grant all on cinder.* to 'cinder'@'localhost' identified by 'cinder'; grant all on cinder.* to 'cinder'@'%' identified by 'cinder';
4.安装RabbitMQ消息队列
yum install rabbitmq-server -y systemctl enable rabbitmq-server.service systemctl start rabbitmq-server.service rabbitmqctl add_user openstack openstack rabbitmqctl set_permissions openstack ".*" ".*" ".*"
官方文档: https://docs.openstack.org/zh_CN/install-guide/environment-messaging-rdo.html
5.安装 OpenStack 客户端
yum install python-openstackclient -y yum install openstack-selinux -y
6.安装keystone服务,并配置组件
yum install openstack-keystone httpd mod_wsgi -y vim /etc/keystone/keystone.conf connection = mysql+pymysql://keystone:keystone@192.168.1.253/keystone #检查 [root@cen7zc ~]# mysql -h 192.168.1.253 -ukeystone -pkeystone -e "use keystone;show tables;" openstack user create --domain default --password-prompt glance openstack role add --project service --user glance admin openstack user create --domain default --password-prompt nova openstack role add --project service --user nove admin openstack role add --project service --user nova admin openstack user create --domain default --password-prompt neutron openstack role add --project service --user neutron admin openstack user create --domain default --password-prompt cinder openstack role add --project service --user cinder admin
官方文档: https://docs.openstack.org/newton/zh_CN/install-guide-rdo/keystone-install.html
7.安装Memcached
yum -y install memcached python-memcached -y
官方文档: https://docs.openstack.org/newton/zh_CN/install-guide-rdo/environment-memcached.html
8.安装Glance服务,并配置组件
yum install openstack-glance -y官方文档:https://docs.openstack.org/newton/zh_CN/install-guide-rdo/glance-install.html
9.安装Nova服务,并配置组件
yum install openstack-nova-api openstack-nova-conductor openstack-nova-console openstack-nova-novncproxy openstack-nova-scheduler -y
官方文档:https://docs.openstack.org/newton/zh_CN/install-guide-rdo/nova.html
10.安装openstack服务
yum install openstack-neutron openstack-neutron-ml2 openstack-neutron-linuxbridge ebtables -y
官方文档:
11.RabbitMQ插件查看WEB管理
rabbitmq-plugins list rabbitmq-plugins enable rabbitmq_federation_management [root@cen7zc ~]# lsof -i:15672 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME beam.smp 1350 rabbitmq 55u IPv4 70803 0t0 TCP *:15672 (LISTEN) #访问:http://192.168.1.253:15672/ 帐号密码:guest
参考:
http://dubbo.apache.org/zh-cn/docs/user/preface/requirements.html
https://www.openstack.org/software/project-navigator/openstack-components#openstack-services
停留在世界边缘,与之惜别