Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1402704

Summary: hammer on rhel6 issues warnings about missing devtoolset-4
Product: Red Hat Satellite Reporter: Lukas Pramuk <lpramuk>
Component: PackagingAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED NOTABUG QA Contact: Lukas Pramuk <lpramuk>
Severity: high Docs Contact:
Priority: high    
Version: 6.3.0CC: bbuckingham, dhlavacd, ehelms, inecas, mhulan, tstrachota
Target Milestone: UnspecifiedKeywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-16 14:36:26 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 Lukas Pramuk 2016-12-08 08:42:47 UTC
Description of problem:
every hammer command on rhel6 issues warnings about missing devtoolset-4

Version-Release number of selected component (if applicable):
satellite-6.3.0-11.1.beta.el6sat.noarch (snap8)
rh-nodejs4-runtime-2.2-9.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1. # hammer <any command>
Can't read /etc/scl/prefixes/devtoolset-4, devtoolset-4 is probably not installed.
Can't source enable, skipping.
...

Actual results:
warnings 

Expected results:
no warnings

Comment 2 Lukas Pramuk 2016-12-08 08:50:27 UTC
# tail -4  /opt/rh/rh-nodejs4/enable
# new nodejs bundles v8
# we use dts-4 in rhel6 now because gcc/g++ from official repositories
# are too old for new Node/v8 (and node-gyp)
. scl_source enable devtoolset-4

If rh-nodejs4 for rhel6 now requires devtoolset-4 then the rpm should have it in its requires, and it's not there:

# rpm -qR rh-nodejs4-runtime-2.2-9.el6.x86_64
/usr/bin/scl_source  
python(abi) = 2.6
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1

>>> rh-nodejs4-runtime el6 should require devtoolset-4

Comment 4 Lukas Pramuk 2016-12-08 09:38:31 UTC
Workaround is to run:

# yum install devtoolset-4-runtime

Comment 5 Tomas Strachota 2016-12-08 14:37:08 UTC
This is a packaging problem with tfm scl. The same error appears anytime you enable tfm:

$ scl enable tfm 'bash -c "whoami"'
Can't read /etc/scl/prefixes/devtoolset-4, devtoolset-4 is probably not installed.
Can't source enable, skipping.
tstracho

Comment 6 Eric Helms 2016-12-16 14:36:26 UTC
This is a bug in the RHSCL rh-nodejs4 collection and not our packaging. The bug has been filed previously and should propagate via updates to RHSCL. Due to that, I'm closing this BZ.

https://bugzilla.redhat.com/show_bug.cgi?id=1362169