django-admin.py collectstatic failing to find static/themes/default

Bug #1438133 reported by Derek Higgins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Invalid
Undecided
Unassigned
tripleo
Fix Released
Critical
Derek Higgins

Bug Description

At some stage over the last 10 days tripleo has stared to to fail to run

    DJANGO_SETTINGS_MODULE=openstack_dashboard.settings django-admin.py collectstatic --noinput

Exiting with the following error

os-collect-config: dib-run-parts Fri Mar 27 03:56:44 UTC 2015 Running /usr/libexec/os-refresh-config/post-configure.d/14-horizon
os-collect-config: 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 /opt/stack/venvs/openstack/local/lib/python2.7/site-packages/openstack_dashboard/enabled, /opt/stack/venvs/openstack/local/lib/python2.7/site-packages/openstack_dashboard/local/enabled).
os-collect-config: WARNING:py.warnings:DeprecationWarning: The oslo namespace package is deprecated. Please use oslo_config instead.
os-collect-config: WARNING:py.warnings:DeprecationWarning: The oslo namespace package is deprecated. Please use oslo_serialization instead.
os-collect-config: Traceback (most recent call last):
os-collect-config: File "/opt/stack/venvs/openstack/bin/django-admin.py", line 5, in <module>
os-collect-config: management.execute_from_command_line()
os-collect-config: File "/opt/stack/venvs/openstack/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
os-collect-config: utility.execute()
os-collect-config: File "/opt/stack/venvs/openstack/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute
os-collect-config: self.fetch_command(subcommand).run_from_argv(self.argv)
os-collect-config: File "/opt/stack/venvs/openstack/local/lib/python2.7/site-packages/django/core/management/base.py", line 242, in run_from_argv
os-collect-config: self.execute(*args, **options.__dict__)
os-collect-config: File "/opt/stack/venvs/openstack/local/lib/python2.7/site-packages/django/core/management/base.py", line 285, in execute
os-collect-config: output = self.handle(*args, **options)
os-collect-config: File "/opt/stack/venvs/openstack/local/lib/python2.7/site-packages/django/core/management/base.py", line 415, in handle
os-collect-config: return self.handle_noargs(**options)
os-collect-config: File "/opt/stack/venvs/openstack/local/lib/python2.7/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 173, in handle_noargs
os-collect-config: collected = self.collect()
os-collect-config: File "/opt/stack/venvs/openstack/local/lib/python2.7/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 103, in collect
os-collect-config: for path, storage in finder.list(self.ignore_patterns):
os-collect-config: File "/opt/stack/venvs/openstack/local/lib/python2.7/site-packages/django/contrib/staticfiles/finders.py", line 106, in list
os-collect-config: for path in utils.get_files(storage, ignore_patterns):
os-collect-config: File "/opt/stack/venvs/openstack/local/lib/python2.7/site-packages/django/contrib/staticfiles/utils.py", line 25, in get_files
os-collect-config: directories, files = storage.listdir(location)
os-collect-config: File "/opt/stack/venvs/openstack/local/lib/python2.7/site-packages/django/core/files/storage.py", line 249, in listdir
os-collect-config: for entry in os.listdir(path):
os-collect-config: OSError: [Errno 2] No such file or directory: '/opt/stack/venvs/openstack/local/lib/python2.7/site-packages/openstack_dashboard/local/static/themes/default'
os-collect-config: [2015-03-27 03:56:45,548] (os-refresh-config) [ERROR] during post-configure phase. [Command '['dib-run-parts', '/usr/libexec/os-refresh-config/post-configure.d']' returned non-zero exit status

example here
http://logs.openstack.org/05/168205/1/check-tripleo/check-tripleo-ironic-undercloud-precise-nonha/3f384bd/logs/undercloud-undercloud_logs/os-collect-config.txt.gz#_Mar_27_03_56_45

Tags: ci
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-image-elements (master)

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

Changed in tripleo:
assignee: nobody → Derek Higgins (derekh)
status: Triaged → In Progress
Revision history for this message
Derek Higgins (derekh) wrote :

horizon has been removed from default tripleo until we solve this

Revision history for this message
Derek Higgins (derekh) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-image-elements (master)

Reviewed: https://review.openstack.org/169397
Committed: https://git.openstack.org/cgit/openstack/tripleo-image-elements/commit/?id=02902c7017c764197b1b1219bee9ee063d5daba8
Submitter: Jenkins
Branch: master

commit 02902c7017c764197b1b1219bee9ee063d5daba8
Author: Derek Higgins <email address hidden>
Date: Tue Mar 31 16:49:33 2015 +0100

    Change where we look for ROOT_PATH

    ROOT_PATH should be the parent of the directory containing local_settings.py,
    setting it wrong has started causing problems as its now used as part of
    CUSTOM_THEME_PATH.

    Change-Id: I6306ec21813b672d44830f3bac81a5ea5fbde0dc
    Closes-Bug: #1438133

Changed in tripleo:
status: In Progress → Fix Committed
Sam Betts (sambetts)
Changed in horizon:
status: New → Invalid
Jay Dobies (jdob)
Changed in tripleo:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.