Foreman 1.18 failure with remote databases

Problem:
foreman-installer --scenario katello fails with remote mongo database

Expected outcome:
successful install with remote mongo database

Foreman and Proxy versions:
1.18

Foreman and Proxy plugin versions:

Other relevant data:
foreman-installer --scenario katello

Currently unable to upload log

katello-foreman1.18.log.gz (183.8 KB)

Here is the foreman-installer command executed

foreman-installer --scenario katello
–foreman-db-host postgres.localdomain
–foreman-db-password H7ZHYX4rxjoXN2yhXhszdsFG3S7azXbU
–foreman-db-database foreman
–katello-candlepin-db-host postgres.localdomain
–katello-candlepin-db-name candlepin
–katello-candlepin-db-password Q8rxWAwvdi3eGUE8G5FvUxGmsvdWhjaY
–katello-candlepin-manage-db false
–katello-pulp-db-username pulp
–katello-pulp-db-password whelk273Ppourparlers
–katello-pulp-db-seeds “mongo.localdomain:27017”
–katello-pulp-db-name pulp

The failure issue was misconfigured authentication on remote mongo db server.

There is still the mongo warning message on install local or otherwise:

Facter: error while resolving custom fact “mongodb_is_master”: No such file or directory @ rb_sysopen - /etc/mongodb.conf
backtrace:
/opt/puppetlabs/puppet/lib/ruby/2.1.0/psych.rb:464:in initialize' /opt/puppetlabs/puppet/lib/ruby/2.1.0/psych.rb:464:inopen’
/opt/puppetlabs/puppet/lib/ruby/2.1.0/psych.rb:464:in load_file' /usr/share/katello-installer-base/modules/mongodb/lib/facter/is_master.rb:17:inblock (2 levels) in <top (required)>’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/facts/facter.rb:35:in call' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/facts/facter.rb:35:into_hash’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/facts/facter.rb:35:in find' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/indirection.rb:194:infind’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/node.rb:117:in fact_merge' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/node/plain.rb:17:infind’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/indirection.rb:194:in find' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:208:inmain’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:170:in run_command' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:375:inblock in run’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:662:in exit_on_fail' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:375:inrun’
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:132:in run' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:72:inexecute’
/opt/puppetlabs/bin/puppet:5:in `’

@redragon would you mind raising an issue so we can get it fixed?
https://projects.theforeman.org/projects/puppet-foreman/issues/new

That was fixed in https://github.com/Katello/katello-installer/commit/db5906c45d75eea72221712cea13923717c552a8 but is not part of the latest RC at this moment.

2 Likes