|NO.Z.00016|——————————|^^^^ 部署 ^^^^|——|OpenStack&组件.V03|——|OpenStack-controller|neutron基础条件配置.V01|
一、构建实验(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 | |
+--------------------------------------+---------------------+--------+--------+
Walter Savage Landor:strove with none,for none was worth my strife.Nature I loved and, next to Nature, Art:I warm'd both hands before the fire of life.It sinks, and I am ready to depart
——W.S.Landor
分类:
cdv012-openstack
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· DeepSeek 开源周回顾「GitHub 热点速览」