CC00016.CloudOpenStack——|OpenStack&组件.V03|——|OpenStack-controller|

一、构建实验(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 |        |
+--------------------------------------+---------------------+--------+--------+
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

yanqi_vip

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值