manage.py collectstatic failing with 'NoneType' object is not iterable

Bug #1662180 reported by David Moreau Simard
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Invalid
Undecided
David Moreau Simard

Bug Description

We started seeing build failures in packaging Horizon for RDO recently and the problems seem to correlate around https://review.openstack.org/#/c/400794/ which causes the following stack trace:

====
DEBUG: + /usr/bin/python manage.py collectstatic --noinput --clear
DEBUG: Traceback (most recent call last):
DEBUG: File "manage.py", line 23, in <module>
DEBUG: execute_from_command_line(sys.argv)
DEBUG: File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line
DEBUG: utility.execute()
DEBUG: File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 303, in execute
DEBUG: settings.INSTALLED_APPS
DEBUG: File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 48, in __getattr__
DEBUG: self._setup(name)
DEBUG: File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 44, in _setup
DEBUG: self._wrapped = Settings(settings_module)
DEBUG: File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 92, in __init__
DEBUG: mod = importlib.import_module(self.SETTINGS_MODULE)
DEBUG: File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
DEBUG: __import__(name)
DEBUG: File "/builddir/build/BUILD/horizon-11.0.0.0rc2.dev1/openstack_dashboard/settings.py", line 410, in <module>
DEBUG: XSTATIC_MODULES, HORIZON_CONFIG)
DEBUG: File "/builddir/build/BUILD/horizon-11.0.0.0rc2.dev1/openstack_dashboard/utils/settings.py", line 261, in get_xstatic_dirs
DEBUG: for file in files:
DEBUG: TypeError: 'NoneType' object is not iterable
====

It looks as if the value should be an empty list (which is iterable) rather than None.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/429721

Changed in horizon:
assignee: nobody → David Moreau Simard (dmsimard)
status: New → In Progress
Revision history for this message
David Moreau Simard (dmsimard) wrote :

This turned out to be because the minimum provided version by upstream horizon reqs.txt did not provide a .MAIN for those two modules.

http://paste.openstack.org/raw/597857/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on horizon (master)

Change abandoned by David Moreau Simard (<email address hidden>) on branch: master
Review: https://review.openstack.org/429721
Reason: See comment in bug https://launchpad.net/bugs/1662180

Revision history for this message
David Moreau Simard (dmsimard) wrote :

xstatic packages being bumped in requirements.txt: https://review.openstack.org/#/c/429753/

Changed in horizon:
status: In Progress → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers