安装步骤
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 # 安装运行
时间: 2024-10-12 12:53:41