分享

使用devstack安装openstack出现了问题

fragment 发表于 2016-1-6 17:42:57 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 1 16476
我在使用devstack安装kilo版本的openstack时,遇到了两个问题。在网上查了很久,没有找到原因,也没有找到解决办法,看到这里气氛很好,想着来问一下。。
安装环境为Ubuntu14.04.3。
一个是在安装horizon时,
2016-01-06 08:30:06.609 | + cd /opt/stack/horizon
2016-01-06 08:30:06.609 | + ./run_tests.sh -N –compilemessages
2016-01-06 08:30:06.821 | WARNING:root:No local_settings file found.
2016-01-06 08:30:07.294 | Traceback (most recent call last):
2016-01-06 08:30:07.294 |   File “/opt/stack/horizon/manage.py”, line 23, in
2016-01-06 08:30:07.294 |     execute_from_command_line(sys.argv)
2016-01-06 08:30:07.294 |   File “/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py”, line 385, in execute_from_command_line
2016-01-06 08:30:07.294 |     utility.execute()
2016-01-06 08:30:07.294 |   File “/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py”, line 345, in execute
2016-01-06 08:30:07.294 |     settings.INSTALLED_APPS
2016-01-06 08:30:07.294 |   File “/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py”, line 46, in __getattr__
2016-01-06 08:30:07.294 |     self._setup(name)
2016-01-06 08:30:07.295 |   File “/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py”, line 42, in _setup
2016-01-06 08:30:07.295 |     self._wrapped = Settings(settings_module)
2016-01-06 08:30:07.295 |   File “/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py”, line 98, in __init__
2016-01-06 08:30:07.295 |     % (self.SETTINGS_MODULE, e)
2016-01-06 08:30:07.295 | ImportError: Could not import settings ‘openstack_dashboard.settings’ (Is it on sys.path? Is there an import error in the settings file?): No module named i18n
然后我屏蔽掉了localrc中的horizon功能,遇到了另一个问题
2016-01-06 08:01:33.758 | + init_keystone
2016-01-06 08:01:33.758 | + is_service_enabled ldap
2016-01-06 08:01:33.761 | + return 1
2016-01-06 08:01:33.761 | + recreate_database keystone
2016-01-06 08:01:33.761 | + local db=keystone
2016-01-06 08:01:33.762 | + recreate_database_mysql keystone
2016-01-06 08:01:33.762 | + local db=keystone
2016-01-06 08:01:33.762 | + mysql -uroot -padmin -h127.0.0.1 -e ‘DROP DATABASE IF EXISTS keystone;’
2016-01-06 08:01:33.795 | + mysql -uroot -padmin -h127.0.0.1 -e ‘CREATE DATABASE keystone CHARACTER SET utf8;’
2016-01-06 08:01:33.802 | + /usr/local/bin/keystone-manage db_sync
2016-01-06 08:01:34.047 | Traceback (most recent call last):
2016-01-06 08:01:34.047 |   File “/usr/local/bin/keystone-manage”, line 4, in
2016-01-06 08:01:34.048 |     __import__(‘pkg_resources’).require(‘keystone==2015.1.3.dev14′)
2016-01-06 08:01:34.048 |   File “/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py”, line 3138, in
2016-01-06 08:01:34.048 |     @_call_aside
2016-01-06 08:01:34.048 |   File “/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py”, line 3124, in _call_aside
2016-01-06 08:01:34.049 |     f(*args, **kwargs)
2016-01-06 08:01:34.049 |   File “/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py”, line 3151, in _initialize_master_working_set
2016-01-06 08:01:34.049 |     working_set = WorkingSet._build_master()
2016-01-06 08:01:34.049 |   File “/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py”, line 663, in _build_master
2016-01-06 08:01:34.049 |     return cls._build_from_requirements(__requires__)
2016-01-06 08:01:34.050 |   File “/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py”, line 676, in _build_from_requirements
2016-01-06 08:01:34.050 |     dists = ws.resolve(reqs, Environment())
2016-01-06 08:01:34.050 |   File “/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py”, line 849, in resolve
2016-01-06 08:01:34.050 |     raise DistributionNotFound(req, requirers)
2016-01-06 08:01:34.050 | pkg_resources.DistributionNotFound: The ‘pycadf=0.8.0′ distribution was not found and is required by keystone
2016-01-06 08:01:34.059 | + exit_trap
这是怎么一回事,能帮忙解答下吗?万分感谢。
附上我用的localrc文件
DATABASE_PASSWORD=admin
ADMIN_PASSWORD=admin
SERVICE_PASSWORD=admin
SERVICE_TOKEN=admin
RABBIT_PASSWORD=admin
#vnc
#enable_service n-spice
#enable_service n-novnc
#enable_service n-xvnc
## For Swift
SWIFT_REPLICAS=1
SWIFT_HASH=011688b44136573e209e
# Enable Logging
LOGFILE=/opt/stack/logs/devstack.log
VERBOSE=True
LOG_COLOR=True
SCREEN_LOGDIR=/opt/stack/logs
# Pre-requisite
ENABLED_SERVICES=rabbit,mysql,key
ENABLED_SERVICES+=,horizon
ENABLED_SERVICES+=,n-api,n-crt,n-obj,n-cpu,n-cond,n-sch
ENABLED_SERVICES+=,n-novnc,n-xvnc
ENABLED_SERVICES+=,g-api,g-reg
ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account
ENABLED_SERVICES+=,q-svc,q-agt,q-dhcp,q-l3,q-meta,neutron
ENABLED_SERVICES+=h-eng,h-api,h-api-cfn,h-api-cw
Q_PLUGIN=ml2
Q_ML2_TENANT_NETWORK_TYPE=vxlan
VOLUME_GROUP=”cinder-volumes”
ENABLED_SERVICES+=,cinder,c-api,c-vol,c-sch,c-bak
APACHE_ENABLED_SERVICES+=keystone
IMAGE_URLS+=”,http://cloud.fedoraproject.org/fedora-20.x86_64.qcow2”GLANCE_BRANCH=stable/kilo
KEYSTONE_BRANCH=stable/kilo
NOVA_BRANCH=stable/kilo
NEUTRON_BRANCH=stable/kilo
HORIZON_BRANCH=stable/kilo
CINDER_BRANCH=stable/kilo
HEAT_BRANCH=stable/kilo
SWIFT_BRANCH=stable/kilo
REQUIREMENTS_BRANCH=stable/kilo

已有(1)人评论

跳转到指定楼层
atsky123 发表于 2016-1-7 14:01:19
openstack_dashboard.settings 这个文件看看是否存在, config配置检查下是否正确
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条