Bug 1930741

Summary: memcached cache.get call incompatible with older versions of python-memcached
Product: Red Hat OpenStack Reporter: Waldemar Znoinski <wznoinsk>
Component: python-djangoAssignee: Radomir Dopieralski <rdopiera>
Status: CLOSED ERRATA QA Contact: ikanias
Severity: high Docs Contact:
Priority: urgent    
Version: 13.0 (Queens)CC: amoralej, apevec, jpena, lhh, rdopiera, spower, tshefi
Target Milestone: z15Keywords: Triaged, ZStream
Target Release: 13.0 (Queens)   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: python-django-1.11.27-3.el7ost Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-03-18 13:07:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Waldemar Znoinski 2021-02-19 13:37:39 UTC
Description of problem:


when trying to deploy overcloud using packstack we get the following:
WARNING:root:"dashboards" and "default_dashboard" in (local_)settings is DEPRECATED now and may be unsupported in some future release. The preferred way to specify the order of dashboards and the default dashboard is the pluggable dashboard mechanism (in /usr/share/openstack-dashboard/openstack_dashboard/enabled, /usr/share/openstack-dashboard/openstack_dashboard/local/enabled).
Compressing... ERROR:scss.ast:Function not found: twbs-font-path:1
ERROR:scss.ast:Function not found: twbs-font-path:1
ERROR:scss.ast:Function not found: twbs-font-path:1
ERROR:scss.ast:Function not found: twbs-font-path:1
ERROR:scss.ast:Function not found: twbs-font-path:1
ERROR:scss.ast:Function not found: twbs-font-path:1
ERROR:scss.ast:Function not found: twbs-font-path:1
ERROR:scss.compiler:Mixin not found: dropdown-arrow:0 (themes/rcue/bootstrap/components/_dropdowns.scss:63 (themes/rcue/bootstrap/components/_dropdowns.scss:44))
Traceback (most recent call last):
  File "/usr/share/openstack-dashboard/manage.py", line 23, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
    utility.execute()
  File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 356, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib/python2.7/site-packages/django/core/management/base.py", line 283, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/lib/python2.7/site-packages/django/core/management/base.py", line 330, in execute
    output = self.handle(*args, **options)
  File "/usr/lib/python2.7/site-packages/compressor/management/commands/compress.py", line 291, in handle
    self.compress(sys.stdout, **options)
  File "/usr/lib/python2.7/site-packages/compressor/management/commands/compress.py", line 237, in compress
    rendered = parser.render_nodelist(template, context, node)
  File "/usr/lib/python2.7/site-packages/compressor/offline/django.py", line 114, in render_nodelist
    return node.nodelist.render(context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 990, in render
    bit = node.render_annotated(context)
  File "/usr/lib/python2.7/site-packages/django/template/base.py", line 960, in render_annotated
    e.template_debug = context.render_context.template.get_exception_info(e, self.token)
AttributeError: 'NoneType' object has no attribute 'get_exception_info'


it's a result of 

/usr/bin/python /usr/share/openstack-dashboard/manage.py compress --force -v0

command ran as part of packstack deployment


Version-Release number of selected component (if applicable):

core_puddle=2021-02-16.1


How reproducible:
100%

Steps to Reproduce:
1. deploy packstack or run ci job:
phase2-13-rhel-7.9-openstack-all-in-one-neutron-rabbitmq

2.
3.

Actual results:
deploy failed

Expected results:
deploy happy

Additional info:
see next comments for more info/links

Comment 2 Radomir Dopieralski 2021-02-19 14:47:58 UTC
Packstack is no longer supported, as far as I know.

Comment 3 Javier Peña 2021-02-22 14:40:21 UTC
I have reproduced the issue in a local VM. With python2-django-1.11.27-2 I can see the issue, but python2-django-1.11.27-1 works fine.

Comment 10 Radomir Dopieralski 2021-02-23 13:17:21 UTC
For posterity, the actual error that is relevant here is:

Notice: /Stage[main]/Horizon/Exec[refresh_horizon_django_compress]/returns: TypeError: get() takes exactly 2 arguments (3 given)

Comment 21 errata-xmlrpc 2021-03-18 13:07:06 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: python-django security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:0933