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): http://download.lab.bos.redhat.com/rel-eng/OpenShiftEnterprise/1.2/2013-07-02.1/JBoss_EAP6_Cartridge/x86_64/ How reproducible: Always Steps to Reproduce: 1.Make sure your system does not install ruby193-rubygem-open4. 2.yum install openshift-origin-cartridge-jbosseap 3. Actual results: # yum install openshift-origin-cartridge-jbosseap <--snip--> 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 <--snip--> Expected results: installation should not throw any exception. Additional info:
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 Requires: rubygem(open4) It needs a requirement on the SCL open4 package too.
Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/fccc36adfd7caa709345e9acb457a87124872363 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. http://rhn.redhat.com/errata/RHBA-2013-1138.html