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 1247175

Summary: Need newer ruby for RHEL 5.x systems to work with puppet facter
Product: Red Hat Satellite Reporter: Og Maciel <omaciel>
Component: SCAP PluginAssignee: Shlomi Zadok <szadok>
Status: CLOSED ERRATA QA Contact: Corey Welton <cwelton>
Severity: medium Docs Contact:
Priority: unspecified    
Version: UnspecifiedCC: bbuckingham, bkearney, chpeters, cwelton, daobrien, fhirtz, jcallaha, jnikolak, kbidarka, kshravag, ohadlevy, sthirugn, szadok
Target Milestone: UnspecifiedKeywords: Reopened, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/12304
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
The SCAP client would not handle arrays properly from Red Hat Enterprise Linux 5 machines due to older Ruby versions. The code was updated to support the arrays from older Ruby versions.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-11 16:23:14 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 Og Maciel 2015-07-27 13:38:54 UTC
Description of problem:

The custom fact provided by openscap converts an array to a hash using
Hash, which isn't supported on Ruby 1.8.5.

1.8.5:

 1.8.5-p231 :003 > Hash[[['foo', 'bar']]]
 ArgumentError: odd number of arguments for Hash
 from (irb):3:in `[]'
 from (irb):3
 from :0

Newer:

 irb(main):001:0> Hash[[['foo', 'bar']]]
 => {"foo"=>"bar"}


Version-Release number of selected component (if applicable):

* Satellite 6.1.1 SNAP 14

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 5 Shlomi Zadok 2015-10-25 13:54:40 UTC
Created redmine issue http://projects.theforeman.org/issues/12304 from this bug

Comment 7 Bryan Kearney 2015-10-25 14:02:39 UTC
Upstream bug component is SCAP Plugin

Comment 10 Shlomi Zadok 2015-11-17 07:46:34 UTC
*** Bug 1232023 has been marked as a duplicate of this bug. ***

Comment 14 Og Maciel 2016-01-07 18:53:24 UTC
To verify:

* Sync all of RHEL 5Server and 5.11 RPMs from CDN
* Create a custom product and synchronize the Tools channel for RHEL 5 x86_64 using the internal URL usually provided with a new build
* Create a content view and add these repositories to it
* Publish the content view
* Create an activation key, associating it to this content view
* Provision a new RHEL 5 x86_64 Host, perhaps using a Host Group + a libVirt Compute Resource
* Check that the provisioned Host shows/generates Puppet reports

Comment 15 Corey Welton 2016-01-15 23:10:28 UTC
Verified in 6.1.6 Compose #5

Sample content from a RHEL5 host puppet report:



Level	Resource	message
info	Puppet	Retrieving plugin
info	Puppet	Caching certificate_revocation_list for ca
notice	/File[/var/lib/puppet/lib/puppet]/ensure	created
notice	/File[/var/lib/puppet/lib/puppet/provider]/ensure	created
notice	/File[/var/lib/puppet/lib/puppet/provider/file_line]/ensure	created
notice	/File[/var/lib/puppet/lib/puppet/parser]/ensure	created
notice	/File[/var/lib/puppet/lib/puppet/parser/functions]/ensure	created
notice	/File[/var/lib/puppet/lib/puppet/parser/functions/ensure_packages.rb]/ensure	defined content as '{md5}fbed5c0c9bf82b7746e01f15f89d184f'
notice	/File[/var/lib/puppet/lib/puppet/parser/functions/validate_hash.rb]/ensure	defined content as '{md5}e9cfaca68751524efe16ecf2f958a9a0'
notice	/File[/var/lib/puppet/lib/puppet/parser/functions/count.rb]/ensure	defined content as '{md5}9eb74eccd93e2b3c87fd5ea14e329eba'
notice	/File[/var/lib/puppet/lib/puppet/parser/functions/validate_bool.rb]/ensure	defined content as '{md5}a712634a000024398b3c6cd4ecc46463'
notice	/File[/var/lib/puppet/lib/puppet/parser/functions/get_module_path.rb]/ensure	defined content as '{md5}d4bf50da25c0b98d26b75354fa1bcc45'
notice	/File[/var/lib/puppet/lib/puppet/parser/functions/is_ip_address.rb]/ensure	defined content as '{md5}a714a736c1560e8739aaacd9030cca00'
notice	/File[/var/lib/puppet/lib/puppet/parser/functions/is_numeric.rb]/ensure	defined content as '{md5}93ddc9d4c0834a5e5e0562d7b3cdce91'
notice	/File[/var/lib/puppet/lib/puppet/parser/functions/delete.rb]/ensure	defined content as '{md5}96e569dac96b8c9387e9303445d73048'
notice	/File[/var/lib/puppet/lib/puppet/parser/functions/is_domain_name.rb]/ensure	defined content as '{md5}cf72726c0fec831eb703ec9deea739eb'
notice	/File[/var/lib/puppet/lib/puppet/parser/functions/has_ip_address.rb]/ensure	defined content as '{md5}ee207f47906455a5aa49c4fb219dd325'
notice	/File[/var/lib/puppet/lib/puppet/parser/functions/validate_absolute_path.rb]/ensure	defined content as '{md5}385137ac24a2dec6cecc4e6ea75be442'
notice	/File[/var/lib/puppet/lib/puppet/parser/functions/has_key.rb]/ensure	defined content as '{md5}7cd9728c38f0b0065f832dabd62b0e7e'

Comment 18 errata-xmlrpc 2016-01-21 07:42:13 UTC
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/RHBA-2016:0052

Comment 20 Bryan Kearney 2016-02-05 13:03:59 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/12304 has been closed

Comment 22 errata-xmlrpc 2016-02-11 16:23:14 UTC
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/RHBA-2016:0052