当前位置: 首页 > 工具软件 > Kilo > 使用案例 >

ubuntu14.04安装openstack kilo

方航
2023-12-01
1.cd /home/lk
   git clone -b stable/kilo https://git.openstack.org/openstack-dev/devstack
2.为避免网络的各种问题浪费时间,提前把各种所需包下载到本地:
   cd /opt/stack
   git clone -b stable/kilo https://github.com/openstack/nova.git
   git clone -b stable/kilo https://github.com/openstack/ceilometer.git
   git clone -b stable/kilo https://github.com/openstack/cinder.git
   git clone -b stable/kilo https://github.com/openstack/glance.git
   git clone -b stable/kilo https://github.com/openstack/heat.git
   git clone https://github.com/openstack/heat-cfntools.git
   git clone https://github.com/openstack/heat-templates.git
   git clone -b stable/kilo https://github.com/openstack/horizon.git
   git clone -b stable/kilo https://github.com/openstack/keystone.git
   git clone -b stable/kilo https://github.com/openstack/neutron.git
   git clone https://github.com/kanaka/noVNC.git
   git clone -b stable/kilo https://github.com/openstack/requirements.git
   git clone -b stable/kilo https://github.com/openstack/swift.git

   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


遇到的问题:
1.Could not find a version that satisfies the requirement cryptography (from versions: )  No matching distribution found for cryptography

解决方法:豆瓣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

 类似资料: