码迷,mamicode.com
首页 > 系统相关 > 详细

Ubuntu 14.04 - devstack + openstack +ceph统一存储

时间:2016-05-29 16:51:28      阅读:522      评论:0      收藏:0      [点我收藏+]

标签:devstack

安装步骤

apt-get update 
apt-get upgrade
apt-get install git python-pip

cd /opt/
git clone https://git.openstack.org/openstack-dev/devstack

cd /opt/devstack
./tools/create-stack-user.sh    # 创建stack用户

vim local.conf   # 创建local.conf文件
[[local|localrc]]
GIT_BASE=${GIT_BASE:-             # trystack源 
NOVNC_REPO=${NOVNC_REPO:-  # trystack源 
DATABASE_PASSWORD=password
ADMIN_PASSWORD=password
SERVICE_PASSWORD=password
SERVICE_TOKEN=password
RABBIT_PASSWORD=password
LOGFILE=/opt/stack/logs/stack.sh.log
VERBOSE=True
LOG_COLOR=True
SCREEN_LOGDIR=/opt/stack/logs
ENABLED_SERVICES=rabbit,mysql,key
enable_plugin ceph https://github.com/openstack/devstack-plugin-ceph
CEPH_LOOPBACK_DISK_SIZE=10G
CEPH_FSID=$(uuidgen)
GLANCE_CEPH_USER=glance
GLANCE_CEPH_POOL=images
GLANCE_CEPH_POOL_PG=8
GLANCE_CEPH_POOL_PGP=8
NOVA_CEPH_POOL=vms
NOVA_CEPH_POOL_PG=8
NOVA_CEPH_POOL_PGP=8
CINDER_CEPH_POOL=volumes
CINDER_CEPH_POOL_PG=8
CINDER_CEPH_POOL_PGP=8
CINDER_CEPH_USER=cinder
CINDER_CEPH_UUID=$(uuidgen)
CINDER_BAK_CEPH_POOL=backup
CINDER_BAK_CEPH_POOL_PG=8
CINDER_BAKCEPH_POOL_PGP=8
CINDER_BAK_CEPH_USER=cinder-bak
CEPH_REPLICAS=${CEPH_REPLICAS:-1}
REMOTE_CEPH=False
REMOTE_CEPH_ADMIN_KEY_PATH=/etc/ceph/ceph.client.admin.keyring
ENABLED_SERVICES+=,g-api,g-reg
ENABLED_SERVICES+=,cinder,c-api,c-vol,c-sch,c-bak
CINDER_DRIVER=ceph
CINDER_ENABLED_BACKENDS=ceph
ENABLED_SERVICES+=,n-api,n-crt,n-cpu,n-cond,n-sch,n-net
DEFAULT_INSTANCE_TYPE=m1.micro
enable_service horizon
disable_service n-net
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-meta
enable_service q-metering
enable_service neutron
Q_PLUGIN=ml2
Q_ML2_TENANT_NETWORK_TYPE=vxlan


chown -R stack. /opt/devstack

su stack   # 切换为stack用户
cd /opt/devstack
./stack.sh  # 安装运行



本文出自 “the-way-to-cloud” 博客,请务必保留此出处http://iceyao.blog.51cto.com/9426658/1784213

Ubuntu 14.04 - devstack + openstack +ceph统一存储

标签:devstack

原文地址:http://iceyao.blog.51cto.com/9426658/1784213

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!