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

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Ubuntu 14.04 - devstack + openstack +ceph统一存储相关的知识,希望对你有一定的参考价值。

安装步骤

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统一存储的主要内容,如果未能解决你的问题,请参考以下文章

sexi部署openstack (devstack) 二

使用openshit在ubuntu14.04下一键部署openstack(juno版本)

部署 DevStack - 每天5分钟玩转 OpenStack(17)

解决Compressing... /home/stack/devstack/lib/horizon: line 99: 22567 Killed错误

devstack环境搭建

Ubuntu下用devstack单节点部署Openstack