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 1232023

Summary: Custom fact from openscap for RHEL 5.x is not working
Product: Red Hat Satellite Reporter: Og Maciel <omaciel>
Component: SCAP PluginAssignee: Katello Bug Bin <katello-bugs>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: bbuckingham, kshravag, szadok
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-17 07:46:34 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-06-15 20:55:14 UTC
Description of problem:

Provisioning a RHEL 5.11 x86_64 host via Satellite 6.1 using a Host Group that pushes the https://forge.puppetlabs.com/jeffmccune/motd puppet module shows the following error:

  puppet-agent[2428]: Could not run Puppet configuration client: Could not retrieve local facts: odd number of arguments for Hash

Based on irc conversation, it appears that custom fact from openscap doesn't work with ruby 1.8.5

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

* Satellite 6.1.0 GA SNAP 8 Compose 2
* uppet-2.7.23-2.el5sat
* ruby-1.8.5-31.el5_9

How reproducible:


Steps to Reproduce:
1. Provision a RHEL 5.11 host through a Host Group that pushes a puppet module to it
2.
3.

Actual results:


Expected results:


Additional info:

For what is worth, my Host Group also uses Compute Profiles.

[root@tom-hanks-5-11-large ~]# facter -v
1.6.18
[root@tom-hanks-5-11-large ~]# facter --trace -d --puppet
Not an EC2 host
/var/lib/puppet/lib/facter/rh_certificates.rb:10:in `[]': odd number of arguments for Hash (ArgumentError)
	from /var/lib/puppet/lib/facter/rh_certificates.rb:10:in `extract_certificates_from_subscription_manager'
	from /var/lib/puppet/lib/facter/rh_certificates.rb:19
	from /usr/lib/ruby/site_ruby/1.8/facter/util/loader.rb:81:in `load'
	from /usr/lib/ruby/site_ruby/1.8/facter/util/loader.rb:81:in `load_file'
	from /usr/lib/ruby/site_ruby/1.8/facter/util/loader.rb:43:in `load_all'
	from /usr/lib/ruby/site_ruby/1.8/facter/util/loader.rb:38:in `each'
	from /usr/lib/ruby/site_ruby/1.8/facter/util/loader.rb:38:in `load_all'
	from /usr/lib/ruby/site_ruby/1.8/facter/util/loader.rb:35:in `each'
	from /usr/lib/ruby/site_ruby/1.8/facter/util/loader.rb:35:in `load_all'
	from /usr/lib/ruby/site_ruby/1.8/facter/util/collection.rb:93:in `load_all'
	from /usr/lib/ruby/site_ruby/1.8/facter.rb:100:in `to_hash'
	from /usr/lib/ruby/site_ruby/1.8/facter/application.rb:26:in `run'
	from /usr/bin/facter:71

Comment 2 Shlomi Zadok 2015-11-17 07:46:34 UTC

*** This bug has been marked as a duplicate of bug 1247175 ***