nova-consoleauth & memcached BUG

這兩天部署openstack的時候發現nova-consoleauth報錯,即控制檯登錄不進去,查看nova-consoleauth的日誌發現是token無法寫入memcached服務,在這裏說明一下,因爲有兩臺controller並且做HA,所以不得不上memcached來存儲token。


後來上官網查了一下這是個bug:

Option memcached_servers is deprecated in Mitaka. Operators should use oslo.cache configuration instead. Specifically enabled option under [cache] section should be set to True and the url(s) for the memcached servers should be in [cache]/memcache_servers option.

也就是說原先的配置方式已經被淘汰了,需要在[cache]中進行配置。

我測試成功的配置方式如下:

nova.conf

[cache]
backend = oslo_cache.memcache_pool
enabled = true
memcache_servers = host:11211


然後重啓下nova服務就行了。

不過failed to save into memcached的warning依然還會有,暫時先不用管它,功能先別出錯就行。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章