Bug 1277707
| Summary: | Binaries for customer installed gems will not be found | ||
|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | Joe Vlcek <jvlcek> |
| Component: | Build | Assignee: | Joe Vlcek <jvlcek> |
| Status: | CLOSED ERRATA | QA Contact: | Pete Savage <psavage> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 5.5.0 | CC: | cpelland, gblomqui, jfrey, jhardy, obarenbo, psavage, simaishi, tcarlin |
| Target Milestone: | GA | ||
| Target Release: | 5.5.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | 5.5.0.11 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-12-08 13:43:33 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Joe Vlcek
2015-11-03 21:23:37 UTC
JoeV is writing a fix into the cfme-gemset enable script to add /opt/rh/rh-ruby22/root/usr/local/bin to the PATH, which should solve this issue. However, the real problem is in the SCL, as *that* package should be adding that to the PATH. I am going to open a separate ticket with them to get that added. The diff to the cfme-gemset.spec:
diff --git a/cfme-gemset.spec b/cfme-gemset.spec
index c108356..4b75bfc 100644
--- a/cfme-gemset.spec
+++ b/cfme-gemset.spec
@@ -2,7 +2,7 @@
Name: cfme-gemset
Version: 5.5.0.10
-Release: beta2.1.1%{?dist}
+Release: beta2.1.2%{?dist}
Summary: CloudForms Management Engine Gemset
Group: Applications/System
License: "GPLv2+, Apache Public License 2.0, The MIT License and Ruby License"
@@ -20,7 +20,7 @@ cat <<"EOF" > enable
export APPLIANCE="true"
export BUNDLE_PATH=/opt/rh/cfme-gemset
export GEM_PATH=/opt/rh/cfme-gemset:$(gem env path)
-export PATH=/opt/rh/cfme-gemset/bin:$PATH
+export PATH=/opt/rh/cfme-gemset/bin:$PATH:/opt/rh/rh-ruby22/root/usr/local/bin/
[[ -f /var/www/miq/vmdb/Gemfile.lock ]] && rm -f /var/www/miq/vmdb/Gemfile.lock
ln -s /opt/rh/cfme-gemset/vmdb/Gemfile.lock /var/www/miq/vmdb/Gemfile.lock
@@ -66,6 +66,9 @@ rm -rf $RPM_BUILD_ROOT
%{app_root}/enable
%changelog
+* Tue Nov 17 2015 Joe VLcek <jvlcek> - 5.5.0.10-beta2.1.2
+- Updated enable script to include /opt/rh/rh-ruby22/root/usr/local/bin/ in PATH
+
* Tue Nov 10 2015 Satoe Imaishi <simaishi> - 5.5.0.10-beta2.1.1
- Building 5.5.0.10 beta2.1.1
Note to QE for how to test this fix: 1. Boot and log into a CFME appliance. 2. % cd /var/www/miq/vmdb 3. % gem install <any gem that contains an executable> e.g.: % gem install gempath The gempath gem happens to contain an executable with the same name. 4. Use the linux which(1) command to display the path to the executable included in the gem. e.g.: % which gempath 5. Invoke the executable included in the installed gem: e.g.: gempath rake If steps 4 and 5 are successful the fix is working. 6. Run the full suite of CFME tests against this appliance to confirm this fix did not adversely effect the appliance. Verified in 5.5.0.11 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://access.redhat.com/errata/RHSA-2015:2551 |