免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: atkisc
打印 上一主题 下一主题

[OpenStack] 1. 在CentOS 6.3上通过源码安装Openstack Folsom之Keystone安装 [复制链接]

论坛徽章:
0
31 [报告]
发表于 2013-05-12 17:07 |只看该作者
回复 30# atkisc

版本没有问题


   

论坛徽章:
0
32 [报告]
发表于 2013-07-08 21:58 |只看该作者
楼主你好 我启动keystone的时候,日志报错我先把我的环境说一下
我的环境是centOS6.2
keystone日志报错
2013-07-08 17:58:17    DEBUG [keystone-all] ********************************************************************************
2013-07-08 17:58:17    DEBUG [keystone-all] Configuration options gathered from:
2013-07-08 17:58:17    DEBUG [keystone-all] command line args: ['/usr/bin/keystone-all']
2013-07-08 17:58:17    DEBUG [keystone-all] config files: ['/etc/keystone/keystone.conf']
2013-07-08 17:58:17    DEBUG [keystone-all] ================================================================================
2013-07-08 17:58:17    DEBUG [keystone-all] admin_port                     = 35357
2013-07-08 17:58:17    DEBUG [keystone-all] admin_token                    = openstack
2013-07-08 17:58:17    DEBUG [keystone-all] bind_host                      = 0.0.0.0
2013-07-08 17:58:17    DEBUG [keystone-all] compute_port                   = 8774
2013-07-08 17:58:17    DEBUG [keystone-all] config_file                    = ['/etc/keystone/keystone.conf']
2013-07-08 17:58:17    DEBUG [keystone-all] crypt_strength                 = 40000
2013-07-08 17:58:17    DEBUG [keystone-all] debug                          = True
2013-07-08 17:58:17    DEBUG [keystone-all] log_config                     = None
2013-07-08 17:58:17    DEBUG [keystone-all] log_date_format                = %Y-%m-%d %H:%M:%S
2013-07-08 17:58:17    DEBUG [keystone-all] log_dir                        = None
2013-07-08 17:58:17    DEBUG [keystone-all] log_file                       = /var/log/keystone/keystone.log
2013-07-08 17:58:17    DEBUG [keystone-all] log_format                     = %(asctime)s %(levelname)8s [%(name)s] %(message)s
2013-07-08 17:58:17    DEBUG [keystone-all] public_port                    = 5000
2013-07-08 17:58:17    DEBUG [keystone-all] syslog_log_facility            = LOG_LOCAL0
2013-07-08 17:58:17    DEBUG [keystone-all] use_syslog                     = False
2013-07-08 17:58:17    DEBUG [keystone-all] verbose                        = True
2013-07-08 17:58:17    DEBUG [keystone-all] ldap.password                  = None
2013-07-08 17:58:17    DEBUG [keystone-all] ldap.role_id_attribute         = None
2013-07-08 17:58:17    DEBUG [keystone-all] ldap.role_member_attribute     = None
2013-07-08 17:58:17    DEBUG [keystone-all] ldap.role_objectclass          = None
2013-07-08 17:58:17    DEBUG [keystone-all] ldap.role_tree_dn              = None
2013-07-08 17:58:17    DEBUG [keystone-all] ldap.suffix                    = None
2013-07-08 17:58:17    DEBUG [keystone-all] ldap.tenant_id_attribute       = None
2013-07-08 17:58:17    DEBUG [keystone-all] ldap.tenant_member_attribute   = None
2013-07-08 17:58:17    DEBUG [keystone-all] ldap.tenant_objectclass        = None
2013-07-08 17:58:17    DEBUG [keystone-all] ldap.tenant_tree_dn            = None
2013-07-08 17:58:17    DEBUG [keystone-all] ldap.url                       = None
2013-07-08 17:58:17    DEBUG [keystone-all] ldap.use_dumb_member           = None
2013-07-08 17:58:17    DEBUG [keystone-all] ldap.user                      = None
2013-07-08 17:58:17    DEBUG [keystone-all] ldap.user_id_attribute         = None
2013-07-08 17:58:17    DEBUG [keystone-all] ldap.user_objectclass          = None
2013-07-08 17:58:17    DEBUG [keystone-all] ldap.user_tree_dn              = None
2013-07-08 17:58:17    DEBUG [keystone-all] token.driver                   = keystone.token.backends.kvs.Token
2013-07-08 17:58:17    DEBUG [keystone-all] catalog.driver                 = keystone.catalog.backends.templated.TemplatedCatalog
2013-07-08 17:58:17    DEBUG [keystone-all] ec2.driver                     = keystone.contrib.ec2.backends.sql.Ec2
2013-07-08 17:58:17    DEBUG [keystone-all] sql.connection                 = mysql://rootpenstack@localhost/keystone
2013-07-08 17:58:17    DEBUG [keystone-all] sql.idle_timeout               = 30
2013-07-08 17:58:17    DEBUG [keystone-all] policy.driver                  = keystone.policy.backends.simple.SimpleMatch
2013-07-08 17:58:17    DEBUG [keystone-all] identity.driver                = keystone.identity.backends.sql.Identity
2013-07-08 17:58:17    DEBUG [keystone-all] ********************************************************************************
2013-07-08 17:58:17    DEBUG [keystone.common.utils] Inner Exception: cannot import name exceptions
2013-07-08 17:58:17    DEBUG [root] Traceback (most recent call last):
   File "/usr/lib/python2.6/site-packages/keystone-2012.1-py2.6.egg/keystone/common/logging.py", line 80, in wrapper
     return f(*args, **kw)
   File "/usr/lib/python2.6/site-packages/keystone-2012.1-py2.6.egg/keystone/service.py", line 561, in admin_app_factory
     return AdminRouter()
   File "/usr/lib/python2.6/site-packages/keystone-2012.1-py2.6.egg/keystone/service.py", line 41, in __init__
     auth_controller = TokenController()
   File "/usr/lib/python2.6/site-packages/keystone-2012.1-py2.6.egg/keystone/service.py", line 221, in __init__
     self.identity_api = identity.Manager()
   File "/usr/lib/python2.6/site-packages/keystone-2012.1-py2.6.egg/keystone/identity/core.py", line 43, in __init__
     super(Manager, self).__init__(CONF.identity.driver)
   File "/usr/lib/python2.6/site-packages/keystone-2012.1-py2.6.egg/keystone/common/manager.py", line 37, in __init__
     self.driver = utils.import_object(driver_name)
   File "/usr/lib/python2.6/site-packages/keystone-2012.1-py2.6.egg/keystone/common/utils.py", line 63, in import_object
     cls = import_class(import_str)
   File "/usr/lib/python2.6/site-packages/keystone-2012.1-py2.6.egg/keystone/common/utils.py", line 50, in import_class
     __import__(mod_str)
   File "/usr/lib/python2.6/site-packages/keystone-2012.1-py2.6.egg/keystone/identity/backends/sql.py", line 24, in <module>
     from keystone.common.sql import migration
   File "/usr/lib/python2.6/site-packages/keystone-2012.1-py2.6.egg/keystone/common/sql/migration.py", line 24, in <module>
     from migrate.versioning import api as versioning_api
   File "/usr/lib/python2.6/site-packages/migrate/versioning/api.py", line 33, in <module>
     from migrate.versioning import (repository, schema, version,
   File "/usr/lib/python2.6/site-packages/migrate/versioning/schema.py", line 10, in <module>
     from sqlalchemy import exceptions as sa_exceptions
ImportError: cannot import name exceptions

2013-07-08 17:58:17 CRITICAL [root] cannot import name exceptions

论坛徽章:
0
33 [报告]
发表于 2013-07-18 09:19 |只看该作者
linux小混混 发表于 2013-07-08 21:58
楼主你好 我启动keystone的时候,日志报错我先把我的环境说一下
我的环境是centOS6.2
keystone日志报错
...


查看下你sqlalchemy的版本,如果大于0.7.9请从装到0.7.9或0.7.8版本

论坛徽章:
0
34 [报告]
发表于 2013-07-18 09:19 |只看该作者
sun_8113 发表于 2013-05-12 17:07
回复 30# atkisc

版本没有问题


还在?

论坛徽章:
0
35 [报告]
发表于 2013-07-31 17:06 |只看该作者
英雄你好,最后一步执行bash /etc/keystone/keystone_bash.sh时报
Traceback (most recent call last):
  File "/usr/bin/keystone", line 6, in <module>
    from keystoneclient.shell import main
  File "/usr/lib/python2.6/site-packages/keystoneclient/__init__.py", line 16, in <module>
    import pbr.version
ImportError: No module named pbr.version
Traceback (most recent call last):
  File "/usr/bin/keystone", line 6, in <module>
    from keystoneclient.shell import main
  File "/usr/lib/python2.6/site-packages/keystoneclient/__init__.py", line 16, in <module>
    import pbr.version
ImportError: No module named pbr.version

这个会不会也是组件版本的问题,之前也遇到ImportError: cannot import name exceptions的错误,于是在pip-requires制定了sqlalchemy的版本才顺利通过的。上面这个错误应该如何解决啊

论坛徽章:
0
36 [报告]
发表于 2013-08-14 17:47 |只看该作者
回复 35# lepevans


    装pbr模块

论坛徽章:
0
37 [报告]
发表于 2013-09-24 17:46 |只看该作者
回复 1# atkisc

非常感谢。


   

论坛徽章:
0
38 [报告]
发表于 2013-10-07 19:07 |只看该作者
openstack, 现在都出G版了吧, github上有好多安装文档,不过基于ubuntu的多。

论坛徽章:
0
39 [报告]
发表于 2014-01-23 15:52 |只看该作者
你好,我在初始化keystone库后,启动keystone-all --config-file=/etc/keyston/keystone.conf 时报错
2014-01-23 15:41:57.083 27430 CRITICAL keystone [-] The Keystone paste configuration file keystone-paste.ini could not be found.
2014-01-23 15:41:57.083 27430 TRACE keystone Traceback (most recent call last):
2014-01-23 15:41:57.083 27430 TRACE keystone   File "/usr/local/bin/keystone-all", line 107, in <module>
2014-01-23 15:41:57.083 27430 TRACE keystone     paste_config = config.find_paste_config()
2014-01-23 15:41:57.083 27430 TRACE keystone   File "/usr/local/lib/python2.7/dist-packages/keystone/config.py", line 56, in find_paste_config
2014-01-23 15:41:57.083 27430 TRACE keystone     raise exception.PasteConfigNotFound(config_file=paste_config_value)
2014-01-23 15:41:57.083 27430 TRACE keystone PasteConfigNotFound: The Keystone paste configuration file keystone-paste.ini could not be found.

请问有人知道如何处理么,谢谢!

论坛徽章:
0
40 [报告]
发表于 2014-01-23 15:57 |只看该作者
回复 39# kenweh


    好吧,我自己将源xx/etc/keystone-paste.ini    拷贝去配置文件夹  /etc/keystone/下,再启动就可以了。
大概是havana版的需要执行这步吧。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP