软件安装过程中,考虑到现在是一个实验环境,且也考虑到规模不大,还有,网络压力不会大,出于简单考虑,将各个节点的拓扑结构改了一下,主要体现在网络节点和控制节点并在了一起。在一个服务器上安装! 到目前位置,我的这个平台,只有keystone,glance,neutron,dashboard以及nova几个服务。省出的那个服务器,打算也作为计算节点。所以,最新规划topo如下了:

openstack(liberty):部署实验平台(二,简单版本软件安装 part1)

绿色节点表示目前已经安装了openstack的模块软件,灰色部分,表示下一步即将安装的部分。

 

下面简要说下安装的过程,重点记录一下我在Centos7下的安装中遇到的问题和解决办法。我若没有说在那个节点上安装,就表示是在控制节点node0上

1. 安装NTP,官网安装用的是chrony,我折腾了半天,没有配置好,最终选择Linux系统自带的NTPD.相关的配置,参考我的博文NTP配置

 

2. 安装yum repo以及openstack的CLI安装包程序以及selinux相关的openstack插件。

1 yum install centos-release-openstack-liberty

上一步安装完毕后,记得要执行下面一步,并且一定,最好,将操作系统重启,我在这一步没有做重启,直接继续,遇到了不少的问题,安装得我都要抓狂。。。

1 yum upgrade

客户端命令行插件,selinux的openstack插件

1 yum install python-openstackclient
2 yum install openstack-selinux

 

3. SQL database安装。

1 yum install mariadb mariadb-server MySQL-python

相关的配置/etc/my.cnf.d/mariadb_openstack.cnf:

 1 [mysqld]
 2 datadir=/var/lib/maria
 3 socket=/var/lib/maria/maria.sock
 4 # Disabling symbolic-links is recommended to prevent assorted security risks
 5 symbolic-links=0
 6 # Settings user and group are ignored when systemd is used.
 7 # If you need to run mysqld under a different user or group,
 8 # customize your systemd unit file for mariadb according to the
 9 # instructions in http://fedoraproject.org/wiki/Systemd
10 
11 bind-address = localhost
12 default-storage-engine = innodb
13 innodb_file_per_table
14 collation-server = utf8_general_ci
15 init-connect = 'SET NAMES utf8'
16 character-set-server = utf8
17 
18 [mysqld_safe]
19 log-error=/var/log/mariadb/mariadb.log
20 pid-file=/var/run/mariadb/mariadb.pid
View Code

相关文章:

  • 2022-12-23
  • 2021-06-03
  • 2022-02-12
  • 2021-04-20
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-31
  • 2021-12-04
  • 2021-10-09
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案