glance-api服务启动异常
各位大侠请帮忙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: 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: 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: 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: 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
这是哪个版本的。核实下这个配置文件的glance-api-paste.ini 的选项 arsenduan 发表于 2016-8-4 06:39
这是哪个版本的。核实下这个配置文件的glance-api-paste.ini 的选项
您好,谢谢!我安装的是kilo版本。参照Abou云网文和《openstack部署实践2》这个文件是不做任何调整的。《openstack部署实践2》里提到需要配置glance-api.conf文件,具体修改的位置如下:
config_file = /etc/glance/glance-api-paste.ini
flavor = keystone
这个地方调用了。但是我注释掉这两行也启不来,还是报同样的错误。
arsenduan 发表于 2016-8-4 06:39
这是哪个版本的。核实下这个配置文件的glance-api-paste.ini 的选项
Hi arenduan,
按照你的提示我将glance-api-paste.ini中与之相关的这行注释掉,结果glance-api服务居然起来了,查看日志后除了有一些后端块存储的告警外其它都正常启动了。非常感谢!
#pipeline = versionnegotiation unauthenticated-context rootapp
页:
[1]