Bug 1337447
| Summary: | upgrade[sat6.1.9 -> Sat6.2 snap12] error [E] undefined method `finished' for nil:NilClass (NoMethodError) while updating satellite packages | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Sachin Ghai <sghai> | ||||
| Component: | Upgrades | Assignee: | Ivan Necas <inecas> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Sachin Ghai <sghai> | ||||
| Severity: | low | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 6.2.0 | CC: | bbuckingham, ehelms, inecas | ||||
| Target Milestone: | Unspecified | Keywords: | Triaged | ||||
| Target Release: | Unused | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | rubygem-katello-3.0.0.38-1 | Doc Type: | If docs needed, set a value | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2016-07-27 11:00:25 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 1335807 | ||||||
| Attachments: |
|
||||||
|
Description
Sachin Ghai
2016-05-19 08:56:38 UTC
==> /var/log/foreman/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' | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/world.rb:209:in `block (2 levels) in terminate' | /opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/edge/future.rb:926:in `call' | /opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/edge/future.rb:926:in `evaluate_to' | /opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/edge/future.rb:1113:in `block in on_completable' | /opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/executor/ruby_thread_pool_executor.rb:333:in `call' | /opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/executor/ruby_thread_pool_executor.rb:333:in `run_task' | /opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/executor/ruby_thread_pool_executor.rb:322:in `block (3 levels) in create_worker' | /opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/executor/ruby_thread_pool_executor.rb:305:in `loop' | /opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/executor/ruby_thread_pool_executor.rb:305:in `block (2 levels) in create_worker' | /opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/executor/ruby_thread_pool_executor.rb:304:in `catch' | /opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/executor/ruby_thread_pool_executor.rb:304:in `block in create_worker' | /opt/theforeman/tfm/root/usr/share/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `call' | /opt/theforeman/tfm/root/usr/share/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context' 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' | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/world.rb:209:in `block (2 levels) in terminate' | /opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/edge/future.rb:926:in `call' | /opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/edge/future.rb:926:in `evaluate_to' | /opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/edge/future.rb:1113:in `block in on_completable' | /opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/executor/ruby_thread_pool_executor.rb:333:in `call' | /opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/executor/ruby_thread_pool_executor.rb:333:in `run_task' | /opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/executor/ruby_thread_pool_executor.rb:322:in `block (3 levels) in create_worker' | /opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/executor/ruby_thread_pool_executor.rb:305:in `loop' | /opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/executor/ruby_thread_pool_executor.rb:305:in `block (2 levels) in create_worker' | /opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/executor/ruby_thread_pool_executor.rb:304:in `catch' | /opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/executor/ruby_thread_pool_executor.rb:304:in `block in create_worker' | /opt/theforeman/tfm/root/usr/share/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `call' | /opt/theforeman/tfm/root/usr/share/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context' Created attachment 1159331 [details]
foreman debug logs
Re-producible with following upgrade steps: 1. Set sat6.2 repo on existing sat6.1 setup 2. yum install satellite -y 2016-05-20 03:20:14 [foreman-tasks/dynflow] [E] undefined method `finished' for nil:NilClass (NoMethodError) | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.32/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' Please note that this exception is being raised when we run "yum install satellite -y" Thanks. I have not been able to reproduce this issue on my environment. I am testing with changes that will be coming in snap 13; therefore, it could be related to those changes or environmental or procedural differences. For now, I am going to triage this in, as we need to ensure the bug is resolved. Reproducible with upgrade from sat6.1.9 -> sat6.2 snap13.1 steps to reproduce: ================== 1. Set sat6.2 repo on existing sat6.1 setup 2. yum update -y ==> /var/log/foreman/production.log <== 2016-05-26 00:36:17 [foreman-tasks/action] [E] katello has not been configured for qpid.url and qpid.subscriptions_queue_address 2016-05-26 00:36:22 [foreman-tasks/action] [E] katello has not been configured for qpid.url and qpid.subscriptions_queue_address 2016-05-26 00:36:23 [foreman-tasks/action] [E] katello has not been configured for qpid.url and qpid.subscriptions_queue_address 2016-05-26 00:36:23 [foreman-tasks/action] [E] katello has not been configured for qpid.url and qpid.subscriptions_queue_address 2016-05-26 00:36:24 [foreman-tasks/action] [E] katello has not been configured for qpid.url and qpid.subscriptions_queue_address 2016-05-26 00:36:24 [foreman-tasks/action] [E] katello has not been configured for qpid.url and qpid.subscriptions_queue_address 2016-05-26 00:36:25 [foreman-tasks/action] [E] katello has not been configured for qpid.url and qpid.subscriptions_queue_address 2016-05-26 00:36:26 [foreman-tasks/action] [E] katello has not been configured for qpid.url and qpid.subscriptions_queue_address 2016-05-26 00:36:37 [foreman-tasks/dynflow] [E] undefined method `finished' for nil:NilClass (NoMethodError) | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.35/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' | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.11/lib/dynflow/world.rb:209:in `block (2 levels) in terminate' | /opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/edge/future.rb:926:in `call' | /opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/edge/future.rb:926:in `evaluate_to' | /opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/edge/future.rb:1113:in `block in on_completable' | /opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/executor/ruby_thread_pool_executor.rb:333:in `call' | /opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/executor/ruby_thread_pool_executor.rb:333:in `run_task' | /opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/executor/ruby_thread_pool_executor.rb:322:in `block (3 levels) in create_worker' | /opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/executor/ruby_thread_pool_executor.rb:305:in `loop' | /opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/executor/ruby_thread_pool_executor.rb:305:in `block (2 levels) in create_worker' | /opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/executor/ruby_thread_pool_executor.rb:304:in `catch' | /opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/executor/ruby_thread_pool_executor.rb:304:in `block in create_worker' | /opt/theforeman/tfm/root/usr/share/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `call' | /opt/theforeman/tfm/root/usr/share/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context' 2016-05-26 00:36:37 [foreman-tasks/dynflow] [E] undefined method `finished' for nil:NilClass (NoMethodError) | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.35/app/lib/actions/candlepin/listen_on_candlepin_events.rb:149:in `block (2 levels) in initialize_service' Created redmine issue http://projects.theforeman.org/issues/15212 from this bug A proposed fix is here: https://github.com/Katello/katello/pull/6082 I lowered the severity as it has no much impact on the system other than the ugly exception. Verified with upgrade from sat6.1.9 -> sat6.2 GA snap14 on rhel7. The reported issue is no longer reproducible with upgrade performed with above builds. I don't find any exception during "yum update -y step". thank you for the fix. 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. https://access.redhat.com/errata/RHBA-2016:1501 |