File exists: '/opt/stack/new/horizon/static/scss/assets'

Bug #1367590 reported by Joshua Harlow
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Critical
Doug Fish

Bug Description

Seems like some kind of asset problem is occurring that is breaking the integrated gate.

File exists: '/opt/stack/new/horizon/static/scss/assets'

http://logs.openstack.org/81/120281/3/check/check-tempest-dsvm-neutron-full/fbe5341/logs/screen-horizon.txt.gz

This causes:

tempest.scenario.test_dashboard_basic_ops.TestDashboardBasicOps to the fail...

http://logs.openstack.org/81/120281/3/check/check-tempest-dsvm-neutron-full/fbe5341/logs/testr_results.html.gz

Tags: gate
Revision history for this message
Gary W. Smith (gary-w-smith) wrote :
tags: added: gate
Changed in horizon:
status: New → Confirmed
importance: Undecided → Critical
Revision history for this message
Doug Fish (drfish) wrote :

I think this issue is actually unrelated to https://bugs.launchpad.net/horizon/+bug/1345955

It looks like the problem here is a multithreading or multiprocess issue with file system access in django_pyscss/scss.py at line 161. It appears that django_pyscss is just ensuring the assets directory is created and fails with the obvious threading issue. I am surprised this happens so frequently.

Still, as a workaround I propose we just create the directory ourselves early in Horizon code by repeating the directory check/creation and ignoring any exceptions. If there is a legitimate failure (like from directory permissions or space issues) the problem will be rediscovered in the django_pyscss code and a meaningful exception can be thrown.

Changed in horizon:
assignee: nobody → Doug Fish (drfish)
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/123166

Changed in horizon:
status: Confirmed → In Progress
Revision history for this message
Doug Fish (drfish) wrote :

I have opened a bug for django_pyscss
https://github.com/fusionbox/django-pyscss/issues/23

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

Reviewed: https://review.openstack.org/123166
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=fc981d2e37e0a4a273f10853eb29194f32053e2c
Submitter: Jenkins
Branch: master

commit fc981d2e37e0a4a273f10853eb29194f32053e2c
Author: Doug Fish <email address hidden>
Date: Mon Sep 22 10:50:12 2014 -0500

    Workaround for 'File exists' test failure

    Adds code to create the assets directory that django_pyscss
    intends to create for scss. This avoids throwing an exception
    in concurrency scenarios

    Change-Id: Ic55e2a7ce59ec9b7550a7412697cb8d6563d98a3
    Closes-bug: #1367590

Changed in horizon:
status: In Progress → Fix Committed
Akihiro Motoki (amotoki)
Changed in horizon:
milestone: none → juno-rc1
Thierry Carrez (ttx)
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: juno-rc1 → 2014.2
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.