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:
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
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