Red Hat Bugzilla – Bug 981249
ruby193-rubygem-open4 should be installed as dependency of cartridge package.
Last modified: 2017-03-08 12:35 EST
Description of problem:
When ruby193-rubygem-open4 is not installed on your system, yum install cartridge will throw out exception.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Make sure your system does not install ruby193-rubygem-open4.
2.yum install openshift-origin-cartridge-jbosseap
# yum install openshift-origin-cartridge-jbosseap
Installing : openshift-origin-cartridge-jbosseap-2.3.10-1.1.el6op.noarch 4/4
Non-fatal POSTIN scriptlet failure in rpm package openshift-origin-cartridge-jbosseap-2.3.10-1.1.el6op.noarch
/opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require': cannot load such file -- open4 (LoadError)
from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.9.13/lib/openshift-origin-node/utils/shell_exec.rb:19:in `<top (required)>'
from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:60:in `require'
from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:60:in `rescue in require'
from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:35:in `require'
from /usr/sbin/oo-admin-cartridge:22:in `<main>'
warning: %post(openshift-origin-cartridge-jbosseap-2.3.10-1.1.el6op.noarch) scriptlet failed, exit status 1
installation should not throw any exception.
Except ruby-1.8 and ruby-1.9 cartridge, this issue also happened with all the other cartridges.
Looks like the spec for rubygem-openshift-origin-node only has:
# non-scl open4 required for oo-cgroup-read bug 924556 until selinux fix for bug 912215 is available
It needs a requirement on the SCL open4 package too.
Commit pushed to master at https://github.com/openshift/origin-server
Bug 981249 - rubygem-openshift-origin-node was missing open4 dependency
Verified this bug with 1.2/2013-07-16.1, and PASS.
When installing openshift cartridges, both ruby193-rubygem-open4 and rubygem-open4 will be installed as dependency.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.