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 1592194

Summary: satellite-installer: Facter: error while resolving custom fact "mongodb_is_master"
Product: Red Hat Satellite Reporter: Ales Dujicek <adujicek>
Component: InstallationAssignee: Ewoud Kohl van Wijngaarden <ekohlvan>
Status: CLOSED ERRATA QA Contact: Nikhil Kathole <nkathole>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.4CC: adprice, ehelms, ekohlvan, jhutar, nkathole, pcreech
Target Milestone: 6.4.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: katello-installer-base-3.7.0-1.rc1.4 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-16 19:13:44 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 Ales Dujicek 2018-06-18 07:22:35 UTC
Description of problem:

there is a error traceback during installation

# satellite-installer --scenario satellite

[ERROR 2018-06-18T09:08:50 main]  Facter: error while resolving custom fact "mongodb_is_master": No such file or directory @ rb_sysopen - /etc/mongodb.conf
[ERROR 2018-06-18T09:08:50 main] backtrace:
[ERROR 2018-06-18T09:08:50 main] /opt/puppetlabs/puppet/lib/ruby/2.4.0/psych.rb:472:in `initialize'
[ERROR 2018-06-18T09:08:50 main] /opt/puppetlabs/puppet/lib/ruby/2.4.0/psych.rb:472:in `open'
[ERROR 2018-06-18T09:08:50 main] /opt/puppetlabs/puppet/lib/ruby/2.4.0/psych.rb:472:in `load_file'
[ERROR 2018-06-18T09:08:50 main] /usr/share/katello-installer-base/modules/mongodb/lib/facter/is_master.rb:17:in `block (2 levels) in <top (required)>'
[ERROR 2018-06-18T09:08:50 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/facts/facter.rb:35:in `to_hash'
[ERROR 2018-06-18T09:08:50 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/facts/facter.rb:35:in `find'
[ERROR 2018-06-18T09:08:50 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/indirection.rb:198:in `find'
[ERROR 2018-06-18T09:08:50 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/node.rb:135:in `fact_merge'
[ERROR 2018-06-18T09:08:50 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/node/plain.rb:18:in `find'
[ERROR 2018-06-18T09:08:51 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/indirection.rb:198:in `find'
[ERROR 2018-06-18T09:08:51 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:215:in `main'
[ERROR 2018-06-18T09:08:51 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:174:in `run_command'
[ERROR 2018-06-18T09:08:51 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:375:in `block in run'
[ERROR 2018-06-18T09:08:51 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:661:in `exit_on_fail'
[ERROR 2018-06-18T09:08:51 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:375:in `run'
[ERROR 2018-06-18T09:08:51 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:137:in `run'
[ERROR 2018-06-18T09:08:51 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:73:in `execute'
[ERROR 2018-06-18T09:08:51 main] /opt/puppetlabs/puppet/bin/puppet:5:in `<main>'
[DEBUG 2018-06-18T09:08:51 main]  Facter: fact "mongodb_is_master" resolved to null and will not be added.


mongo config file in in /etc/opt since upgrade to mongo 3.4

Version-Release number of selected component (if applicable):
satellite-installer-6.4.0.5-1.beta.el7sat.noarch
sat 6.4 snap 8

How reproducible:
always

Comment 3 Ewoud Kohl van Wijngaarden 2018-06-19 16:41:57 UTC
Connecting redmine issue https://projects.theforeman.org/issues/23978 from this bug

Comment 6 Ewoud Kohl van Wijngaarden 2018-07-02 12:12:30 UTC
There was a regression in puppet-mongodb 2.2.0. 2.2.1 fixes this and https://github.com/Katello/katello-installer/commit/db5906c45d75eea72221712cea13923717c552a8 ensures the installer has this version.

Comment 7 Nikhil Kathole 2018-07-09 11:11:51 UTC
VERIFIED

version tested:
Satellite 6.4 snap 11

No error found while running satellite-installer.

Comment 8 Bryan Kearney 2018-10-16 19:13:44 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/RHSA-2018:2927