Project

General

Profile

Actions

Bug #22703

closed

The Foreman installer fails with error 'No such file or directory /opt/puppetlabs/puppet/cache/foreman_cache_data/candlepin_db_password

Added by Amit Upadhye about 6 years ago. Updated over 5 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
Category:
Installer
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1549527

Description of problem:

The upgrade fails with below error and traceback,

/usr/share/ruby/vendor_ruby/puppet/vendor/safe_yaml/lib/safe_yaml.rb:188:in `initialize': No such file or directory - /opt/puppetlabs/puppet/cache/foreman_cache_data/candlepin_db_password (Errno::ENOENT)
from /usr/share/ruby/vendor_ruby/puppet/vendor/safe_yaml/lib/safe_yaml.rb:188:in `open'
from /usr/share/ruby/vendor_ruby/puppet/vendor/safe_yaml/lib/safe_yaml.rb:188:in `unsafe_load_file'
from /usr/share/ruby/vendor_ruby/puppet/vendor/safe_yaml/lib/safe_yaml.rb:153:in `load_file_with_options'
from /usr/share/katello-installer-base/hooks/boot/01-helpers.rb:30:in `read_cache_data'
from /usr/share/katello-installer-base/hooks/pre/30-upgrade.rb:21:in `migrate_candlepin'
from /usr/share/katello-installer-base/hooks/pre/30-upgrade.rb:157:in `upgrade_step'
from /usr/share/katello-installer-base/hooks/pre/30-upgrade.rb:210:in `block (4 levels) in load'
from /usr/share/gems/gems/kafo-2.0.2/lib/kafo/hooking.rb:34:in `instance_eval'
from /usr/share/gems/gems/kafo-2.0.2/lib/kafo/hooking.rb:34:in `block (4 levels) in load'
from /usr/share/gems/gems/kafo-2.0.2/lib/kafo/hook_context.rb:15:in `instance_exec'
from /usr/share/gems/gems/kafo-2.0.2/lib/kafo/hook_context.rb:15:in `execute'
from /usr/share/gems/gems/kafo-2.0.2/lib/kafo/hooking.rb:51:in `block in execute'
from /usr/share/gems/gems/kafo-2.0.2/lib/kafo/hooking.rb:49:in `each'
from /usr/share/gems/gems/kafo-2.0.2/lib/kafo/hooking.rb:49:in `execute'
from /usr/share/gems/gems/kafo-2.0.2/lib/kafo/kafo_configure.rb:424:in `run_installation'
from /usr/share/gems/gems/kafo-2.0.2/lib/kafo/kafo_configure.rb:156:in `execute'
from /usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:68:in `run'
from /usr/share/gems/gems/kafo-2.0.2/lib/kafo/kafo_configure.rb:119:in `run'
from /usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:133:in `run'
from /usr/share/gems/gems/kafo-2.0.2/lib/kafo/kafo_configure.rb:163:in `run'
from /sbin/satellite-installer:8:in `<main>'

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

6.3

How reproducible:

Each time when having /opt/puppetlabs/puppet/ directory on Katello, which comes when having Katello as puppetlabs client.

Steps to Reproduce:
1. Create directory /opt/puppetlabs/puppet/ and run upgrade on Katello 3.0 with default options.

Actual results:

Upgrade fails.

Expected results:

Upgrade should complete.

Additional info:

Actions #1

Updated by Amit Upadhye about 6 years ago

  • Assignee set to Amit Upadhye
Actions #2

Updated by The Foreman Bot about 6 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello-installer/pull/595 added
Actions #3

Updated by Andrew Kofink about 6 years ago

  • Subject changed from The Satellite installer fails with error 'No such file or directory /opt/puppetlabs/puppet/cache/foreman_cache_data/candlepin_db_password to The Foreman installer fails with error 'No such file or directory /opt/puppetlabs/puppet/cache/foreman_cache_data/candlepin_db_password
  • Description updated (diff)
  • translation missing: en.field_release set to 339
Actions #4

Updated by Andrew Kofink about 6 years ago

  • translation missing: en.field_release changed from 339 to 351
Actions #5

Updated by Ewoud Kohl van Wijngaarden over 5 years ago

  • Status changed from Ready For Testing to Rejected
  • Target version deleted (Katello 3.5.3)
  • Triaged set to No

Per my comments in the PR:

Upstream has dropped support for Puppet 3 so almost of all deployments should be Puppet 4 or Puppet 5 AIO installs in /opt/puppetlabs/puppet. Only Debian with non-AIO packages still has /var/lib/puppet but katello-installer doesn't suppport Debian. Current Kafo versions also would prefer a Puppet Enterprise over Puppet 3 if both are installed. That means this patch is very likely to break for all our current users and should be a downstream 6.2 only fix given 6.3 supports Puppet 4 in the same way upstream does.

Closing because this is not a good idea. It moves in the opposite direction we want to move.

Actions

Also available in: Atom PDF