Bug 901449 - oo-cgroup-read does not work for ruby-1.9
Summary: oo-cgroup-read does not work for ruby-1.9
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Rob Millner
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-18 08:39 UTC by Zhe Wang
Modified: 2015-05-14 23:04 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-13 23:40:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.