Bug 901449

Summary: oo-cgroup-read does not work for ruby-1.9
Product: OKD Reporter: Zhe Wang <zhewang>
Component: ContainersAssignee: Rob Millner <rmillner>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: dmcphers, mfisher, xtian
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: 2013-02-13 23:40:28 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:

Description Zhe Wang 2013-01-18 08:39:23 UTC
Description of problem:
oo-cgroup-read command does not work for ruby-1.9 apps

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

How reproducible:
always

Steps to Reproduce:
1. create a ruby-1.9 app
2. ssh into this app
3. run "oo-cgroup-read memory.limit_in_bytes"
  
Actual results:
ruby: error while loading shared libraries: libruby.so.1.9: cannot open shared object file

Expected results:
the command should return the memory limit without any errors

Additional info:

Comment 1 Rob Millner 2013-01-19 01:08:16 UTC
The underlying problem is that gears with the ruby 1.9 cartridge has several selinux failures running in the context openshift_cgroup_read_t that the original ruby does not.

A trivial fix is to force /usr/bin/ruby rather than /usr/bin/env ruby.

Pull request:
https://github.com/openshift/origin-server/pull/1177

Comment 2 Zhe Wang 2013-01-21 01:41:32 UTC
Verified in devenv_2699

Steps:

1. create a ruby-1.9 app
2. ssh into this app
3. run "oo-cgroup-read memory.limit_in_bytes"

Actual result:
536870912