nova-consoleauth doesn't play well with memcached
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Dr. Jens Harbott |
Bug Description
When running with the Ubuntu Xenial Mitaka packages, I'm seeing the following behaviour:
Following the release notes at http://
[cache]
enabled = true
memcache_servers = host1:11211,
The result is that there are errors logged when creating a token:
2016-04-19 10:17:33.501 15952 WARNING nova.consoleaut
2016-04-19 10:17:33.503 15952 WARNING nova.consoleaut
Only after a lot of debugging it turns out that the default backend for oslo_cache is dogpile.cache.null, implying that no values get cached and token validation always fails. Only after adding
[cache]
backend = oslo_cache.
does console authentication start working. Strangely though, the above warning messages are still being logged in the working setup, which made debugging this even more difficult.
So I suggest the following fixes:
1. Change the text of the warnings from "failed to save into memcached" to "failed to save into cache", as with the change to using oslo_cache, there may be other backends in use instead of memcached.
2. Either override the default of using the null backend or refuse to run with it or at the very least give a big fat warning that the configuration can not work.
3. Stop generating the warning messages when the data got in fact saved into cache properly.
Package versions for reference:
# dpkg -l | grep nova
ii nova-api-metadata 2:13.0.0-0ubuntu2 all OpenStack Compute - metadata API frontend
ii nova-api-os-compute 2:13.0.0-0ubuntu2 all OpenStack Compute - OpenStack Compute API frontend
ii nova-cert 2:13.0.0-0ubuntu2 all OpenStack Compute - certificate management
ii nova-common 2:13.0.0-0ubuntu2 all OpenStack Compute - common files
ii nova-conductor 2:13.0.0-0ubuntu2 all OpenStack Compute - conductor service
ii nova-consoleauth 2:13.0.0-0ubuntu2 all OpenStack Compute - Console Authenticator
ii nova-scheduler 2:13.0.0-0ubuntu2 all OpenStack Compute - virtual machine scheduler
ii nova-spiceproxy 2:13.0.0-0ubuntu2 all OpenStack Compute - spice html5 proxy
ii python-nova 2:13.0.0-0ubuntu2 all OpenStack Compute Python libraries
ii python-novaclient 2:3.3.1-2 all client library for OpenStack Compute API - Python 2.7
# dpkg -l | grep oslo
ii python-oslo.cache 1.6.0-2 all cache storage for Openstack projects - Python 2.7
ii python-
ii python-oslo.config 1:3.9.0-3 all Common code for Openstack Projects (configuration API) - Python 2.x
ii python-oslo.context 2.2.0-2 all WSGI context helpers for OpenStack - Python 2.x
ii python-oslo.db 4.7.0-2ubuntu1 all database connectivity to the different backends and helper utils - Python 2.x
ii python-oslo.i18n 3.5.0-2 all Oslo Internationaliz
ii python-oslo.log 3.2.0-2 all OpenStack logging configuration library - Python 2.x
ii python-
ii python-
ii python-oslo.policy 1.6.0-2 all RBAC policy enforcement library for OpenStack - Python 2.x
ii python-oslo.reports 1.7.0-2 all reports serialized in various data types - Python 2.7
ii python-
ii python-
ii python-oslo.service 1.8.0-1ubuntu1 all library for running OpenStack services - Python 2.x
ii python-oslo.utils 3.8.0-2 all set of utility functions for OpenStack - Python 2.x
ii python-
ii python-oslo.vmware 2.5.0-2 all VMware library for OpenStack projects - Python 2.7
Changed in nova: | |
assignee: | nobody → Dr. Jens Rosenboom (j-rosenboom-j) |
Fix proposed to branch: master /review. openstack. org/307698
Review: https:/