Oracle VM + centos7.1+openstack kilo 多結點安裝教程---keystone的安裝(2)

來源:互聯網
上載者:User

標籤:

聲明:最近在進行openstack的kilo版本的安裝,發現現有的網路教程非常少,而且多數教程並不能安裝成功,故寫此教程。openstack的安裝較為複雜,本教程並不能保證在不同環境下也能將其安裝成功。個人安裝教程,也難免出錯。同時,安裝是在虛擬機器環境下,真實安裝環境需要變更。

 

轉載請聲明出處:

              張某人ER     

              原文連結:http://blog.csdn.net/xinxing__8185/article/details/51154549

 

 第二部分 keystone的安裝 (2)


配置Apache服務

vim /etc/httpd/conf/httpd.conf


ServerName 一行改為ServerName controller


 建立檔案:

vim /etc/httpd/conf.d/wsgi-keystone.conf 


 寫入如下內容:

Listen 5000Listen 35357 <VirtualHost *:5000>    WSGIDaemonProcess keystone-public processes=5 threads=1 user=keystone group=keystone display-name=%{GROUP}    WSGIProcessGroup keystone-public    WSGIScriptAlias / /var/www/cgi-bin/keystone/main    WSGIApplicationGroup %{GLOBAL}    WSGIPassAuthorization On    LogLevel info    ErrorLogFormat "%{cu}t %M"    ErrorLog /var/log/httpd/keystone-error.log    CustomLog /var/log/httpd/keystone-access.log combined</VirtualHost> <VirtualHost *:35357>    WSGIDaemonProcess keystone-admin processes=5 threads=1 user=keystone group=keystone display-name=%{GROUP}    WSGIProcessGroup keystone-admin    WSGIScriptAlias / /var/www/cgi-bin/keystone/admin    WSGIApplicationGroup %{GLOBAL}    WSGIPassAuthorization On    LogLevel info    ErrorLogFormat "%{cu}t %M"    ErrorLog /var/log/httpd/keystone-error.log    CustomLog /var/log/httpd/keystone-access.log combined</VirtualHost>

建立目錄

mkdir - p /var/www/cgi-bin/keystone

curl http://git.openstack.org/cgit/openstack/keystone/plain/httpd/keystone.py?h=stable/kilo |tee /var/www/cgi-bin/keystone/main /var/www/cgi-bin/keystone/admin

  

賦權

 

chown -R keystone:keystone /var/www/cgi-bin/keystonechmod 755 /var/www/cgi-bin/keystone/*

  

啟動

systemctl enable httpd.servicesystemctl start httpd.service

 

(註:按照kilo版的安裝手冊,我在這裡遇到了無法啟動的問題,下面給出解決辦法,原因主要是Apache和keystone service 服務存在衝突,官方手冊建議使用Apache提供restful API 服務):

 

檢驗是否存在問題

 設定環境變數:

export OS_TOKEN=openstack export OS_URL=http://controller:35357/v2.0

註:openstack是上文中設定的欄位


openstack service create --name keystone --description "Opentack Identity" identity

註:我在此處遇到錯誤:HTTP 500 


 如下解決:


首先嘗試:

 

systemctl enable openstack-keystone.servicesystemctl start openstack-keystone.service


註:出現
Failed to start OpenStack  Identity  Service 

 

解決辦法:

 

ln -s /usr/lib/systemd/system/httpd.service /etc/systemd/system/openstack-keystone.service

 然後啟動:

systemctl enable openstack-keystone.servicesystemctl start openstack-keystone.service

註:出現:Failed to start the Apache Http server

 

 最後嘗試:


vim /usr/lib/systemd/system/httpd.service

在Type下添加一行PIDFile= /var/run/httpd/httpd.pid


啟動服務:

systemctl enable openstack-keystone.servicesystemctl start openstack-keystone.service


解決問題.

 

Oracle VM + centos7.1+openstack kilo 多結點安裝教程---keystone的安裝(2)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.