1. 程式人生 > 其它 >|NO.Z.00016|——————————|^^^^ 部署 ^^^^|——|OpenStack&元件.V03|--------------------------|OpenStack-controller|neutron基礎條件配置.V01|

|NO.Z.00016|——————————|^^^^ 部署 ^^^^|——|OpenStack&元件.V03|--------------------------|OpenStack-controller|neutron基礎條件配置.V01|



[CloudVirtualiZation:OpenStack&元件.V03]                                                 [Applications.CloudVirtualiZation] [|OpenStack|OpenStack.neutron|網路基礎概念|neutron元件架構|構建neutron|配置network節點|建立網路]








一、構建實驗(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 [email protected]:/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 |        |
+--------------------------------------+---------------------+--------+--------+








===============================END===============================


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



來自為知筆記(Wiz)