[juno] Horizon is broken on Ubuntu

Bug #1375287 reported by Ivan Berezovskiy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Ivan Berezovskiy

Bug Description

Fuel 6.0 ISO (http://pastebin.com/QCyQVHuH). Deploy simple environment with Ubuntu. Deploy is successful but horizon is broken:

OfflineGenerationError at /
You have offline compression enabled but key "..." is missing from offline manifest. You may need to run "python manage.py compress".

Running compression:

2338a.link-popover { cursor: default; }
2340a:hover.link-popover { text-decoration: none; }

From <string u'// bootstrap overrides:\n$icon-font-path: "../../bo'...>:0
Traceback:
  File "/usr/lib/python2.7/dist-packages/scss/__init__.py", line 498, in manage_children
    self._manage_children_impl(rule, scope)
  File "/usr/lib/python2.7/dist-packages/scss/__init__.py", line 548, in _manage_children_impl
    self._do_import(rule, scope, block)
  File "/usr/lib/python2.7/dist-packages/django_pyscss/scss.py", line 118, in _do_import
    source_file = self._find_source_file(name, relative_to)
  File "/usr/lib/python2.7/dist-packages/django_pyscss/scss.py", line 86, in _find_source_file
    full_filename, storage = self.get_file_and_storage(name)
  File "/usr/lib/python2.7/dist-packages/django_pyscss/scss.py", line 53, in get_file_and_storage
    return self.get_file_from_finders(filename)
  File "/usr/lib/python2.7/dist-packages/django_pyscss/scss.py", line 46, in get_file_from_finders
    for file_and_storage in find_all_files(filename):
  File "/usr/lib/python2.7/dist-packages/django_pyscss/utils.py", line 14, in find_all_files
    for path, storage in finder.list([]):
  File "/usr/lib/python2.7/dist-packages/django/contrib/staticfiles/finders.py", line 106, in list
    for path in utils.get_files(storage, ignore_patterns):
  File "/usr/lib/python2.7/dist-packages/django/contrib/staticfiles/utils.py", line 25, in get_files
    directories, files = storage.listdir(location)
  File "/usr/lib/python2.7/dist-packages/django/core/files/storage.py", line 250, in listdir
    for entry in os.listdir(path):
OSError: [Errno 20] Not a directory: '/usr/share/javascript/angular.js/angular.min.js'

It's a bug of python-django-pyscss 1.0.2. We need to update it to 1.0.3

Tags: juno
Changed in fuel:
milestone: none → 6.0
assignee: nobody → Ivan Berezovskiy (iberezovskiy)
importance: Undecided → High
status: New → In Progress
Revision history for this message
Ivan Berezovskiy (iberezovskiy) wrote :

Updating django-pyscss didn't fix that

summary: - [juno] python-django-pyscss should have 1.0.3 version
+ [juno] Horizon is broken on Ubuntu
description: updated
Revision history for this message
OSCI Robot (oscirobot) wrote :

Package python-xstatic-angular has been built from changeset: http://gerrit.mirantis.com/29419
DEB Repository URL: http:///osci-obs.vm.mirantis.net:82/ubuntu-fuel-master-29419/ubuntu

Revision history for this message
OSCI Robot (oscirobot) wrote :

Package python-xstatic-angular-cookies has been built from changeset: http://gerrit.mirantis.com/29420
DEB Repository URL: http:///osci-obs.vm.mirantis.net:82/ubuntu-fuel-master-29420/ubuntu

Revision history for this message
OSCI Robot (oscirobot) wrote :

Package python-xstatic-angular-mock has been built from changeset: http://gerrit.mirantis.com/29421
DEB Repository URL: http:///osci-obs.vm.mirantis.net:82/ubuntu-fuel-master-29421/ubuntu

Revision history for this message
Ivan Berezovskiy (iberezovskiy) wrote :

The problem is that angular packages contain wrong value for BASE_DIR. It should be: BASE_DIR = '/usr/share/javascript/angular.js'.

Revision history for this message
OSCI Robot (oscirobot) wrote :

Package python-xstatic-angular has been built from changeset: http://gerrit.mirantis.com/29419
DEB Repository URL: http:///osci-obs.vm.mirantis.net:82/ubuntu-fuel-master/ubuntu

Revision history for this message
OSCI Robot (oscirobot) wrote :

Package python-xstatic-angular-cookies has been built from changeset: http://gerrit.mirantis.com/29420
DEB Repository URL: http:///osci-obs.vm.mirantis.net:82/ubuntu-fuel-master/ubuntu

Revision history for this message
OSCI Robot (oscirobot) wrote :

Package python-xstatic-angular-mock has been built from changeset: http://gerrit.mirantis.com/29421
DEB Repository URL: http:///osci-obs.vm.mirantis.net:82/ubuntu-fuel-master/ubuntu

Revision history for this message
Matthew Mosesohn (raytrac3r) wrote :

fixed

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/125579
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=774f9efa016eaa7f80e7a91aa6d994ee0691606c
Submitter: Jenkins
Branch: master

commit 774f9efa016eaa7f80e7a91aa6d994ee0691606c
Author: iberezovskiy <email address hidden>
Date: Thu Oct 2 13:24:14 2014 +0400

    Execute horizon compress on both OS

    Closes-bug: #1375287

    blueprint fuel-deploy-juno

    Change-Id: I73ffbc0dc3f89c87dc79e2112ba20e2b3b7cf4f8

Revision history for this message
Anastasia Palkina (apalkina) wrote :

Verified on custom ISO with Juno #20

"build_id": "2014-10-10_17-06-59", "ostf_sha": "7b2200ba90302d938841584c77ee86dd55814e6a", "build_number": "20", "auth_required": true, "api": "1.0", "nailgun_sha": "1386bdb46aaa989cf1d00e52a61d0a193acbeab9", "production": "docker", "fuelmain_sha": "6d2c7107353e17d50bd5e72846d986ab5b7c430e", "astute_sha": "65a5a0781d314bdcc090a61a599a8abf95989fc1", "feature_groups": ["mirantis"], "release": "6.0", "release_versions": {"2014.2-6.0": {"VERSION": {"build_id": "2014-10-10_17-06-59", "ostf_sha": "7b2200ba90302d938841584c77ee86dd55814e6a", "build_number": "20", "api": "1.0", "nailgun_sha": "1386bdb46aaa989cf1d00e52a61d0a193acbeab9", "production": "docker", "fuelmain_sha": "6d2c7107353e17d50bd5e72846d986ab5b7c430e", "astute_sha": "65a5a0781d314bdcc090a61a599a8abf95989fc1", "feature_groups": ["mirantis"], "release": "6.0", "fuellib_sha": "f282999b04f4ff42b8d9147c9a7ab9348da1b24b"}}}, "fuellib_sha": "f282999b04f4ff42b8d9147c9a7ab9348da1b24b"

Changed in fuel:
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.