1安装ubuntu14.04 64bit ,更新系统:
直接创建stack用户
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get install git
2 下载devstack:
git clone https://github.com/openstack-dev/devstack.git #克隆devstack的Git代码仓库
cd ./devstack
git branch -a #显示本地分支
git checkout -b icehouse origin/stable/icehouse #切换到指定icehouse分支或标签
3 创建localrc配置文件:
cd devstack
localrc 文件:
<pre class="csharpcode" style="margin-top: 1.5em; margin-bottom: 1.5em; padding: 1em; border: 1px solid rgb(221, 221, 221); outline: 0px; font-size: 13.9200000762939px; font-family: 'Courier New', Courier, Monaco, 'Lucida Console', monospace; overflow: auto; line-height: 1.5em; border-radius: 5px; background-color: rgb(247, 247, 247);"># Misc
HOST_IP=172.28.1.132
DATABASE_PASSWORD=password
ADMIN_PASSWORD=password
SERVICE_PASSWORD=password
SERVICE_TOKEN=password
RABBIT_PASSWORD=password
#change from github to csdn
#GIT_BASE=https:<span class="rem" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 13.9200000762939px;">//code.csdn.net</span>
## vnc
#enable_service n-spice
#enable_service n-novnc
#enable_service n-xvnc
# Reclone each time
#RECLONE=yes
RECLONE=no
## For Keystone
KEYSTONE_TOKEN_FORMAT=PKI
## For Swift
SWIFT_REPLICAS=1
SWIFT_HASH=011688b44136573e209e
# Enable Logging
LOGFILE=/opt/stack/logs/stack.sh.log
VERBOSE=True
LOG_COLOR=True
SCREEN_LOGDIR=/opt/stack/logs
# Pre-requisite
ENABLED_SERVICES=rabbit,mysql,key
## If you want ZeroMQ instead of RabbitMQ (don<span class="str" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 13.9200000762939px;">'t forget to un-declare '</span>rabbit<span class="str" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 13.9200000762939px;">' from the pre-requesite)
#ENABLED_SERVICES+=,-rabbit,-qpid,zeromq
## If you want Qpid instead of RabbitMQ (don'</span>t forget to un-declare <span class="str" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 13.9200000762939px;">'rabbit'</span> from the pre-requesite)
#ENABLED_SERVICES+=,-rabbit,-zeromq,qpid
# Horizon (Dashboard UI) - (always use the trunk)
ENABLED_SERVICES+=,horizon
HORIZON_REPO=https:<span class="rem" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 13.9200000762939px;">//github.com/openstack/horizon</span>
HORIZON_BRANCH=master
# Nova - Compute Service
ENABLED_SERVICES+=,n-api,n-crt,n-obj,n-cpu,n-cond,n-sch
######vnc
ENABLED_SERVICES+=,n-novnc,n-xvnc
IMAGE_URLS+=<span class="str" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 13.9200000762939px;">",https://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-disk.img"</span>
#IMAGE_URLS+=<span class="str" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 13.9200000762939px;">",http://172.28.0.1/image/cirros-0.3.0-x86_64-disk.img"</span>
# Nova Network - If you don't want to use Neutron and need a simple network setup (old good stuff!)
#ENABLED_SERVICES+=,n-net
## Nova Cells
ENABLED_SERVICES+=,n-cell
# Glance - Image Service
ENABLED_SERVICES+=,g-api,g-reg
# Swift - Object Storage
ENABLED_SERVICES+=,s-proxy,s-<span class="kwrd" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 13.9200000762939px;">object</span>,s-container,s-account
# Neutron - Networking Service
# If Neutron <span class="kwrd" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 13.9200000762939px;">is</span> not declared the old good nova-network will be used
ENABLED_SERVICES+=,q-svc,q-agt,q-dhcp,q-l3,q-meta,neutron
## Neutron - Load Balancing
ENABLED_SERVICES+=,q-lbaas
## Neutron - VPN <span class="kwrd" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 13.9200000762939px;">as</span> a Service
ENABLED_SERVICES+=,q-vpn
## Neutron - Firewall <span class="kwrd" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 13.9200000762939px;">as</span> a Service
ENABLED_SERVICES+=,q-fwaas
# VLAN configuration
#Q_PLUGIN=ml2
#ENABLE_TENANT_VLANS=True
# GRE tunnel configuration
Q_PLUGIN=ml2
ENABLE_TENANT_TUNNELS=True
# VXLAN tunnel configuration
#Q_PLUGIN=ml2
#Q_ML2_TENANT_NETWORK_TYPE=vxlan
# Cinder - Block Device Service
VOLUME_GROUP=<span class="str" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 13.9200000762939px;">"cinder-volumes"</span>
ENABLED_SERVICES+=,cinder,c-api,c-vol,c-sch,c-bak
# Heat - Orchestration Service
ENABLED_SERVICES+=,heat,h-api,h-api-cfn,h-api-cw,h-eng
#IMAGE_URLS+=<span class="str" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 13.9200000762939px;">",http://fedorapeople.org/groups/heat/prebuilt-jeos-images/F17-x86_64-cfntools.qcow2"</span>
# Ceilometer - Metering Service (metering + alarming)
ENABLED_SERVICES+=,ceilometer-acompute,ceilometer-acentral,ceilometer-collector,ceilometer-api
ENABLED_SERVICES+=,ceilometer-alarm-notify,ceilometer-alarm-eval
ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond
# Apache fronted <span class="kwrd" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 13.9200000762939px;">for</span> WSGI
APACHE_ENABLED_SERVICES+=keystone,swift
#APACHE_ENABLED_SERVICES+=keystone
修改pip源,
$
mkdir
~/.pip
$vim ~/.pip
/pip
.conf
-----------------pip.conf-------------------------------------
[global]
index-url = http:
//pypi
.douban.com
/simple/