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 - satellite-installer: Facter: error while resolving custom fact "mongodb_is_master"
Summary: satellite-installer: Facter: error while resolving custom fact "mongodb_is_ma...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Installation
Version: 6.4
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.4.0
Assignee: Ewoud Kohl van Wijngaarden
QA Contact: Nikhil Kathole
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-06-18 07:22 UTC by Ales Dujicek
Modified: 2019-11-05 23:24 UTC (History)
6 users (show)

Fixed In Version: katello-installer-base-3.7.0-1.rc1.4
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-16 19:13:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 23978 0 Normal Closed Mongodb is_master fact requires the mongodb to be present 2021-01-27 07:14:05 UTC

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


Note You need to log in before you can comment on or make changes to this bug.