← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2039225] Re: django.core.cache.backends.memcached.MemcachedCache backend is removed

 

Reviewed:  https://review.opendev.org/c/openstack/horizon/+/891828
Committed: https://opendev.org/openstack/horizon/commit/caa99b2010bd914bbe3cb2779940b7c544fe1104
Submitter: "Zuul (22348)"
Branch:    master

commit caa99b2010bd914bbe3cb2779940b7c544fe1104
Author: Radomir Dopieralski <openstack@xxxxxxxxxxxxxx>
Date:   Thu Aug 17 17:06:14 2023 +0200

    Switch to PyMemcacheCache backend
    
    The new library is already supported in django 3.2 and gives us better
    support for IPv6 addresses and encrypted connections.
    
    Also, the same library is being used by all other OpenStack projects.
    
    Depends-on: https://review.opendev.org/c/openstack/devstack/+/898302
    Closes-Bug: #2039225
    Change-Id: I964ac4d0d62dff4c1f7c1f1373763fbf23024269


** Changed in: horizon
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/2039225

Title:
  django.core.cache.backends.memcached.MemcachedCache backend is
  removed

Status in OpenStack Dashboard Charm:
  In Progress
Status in Ubuntu Cloud Archive:
  Triaged
Status in Ubuntu Cloud Archive bobcat series:
  Fix Committed
Status in OpenStack Dashboard (Horizon):
  Fix Released
Status in horizon package in Ubuntu:
  Fix Released
Status in horizon source package in Mantic:
  Fix Committed

Bug description:
  [Description]
  In 4.1 the django.core.cache.backends.memcached.MemcachedCache backend is removed.

  https://github.com/django/django/blob/main/docs/releases/4.1.txt#L749

  It's been deprecated since 3.2:

  https://docs.djangoproject.com/en/4.2/releases/3.2/#features-
  deprecated-in-3-2

  "The django.core.cache.backends.memcached.MemcachedCache backend is
  deprecated as python-memcached has some problems and seems to be
  unmaintained. Use django.core.cache.backends.memcached.PyMemcacheCache
  or django.core.cache.backends.memcached.PyLibMCCache instead."

  This results in the following error on Ubuntu Mantic:

  InvalidCacheBackendError at /
  Could not find backend 'django.core.cache.backends.memcached.MemcachedCache': Module "django.core.cache.backends.memcached" does not define a "MemcachedCache" attribute/class
  Request Method:	GET
  Request URL:	http://10.5.3.66/horizon/
  Django Version:	4.2.4
  Exception Type:	InvalidCacheBackendError
  Exception Value:
  Could not find backend 'django.core.cache.backends.memcached.MemcachedCache': Module "django.core.cache.backends.memcached" does not define a "MemcachedCache" attribute/class
  Exception Location:	/usr/lib/python3/dist-packages/django/core/cache/__init__.py, line 49, in create_connection
  Python Executable:	/usr/bin/python3
  Python Version:	3.11.6
  Python Path:
  ['/usr/lib/python3/dist-packages',
   '/usr/lib/python311.zip',
   '/usr/lib/python3.11',
   '/usr/lib/python3.11/lib-dynload',
   '/usr/local/lib/python3.11/dist-packages',
   '/usr/lib/python3/dist-packages',
   '/usr/lib/python3/dist-packages/openstack_dashboard']
  Server time:	Thu, 12 Oct 2023 20:44:30 +0000

  [Test Case]
  Deploy openstack with the openstack-dashboard (horizon) on Ubuntu mantic. Ensure the dashboard is functional and no errors in /var/log/apache/error.log.

  [Regression Potential]
  This fix is inline with the upstream. Currently the dashboard is not functional without this fix.

To manage notifications about this bug go to:
https://bugs.launchpad.net/charm-openstack-dashboard/+bug/2039225/+subscriptions



References