一、构建实验(yuanjian)OpenStack.Networking(neutron)
### --- 安装并配置controller节点
~~~ 配置先决条件
~~~ 安装网络服务组件
~~~ 配置网络服务组件
~~~ 配置Modular Layer2(ML2)插件)
~~~ 配置计算服务使用Neutron
~~~ 完成安装
~~~ 验证
二、在neutron节点配置信息
### --- 在neutron节点配置
~~~ 删除更新后的官方YUM源文件
[root@network ~]# mv /etc/yum.repos.d/CentOS-* /etc/yum.repos.d/back/
[root@network ~]# ll /etc/yum.repos.d/ftp.repo
-rw-r--r-- 1 root root 434 Jan 9 01:19 /etc/yum.repos.d/ftp.repo
[root@network ~]# yum install -y lrzsz net-tools vim
### --- 设置hosts文件信息
[root@controller ~]# scp /etc/hosts root@192.168.222.6:/root/hosts
### --- 修改主机名
[root@network ~]# hostnamectl set-hostname network.nice.com
### --- 查看防火墙当前的状态
[root@network ~]# systemctl status firewalld.service
### --- selinux状态
[root@network ~]# getenforce
Disabled
### --- 同步时间服务器
[root@network ~]# yum install -y ntpdate // 安装时间同步服务器客户端工具
[root@network ~]# ntpdate -u 192.168.222.5 // 同步时间
### --- 配置一下crontab;在compute下查找crontab信息;并复制
[root@compute1 ~]# crontab -l
*/1 * * * * /sbin/ntpdate -u controller.nice.com &> /dev/null
~~~ 在neutron下配置crontab信息
[root@network ~]# crontab -e
*/1 * * * * /sbin/ntpdate -u controller.nice.com &> /dev/null
[root@network ~]# systemctl restart crond.service
[root@network ~]# systemctl enable crond.service
二、检查controller节点配置环境是否正常
### --- 检查所有服务是否都为up状态
[root@controller ~]# nova service-list
+----+------------------+---------------------+----------+---------+-------+----------------------------+-----------------+
| Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |
+----+------------------+---------------------+----------+---------+-------+----------------------------+-----------------+
| 1 | nova-consoleauth | controller.nice.com | internal | enabled | up | 2021-01-11T03:36:03.000000 | - |
| 2 | nova-cert | controller.nice.com | internal | enabled | up | 2021-01-11T03:36:03.000000 | - |
| 3 | nova-conductor | controller.nice.com | internal | enabled | up | 2021-01-11T03:36:02.000000 | - |
| 4 | nova-scheduler | controller.nice.com | internal | enabled | up | 2021-01-11T03:36:03.000000 | - |
| 5 | nova-compute | compute1.nice.com | nova | enabled | up | 2021-01-11T03:35:58.000000 | - |
+----+------------------+---------------------+----------+---------+-------+----------------------------+-----------------+
### --- 查看镜像是否为active状态
[root@controller ~]# nova image-list
+--------------------------------------+---------------------+--------+--------+
| ID | Name | Status | Server |
+--------------------------------------+---------------------+--------+--------+
| 9254729e-15b4-4315-b396-3f3e2e5b339f | cirros-0.3.3-x86_64 | ACTIVE | |
+--------------------------------------+---------------------+--------+--------+