Install openstack quickly in devstack under Centos7

Source: Internet
Author: User

Install openstack quickly in devstack under Centos7

Prepare the environment

Selinux and iptables disabledmkdir-p~/.pip# Using Douban pip Sourcevim~/.pip/pip.conf[global]index-url=http://pypi.douban.com/simple/yuminstall-ygit# Install gitcd/homegitclonehttps://github.com/openstack-dev/devstack.gitcd/home/devstack/tools/# Devstack cannot run as root by default./create-stack-user.sh# A stack user is created.chown-Rstack./home/devstack

Prepare local. conf

sustack# Switching to a stack usercd/home/devstack/# Switch to the devstack directorycpsamples/local.conf./# Copy a local. conf file to a local directory.vimlocal.conf# Edit the local. conf configuration file and fill in the components you want to install[[local|localrc]]#DefinethedevstackinstalldirectoryDEST=/opt/ice/code/openstack/#DatadirectoryDATA_DIR=/opt/ice/data#ServicedirctorySERVICE_DIR=/opt/ice/data/service#yumcommandYUM=yum#nointernet#OFFLINE=True#RecloneRECLONE=True#allpackageforlibLIBS_FROM_GIT=True#MinimalContents#----------------#While``stack.sh``ishappytorunwithout``localrc``,devlifeisbetterwhen#thereareafewminimalvariablesset:#Ifthe``SERVICE_TOKEN``and``*_PASSWORD``variablesarenotset#hereyouwillbepromptedtoentervaluesforthemby``stack.sh``#andtheywillbeaddedto``local.conf``.SERVICE_TOKEN=ice_tokenADMIN_PASSWORD=adminMYSQL_PASSWORD=stackdbRABBIT_PASSWORD=stackmqSERVICE_PASSWORD=$ADMIN_PASSWORD#``HOST_IP``shouldbesetmanuallyforbestresultsiftheNICconfiguration#ofthehostisunusual,i.e.``eth1``hasthedefaultroutebut``eth0``isthe#publicinterface.Itisauto-detectedin``stack.sh``butoftenisindeterminate#onlaterrunsduetotheIPmovingfromanEthernetinterfacetoabridgeon#thehost.Settingitherealsomakesitavailablefor``openrc``toinclude#whensetting``OS_AUTH_URL``.#``HOST_IP``isnotsetbydefault.#HOST_IP=w.x.y.z#Logging#-------#Bydefault``stack.sh``outputonlygoestotheterminalwhereitruns.Itcan#beconfiguredtoadditionallylogtoafilebysetting``LOGFILE``tothefull#pathofthedestinationlogfile.Atimestampwillbeappendedtothegivenname.LOGFILE=$DATA_DIR/logs/stack.sh.log#Oldlogfilesareautomaticallyremovedafter7daystokeepthingsneat.Change#thenumberofdaysbysetting``LOGDAYS``.LOGDAYS=2#Novalogswillbecolorizedif``SYSLOG``isnotset;turnthisoffbysetting#``LOG_COLOR``false.#LOG_COLOR=False#Usingmilestone-proposedbranches#---------------------------------#Uncommentthesetograbthemilestone-proposedbranchesfromtherepos:CINDER_BRANCH=stable/junoGLANCE_BRANCH=stable/junoKEYSTONE_BRANCH=stable/junoNOVA_BRANCH=stable/junoNEUTRON_BRANCH=stable/junoCEILOMETER_BRANCH=stable/junoHORIZON_BRANCH=stable/junoREQUIREMENTS_BRANCH=stable/juno#-------Service##ENABLED_SERVICES=g-api,g-reg,key,n-api,n-crt,n-obj,n-cpu,n-cond,n-sch,n-xvnc,n-cauth,mysql,rabbitENABLED_SERVICES+=,c-sch,c-api,c-volENABLED_SERVICES+=,ceilometer#Horizonconfig#disable_servicehorzion#Installthetempesttestsuiteenable_servicetempest#Neutrondisable_servicen-netenable_serviceq-svcenable_serviceq-agtenable_serviceq-dhcpenable_serviceq-l3enable_serviceq-metaenable_serviceq-meteringenable_serviceneutron#VXLANtunnelconfigurationQ_PLUGIN=ml2Q_ML2_TENANT_NETWORK_TYPE=vxlan

Install

cd/home/devstack./stack.sh# Start Installationyuminstallopenstack-dashboardhttpd# The above local. conf does not have horizon. My boss has tested it. I have manually installed horizon.vim/etc/openstack-dashboard/local_settings# The modification content is as follows:ALLOW_HOSTS=['*','localhost']OPENSTACK_HOST="172.16.105.16"servicehttpdrestart# Restart the service to take effect

Run Devstack

Admin usersource/home/devstack/openrcadminadmin# Loading environment variables for operationsDemo usersource/home/devstack/openrcdemodemo# Loading environment variables for operations

Reference

Http://www.chenshake.com/devstack-installation-and-testing/

This article is from the "the-way-to-cloud" blog, please be sure to keep this source http://iceyao.blog.51cto.com/9426658/1604027

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.