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.
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.
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:
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
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'
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
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
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: