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


相关内容

热门资讯

伊朗官员称已与阿曼就霍尔木兹海... △当地时间8月5日,霍尔木兹海峡总台记者当地时间7日获悉,伊朗议会国家安全与外交政策委员会发言人哈桑...
“贴耳大吼、扇巴掌”?新生儿入... 近日,四川成都一新生儿入住月子会所仅4天,突发颅内出血被送进ICU一事引发关注。孩子的母亲周女士反映...
特朗普称将就上诉法院涉白宫宴会... △特朗普(资料图)当地时间8月7日,美国总统特朗普在社交平台“真实社交”发文称,将立即就联邦上诉法院...
高景太阳能申请背接触电池前板专... 国家知识产权局信息显示,四川高景太阳能科技有限公司申请一项名为“背接触电池前板、其制备方法及光伏电池...
宿迁市政府领导专题调研江苏省宿... 8月6日,宿迁市副市长陈伟赴江苏省宿迁环境监测中心,专题调研“人工智能+监测”工作开展情况。宿迁市生...
科技改变生活:普通人如何抓住A... 听着, 科技这个词给人的感觉那可是相当的高大上, 就好像它仅仅是属于实验室里头的科学家或者硅谷的那些...
鼓励领导干部带头休假之后又撤回... 近日,河南省委组织部、省人力资源社会保障厅、省商务厅、省文化和旅游厅、省政府国资委、省总工会近日联合...
耗资4亿美元,特朗普的白宫宴会... 据路透社8月7日报道,美国一家联邦上诉法院于本周五下达指令,要求特朗普政府停止在已拆除的白宫东翼旧址...
胡锡进:新西兰外长像只疯狗,竟... 新西兰这几年出了一个对华非常恶毒的外交部长,他叫温斯顿·彼得斯,81岁。他给中新关系带来了与前些年截...
霍尔木兹协议将近达成,美伊正在... 关于霍尔木兹局势有哪些最新消息?凤凰卫视驻伊朗记者李睿从德黑兰发回报道:伊朗与阿曼就霍尔木兹海峡的协...