目錄
前文清單
Controller Node
Install and configure components
Setup DNS Server
Setup NTP Server
Install SQL Database
Setup Message queue
Setup Memcached
Openstack元件部署 — Overview和前期環境準備
控制節點是整個Openstack控制樞紐,可以将Database、Message queue、DNS、NTP、Keystone等服務內建到一起,當然Openstack實作了松耦合的架構思想,是以所有的元件都可以在任意Node中安裝組合,視乎實際情況而定。
step1.
**Step2.**Edit the config file.
**Step3.**Forward Domain
vim /etc/named.rfc1912.zones
Create zone config file:
vim /var/named/jmilk.com.zone
vim /etc/resolv.conf
注意:當需要聯網安裝軟體包時,還是需要将DNSSERVER指向外網DNSSERVER
Restart the named service:
Install the packages:
Edit the /etc/chrony.conf:
vim /etc/chrony.conf
Start the NTP service and configure it to start when the system boots:
CHECK:
Create and edit the /etc/my.cnf.d/openstack.cnf file
vim /etc/my.cnf.d/openstack.cnf
Start the database service and configure it to start when the system boots:
初始化MySQL:
OpenStack使用message queue實作協調操作和服務之間的狀态資訊。Message queue service一般在Controller Node上運作。
OpenStack常用的消息代理軟體:
RabbitMQ(更加常用)
Qpid
ZeroMQ
Install the package:
Start the message queue service and configure it to start when the system boots:
Add the openstack user
Permit configuration, write, and read access for the openstack user:
The Identity service authentication mechanism for services uses Memcached to cache tokens. Memcached緩存技術用于對Keystone元件的認證資訊token進行緩存。一般安裝在Controller Node上,在生産系統中,建議使用認證、防火牆、加密的手段來保證token緩存的安全。
Start the Memcached service and configure it to start when the system boots: