Description of problem: Some unwanted exception dumps during yum update in the cleanup phase(In Capsule Upgrade).
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. In Capsule upgrade, "yum update" cleanup phase dumps NoMethodError exception.
/etc/foreman-installer/scenarios.d/satellite.migrations/190426093500-foreman-tasks-cleanup.rb:3:in `block (2 levels) in load_migrations': undefined method `=' for true:TrueClass (NoMethodError)
from /usr/share/gems/gems/kafo-3.0.0/lib/kafo/migrations.rb:25:in `instance_eval'
from /usr/share/gems/gems/kafo-3.0.0/lib/kafo/migrations.rb:25:in `block (2 levels) in load_migrations'
from /usr/share/gems/gems/kafo-3.0.0/lib/kafo/migration_context.rb:10:in `instance_eval'
from /usr/share/gems/gems/kafo-3.0.0/lib/kafo/migration_context.rb:10:in `execute'
from /usr/share/gems/gems/kafo-3.0.0/lib/kafo/migrations.rb:38:in `block in run'
from /usr/share/gems/gems/kafo-3.0.0/lib/kafo/migrations.rb:35:in `each'
from /usr/share/gems/gems/kafo-3.0.0/lib/kafo/migrations.rb:35:in `run'
from /usr/share/gems/gems/kafo-3.0.0/lib/kafo/configuration.rb:281:in `run_migrations'
from /usr/share/gems/gems/kafo-3.0.0/lib/kafo/kafo_configure.rb:65:in `initialize'
from /usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in `new'
from /usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in `run'
from /usr/share/gems/gems/kafo-3.0.0/lib/kafo/kafo_configure.rb:163:in `run'
from /sbin/foreman-installer:8:in `<main>'
Uploading Package Profile
NoMethodError comes in yum update in the cleanup phase.
The exception should not be dumped.
There was no impact on the current upgrade process, Both Satellite and Capsule upgrade was completed successfully.
*** Bug 1746108 has been marked as a duplicate of this bug. ***
Satellite 6.6.0 snap 20
No exception raised while yum update as mentioned above.
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.