keystone使用SSL情况下,cinder获取quota失败问题

发表于 2016-09-20   |   分类于 技术

cinder的api.log中发现如下错误:

2016-09-20 12:01:50.410 21508 ERROR cinder.api.middleware.fault [req-8a22425c-064b-4c50-9203-00f3760ba4d4 cd3c4133acc94226b4b2d868fd6a1e19 ea60e55e114a41d3b9d86d298c07bc99 - - -] Caught error: Could not determine a suitable URL for the plugin
2016-09-20 12:01:50.411 21508 INFO cinder.api.middleware.fault [req-8a22425c-064b-4c50-9203-00f3760ba4d4 cd3c4133acc94226b4b2d868fd6a1e19 ea60e55e114a41d3b9d86d298c07bc99 - - -] https://10.167.14.164:8776/v2/ea60e55e114a41d3b9d86d298c07bc99/os-quota-sets/ea60e55e114a41d3b9d86d298c07bc99?usage=False returned with HTTP 500
2016-09-20 12:01:50.412 21508 INFO eventlet.wsgi.server [req-8a22425c-064b-4c50-9203-00f3760ba4d4 cd3c4133acc94226b4b2d868fd6a1e19 ea60e55e114a41d3b9d86d298c07bc99 - - -] 10.167.14.164 - - [20/Sep/2016 12:01:50] "GET /v2/ea60e55e114a41d3b9d86d298c07bc99/os-quota-sets/ea60e55e114a41d3b9d86d298c07bc99?usage=False HTTP/1.1" 500 425 0.095734

经调查发现是openstack的bug,修复如下:

修改openstack/cinder/cinder/api/contrib/quotas.py

client_session = session.Session(auth=auth_plugin)

修改为

verify = not CONF.keystone_authtoken.insecure
client_session = session.Session(auth=auth_plugin, verify=verify)

发表新评论

© 2017 Powered by Typecho
苏ICP备15035969号-3