Bug 994285

Summary: Release 2 install on CentOS 6 cannot compile CSS
Product: OKD Reporter: steven.merrill
Component: WebsiteAssignee: Krishna Raman <kraman>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.xCC: mfisher, yujzhang
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-24 03:21:31 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:
Attachments:
Description Flags
A patch to fix the console assets issue. none

Description steven.merrill 2013-08-07 01:07:27 UTC
Created attachment 783579 [details]
A patch to fix the console assets issue.

Description of problem:

On a fresh install of OpenShift Origin Release 2 to CentOS 6, the console cannot be visited because of this exception:

---
Sass::SyntaxError in Application_types#index

Showing /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-console-1.13.0.1/app/views/layouts/console/_stylesheets.html.haml where line #2 raised:

File to import not found or unreadable: twitter/variables.
Load paths:
  Sass::Rails::Importer(/opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-console-1.13.0.1/app/assets/stylesheets/common.css.scss)
  /var/www/openshift/console/app/assets/stylesheets
  /opt/rh/ruby193/root/usr/share/gems/gems/compass-0.12.2/frameworks/blueprint/stylesheets
  /opt/rh/ruby193/root/usr/share/gems/gems/compass-0.12.2/frameworks/compass/stylesheets
  Compass::SpriteImporter
  (in /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-console-1.13.0.1/app/assets/stylesheets/common.css.scss)
Extracted source (around line #2):

1: -# CSS: implied media="all"
2: = stylesheet_link_tag 'common.css', :media => 'all'
3: = stylesheet_link_tag 'origin.css', :media => 'all'
4: 
5: -# Append your own using content_for :stylesheets
Trace of template inclusion: /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-console-1.13.0.1/app/views/layouts/console.html.haml

Rails.root: /var/www/openshift/console
---

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

Release 2, installed on August 6, 2013.

How reproducible:

Install OpenShift Origin Release 2 on CentOS or RHEL using the Puppet script and the following site.pp:

class { 'openshift_origin' :
  node_fqdn                  => "${::hostname}.${::domain}",
  cloud_domain               => "${::domain}",
  dns_servers                => ['8.8.8.8'],
  os_unmanaged_users         => [],
  enable_network_services    => true,
  configure_firewall         => true,
  configure_ntp              => true,
  configure_activemq         => true,
  configure_mongodb          => true,
  configure_named            => true,
  configure_avahi            => false,
  configure_broker           => true,
  configure_node             => true,
  development_mode           => true,
  update_network_dns_servers => true,

  configure_qpid             => true,
  named_tsig_priv_key        => "**snipped**",
  install_repo               => "https://mirror.openshift.com/pub/openshift-origin/release/2/rhel-6/packages/${::architecture}/",
}

Reboot the machine.
Go to the broker.
Get the exception.

Steps to Reproduce:
1. Run Puppet to install release 2 on RHEL / CentOS 6.
2. Reboot.
3. Go to the console.
4. Get the exception.

Actual results:

An exception.

Expected results:

Seeing the console.

Additional info:

This issue can be solved by adding the attached patch to /var/www/openshift/console and restarting the openshift-console service.

Comment 1 steven.merrill 2013-08-07 01:10:25 UTC
The fix for this issue appears to already be on git master at https://github.com/openshift/origin-server/blob/master/console/Gemfile#L32 .

Comment 2 Clayton Coleman 2013-08-19 20:05:55 UTC
Krishna, agree this should be fixed upstream.

Comment 3 Krishna Raman 2013-08-21 17:53:59 UTC
Fix pushed to origin release 2 branch and new RPMs have been compiled and posted.

Comment 4 Yujie Zhang 2013-11-15 10:24:56 UTC
Verify this bug since the fix code has pushed to origin server master, thanks.

Comment 5 Yujie Zhang 2013-11-15 10:39:34 UTC
The console can work correctly now, thanks.