Bug #15212
closedundefined method `finished' for nil:NilClass (NoMethodError) while upgrading
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1337447
Description of problem:
I was trying to upgrade from [sat6.1.9 -> Sat6.2 snap12] and at step where we run yum update to update all satellite packages from sat6.1.9 -> 6.2, following error thrown in production.log:
2016-05-19 04:30:22 [foreman-tasks/dynflow] [E] undefined method `finished' for nil:NilClass (NoMethodError) | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.31/app/lib/actions/candlepin/listen_on_candlepin_events.rb:149:in `block (2 levels) in initialize_service' | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/world.rb:384:in `call' | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/world.rb:384:in `run_before_termination_hooks'
Version-Release number of selected component (if applicable):
sat6.1.9 -> Sat6.2 snap12
How reproducible:
always
Steps to Reproduce:
1. yum update -y
2.
3.
Actual results:
2016-05-19 04:30:22 [foreman-tasks/dynflow] [E] undefined method `finished' for nil:NilClass (NoMethodError)
| /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.31/app/lib/actions/candlepin/listen_on_candlepin_events.rb:149:in `block (2 levels) in initialize_service'
Expected results:
no exception/error should be thrown during yum update
Additional info: