Centos7-devstack Quick Mount OpenStack

Source: Internet
Author: User

Prepare the Environment

SELinux, iptables off mkdir-p ~/.pip # using watercress pip source vim ~/.pip/pip.conf[global]index-url = http://pypi.douban.com/simple/ Yum install-y git # install gitcd/homegit clone https://github.com/openstack-dev/devstack.git cd/home/devstack/tools/# Devstack default cannot run as root./create-stack-user.sh # Creates a stack user chown-r stack. /home/devstack

Prepare local.conf

su stack             #  switch to the stack user CD  /home/devstack/   #  switch to Devstack directory cp samples/local.conf ./ #  Copy a local.conf to the local vim local.conf   #  edit the local.conf configuration file and fill in the components you need to install [[local|localrc]]#  define the devstack install directorydest=/opt/ice/code/openstack/#Data   Directorydata_dir=/opt/ice/data#service dirctoryservice_dir=/opt/ice/data/service#yum commandyum=yum # no internet#offline=true#reclonereclone=true#all package for liblibs_from_git=true#  Minimal Contents# ----------------# while  ' stack.sh '  is happy to  run without  ' LOCALRC ', devlife is better when# there are  a few minimal variables set:# if the  ' Service_token '  and  ' *_ PASSWORD '  VARIABLES&NBSp;are not set# here you will be prompted to enter values  for them by  ' stack.sh ' # and they will be added to  ' Local.conf '. service_token=ice_tokenadmin_password=adminmysql_password=stackdbrabbit_password=stackmqservice_password=$ admin_password#  ' Host_ip '  should be set manually for best results  if the nic configuration# of the host is unusual, i.e.   ' eth1 '  has the default route but  ' eth0 '  is the# public  interface.  It is auto-detected in  ' stack.sh '  but often  Is indeterminate# on later runs due to the ip moving from  an ethernet interface to a bridge on# the host. setting  it here also makes it available for  ' OPENRC '  to include# when  setting  ' Os_auth_url ' .#  ' host_ip '  is not set by default. #HOST_IP = w.x.y.z# logging# -------# by default  ' stack.sh '  output only goes  to the terminal where it runs.  it can# be configured  to additionally log to a file by setting  ' LOGFILE '  to  the full# path of the destination log file.  A  Timestamp will be appended to the given name. logfile= $DATA _dir/logs/stack.sh.log# old log files are automatically removed  after 7 days to keep things neat.  change# the number  of days by setting  ' Logdays '. logdays=2#  nova logs will be colorized if  ' SYSLOG '  is not set; turn  this off by setting#  ' Log_color '  false. #LOG_COLOR =false# using  milestone-proposed branches# ---------------------------------# uncomment these to  grab the milestone-proposed branches from the repos: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# horizon config#disable_ service horzion# install the tempest test suiteenable_service tempest#  neutrondisable_service n-netenable_service q-svcenable_service q-agtenable_service q-dhcpenable_service q-l3enable_service  Q-metaenable_service q-meteringenable_service neutron# vxlan tunnel configurationq_ Plugin=ml2q_ml2_tenant_network_type=vxlan

Installation

cd/home/devstack./stack.sh # Start installing yum install Openstack-dashboard httpd # Above the local.conf no horizon, my boss tested, I manually install Horizonvim/etc/openstack-dashboard/local_settings # Modified content as follows allow_hosts = [' * ', ' localhost ']openstack_host = ' 172.16.105.16 ' service httpd Restart # Restart services in effect

Run Devstack

Admin user SOURCE/HOME/DEVSTACK/OPENRC Admin Admin # Load environment variable to operate demo user SOURCE/HOME/DEVSTACK/OPENRC demo Demo # load environment variable to operate

Reference links

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


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

Centos7-devstack Quick Mount OpenStack

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.