四步搞定讓人頭疼的OpenStack安裝

四步搞定OpenStack安裝


大家都知道OpenStack的手工安裝是一個難題,組件眾多,非常麻煩,一裝就要好幾天。讓很多初學者望而止步。


最近有很多紅帽的學員問我,有沒有能在RedHat或Centos上快速安裝OpenStack的方法,這個當然有,而且超級簡單,準備好環境後只需要四步就可以搞定。那今天就讓我把這個大招教給的大家。這個大招就是使用RDO快速部署OpenStack。

官宣一下,RDO項目的原理是整合上游的OpenStack版本,然後根據紅帽的系統做裁剪和定製,幫助用戶進行選擇,對用戶來說,就是簡單的幾步,完成了OpenStack的部署。


好了,現在讓我們開始實踐吧。先簡單準備下環境。

前提一:操作系統是必須有的,無論是RHEL還是CENTOS都行,大家要把系統安裝好,步驟我就不贅述了。不會裝的,可以網上查一下。安裝好系統好設置好靜態IP,並且保證能與公網通信。


前提二:關閉selinux

# sed -i 's#SELINUX=enforcing#SELINUX=disabled#g' /etc/sysconfig/selinux


# setenforce 0


前提三:關閉防火牆

# systemctl stop firewalld.service


# systemctl disable firewalld.service


現在開始正式安裝過程,四步大法開始了

<code>1、sudo yum install -y https://www.rdoproject.org/repos/rdo-release.rpm

2、sudo yum update -y

3、sudo yum install -y openstack-packstack

4、sudo packstack --allinone/<code>

就只需要這四步,所有過程都是自動化完成,只需要等待,一般情況下,一兩個小時就可以完成了。


補充說明一下,安裝完成後,會出現以下的文字

<code>**** Installation completed successfully ****** 


Additional information:

* Parameter CONFIG_NEUTRON_L2_AGENT: You have chosen OVN Neutron backend. Note that this backend does not support the VPNaaS or FWaaS services. Geneve will be used as the encapsulation method for tenant networks

* A new answerfile was created in: /root/packstack-answers-20200407-090120.txt
* Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components.

* Warning: NetworkManager is active on 10.20.0.62. OpenStack networking currently does not work on systems that have the Network Manager service enabled.

* File /root/keystonerc_admin has been created on OpenStack client host 10.20.0.62. To use the command line tools you need to source the file.

* To access the OpenStack Dashboard browse to http://10.20.0.62/dashboard .

Please, find your login credentials stored in the keystonerc_admin in your home directory.

* Because of the kernel update the host 10.20.0.62 requires reboot.

* The installation log file is available at: /var/tmp/packstack/20200407-090119-fSAgKM/openstack-setup.log

* The generated manifests are available at: /var/tmp/packstack/20200407-090119-fSAgKM/manifests



 /<code>

注意加紅字,其中http://10.20.0.62/dashboard代表的是OpenStack的登錄地址,其中/root/keystonerc_admin將放著登錄用戶名和密碼。


四步搞定讓人頭疼的OpenStack安裝


現在我們可以輸入用戶名和密碼登錄了


四步搞定讓人頭疼的OpenStack安裝


以上為安裝全過程,如果你在安裝中有任何問題,評論區告訴我。

本文為東方瑞通韓梅老師原創,韓梅老師十八年IT項目經驗技術全面,微軟連續十年MVP (Most value professional)、微軟TechED特邀講師、華為Cloud HCIE、華為雲計算認證講師(HCSI)、紅帽架構師。


分享到:


相關文章: