ubuntu14.04下devstack安装openstack

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/
执行: ./stack.sh


  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值