Could not find s3_store_host in configuration options
来源:互联网 发布:only淘宝代购是真的吗 编辑:程序博客网 时间:2024/06/15 19:19
glance模块的配置文件glance-api.conf已将default_store设置为file,并且将swift、rbd、s3相关的配置选项全部注释掉了,但启动glance-api的时候控制台依然输出以上错误信息,虽然不影响使用,但看着终归不爽。
追踪代码后发现,glance的wsgi controller(位于glance/glance/api/v1/images.py)中包含了一个名为create_stores()的初始化函数,改函数的实现位于:glance/glance/store/__init__.py中,相关代码如下:
def create_stores(): """ Registers all store modules and all schemes from the given config. Duplicates are not re-registered. """ store_count = 0 store_classes = set() for store_entry in CONF.known_stores: store_entry = store_entry.strip() if not store_entry: continue store_cls = _get_store_class(store_entry) store_instance = store_cls() schemes = store_instance.get_schemes() ... ...
其中known_stores的默认值为:
cfg.ListOpt('known_stores', default=['glance.store.filesystem.Store', 'glance.store.http.Store', 'glance.store.rbd.Store', 'glance.store.s3.Store', 'glance.store.swift.Store', ]),
从中可以看到,通过遍历变量known_stores来依次初始化并加载各个后端。
解决方法很简单了,在glance-api.conf文件中添加如下的配置选项:
known_stores=glance.store.filesystem.Store
0 0
- Could not find s3_store_host in configuration options
- 关于castle和Could not find the dialect in the configuration错误
- Could not find configuration [org.hibernate.cache.UpdateTimestampsCache]; using defaults
- Could not find configuration [org.hibernate.cache.UpdateTimestampsCache]; using defaults
- Could not find main method from given launch configuration
- Could not find qmake configuration file linux-g++.
- Could not find main method from given launch configuration
- could not find cudnnCreate in cudnn DSO
- Could not resolve all files for configuration ':classpath'.Could not find com.android.tools.
- Could not resolve all dependencies for configuration ':classpath'. Could not find com.android.t
- mysql报错:could not find settings Either the server service or the configuration file could not be fou
- could not find a getter for in class方法解决
- Android.Could not find *.apk in android 2.1
- could not find a getter for ... in class ...
- Android.Could not find *.apk in android 1.5
- Could not find a getter for salesName in class
- could not find a getter for ... in class ...
- could not find a getter for ... in class ...
- 第五周作业
- Could not find schema properties file schema-image.json. Continuing wit hout custom properties
- IOS开发 - 在键盘上面添加可以跟随
- mysql 用户权限
- 理解 Android Build 系统
- Could not find s3_store_host in configuration options
- ADT中出现类似这样的错误:[I18N] Hardcoded string "button", should use @string resource.
- 用sae和wordpress搭建自己的博客
- 百度站长平台说要重视主动访问客户,您怎么看?
- QT的事件监控
- 深入分析Linux内核链表
- iptables-restore v1.4.12: host/network `None' not found
- FatMouse's Speed
- 关于hibernate的缓存使用