學習OpenStack Mitaka單節點部署筆記

來源:互聯網
上載者:User

標籤:openstack   部署   學習   mitaka   基礎linux   

還處在基礎學習過程,寫這篇文章也是壯著膽子來寫的,因為好多的基礎知識還不太明白(鳥哥的那本私房菜都還沒學完呢呵呵),正好趕上有同事需要搭一個環境在上邊開發,既然有需求了那就試試吧,下邊就把部署過程中遇到的問題記錄下來,以備以後可能還會遇到相同的問題知道怎麼解決了。

言歸正傳,本來也是學習為主,好多還處於一知半解當中就找了一個Packstack 自動化部署工具,下面所有的操作配置都是用它完成。

# yum install -y centos-release-openstack-mitaka# yum update -y# sudo yum install -y openstack-packstack# packstack --allinone

執行上邊操作過程如果一切順利大概需要40分鐘吧(預估),遇到的問題就在packstack --allinone部署時出現的:

1.

PuppetError: Error appeared during Puppet run: 10.10.15.14_amqp.ppError: Execution of ‘/usr/bin/yum -d 0 -e 0 -y install erlang‘ returned 1: Error downloading packages:You will find full trace in log /var/tmp/packstack/20160518-220204-u2bfTF/manifests/10.10.15.14_amqp.pp.log

這個錯誤困擾了半天,網上查一些資料說是主機名稱的問題,好休息/etc/hosts:

127.0.0.1   localhost ops10.10.15.14 ops

儲存後再去執行

# packstack  --allinone

此時出現第二個問題,這個問題是第二天出現的:

2.

PuppetError: Error appeared during Puppet run: 10.10.15.14_horizon.ppError: Execution of ‘/usr/bin/yum -d 0 -e 0 -y install openstack-dashboard‘ returned 1: Error downloading packages:You will find full trace in log /var/tmp/packstack/20160519-142443-mES6ez/manifests/10.10.15.14_horizon.pp.log

知識儲備不夠還是解決不了,上網找資料吧度娘不給力還是Google靠譜,有說需要再次運行yum update直到沒有軟體需要更新就可以了,接著試運行更新命令確實有一個軟體更新了,但感覺應該對部署影響不大,繼續執行:

# packstack  --allinone

沒想到還真順利過去了,具體是什麼原因還是沒搞懂,只不過高興沒一會第三個問題接踵而至:

3.

ERROR : Error appeared during Puppet run: 10.10.15.14_gnocchi.ppError: Execution of ‘/usr/bin/yum -d 0 -e 0 -y install openstack-gnocchi-metricd‘ returned 1: Error downloading packages:You will find full trace in log /var/tmp/packstack/20160519-160900-aneTEN/manifests/10.10.15.14_gnocchi.pp.log

不碰真東西是真不到自己掌握的知識是多麼的匱乏,一個都解決不了,接著google,文章裡說需要將

NetworkManager停掉,還有防火牆以及SELinux,好吧,接著試:

# systemctl list-unit-files |grep NeworkManager NetworkManager-dispatcher.service             disabledNetworkManager-wait-online.service            disabledNetworkManager.service                        disabled# systemctl disable NetworkManager#setenforce 0

一切都關閉妥當,繼續packstack  --allinone

**** Installation completed successfully ******Additional information: * A new answerfile was created in: /root/packstack-answers-20160519-204455.txt * Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components. * File /root/keystonerc_admin has been created on OpenStack client host 10.10.15.14. To use the command line tools you need to source the file. * To access the OpenStack Dashboard browse to http://10.10.15.14/dashboard .Please, find your login credentials stored in the keystonerc_admin in your home directory. * To use Nagios, browse to http://10.10.15.14/nagios username: nagiosadmin, password: 7e49305b747b4a5e * The installation log file is available at: /var/tmp/packstack/20160519-204454-Q57aSm/openstack-setup.log * The generated manifests are available at: /var/tmp/packstack/20160519-204454-Q57aSm/manifests

successfully !!這回可以小激動一下了,試試吧!

650) this.width=650;" src="http://s1.51cto.com/wyfs02/M00/80/53/wKiom1c90L3C-I9lAAB2HeNVd-U301.jpg" title="1.jpg" alt="wKiom1c90L3C-I9lAAB2HeNVd-U301.jpg" />

650) this.width=650;" src="http://s1.51cto.com/wyfs02/M00/80/53/wKiom1c90OHgpXefABReGWFbQbg598.jpg" style="float:none;" title="88600869438773503.jpg" alt="wKiom1c90OHgpXefABReGWFbQbg598.jpg" />

650) this.width=650;" src="http://s1.51cto.com/wyfs02/M00/80/51/wKioL1c90fODZcQ1ABYfXyKWkQg638.jpg" style="float:none;" title="296169851964098239.jpg" alt="wKioL1c90fODZcQ1ABYfXyKWkQg638.jpg" />

650) this.width=650;" src="http://s5.51cto.com/wyfs02/M01/80/53/wKiom1c90TCC1ApsABjl2Qu9ulE446.jpg" style="float:none;" title="606901634313695223.jpg" alt="wKiom1c90TCC1ApsABjl2Qu9ulE446.jpg" />

       總算是可以登入了,不過配置可能不太對,現在8個G的記憶體外加5G的交換分區全部被佔滿了,導致後邊開網頁敲代碼都卡的不行,等明天再好好研究研究吧。

也算是邁出了第一步,繼續加油!  

       附上參考的網站:

https://www.rdoproject.org/install/quickstart/

http://www.flashguides.co.uk/guide/Installing_OpenStack_Kilo_on_CentOS_with_Packstack

http://www.linuxtechi.com/single-node-openstack-liberty-installation-centos-7/


本文出自 “積小流,成江海” 部落格,請務必保留此出處http://goodjoe.blog.51cto.com/9173556/1775223

學習OpenStack Mitaka單節點部署筆記

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.