git clone https://github.com/openstack/os-apply-config.git
git clone https://github.com/openstack/os-collect-config.git
git clone https://github.com/openstack/os-refresh-config.git
git clone https://github.com/openstack/dib-utils.git
git clone https://github.com/openstack/tempest
3.cd /home/lk/devstack
./stack.sh解决方法:豆瓣pip源502错误,不使用豆瓣pip源即可
2.ERROR: openstack 401 Unauthorized: This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required. (HTTP 401)
其实主要原因网上翻日志在这:"g-api failed to start" | te' "/opt/stack/status/stack/g-api.failure"
g-api和g-reg起不来
解决办法:可能是之前安装导致端口被占用,./unstack.sh,./clean.sh后相关端口未释放。重启一下再装就好了
我的localrc:
PASSWORD=123456
DATABASE_PASSWORD=$PASSWORD
RABBIT_PASSWORD=$PASSWORD
SERVICE_TOKEN=$PASSWORD
SERVICE_PASSWORD=$PASSWORD
ADMIN_PASSWORD=$PASSWORD
NOVA_BRANCH=stable/kilo
KEYSTONE_BRANCH=stable/kilo
NEUTRON_BRANCH=stable/kilo
GLANCE_BRANCH=stable/kilo
CINDER_BRANCH=stable/kilo
SWIFT_BRANCH=stable/kilo
HEAT_BRANCH=stable/kilo
TROVE_BRANCH=stable/kilo
HORIZON_BRANCH=stable/kilo
## For Keystone
#KEYSTONE_TOKEN_FORMAT=PKI
# 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't forget to un-declare 'rabbit' from the pre-requesite)
#ENABLED_SERVICES+=,-rabbit,-qpid,zeromq
## If you want Qpid instead of RabbitMQ (don't forget to un-declare 'rabbit' from the pre-requesite)
#ENABLED_SERVICES+=,-rabbit,-zeromq,qpid
# Horizon (Dashboard UI) - (always use the trunk)
ENABLED_SERVICES+=,horizon
# Nova - Compute Service
ENABLED_SERVICES+=,n-api,n-crt,n-obj,n-cpu,n-cond,n-sch,n-novnc,n-cauth
# Glance - Image Service
ENABLED_SERVICES+=,g-api,g-reg
# Neutron - Networking Service
# If Neutron is not declared the old good nova-network will be used
ENABLED_SERVICES+=,q-svc,q-meta,q-agt,q-dhcp,q-l3,neutron
# Cinder - Block Device Service
VOLUME_GROUP="cinder-volumes"
ENABLED_SERVICES+=,cinder,c-api,c-vol,c-sch
# Heat - Orchestration Service
ENABLED_SERVICES+=,heat,h-api,h-api-cfn,h-api-cw,h-eng
# Apache fronted for WSGI
APACHE_ENABLED_SERVICES+=keystone,swift
RECLONE=no # Reclone each time
OFFLINE=false # Python enviroments
#GIT_BASE=https://github.com
#IMAGE_URLS+=,https://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-disk.img
SWIFT_HASH=123456