openstack-mitaka基础环境介绍
admin
2023-06-04 09:41:57
0次

针对openstack环境的搭建,大致涉及如下内容

  • 安全

主要包括各项服务使用的密码,这里为了防止密码混乱,我建议使用同一个密码(生产环境中,不建议这么操作)

  • 主机网络配置如下图,仅供参考学习

openstack-mitaka基础环境介绍时间同步设置

针对controller控制器,时间同步默认使用外网的时间同步器

1)安装时间同步软件包,执行命令如下:

openstack-mitaka基础环境介绍




2)编辑/etc/chrony.conf,修改如下: openstack-mitaka基础环境介绍

3)在/etc/chrony.conf文件添加如下字段,允许10.0.00/24网段主机与controller进行时间同步

openstack-mitaka基础环境介绍

4)设置时间同步开机自启动

openstack-mitaka基础环境介绍

针对其他所有节点

1)安装时间同步软件包

openstack-mitaka基础环境介绍

2)编辑/etc/chrony.conf,时间同步需要使用controller节点时间同步器

openstack-mitaka基础环境介绍

3)设置时间同步开机自启动

openstack-mitaka基础环境介绍

  • openstack软件包(安装在所有节点)

环境中使用centos7.2最小安装,系统默认使用LVM,同时禁用SELINUX、禁用firewalld以及iptables、在centos系统的各个节点,均执行如下操作:

openstack-mitaka基础环境介绍

安装升级包,建议完成安装后,重启系统

openstack-mitaka基础环境介绍

安装openstack client软件包

openstack-mitaka基础环境介绍

安装openstack SELINUX,该软件包将会接替系统自身的SELINUX,当然我为了安全起见,我是默认禁用了所有主机的SELINUX

openstack-mitaka基础环境介绍

  • 在controller节点主机上面安装SQL数据库,并进行配置

1)安装相关软件包,执行命令如下:

openstack-mitaka基础环境介绍

2)在/etc/my.cnf.d/下创建openstack.cnf,具体内容如下:

openstack-mitaka基础环境介绍

3)设置开机自启动,并启动数据库服务

openstack-mitaka基础环境介绍

4)数据库初始化,在命令行输入如下

openstack-mitaka基础环境介绍

初始化过程命令输出如下:

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL

      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!



In order to log into MySQL to secure it, we'll need the current

password for the root user.  If you've just installed MySQL, and

you haven't set the root password yet, the password will be blank,

so you should just press enter here.


Enter current password for root (enter for none): (第一次输入为回车,因为没有密码)

OK, successfully used password, moving on...


Setting the root password ensures that nobody can log into the MySQL

root user without the proper authorisation.


Set root password? [Y/n] y(第二次输入为y,然后设置数据库密码)

New password: 

Re-enter new password: 

Password updated successfully!

Reloading privilege tables..

 ... Success!



By default, a MySQL installation has an anonymous user, allowing anyone

to log into MySQL without having to have a user account created for

them.  This is intended only for testing, and to make the installation

go a bit smoother.  You should remove them before moving into a

production environment.


Remove anonymous users? [Y/n] y(第三次输入为y)

 ... Success!


Normally, root should only be allowed to connect from 'localhost'.  This

ensures that someone cannot guess at the root password from the network.


Disallow root login remotely? [Y/n] n(第四次输入为n)

 ... skipping.


By default, MySQL comes with a database named 'test' that anyone can

access.  This is also intended only for testing, and should be removed

before moving into a production environment.


Remove test database and access to it? [Y/n] y(第五次输入为y)

 - Dropping test database...

 ... Success!

 - Removing privileges on test database...

 ... Success!


Reloading the privilege tables will ensure that all changes made so far

will take effect immediately.


Reload privilege tables now? [Y/n] y(第六次输入为y)

 ... Success!


Cleaning up...

  • 安装NoSQL数据库(仅在controller节点操作)

1)安装软件包,执行命令如下:

openstack-mitaka基础环境介绍

2)编辑/etc/mongod.conf,修改bind_ip为控制器的管理IP,即10.0.0.11,并去掉smallfiles=true的前面的注释符号

openstack-mitaka基础环境介绍

openstack-mitaka基础环境介绍

官方说法如下

openstack-mitaka基础环境介绍

在目录/var/lib/mongodb/下默认是不存在journal目录的,当我们修改载/etc/mongod.conf目录去掉smallfiles=true的前面的注释符号后,并启动mongod服务

openstack-mitaka基础环境介绍

就会在/var/lib/mongodb/下自动生成journal目录

  • 消息队列服务(仅在controller节点操作)

1)安装软件包

openstack-mitaka基础环境介绍

2)将消息队列服务启动并设置为开机自启动

openstack-mitaka基础环境介绍

3)添加openstack用户

openstack-mitaka基础环境介绍

4)为openstack用户授予读写权限;

openstack-mitaka基础环境介绍

  • 缓存服务(仅在controller节点操作)

1)安装软件包

openstack-mitaka基础环境介绍

2)启动缓存服务并设置为开机自启动

openstack-mitaka基础环境介绍

后面将对各个组件安装配置进行讲述,更多精彩,敬请期待。

参考http://docs.openstack.org/mitaka/zh_CN/install-guide-rdo/environment.html


相关内容

热门资讯

空调连续工作多久需要停机休息 空调连续工作的时间取决于多个因素,包括空调的型号、功率、使用环境和维护情况等。一般来说,空调可以连续...
空调哪个符号是除湿的 空调除湿功能通常用一个水滴形状的符号表示。不同品牌和型号的空调遥控器可能会有所差异,但一般来说,除湿...
格力空调多长时间加一次氟利昂 1、一般情况下,空调对氟利昂的使用量是非常小的,所以在空调使用了四年左右的时候再考虑加也没问题。2、...
空调用多长时间需要加氟一次 一般情况下是五年。当出现以下这几种情况时,空调才需要加氟。1、空调的室内机和室外机各有两个接口,当接...
格调生活·C标思享荟:卡萨帝在... 9月12日的郑州龙湖金融岛,夜风轻拂,灯光璀璨。“C标时刻共传奇——卡萨帝思享荟暨20周年品牌盛典郑...
品牌价值破千亿、高端份额持续领... 9月12日,“C标时刻共传奇——卡萨帝思享荟暨20周年品牌盛典郑州站”在郑州龙湖金融岛举办。2026...
空调主板坏了修800还是换新的 空调主板坏了是修还是换新,需要考虑多个因素,以下是一些建议:1. 维修成本:如果维修费用较低,比如 ...
空调开多久需要休息多长时间 问题:空调开多久需要休息多长时间回答:1、在使用空调的过程中,一般空调开7~8个小时左右需要休息2~...
中央空调多长时间清洗一次 1、一般空调开机前清洗一次即可,空调开机中间时段再清洗一次,空调关机时清洗一次,这样比较合理。2、空...
中央空调氟利昂多久加一次 看空调制热和制冷程度,很多人的观点认为氟利昂必须一年放一次,其实这个观点是错误的,理解上面有点偏差,...