Description of problem: Set up ose-2.0 GA, run oo-diagnostics successfully, no error is seen. Upgrade env to puddle-2-0-RHSCL11-2014-05-23, run oo-diagnostics again. The following error is seen: <--snip--> INFO: looking in /opt/rh/ruby193/root/usr/local/share/gems/specifications/*.gemspec /opt/rh/ruby193/root/usr/share/gems/specifications/*.gemspec ls: cannot access /opt/rh/ruby193/root/usr/local/share/gems/specifications/*.gemspec: No such file or directory <--snip--> # ls /opt/rh/ruby193/root/usr/local/share/gems/specifications/ # ls /opt/rh/ruby193/root/usr/local/share/gems/specifications/*.gemspec ls: cannot access /opt/rh/ruby193/root/usr/local/share/gems/specifications/*.gemspec: No such file or directory Version-Release number of selected component (if applicable): puddle-2-0-RHSCL11-2014-05-23 How reproducible: Always Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
We must have upgraded away all the gems that put specs in /opt/rh/ruby193/root/usr/local/share/gems/specifications/ That's fine, just change the test to skip the directories that aren't there. Probably the same thing can happen under 2.1.
(In reply to Luke Meyer from comment #1) > We must have upgraded away all the gems that put specs in > /opt/rh/ruby193/root/usr/local/share/gems/specifications/ > > That's fine, just change the test to skip the directories that aren't there. > Probably the same thing can happen under 2.1. ose-2.1 broker has such issue, node does not.
Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/8de407f41f77b22bf0b3cb5a005af5d6c539cf02 oo-diagnostics: Handle empty gemdirs In test_for_nonrpm_rubygems, glob in Ruby rather than in shell in order to avoid getting the glob itself back if it does not match anything. This commit fixes bug 1101973.
Because OSE-2.0 and RHSCL-1.1 was released for a long long time ago, it is hard for to prepare such a reproducible env. So verified this bug with the following steps against 2.2/2015-11-11.1 puddle. [root@broker ~]# mkdir /opt/rh/ruby193/root/usr/local/share/gems/specifications/ [root@broker ~]# ls /opt/rh/ruby193/root/usr/local/share/gems/specifications/ [root@broker ~]# ls /opt/rh/ruby193/root/usr/local/share/gems/specifications/*.gemspec ls: cannot access /opt/rh/ruby193/root/usr/local/share/gems/specifications/*.gemspec: No such file or directory # oo-diagnostics -v <--snip--> INFO: checking for presence of gem-installed rubygems looking in /opt/rh/ruby193/root/usr/local/share/gems/specifications/*.gemspec /opt/rh/ruby193/root/usr/share/gems/specifications/*.gemspec INFO: running: test_for_multiple_gem_versions <--snip--> No error is seen now.
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. https://rhn.redhat.com/errata/RHSA-2015-2666.html