Project

General

Profile

Actions

Bug #8670

closed

Actions::Katello::Repository::ErrataMail generated an error while synchronizing RHEL 7 repository.

Added by Og Maciel over 9 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Errata Management
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Having configured my admin user with a valid email (my personal work email) and to receive email notifications for all available events, I then imported a valid manifest and selected a RHEL 7 repository for synchronization. Towards the end of the sync process I received a notification (via the web ui, Sync Status page) that 1 package was not synchronized out of all others.

Under Monitor > Tasks I see the following:

Exception:

NoMethodError: undefined method `deliver' for nil:NilClass

and

Backtrace:

/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.1.0/app/lib/actions/katello/repository/errata_mail.rb:24:in `run'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.5/lib/dynflow/action.rb:456:in `block (3 levels) in execute_run'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.5/lib/dynflow/middleware/stack.rb:26:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.5/lib/dynflow/middleware/stack.rb:26:in `pass'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.5/lib/dynflow/middleware.rb:16:in `pass'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.5/lib/dynflow/action/progress.rb:30:in `with_progress_calculation'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.5/lib/dynflow/action/progress.rb:16:in `run'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.5/lib/dynflow/middleware/stack.rb:22:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.5/lib/dynflow/middleware/stack.rb:26:in `pass'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.5/lib/dynflow/middleware.rb:16:in `pass'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.1.0/app/lib/actions/middleware/keep_locale.rb:23:in `block in run'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.1.0/app/lib/actions/middleware/keep_locale.rb:34:in `with_locale'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.1.0/app/lib/actions/middleware/keep_locale.rb:23:in `run'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.5/lib/dynflow/middleware/stack.rb:22:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.5/lib/dynflow/middleware/world.rb:30:in `execute'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.5/lib/dynflow/action.rb:455:in `block (2 levels) in execute_run'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.5/lib/dynflow/action.rb:454:in `catch'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.5/lib/dynflow/action.rb:454:in `block in execute_run'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.5/lib/dynflow/action.rb:371:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.5/lib/dynflow/action.rb:371:in `block in with_error_handling'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.5/lib/dynflow/action.rb:371:in `catch'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.5/lib/dynflow/action.rb:371:in `with_error_handling'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.5/lib/dynflow/action.rb:449:in `execute_run'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.5/lib/dynflow/action.rb:236:in `execute'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.5/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:9:in `block (2 levels) in execute'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.5/lib/dynflow/execution_plan/steps/abstract.rb:152:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.5/lib/dynflow/execution_plan/steps/abstract.rb:152:in `with_meta_calculation'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.5/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:8:in `block in execute'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.5/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:22:in `open_action'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.5/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:7:in `execute'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.5/lib/dynflow/executors/parallel/worker.rb:20:in `block in on_message'
/opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:859:in `block in assigns'
/opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:858:in `tap'
/opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:858:in `assigns'
/opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:138:in `match_value'
/opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:116:in `block in match'
/opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:115:in `each'
/opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:115:in `match'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.5/lib/dynflow/executors/parallel/worker.rb:17:in `on_message'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.5/lib/dynflow/micro_actor.rb:82:in `on_envelope'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.5/lib/dynflow/micro_actor.rb:72:in `receive'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.5/lib/dynflow/micro_actor.rb:99:in `block (2 levels) in run'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.5/lib/dynflow/micro_actor.rb:99:in `loop'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.5/lib/dynflow/micro_actor.rb:99:in `block in run'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.5/lib/dynflow/micro_actor.rb:99:in `catch'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.5/lib/dynflow/micro_actor.rb:99:in `run'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.5/lib/dynflow/micro_actor.rb:13:in `block in initialize'
/opt/rh/ruby193/root/usr/share/gems/gems/logging-1.8.1/lib/logging/diagnostic_context.rb:323:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/logging-1.8.1/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context'

Environment:

* candlepin-0.9.34-1.el7.noarch
* candlepin-common-1.0.16-1.el7.noarch
* candlepin-selinux-0.9.34-1.el7.noarch
* candlepin-tomcat-0.9.34-1.el7.noarch
* elasticsearch-0.90.10-7.el7.noarch
* foreman-1.8.0-0.develop.201412110811gitc4698fe.el7.noarch
* foreman-compute-1.8.0-0.develop.201412110811gitc4698fe.el7.noarch
* foreman-gce-1.8.0-0.develop.201412110811gitc4698fe.el7.noarch
* foreman-libvirt-1.8.0-0.develop.201412110811gitc4698fe.el7.noarch
* foreman-ovirt-1.8.0-0.develop.201412110811gitc4698fe.el7.noarch
* foreman-postgresql-1.8.0-0.develop.201412110811gitc4698fe.el7.noarch
* foreman-proxy-1.8.0-0.develop.201411261259git6ddd00d.el7.noarch
* foreman-release-1.8.0-0.develop.201412110811gitc4698fe.el7.noarch
* foreman-selinux-1.8.0-0.develop.201411281557gitf4a857f.el7.noarch
* foreman-vmware-1.8.0-0.develop.201412110811gitc4698fe.el7.noarch
* katello-2.1.0-1.201411061509gitb0b8f43.el7.noarch
* katello-certs-tools-2.0.1-1.el7.noarch
* katello-default-ca-1.0-1.noarch
* katello-installer-2.1.0-1.201412071742git114a910.el7.noarch
* katello-repos-2.1.1-1.el7.noarch
* katello-server-ca-1.0-1.noarch
* openldap-2.4.39-3.el7.x86_64
* pulp-docker-plugins-0.2.1-0.2.beta.el7.noarch
* pulp-katello-0.3-3.el7.noarch
* pulp-nodes-common-2.5.0-0.7.beta.el7.noarch
* pulp-nodes-parent-2.5.0-0.7.beta.el7.noarch
* pulp-puppet-plugins-2.5.0-0.7.beta.el7.noarch
* pulp-puppet-tools-2.5.0-0.7.beta.el7.noarch
* pulp-rpm-plugins-2.5.0-0.7.beta.el7.noarch
* pulp-selinux-2.5.0-0.7.beta.el7.noarch
* pulp-server-2.5.0-0.7.beta.el7.noarch
* python-ldap-2.4.6-6.el7.x86_64
* ruby193-rubygem-ldap_fluff-0.3.3-1.el7.noarch
* ruby193-rubygem-net-ldap-0.10.0-1.el7.noarch
* ruby193-rubygem-runcible-1.3.0-1.el7.noarch
* rubygem-hammer_cli-0.1.4-1.201412101308git6d4fd09.el7.noarch
* rubygem-hammer_cli_foreman-0.1.4-1.201412111235git2131f5d.el7.noarch
* rubygem-hammer_cli_foreman_tasks-0.0.3-2.201409091410git163c264.git.0.988ca80.el7.noarch
* rubygem-hammer_cli_import-0.10.4-1.el7.noarch
* rubygem-hammer_cli_katello-0.0.6-1.201412101306git7d5e313.git.0.44a4586.el7.noarch


Files

foreman-debug-KTEFj.tar.xz foreman-debug-KTEFj.tar.xz 793 KB Og Maciel, 12/11/2014 01:35 PM
Actions #1

Updated by Stephen Benjamin over 9 years ago

Hi,

Do you see Katello sync errata under the available mail notifications?

Is this an upgrade?

NoMethodError: undefined method `deliver' for nil:NilClass

That indicates to me that it didn't find the mail notification, which normally means that if (1) you see it in the UI, and (2) the task reports not found, foreman-tasks wasn't restarted after seeding.

Actions #2

Updated by Eric Helms over 9 years ago

  • Category set to Errata Management
  • Status changed from New to Need more information
  • Target version set to 63
  • translation missing: en.field_release set to 14
  • Triaged changed from No to Yes
Actions #3

Updated by Eric Helms about 9 years ago

  • Target version changed from 63 to 66
Actions #4

Updated by Og Maciel about 9 years ago

  • Status changed from Need more information to Feedback
  • Bugzilla link set to 1187820

This was a brand new installation and I think that the root of the issue here is that, even though my user selected all the proper notification options via the web ui, the Satellite instance itself was not configured to handle sending out emails, something that apparently is a manual step and requires editing a email.yaml file. I filed a BZ about this: https://bugzilla.redhat.com/show_bug.cgi?id=1187820

Actions #5

Updated by Eric Helms about 9 years ago

  • translation missing: en.field_release changed from 14 to 23
Actions #6

Updated by Anonymous almost 7 years ago

  • Status changed from Feedback to Closed

that BZ got closed.

Actions

Also available in: Atom PDF