分享

glance-api服务启动异常

goldisman 发表于 2016-8-4 00:11:09 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 3 10246
各位大侠请帮忙troubleshoot,glance-registry能正常启动但glance-api启动之后就自动停止。
部署方式参考“About云”和《openstack部署实践2版》.尝试这两个渠道去修改配置文件,还是同样的现象。以下是glance-api.log输出信息:
2016-08-03 23:47:32.840 4934 ERROR glance.store.sheepdog [-] Error in store configuration: [Errno 2] No such file or directory
2016-08-03 23:47:32.841 4934 WARNING glance.store.base [-] Failed to configure store correctly: Store sheepdog could not be configured correctly. Reason: Error in store configuration: [Errno 2] No such file or directory Disabling add method.
2016-08-03 23:47:32.842 4934 WARNING glance.store [-] Deprecated: glance.store.sheepdog.Store not found in `known_store`. Stores need to be explicitly enabled in the configuration file.
2016-08-03 23:47:32.844 4934 WARNING glance.store [-] Deprecated: glance.store.rbd.Store not found in `known_store`. Stores need to be explicitly enabled in the configuration file.
2016-08-03 23:47:32.845 4934 WARNING glance.store.base [-] Failed to configure store correctly: Store gridfs could not be configured correctly. Reason: Missing dependencies: pymongo Disabling add method.
2016-08-03 23:47:32.846 4934 WARNING glance.store [-] Deprecated: glance.store.gridfs.Store not found in `known_store`. Stores need to be explicitly enabled in the configuration file.
2016-08-03 23:47:32.894 4934 WARNING glance.store.base [-] Failed to configure store correctly: Store cinder could not be configured correctly. Reason: Cinder storage requires a context. Disabling add method.
2016-08-03 23:47:32.895 4934 WARNING glance.store [-] Deprecated: glance.store.cinder.Store not found in `known_store`. Stores need to be explicitly enabled in the configuration file.
2016-08-03 23:47:32.900 4934 WARNING glance.store [-] Deprecated: glance.store.swift.Store not found in `known_store`. Stores need to be explicitly enabled in the configuration file.
2016-08-03 23:47:32.923 4934 WARNING glance.store [-] Deprecated: glance.store.vmware_datastore.Store not found in `known_store`. Stores need to be explicitly enabled in the configuration file.
2016-08-03 23:47:32.925 4934 WARNING glance.store [-] Deprecated: glance.store.s3.Store not found in `known_store`. Stores need to be explicitly enabled in the configuration file.
2016-08-03 23:47:32.928 4934 CRITICAL glance [-] IOError: [Errno 2] No such file or directory: '/etc/glance/glance-api-paste.ini\nPartial name of a pipeline in your paste configuration file with the'
2016-08-03 23:47:32.928 4934 TRACE glance Traceback (most recent call last):
2016-08-03 23:47:32.928 4934 TRACE glance   File "/usr/bin/glance-api", line 10, in <module>
2016-08-03 23:47:32.928 4934 TRACE glance     sys.exit(main())
2016-08-03 23:47:32.928 4934 TRACE glance   File "/usr/lib/python2.7/dist-packages/glance/cmd/api.py", line 63, in main
2016-08-03 23:47:32.928 4934 TRACE glance     server.start(config.load_paste_app('glance-api'), default_port=9292)
2016-08-03 23:47:32.928 4934 TRACE glance   File "/usr/lib/python2.7/dist-packages/glance/common/config.py", line 210, in load_paste_app
2016-08-03 23:47:32.928 4934 TRACE glance     app = deploy.loadapp("config:%s" % conf_file, name=app_name)
2016-08-03 23:47:32.928 4934 TRACE glance   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
2016-08-03 23:47:32.928 4934 TRACE glance     return loadobj(APP, uri, name=name, **kw)
2016-08-03 23:47:32.928 4934 TRACE glance   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 271, in loadobj
2016-08-03 23:47:32.928 4934 TRACE glance     global_conf=global_conf)
2016-08-03 23:47:32.928 4934 TRACE glance   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 296, in loadcontext
2016-08-03 23:47:32.928 4934 TRACE glance     global_conf=global_conf)
2016-08-03 23:47:32.928 4934 TRACE glance   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 317, in _loadconfig
2016-08-03 23:47:32.928 4934 TRACE glance     loader = ConfigLoader(path)
2016-08-03 23:47:32.928 4934 TRACE glance   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 393, in __init__
2016-08-03 23:47:32.928 4934 TRACE glance     with open(filename) as f:
2016-08-03 23:47:32.928 4934 TRACE glance IOError: [Errno 2] No such file or directory: '/etc/glance/glance-api-paste.ini\nPartial name of a pipeline in your paste configuration file with the'
2016-08-03 23:47:32.928 4934 TRACE glance

已有(3)人评论

跳转到指定楼层
arsenduan 发表于 2016-8-4 06:39:32
这是哪个版本的。核实下这个配置文件的  glance-api-paste.ini 的选项  [pipeline:glance-api]
回复

使用道具 举报

goldisman 发表于 2016-8-4 21:35:31
arsenduan 发表于 2016-8-4 06:39
这是哪个版本的。核实下这个配置文件的  glance-api-paste.ini 的选项

您好,谢谢!我安装的是kilo版本。参照Abou云网文和《openstack部署实践2》这个文件是不做任何调整的。《openstack部署实践2》里提到需要配置glance-api.conf文件,具体修改的位置如下:
[paste_deploy]
config_file = /etc/glance/glance-api-paste.ini
flavor = keystone
这个地方调用了。但是我注释掉这两行也启不来,还是报同样的错误。
回复

使用道具 举报

goldisman 发表于 2016-8-4 21:48:56
arsenduan 发表于 2016-8-4 06:39
这是哪个版本的。核实下这个配置文件的  glance-api-paste.ini 的选项

Hi arenduan,
按照你的提示我将glance-api-paste.ini中与之相关的这行注释掉,结果glance-api服务居然起来了,查看日志后除了有一些后端块存储的告警外其它都正常启动了。非常感谢!
[pipeline:glance-api]
#pipeline = versionnegotiation unauthenticated-context rootapp

回复

使用道具 举报

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

本版积分规则

关闭

推荐上一条 /2 下一条