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

Also available in: Atom PDF