Oracle VM + centos7.1+openstack kilo Multi-node installation tutorial---Keystone Installation (2)

Source: Internet
Author: User

declaration: openstack kilo Version of the installation, found that there are very few existing web tutorials, and most of the tutorials can not be installed successfully, so write this tutorial. openstack Span style= "margin:0px; padding:0px; font-size:18px; Font-family: The installation of the song Body "is more complex, this tutorial does not guarantee that in different environments can also be installed successfully." Personal installation tutorials are also prone to errors. At the same time, the installation is in the virtual machine environment, the real installation environment needs to be changed.

Reprint please declare the source:

Zhang someone ER

Original link:http://blog.csdn.net/xinxing__8185/article/details/51154549

Part II installation of the Keystone(2)


Configure Apache Services

Vim/etc/httpd/conf/httpd.conf


ServerName Line to ServerName Controller


New file:



Write the following content:

Listen 5000Listen 35357 <virtualhost *:5000> wsgidaemonprocess keystone-public processes=5 Threads=1 User=keyston E 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" Error Log/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 displa Y-name=%{group} wsgiprocessgroup keystone-admin Wsgiscriptalias//var/www/cgi-bin/keystone/admin WSGIApplication Group%{global} wsgipassauthorization on LogLevel info errorlogformat "%{cu}t%M" Errorlog/var/log/httpd/keys Tone-error.log Customlog/var/log/httpd/keystone-access.log combined</virtualhost>

Create a Directory

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

  

Empowering

Chown-r Keystone:keystone/var/www/cgi-bin/keystonechmod 755/var/www/cgi-bin/keystone/*

  

Start

Systemctl Enable Httpd.servicesystemctl start Httpd.service

 

(Note: In accordance with the Kilo version of the installation manual, I encountered a problem here, the solution, the main reason is the Apache and Keystone Service services conflict, the official manual recommends using Apache to provide restful API services):

Verify that there is a problem

Set Environment variables:

Export Os_token=openstack Export os_url=http://controller:35357/v2.0

Note: OpenStack is the field set in the above


OpenStack Service Create--name Keystone--description "Opentack identity" identity

Note: I encountered an error here:HTTP


Resolved as follows:


First try:

Systemctl Enable Openstack-keystone.servicesystemctl start Openstack-keystone.service


Note:
the Failed to start OpenStack Identity Service appears

Workaround:

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

Then start:

Systemctl Enable Openstack-keystone.servicesystemctl start Openstack-keystone.service

Note: appears:Failed to start the Apache Http server

Last try:


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

Add a row under Type pidfile=/var/run/httpd/httpd.pid


Start the service:

Systemctl Enable Openstack-keystone.servicesystemctl start Openstack-keystone.service


Solve the problem.

Oracle VM + centos7.1+openstack kilo Multi-node installation tutorial---Keystone Installation (2)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.